*{box-sizing:border-box}body{margin:0;font:15px Arial,sans-serif;color:#101a34;background:#f7f9fc}a{text-decoration:none;color:inherit}header{display:flex;align-items:center;gap:14px;padding:12px 3%;background:white;box-shadow:0 2px 8px #0001}.logo{width:220px;max-width:100%}nav{display:flex;gap:25px;margin:auto;font-weight:bold}button,.button{display:inline-block;border:0;border-radius:7px;background:#0755ef;color:white;padding:12px 20px;font-weight:bold;cursor:pointer}.outline{background:white;border:1px solid #0755ef;color:#0755ef}.orange,.search button{background:#ff7300}.hero{background:linear-gradient(90deg,transparent 5%,#07547b 34%,#073d60 100%);color:white;position:relative;min-height:285px;display:flex;justify-content:flex-end;align-items:center;overflow:hidden}.hero:before{content:'';position:absolute;left:0;top:0;bottom:0;width:34%;background:url('/assets/images/hero.png') center/cover;mask-image:linear-gradient(90deg,black 75%,transparent)}.hero>div{position:relative;width:70%;text-align:center;padding:20px 4%}h1{font-size:32px;margin:12px 0} .hero h1{font-size:clamp(26px,3.4vw,48px);text-shadow:0 2px 4px #0005}.hero h2{margin:8px 0 22px}.search{display:flex;flex-wrap:wrap;gap:8px;background:none;padding:0;box-shadow:none}.search>input{flex:1;min-width:120px}.filters{display:flex;justify-content:center;width:100%;gap:12px}.filters input,.filters select{width:45%;border-radius:30px}main{max-width:1400px;margin:auto;padding:24px}.categories{display:grid;grid-template-columns:repeat(10,1fr);gap:9px}.categories a{background:#edf1f8;border-radius:12px;text-align:center;padding:15px 4px;font-size:12px;font-weight:bold}.categories i{display:block;font-size:30px;margin-bottom:10px;color:#0755ef}.categories a:nth-child(3n) i{color:#129b48}.categories a:nth-child(3n+1) i{color:#7337d9}.categories a:nth-child(5n) i{color:#ff7300}.section-title{border-left:5px solid #ff7300;padding-left:12px;margin:28px 0 20px}.listings{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.listing,article{background:white;border:1px solid #e1e6ee;border-radius:12px;overflow:hidden;box-shadow:0 3px 8px #122a4810;position:relative}.listing img{width:100%;height:180px;object-fit:cover}.listing>div{padding:12px}.price{color:#f6530a;margin:8px 0}.featured{position:absolute;top:10px;left:10px;background:#ff7300;color:white;padding:5px;border-radius:5px}.promo{margin:24px 0;background:linear-gradient(110deg,#6b32dc,#e5d6ff);padding:22px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.promo b{color:white;font-size:22px}.benefits{display:flex;justify-content:space-around;gap:12px;text-align:center}.benefits i{display:block;color:#0755ef;font-size:28px;margin:12px}footer{text-align:center;padding:30px;color:#65728a}.mobile{display:none}.dashboard{display:flex;min-height:75vh}.sidebar{background:#142b3d;color:white;width:220px;flex-shrink:0;padding:22px 12px}.sidebar a{display:block;padding:13px;border-radius:6px}.sidebar a:hover{background:#0755ef}.dashboard main{flex:1;min-width:0;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.stats strong{display:block;font-size:30px;margin-top:12px;color:#0755ef}article{padding:18px;margin:10px 0}.manage{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.manage img{width:90px;height:65px;object-fit:cover}.manage form{margin-left:auto;padding:0;box-shadow:none}.narrow{max-width:550px}form{background:white;padding:18px;border-radius:10px;margin:12px 0}input,textarea,select{font:inherit;padding:12px;border:1px solid #ccd5e2;border-radius:7px;width:100%;margin:5px 0 10px;background:white;color:#142b3d}textarea{min-height:100px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:30px}.detail>img{width:100%;border-radius:12px}.ad{text-align:center;overflow:hidden;margin:15px 0}.ad small{display:block;color:#65728a}@media(max-width:760px){header nav,header .outline{display:none}header{justify-content:space-between}.logo{width:170px}.hero:before{width:100%;opacity:.25;mask-image:none}.hero>div{width:100%}.hero h2{font-size:16px}.categories{grid-template-columns:repeat(5,1fr)}.listings{grid-template-columns:repeat(2,1fr)}.listing img{height:130px}.promo,.benefits{flex-wrap:wrap}.mobile{position:fixed;bottom:0;left:0;right:0;background:white;display:flex;justify-content:space-around;padding:10px 0;box-shadow:0 -2px 10px #0002;z-index:9}.mobile a{text-align:center;font-size:11px}.mobile i{display:block;font-size:20px;color:#0755ef;margin-bottom:5px}footer{padding-bottom:85px}.dashboard{display:block}.sidebar{width:100%;display:flex;flex-wrap:wrap;align-items:center;padding:8px}.sidebar h3{display:none}.sidebar a{padding:8px}.stats{gap:5px}.stats article{padding:9px}.detail{grid-template-columns:1fr}main{padding:15px}}

.gallery img{width:100%;border-radius:12px;display:block;margin-bottom:12px}.gallery img:not(:first-child){display:inline-block;width:31%;margin-right:2%;height:110px;object-fit:cover}.mobile-ad{display:none}.listing:hover{transform:translateY(-3px);box-shadow:0 8px 24px #142b3d20}.listing{transition:.2s}.sidebar a:hover{color:white}.hero{min-height:310px}.search>input{margin:0}.search button{min-width:105px}#theme{padding:10px;background:#edf1f8;color:#0755ef}.dashboard .stats article{border-top:3px solid #0755ef}.dashboard .stats article:nth-child(2){border-color:#ff7300}.dashboard .stats article:nth-child(3){border-color:#7337d9}[data-theme=dark] body{background:#101b2b;color:#eef3ff}[data-theme=dark] header,[data-theme=dark] article,[data-theme=dark] .listing,[data-theme=dark] form,[data-theme=dark] .mobile,[data-theme=dark] .categories a{background:#1c2d43;color:#eef3ff;border-color:#34465e}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#132236;color:#fff;border-color:#46566c}[data-theme=dark] .search{background:transparent}@media(max-width:760px){.mobile-ad{display:block}.hero{min-height:250px}.mobile a:nth-child(3) i{color:#ff7300;font-size:26px}.sidebar{overflow:auto;flex-wrap:nowrap}.sidebar a{white-space:nowrap}.sidebar form{margin:0;background:transparent}.dashboard .stats strong{font-size:23px}}
/* V1.1.1 theme and navigation repair */
#theme{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;min-height:40px}#theme:focus-visible,.sidebar a:focus-visible{outline:2px solid #ff7300;outline-offset:3px}.sidebar a.selected{background:#0755ef;color:white}.sidebar form{background:transparent}.sidebar a{white-space:normal}html[data-theme="dark"]{color-scheme:dark;background:#101b2b}html[data-theme="dark"] #theme{background:#34465e;color:#fff}html[data-theme="dark"] .outline{background:#1c2d43;color:#a8caff;border-color:#8ab4ff}html[data-theme="dark"] footer,html[data-theme="dark"] .ad small{color:#b8c8dc}html[data-theme="dark"] .stats strong,html[data-theme="dark"] .mobile i,html[data-theme="dark"] .benefits i{color:#8ab4ff}html[data-theme="dark"] .price{color:#ff9b55}html[data-theme="dark"] .promo{background:linear-gradient(110deg,#5425aa,#38265c);color:white}html[data-theme="dark"] .categories i{filter:brightness(1.45)}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#b8c8dc}html[data-theme="dark"] .sidebar form,html[data-theme="dark"] .manage form{background:transparent}@media(max-width:760px){header{flex-wrap:wrap;gap:8px}.theme-label{display:none}header .button{padding:10px 12px}.sidebar a{white-space:nowrap}}

/* Management navigation: never hide links in a horizontal scroll strip. */
.dashboard .management-sidebar{display:block;overflow:visible;flex-shrink:0}.management-sidebar .management-nav{display:flex;flex-direction:column;gap:4px;align-items:stretch;width:100%;margin:0}.management-sidebar .management-nav a{display:flex;align-items:center;gap:10px;white-space:normal;color:#fff;padding:12px;min-height:44px;box-sizing:border-box}.management-sidebar #saytoot-menu{border:1px solid #6388bd}.management-sidebar .management-nav a.selected{background:#0755ef}.management-sidebar form{margin-top:12px}.dashboard main{min-width:0}@media(max-width:760px){.dashboard .management-sidebar{width:100%;box-sizing:border-box}.management-sidebar h3{display:block;margin:8px 12px}.management-sidebar .management-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.management-sidebar .management-nav a{font-size:14px}}
.social-grid{display:grid;grid-template-columns:minmax(180px,1fr) 3fr;gap:20px}.social-grid section{min-width:0}.social-nav{display:flex;gap:16px;flex-wrap:wrap}.bubble{padding:12px 16px;margin:10px 0;border:1px solid #8899aa;border-radius:16px;max-width:80%;overflow-wrap:anywhere}.bubble.mine{background:#0755ef;color:white;margin-left:auto}.bubble small{display:block;margin-top:8px;opacity:.8}@media(max-width:700px){.social-grid{grid-template-columns:1fr}}
/* V1.5.3: full-height dashboard and resilient listing details */
body{min-height:100vh;display:flex;flex-direction:column}body>header,body>footer{flex-shrink:0}body>.dashboard{flex:1;align-items:stretch;min-height:0}body>.dashboard>.sidebar{align-self:stretch}body>.dashboard>main{width:100%;max-width:none}.detail{width:100%;align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.gallery,.listing-details{min-width:0}.gallery img:first-child{max-height:620px;object-fit:contain;background:#8795a015}.listing-details{padding:24px;background:white;border:1px solid #e1e6ee;border-radius:12px;overflow-wrap:anywhere}.listing-description{line-height:1.7}.listing-notice{padding:15px;border-radius:8px;margin:12px 0;border:1px solid #16834a;color:#16834a}.listing-notice.error{border-color:#c43c3c;color:#c43c3c}html[data-theme=dark] .listing-details{background:#1c2d43;border-color:#34465e}html[data-theme=dark] .listing-notice{color:#8ce4ad}html[data-theme=dark] .listing-notice.error{color:#ffaaaa}@media(max-width:760px){body>.dashboard{display:block}.detail{grid-template-columns:minmax(0,1fr)}.listing-details{padding:16px}.dashboard>.sidebar{flex-wrap:wrap;overflow:visible}.dashboard>.sidebar a{white-space:normal}}
