/* Header and independently switchable, centered advertisement. */
html:has(> body.public-chat-layout){scrollbar-gutter:auto}
body.public-chat-layout.public-chat-layout{background:#08090d}
.max100-chrome{position:relative;z-index:20;flex:none;width:100%;min-width:0;color:#f5f5f7;font:16px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.max100-chrome,.max100-chrome *{box-sizing:border-box}
.max100-header-frame{position:relative;width:calc(100% - 24px);margin:8px auto 0;border:1px solid #292c34;border-bottom:0;border-radius:18px 18px 0 0;background:#0d0e13}
.max100-topbar{position:relative;display:grid;grid-template-columns:minmax(0,1fr) max-content auto 112px;grid-template-areas:"brand contribution chat count";align-items:center;gap:8px;width:100%;min-width:0;min-height:68px;padding:8px 12px;border-bottom:1px solid #292c34}
.max100-brand{grid-area:brand;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:max-content;max-width:100%;min-width:0;height:52px;padding:0;border:0;background:none;color:#d8dae0;text-decoration:none}
.max100-brand img{display:block;flex:0 0 76px;width:76px;height:52px;object-fit:contain}
.max100-tagline{min-width:0;font-size:12px;font-weight:700;line-height:1.35;letter-spacing:.07em;text-transform:uppercase}
.max100-tagline>span{display:none}
body:not([data-public-view="chat"]):not([data-public-view="help"]) [data-chrome-title="listings"],body[data-public-view="chat"] [data-chrome-title="chat"],body[data-public-view="help"] [data-chrome-title="help"]{display:block}
.max100-navigation{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.max100-navigation a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:0 18px;border:1px solid #26714d;border-radius:11px;background:#0e3927;color:#baf7dc;font-size:16px;font-weight:800;line-height:normal;text-align:center;text-decoration:none;white-space:nowrap;touch-action:manipulation}
.max100-navigation a[data-view-target="chat"]{display:none}
.max100-navigation a:hover,.max100-navigation a[aria-current="page"]{background:#145235;color:#fff}
.max100-navigation a[data-view-target="listings"]{box-shadow:0 0 0 1px #63efaa2b inset,0 0 11px #35e98a40,0 4px 12px #0006;text-shadow:0 1px 5px #65ffad55}
.max100-navigation a.max100-animals{border-color:#ff72b9;background:linear-gradient(135deg,#7a2052,#a92d6d);color:#fff;box-shadow:0 0 0 1px #ff8bc538 inset,0 0 11px #ff4fa240,0 4px 12px #0006;text-shadow:0 1px 5px #ff8bc555}
.max100-navigation a.max100-animals:hover,.max100-navigation a.max100-animals[aria-current="page"]{border-color:#ff9ed0;background:linear-gradient(135deg,#9b2868,#d23d88);box-shadow:0 0 0 2px #ffd0e766 inset,0 0 24px #ff55aa99,0 8px 22px #0009}
.max100-navigation svg{flex:none;width:19px;height:19px;fill:currentColor}
.max100-desktop-chat,.max100-desktop-listings{grid-area:chat;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;border:1px solid #29573e;border-radius:9px;background:#123524;color:#bcebd2;font:inherit;text-decoration:none;white-space:nowrap;touch-action:manipulation}
.max100-navigation a[data-view-target="chat"],.max100-desktop-chat{border-color:#55efa0;background:linear-gradient(135deg,#115b38,#178b53);color:#fff;box-shadow:0 0 0 1px #7affb455 inset,0 0 18px #36ef8a73,0 6px 18px #0008;text-shadow:0 1px 8px #65ffad88}
.max100-navigation a[data-view-target="chat"]:hover,.max100-navigation a[data-view-target="chat"]:focus-visible,.max100-desktop-chat:hover,.max100-desktop-chat:focus-visible{border-color:#91ffc1;background:linear-gradient(135deg,#187448,#20ad68);box-shadow:0 0 0 2px #baffd766 inset,0 0 25px #48ff9b99,0 8px 22px #0009}
.max100-desktop-listings{display:none}
.max100-contribution{grid-area:contribution;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:max-content;min-width:150px;max-width:min(260px,30vw);height:42px;padding:0 12px;border:1px solid #d9a928;border-radius:10px;background:linear-gradient(145deg,#332708,#171203);color:#ffe7a0;box-shadow:0 0 0 1px #ffe08833 inset,0 0 14px #d9a92844;text-align:center}
.max100-contribution span{font-size:8px;font-weight:850;line-height:1.05;white-space:normal}
.max100-contribution strong{color:#ffd34f;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
@media(min-width:1024px){.max100-contribution span{font-size:9.5px}}
@media(min-width:1440px){.max100-contribution span{font-size:11.5px}}
.max100-metrics{grid-area:count;min-width:0}
.max100-metrics>div{display:none}
.max100-count,.max100-online,.max100-queue{flex-direction:column;align-items:center;justify-content:center;min-width:0;height:42px;border:1px solid #287c4e;border-radius:10px;background:#12141a;box-shadow:inset 0 0 0 1px #43db8514;font-variant-numeric:tabular-nums}
.max100-metrics span{color:#9297a3;font-size:8px;font-weight:800;line-height:normal;letter-spacing:.14em;text-align:center}
.max100-metrics strong{color:#43db85;font-size:18px;font-weight:700;line-height:normal;white-space:nowrap}
body:not([data-public-view="chat"]):not([data-public-view="help"]) .max100-metrics [data-view-metric="listings"],body[data-public-view="help"] .max100-metrics [data-view-metric="help"]{display:flex}
.max100-metrics .online-indicator{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#43db85;box-shadow:0 0 12px #43db85}
body[data-public-view="chat"] .max100-topbar{grid-template-columns:70px minmax(0,1fr) 132px 52px max-content 80px;grid-template-areas:"online brand switch clock contribution queue"}
body[data-public-view="chat"] .max100-tagline{font-size:11px;letter-spacing:.04em;line-height:1.3}
body[data-public-view="chat"] .max100-navigation,body[data-public-view="chat"] .max100-desktop-chat{display:none}
body[data-public-view="chat"] .max100-desktop-listings{display:inline-flex;grid-area:switch;padding:11px 18px;font-size:14px;font-weight:950;letter-spacing:.025em;min-height:48px}
body[data-public-view="chat"] .max100-metrics,body[data-public-view="chat"] .max100-metrics [data-view-metric="chat"]{display:contents}
.max100-online{grid-area:online;display:flex;border-color:#363a44;box-shadow:none}
.max100-online strong{color:#fff}
.max100-clock{grid-area:clock;text-align:center}
.max100-clock strong{color:#fff;font:900 32px/1 ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:.04em;text-shadow:0 0 10px #ffffff66;font-variant-numeric:tabular-nums}
.max100-queue{grid-area:queue;display:flex}
.advertiser-banner,.advertiser-banner *{box-sizing:border-box}
.advertiser-banner{position:fixed;z-index:19;top:var(--max100-ad-top,76px);left:50%;transform:translateX(-50%);display:none;align-items:center;width:min(760px,calc(100% - 28px));max-width:760px;min-height:76px;max-height:132px;margin:0;padding:10px 15px;overflow:hidden;border:1px solid rgba(52,211,153,.5);border-top:0;border-radius:0 0 20px 20px;background:linear-gradient(135deg,rgba(7,42,31,.98),rgba(10,29,23,.98));box-shadow:0 12px 34px rgba(10,80,56,.18);color:#effff7;font:16px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.advertiser-banner.is-visible{display:flex}
.advertiser-banner-inner{display:flex;align-items:center;gap:12px;width:100%;min-height:54px}
.advertiser-banner img{flex:0 0 72px;width:72px;height:72px;border-radius:12px;background:#effcf6;object-fit:contain}
.advertiser-banner img[hidden]{display:none}
.advertiser-banner-inner>div{min-width:0}
.advertiser-banner strong{display:block;color:#baf7dc;font-size:10px;line-height:normal;letter-spacing:.12em}
.advertiser-banner p{display:block;margin:4px 0 0;color:#effff7;font-size:13px;line-height:1.35;overflow-wrap:anywhere;white-space:pre-wrap}
.advertiser-banner small{display:block;margin-top:3px;color:#8fd8b8;font-size:9px;line-height:normal}
.max100-chrome a:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(min-width:721px) and (max-width:1439px){
 .max100-topbar{grid-template-columns:minmax(0,1fr) max-content 100px;grid-template-areas:"brand contribution count" "chat chat chat";gap:6px 10px;min-height:110px}
 .max100-brand{height:44px}.max100-brand img{flex-basis:58px;width:58px;height:44px}.max100-tagline{font-size:11px;letter-spacing:.04em}
 .max100-desktop-chat{justify-self:end}.max100-contribution{min-width:140px;max-width:min(240px,32vw);padding-inline:10px}
 body[data-public-view="chat"] .max100-topbar{grid-template-columns:70px minmax(0,1fr) 52px 80px;grid-template-areas:"brand brand contribution contribution" "online switch clock queue"}
 body[data-public-view="chat"] .max100-tagline{max-width:340px}body[data-public-view="chat"] .max100-contribution{justify-self:end}
 body[data-public-view="chat"] .max100-desktop-listings{justify-self:stretch;min-height:44px;font-size:13px;padding:9px 12px;font-weight:400;letter-spacing:normal}
}
@media(max-width:1023px){
 .max100-header-frame{width:100%;margin:0;border:0;border-radius:0}
 .advertiser-banner{max-height:130px;padding:8px 10px}.advertiser-banner-inner{gap:8px}
 .advertiser-banner img{flex-basis:44px;width:44px;height:44px}.advertiser-banner p{font-size:12px}.advertiser-banner small{font-size:10px}
}
@media(max-width:720px){
 .max100-topbar,body[data-public-view="chat"] .max100-topbar{grid-template-columns:47px minmax(0,1fr) max-content;grid-template-areas:"brand navigation contribution";gap:0;width:100%;height:58px;min-height:58px;padding:6px}
 .max100-brand{width:42px;height:42px;gap:0}.max100-brand img{flex-basis:42px;width:42px;height:42px}
 .max100-tagline,.max100-desktop-chat,body[data-public-view="chat"] .max100-desktop-listings,.max100-metrics,body[data-public-view="chat"] .max100-metrics{display:none}
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-area:navigation;position:static;transform:none;display:grid;grid-template-columns:42px minmax(52px,.8fr) minmax(82px,1.25fr);align-items:stretch;gap:3px;min-width:0;width:100%;height:42px;padding-right:3px}
 .max100-navigation a,.max100-navigation a[data-view-target="chat"]{display:inline-flex;gap:4px;min-height:42px;height:42px;padding:0 5px;border-radius:9px;font-size:12px;line-height:1.05;white-space:normal}
 .max100-navigation a[data-view-target="chat"]{font-size:10px;padding-inline:3px}.max100-navigation a.max100-animals{gap:2px;font-size:11px}.max100-navigation svg{width:14px;height:14px}
 .max100-contribution{display:grid;grid-template-rows:auto auto;align-content:center;justify-items:center;width:max-content;min-width:92px;max-width:min(126px,34vw);height:42px;padding:3px 5px;gap:1px;border-radius:9px;overflow:hidden;font-variant-numeric:tabular-nums}
 .max100-contribution span{max-width:100%;font-size:7px;font-weight:900;line-height:1.02;text-shadow:0 1px 3px #000}
 .max100-contribution strong{max-width:100%;font-size:clamp(10px,3.3vw,13px);font-weight:950;line-height:1;text-shadow:0 0 8px #d9a92866}
}
@media(min-width:361px) and (max-width:420px){
 .max100-topbar,body[data-public-view="chat"] .max100-topbar{grid-template-columns:47px minmax(0,1fr) 110px}
 .max100-contribution{min-width:92px;max-width:110px}
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-template-columns:26px minmax(78px,.8fr) minmax(69px,.7fr);gap:2px;padding-right:0}
 .max100-navigation a[data-view-target="chat"]{font-size:9px;padding-inline:2px}
 .max100-navigation a[data-view-target="listings"]{padding-inline:5px;font-size:12px}
 .max100-navigation a.max100-animals{gap:2px;padding-inline:2px;font-size:11px}
 .max100-navigation a.max100-animals svg{display:block;width:18px;height:18px}
}@media(max-width:360px){
 .max100-topbar,body[data-public-view="chat"] .max100-topbar{grid-template-columns:37px minmax(0,1fr) max-content;padding:4px}
 .max100-brand{width:34px;height:34px}.max100-brand img{flex-basis:34px;width:34px;height:34px}
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-template-columns:32px minmax(56px,.85fr) minmax(80px,1.2fr);gap:2px;padding-right:0}
 .max100-navigation a,.max100-navigation a[data-view-target="chat"]{min-width:0;padding-inline:2px;overflow:hidden;overflow-wrap:anywhere}
 .max100-navigation a[data-view-target="chat"],.max100-navigation a[data-view-target="listings"]{font-size:9px}.max100-navigation a.max100-animals{gap:2px;padding-inline:2px;font-size:11px}.max100-navigation svg{display:none}.max100-navigation a.max100-animals svg{display:block;width:18px;height:18px}
 .max100-contribution{width:88px;min-width:88px;max-width:88px;transform:translateX(2px)}
}
@media(max-width:340px){.max100-navigation a[data-view-target="listings"]{font-size:8.2px}}
@media(max-width:760px){.advertiser-banner{width:calc(100% - 16px);max-width:none;min-height:64px;border-radius:0 0 14px 14px}}
/* Phones: all three section controls use the same cell size at every narrow width. */
@media(max-width:720px){
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding-right:0}
 .max100-navigation a,.max100-navigation a[data-view-target="chat"],.max100-navigation a[data-view-target="listings"],.max100-navigation a.max100-animals{min-width:0;width:100%;padding-inline:2px;font-size:10px;line-height:1.05;white-space:normal;overflow-wrap:anywhere}
 .max100-navigation a.max100-animals{gap:2px;font-size:10px}.max100-navigation svg{width:13px;height:13px}
}
/* Keep every mobile navigation control inside its own cell. The animal-zone
   label gets a little more room so it wraps between words instead of under
   the contribution panel. */
@media(max-width:720px){
 .max100-topbar,body[data-public-view="chat"] .max100-topbar{grid-template-columns:42px minmax(0,1fr) minmax(78px,27vw)!important;overflow:hidden}
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr)!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
 .max100-navigation a,.max100-navigation a[data-view-target="chat"],.max100-navigation a[data-view-target="listings"],.max100-navigation a.max100-animals{min-width:0!important;max-width:100%!important;overflow:hidden!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;text-overflow:clip!important}
}
@media(max-width:360px){
 .max100-navigation a.max100-animals svg{display:none!important}
 .max100-navigation a.max100-animals{font-size:9px!important}
}
/* Leave a visible breathing gap between the mobile navigation and the
   contribution counter so their borders never touch. */
@media(max-width:720px){
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{padding-right:4px!important}
}
@media(prefers-reduced-motion:reduce){.max100-chrome,.max100-chrome *{animation:none;transition:none;scroll-behavior:auto}}

@media(max-width:310px){
 .max100-topbar,body[data-public-view="chat"] .max100-topbar{grid-template-columns:32px minmax(0,1fr) 84px;padding:4px}
 .max100-brand{width:30px;height:30px}.max100-brand img{flex-basis:30px;width:30px;height:30px}
 .max100-navigation,body[data-public-view="chat"] .max100-navigation{grid-template-columns:28px minmax(52px,.85fr) minmax(74px,1.2fr);gap:2px;padding-right:0}
 .max100-contribution{width:84px;min-width:84px;max-width:84px;transform:translateX(2px)}
}

/* The advertisement is a separate element anchored directly to the header. */
.max100-header-frame>.advertiser-banner{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 28px));max-width:760px;margin:0;}
@media(min-width:761px){
 /* This space belongs to each scrollport, so it disappears naturally when content scrolls. */
 body.has-advertiser-banner .listing-page .listing-feed,body:has(.max100-header-frame>.advertiser-banner.is-visible) .listing-page .listing-feed{padding-top:calc(18px + var(--max100-ad-height,76px));}
 body.has-advertiser-banner .help-page .help-feed,body:has(.max100-header-frame>.advertiser-banner.is-visible) .help-page .help-feed{padding-top:calc(18px + var(--max100-ad-height,76px));}
 body.has-advertiser-banner[data-public-view="chat"]>.chat-page:not(.listing-page):not(.help-page) .chat-log{padding-top:calc(16px + var(--max100-ad-height,76px));}
 body.has-advertiser-banner .public-listing-main,body.has-advertiser-banner .gone,body:has(.max100-header-frame>.advertiser-banner.is-visible) .public-listing-main,body:has(.max100-header-frame>.advertiser-banner.is-visible) .gone{margin-top:0;padding-top:calc(18px + var(--max100-ad-height,76px));}
}
@media(max-width:760px){.max100-header-frame>.advertiser-banner{position:relative;top:auto;left:auto;transform:none;width:100%;max-width:none;margin:0;}}

/* Tablet only: one compact header row; the separate Chat row is not shown. */
@media(min-width:721px) and (max-width:1439px){
 body:not([data-public-view="chat"]) .max100-topbar{grid-template-columns:minmax(110px,1fr) auto minmax(130px,170px);grid-template-areas:"brand navigation contribution";gap:6px;min-height:68px;padding:8px 10px;overflow:hidden}
 body:not([data-public-view="chat"]) .max100-navigation{grid-area:navigation;position:static;left:auto;top:auto;transform:none;justify-self:center;gap:6px}
 body:not([data-public-view="chat"]) .max100-navigation a{min-height:42px;padding-inline:10px;font-size:14px}
 body:not([data-public-view="chat"]) .max100-navigation a[data-view-target="chat"]{display:inline-flex}
 body:not([data-public-view="chat"]) .max100-navigation a.max100-animals{font-size:14px}
 body:not([data-public-view="chat"]) .max100-brand{min-width:0;width:100%}
 body:not([data-public-view="chat"]) .max100-tagline{max-width:72px;font-size:9.5px;line-height:1.2;letter-spacing:.035em}
 body:not([data-public-view="chat"]) .max100-contribution{width:100%;min-width:0;max-width:none;padding-inline:6px}
 body:not([data-public-view="chat"]) .max100-metrics{display:none!important}
 body:not([data-public-view="chat"]) .max100-desktop-chat{display:none!important}
}
