/* Wyoming Unleashed. Self-hosted, system fonts only. */
:root {
  --spruce: #1f3d2b; --green: #2f5d43; --mid: #4f8a63; --pale: #e3efe5;
  --cream: #faf6ec; --paper: #ffffff; --ink: #26221c; --soft: #5a5347; --line: #e2dccd;
  --gold: #d99a2b; --goldbg: #fbf0d6; --pumpkin: #c2541d; --pumpbg: #fdebdf; --sky: #cfe3ee; --brick: #a8482f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tab: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--sans); padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px) + 16px); }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--spruce); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; color: var(--spruce); }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; }
p { margin: 0 0 .7em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.dim { color: var(--soft); } .small { font-size: .85rem; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--spruce); color: var(--cream); display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); border-bottom: 3px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: bold; letter-spacing: .01em; white-space: nowrap; }
.brand-tag { font-size: .68rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.tbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: inherit; background: none; border: 0; cursor: pointer; }
.top .tbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.tme { position: relative; display: block; margin-left: 4px; }
.tme .badge { top: -4px; right: -6px; }
.top-actions .desk { display: none; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pumpkin); color: #fff; font: bold 11px/18px var(--sans); text-align: center; }

/* layout */
.shell { max-width: 1120px; margin: 0 auto; padding: 12px; display: block; }
.side, .rail { display: none; }
main { min-width: 0; }
.mobile-only { display: block; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 10px rgba(38,34,28,.06); }
.tabbar a, .tabbar button { position: relative; flex: 1; height: var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 11px/1.1 var(--sans); color: var(--soft); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.tabbar a[aria-current], .tabbar button.cur { color: var(--spruce); font-weight: bold; }
.tabbar a[aria-current]::before, .tabbar button.cur::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.tabbar .badge { top: 6px; right: calc(50% - 22px); }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(31,61,43,.45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 16px 16px 0 0; padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px)); max-height: 85vh; overflow: auto; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; }
.sheet-h h2 { margin: 0; }
.sheet ul, .side ul { list-style: none; margin: 0; padding: 0; }
.sheet a { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: var(--ink); text-decoration: none; border-radius: 10px; font-size: 1.02rem; }
.sheet a:hover { background: var(--pale); }
.sheet a span:first-of-type { flex: 1; }
.sheet .badge { position: static; }
.sheet a .ic:last-child { color: var(--line); }

/* cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(38,34,28,.04); overflow: hidden; }
.pad { padding: 14px; }
.card.small h2 { font-size: 1rem; }
.phead { margin: 6px 2px 12px; }
.phead .sub { color: var(--soft); margin: 0; }
.back { margin: 2px 2px 10px; font-size: .95rem; }
.back a { text-decoration: none; font-weight: 600; }
.spot { display: block; width: 100%; height: auto; background: var(--pale); border-radius: 10px; margin: 0 0 12px; border: 1px solid var(--line); }
.card > .spot { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); margin: 0; }
.post .spot { margin: 10px 0 0; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 999px; padding: 9px 16px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--spruce); color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--pale); color: var(--spruce); }
.btn.danger { background: var(--brick); border-color: var(--brick); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.opt { background: var(--paper); color: var(--spruce); border-color: var(--mid); text-align: left; border-radius: 14px; font-weight: 500; }
.btn.opt:hover { background: var(--pale); }
.chip { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--pale); color: var(--green); margin-right: 6px; vertical-align: 1px; }
.chip.c-complaint, .chip.k-lost { background: var(--pumpbg); color: #8f3a10; }
.chip.c-safety { background: #f6e3de; color: #7f2f1c; }
.chip.c-review, .chip.gold, .chip.k-found { background: var(--goldbg); color: #6b4a08; }
.chip.c-council, .chip.c-official { background: var(--spruce); color: var(--cream); }
.chip.c-paranoia, .chip.k-wanted { background: #ffe7d6; color: #8f3a10; }
.chip.c-watch { background: #dfe9d9; color: #2c4a1e; }
.chip.c-goodnews, .chip.k-free { background: var(--sky); color: #1d4257; }
.chip.gold { margin-top: 4px; }
.newtag { display: inline-block; background: var(--pumpkin); color: #fff; font: bold .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.newpill { display: inline-block; background: var(--pumpbg); color: #8f3a10; font: bold .78rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; margin-left: 8px; }
.stamp { display: inline-block; font: bold .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border: 2px solid var(--brick); color: var(--brick); border-radius: 4px; transform: rotate(-2deg); }
.stamp.closed { border-color: var(--green); color: var(--green); }

/* avatars */
.av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--pale); flex: none; display: block; object-fit: cover; }
.av.sm { width: 34px; height: 34px; } .av.xs { width: 26px; height: 26px; margin-right: -6px; border-color: var(--paper); }
.av.lg { width: 72px; height: 72px; } .av.xl { width: 112px; height: 112px; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.top .av.sm { border-color: var(--gold); }

/* posts */
.post { padding: 14px; }
.post.isnew, .litem.isnew, .event.isnew { border-color: #e9b99c; box-shadow: 0 0 0 2px var(--pumpbg); }
.by { display: flex; gap: 10px; align-items: flex-start; }
.byt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who { font-weight: 700; color: var(--ink); text-decoration: none; }
.who:hover { text-decoration: underline; }
.sp { font-size: .82rem; color: var(--soft); }
.meta { font-size: .8rem; color: var(--soft); margin-top: 3px; }
.ptitle { font-size: 1.12rem; margin: 10px 0 4px; }
.ptitle a { color: var(--spruce); text-decoration: none; }
.ptitle a:hover { text-decoration: underline; }
.post.full .ptitle { font-size: 1.3rem; }
.pbody { margin-top: 8px; overflow-wrap: anywhere; }
.pbody p:last-child { margin-bottom: 0; }
.mention { font-weight: 600; text-decoration: none; }
.flag { margin: 10px 0 0; background: var(--goldbg); border-left: 4px solid var(--gold); padding: 7px 10px; font-size: .85rem; color: #6b4a08; border-radius: 0 6px 6px 0; }
.rx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rxb { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 5px 9px; font: .82rem var(--sans); color: var(--soft); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.rxb:hover { border-color: var(--mid); color: var(--ink); }
.rxb.mine { background: var(--pale); border-color: var(--mid); color: var(--spruce); font-weight: 700; }
.rxb b { font-weight: 600; }
.rxl { display: none; }
.rxb.mine .rxl { display: inline; }
.teaser { display: block; margin-top: 12px; padding: 9px 11px; background: var(--cream); border-radius: 10px; color: var(--soft); font-size: .9rem; text-decoration: none; border: 1px solid transparent; }
.teaser:hover { border-color: var(--line); color: var(--ink); }
.tw { font-weight: 700; color: var(--ink); }
.pfoot { display: flex; align-items: center; margin-top: 10px; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.rh { margin: 16px 4px 8px; font-size: 1rem; }
.replies { list-style: none; margin: 0; padding: 0; }
.reply { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 8px 14px; position: relative; }
.reply::before { content: ""; position: absolute; left: -10px; top: 0; bottom: -9px; width: 2px; background: var(--line); }
.reply:last-child::before { bottom: 50%; }
.reply.isnew { border-color: #e9b99c; background: #fffaf6; }
.reply .av { width: 36px; height: 36px; }
.composer, .replybox { padding: 12px; }
.crow { display: flex; gap: 10px; align-items: center; }
.crow p { margin: 0; }
.fake { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; background: var(--cream); border: 1px solid var(--line); color: var(--soft); border-radius: 999px; padding: 10px 14px; font: .95rem var(--sans); cursor: pointer; }
.fake.dis { cursor: default; }
.cnote { margin: 10px 0 0; font-size: .9rem; background: var(--goldbg); padding: 9px 11px; border-radius: 8px; }
.copts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.newbar { position: sticky; top: 70px; z-index: 20; display: flex; justify-content: center; height: 0; overflow: visible; }
.newbar .btn { box-shadow: 0 4px 14px rgba(38,34,28,.25); background: var(--pumpkin); border-color: var(--pumpkin); height: 38px; }
.welcome h1 { font-size: 1.3rem; }
.welcome .spot { height: 128px; object-fit: cover; object-position: 50% 62%; }
.caught { background: var(--pale); border-color: var(--mid); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.plain li:first-child { border-top: 0; }
.plain a { font-weight: 600; text-decoration: none; }
.plain a:hover { text-decoration: underline; }

/* today */
.today { padding: 12px 14px; }
.today h2 { font: bold .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0; }
.tdate { font: bold 1.15rem var(--serif); color: var(--spruce); margin: 2px 0 8px; }
.today dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.today dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: .88rem; }
.today dt { color: var(--soft); flex: none; } .today dd { margin: 0; text-align: right; font-weight: 600; }

/* residents */
.rgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; text-decoration: none; color: var(--ink); height: 100%; margin: 0; }
.rcard:hover { border-color: var(--mid); }
.rcard.you { border-style: dashed; }
.rn { font-weight: 700; margin-top: 8px; font-family: var(--serif); color: var(--spruce); }
.rs { font-size: .82rem; color: var(--soft); } .rst { font-size: .78rem; color: var(--soft); }
.profile .phero { display: flex; gap: 14px; align-items: center; padding: 16px 14px; background: var(--pale); border-bottom: 1px solid var(--line); }
.profile h1 { margin: 0 0 2px; }
.sp2 { margin: 0 0 4px; color: var(--soft); font-size: .92rem; }
.facts { margin: 12px 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.facts dt { color: var(--soft); } .facts dd { margin: 0; }
.facts .isnew dd strong { background: var(--pumpbg); padding: 1px 6px; border-radius: 4px; }
.hist, .views, .roll, .nlist, .mlist, .entries { list-style: none; margin: 0; padding: 0; }
.hist li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.hist li:first-child { border-top: 0; }
.hist a { text-decoration: none; color: var(--ink); }
.hist a:hover { color: var(--green); text-decoration: underline; }
.views li, .roll li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.views li:first-child, .roll li:first-child { border-top: 0; }
.views li.isnew { background: #fffaf6; }
.confirm { background: var(--goldbg); border-radius: 10px; padding: 12px; }
.cert { text-align: center; padding: 20px 16px; border: 2px solid var(--gold); background: #fffdf6; }
.cert img { display: block; margin: 0 auto 8px; }

/* lost and found */
.tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--soft); }
.tabs a[aria-selected="true"] { background: var(--spruce); color: var(--cream); border-color: var(--spruce); }
.litem { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.licon { width: 56px; height: 56px; flex: none; background: var(--cream); border-radius: 10px; border: 1px solid var(--line); }
.litem h2 { font-size: 1.05rem; margin: 6px 0 0; }
.lk { margin: 0; }
.upd { margin: 8px 0 0; padding: 8px 10px; background: var(--cream); border-radius: 8px; font-size: .92rem; }
.upd.isnew { background: #fff3ea; }

/* events */
.ewhen { font: bold .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--pumpkin); margin: 0 0 4px; }
.ewhen .newtag { margin-left: 8px; }
.ewhere { color: var(--soft); font-size: .9rem; margin: -2px 0 6px; }
.going { display: flex; align-items: center; margin: 10px 0 0; }
.going .dim { margin-left: 14px; }

/* council */
.mrow { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); margin: 0 0 10px; align-items: flex-start; }
.mrow:hover { border-color: var(--mid); }
.mrow strong { font-family: var(--serif); color: var(--spruce); font-size: 1.08rem; }
.mrow .newpill, .mrow .newtag { margin: 6px 0 0; }
.minutes h1 { border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.mh { font: bold .82rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--soft); margin: 20px 0 6px; }
.pc { display: flex; gap: 10px; margin: 10px 0; padding: 10px; background: var(--cream); border-radius: 10px; border-left: 4px solid var(--mid); }
.pc p:last-child { margin: 0; }
.pcw { margin: 0 0 3px; font-weight: 700; }
.pcw a { color: var(--ink); text-decoration: none; }
.pcw a:hover { text-decoration: underline; }
.vote { background: var(--pale); padding: 9px 11px; border-radius: 8px; }
.mnote { font-style: italic; color: var(--soft); }
.msig { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.minutes .isnew { box-shadow: -4px 0 0 var(--pumpkin); padding-left: 8px; }

/* blotter */
.chead { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
.cno { font: bold .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.entries li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.entries li.isnew { background: #fffaf6; box-shadow: -14px 0 0 #fffaf6, 14px 0 0 #fffaf6; }
.entries p:last-child { margin-bottom: 0; }

/* notifications and messages */
.nrow { display: flex; gap: 10px; align-items: center; padding: 11px 12px; text-decoration: none; color: var(--ink); margin: 0 0 8px; }
.nrow.unread { background: #fffaf6; border-color: #e9b99c; }
.nrow.unread .nt { font-weight: 600; }
.nt { display: flex; flex-direction: column; min-width: 0; }
.nt .dim { font-weight: normal; }
.dm { display: flex; flex-direction: column; }
.dmh { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); background: var(--pale); }
.dmh h1 { font-size: 1.1rem; margin: 0; } .dmh p { margin: 0; } .dmh div { flex: 1; min-width: 0; }
.bubbles { list-style: none; margin: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bubbles li { max-width: 84%; padding: 9px 13px; border-radius: 16px; }
.bubbles p { margin: 0 0 .4em; } .bubbles p:last-child { margin: 0; }
.them { background: var(--cream); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.them.isnew { border-color: #e9b99c; }
.bubbles .me { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubbles .dday { align-self: center; font-size: .75rem; color: var(--soft); padding: 2px; max-width: none; }
.bubbles .choose { align-self: stretch; max-width: none; display: flex; flex-direction: column; gap: 7px; padding: 6px 0 0; }
.typing { display: flex; gap: 4px; padding: 13px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); opacity: .5; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-2px); } }
.dmfoot { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); text-align: center; }
.empty { text-align: center; }

/* forms */
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 10px 12px; }
legend { font-weight: 700; padding: 0 6px; font-family: var(--serif); color: var(--spruce); }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.err { color: var(--brick); font-weight: 700; }
.vres { padding-left: 20px; } .vres li { margin-bottom: 12px; }
.verdict { font: bold 1.15rem var(--serif); color: var(--brick); border: 2px solid var(--brick); display: inline-block; padding: 6px 12px; border-radius: 6px; transform: rotate(-1deg); }
.rules { padding-left: 22px; } .rules li { margin-bottom: 6px; }
.prose h2 { margin-top: 18px; } .prose h2:first-child { margin-top: 0; }

/* toasts */
.toasts { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 45; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--spruce); color: var(--cream); text-decoration: none; padding: 10px 14px; border-radius: 14px; box-shadow: 0 6px 20px rgba(38,34,28,.3); font-size: .92rem; animation: rise .3s ease-out; }
.toast:hover { color: #fff; }
.toast.out { opacity: 0; transition: opacity .5s; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.foot { font-size: .8rem; color: var(--soft); padding: 4px 6px; }

@media (min-width: 420px) { .rgrid { grid-template-columns: repeat(3, 1fr); } .rxl { display: inline; } }

@media (min-width: 900px) {
  body { padding-bottom: 24px; }
  .top { padding: 10px 24px; }
  .brand-name { font-size: 1.35rem; } .brand-tag { font-size: .78rem; }
  .top-actions .desk { display: inline-flex; }
  .welcome .spot { height: auto; }
  .tabbar { display: none; }
  .shell { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; gap: 20px; padding: 20px 24px; align-items: start; }
  .side, .rail { display: block; position: sticky; top: 84px; }
  .side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .side a:hover { background: var(--pale); }
  .side a[aria-current] { background: var(--spruce); color: var(--cream); }
  .side a span:first-of-type { flex: 1; }
  .side .badge { position: static; }
  .mobile-only { display: none; }
  .toasts { left: auto; right: 24px; bottom: 24px; width: 340px; }
  .rgrid { grid-template-columns: repeat(4, 1fr); }
  .newbar { top: 84px; }
  h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .top, .tabbar, .side, .rail, .toasts { display: none; } body { background: #fff; } }
