/* Layout repair: predictable navigation and content sizing across legacy views. */
#hlhint{display:none!important}
#header .navbar{gap:8px;min-height:58px}#header .navbar>.navclear{display:none}
#header .navbar>.navigation.doleft{flex:1;min-width:0}#header .navbar>.navigation.doright{flex:0 0 auto}
#header .navigation ul{align-items:center}#header .navigation ul li a{white-space:nowrap;line-height:1.4;min-height:40px;display:flex;align-items:center}
#main .iteminner.itembox h3{font-size:19px;line-height:1.35;margin:0 0 10px;overflow-wrap:anywhere}
#main .iteminner.itembox .itembody{margin:0 0 12px;line-height:1.65}#main .iteminner.itembox .itembody a{font-weight:400}
#main .iteminner.itembox .itemsource:empty{display:none}#main .iteminner.itembox .itemfooter{display:flex;flex-wrap:wrap;gap:8px;font-size:12px}
#main .iteminner.itembox .itemfooter a{border:1px solid var(--ben-line);border-radius:7px;padding:3px 7px;text-decoration:none}
#main .iteminner.itembox>.doleft>a{display:block;min-width:0}#main .iteminner.itembox img.imgbo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border:0;border-radius:10px;box-shadow:none;margin:0}
.ben219-auth #innerright .boxtop,.ben219-auth #innerright .boxbot{display:none}.ben219-auth #innerright .boxcontent{padding:0}
.ben219-auth .ben219-intro{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
@media(max-width:1000px) and (min-width:761px){#header .navbar>.navigation.doleft{flex-basis:100%}#header .navbar>.navigation.doright{margin-left:auto}}
@media(max-width:760px){
 #headerinner{gap:12px;padding:12px!important}#headerinner>.logo{flex:1;min-width:0}#headerinner .headersearch{flex-basis:100%;width:100%;min-width:0}#headerinner .headersearch form{width:100%;margin:0}#headerinner input#search{font-size:16px}
 #header .navbar{display:grid;grid-template-columns:1fr auto;padding:8px;gap:6px}
 #header .navbar>.navigation.doleft{grid-column:1/-1;max-width:100%;overflow:auto;scrollbar-width:thin}
 #header .navbar>.navigation.doleft ul{flex-wrap:nowrap;width:max-content;gap:2px}
 #header .navbar>.navigation.doright{grid-column:1;justify-self:start;width:auto}#header .navbar>.navigation.doright ul{flex-wrap:nowrap}
 #header .navigation ul li a{padding:9px 10px;font-size:13px}#header .ben217-theme{grid-column:2;grid-row:2;max-width:120px}
 #innermain .iteminner.itembox{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px 0;margin-top:0}
 #innermain .iteminner.itembox>.doleft{grid-column:1;grid-row:1;display:flex;flex-direction:row;align-items:center;width:100%;margin:0;gap:12px}
 #innermain .iteminner.itembox>.doleft>a{flex:1;order:0}#innermain .iteminner.itembox>.doleft>.votebox{flex:0 0 44px;order:1;margin:0}
 #innermain .iteminner.itembox>.item{grid-column:1;grid-row:2;padding:0;margin:0}
 #innermain .iteminner.itembox img.imgbo{width:100%!important;height:165px!important;max-height:230px;max-width:100%!important;object-fit:contain;background:var(--ben-bg);aspect-ratio:auto}
 #main .ben216-ad--header .ben216-ad-main{grid-template-columns:96px minmax(0,1fr);gap:12px}#main .ben216-ad-label{font-size:10px}
 #footer ul.footerlist{flex-basis:42%}#main input:not([type=checkbox]):not([type=radio]),#main textarea{font-size:16px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Account controls: no fixed table columns or duplicated icon links. */
.ben221-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 0}
#main .ben221-account-link{display:flex;align-items:center;gap:12px;padding:16px 12px;min-width:0;min-height:58px;background:var(--ben-bg);border:1px solid var(--ben-line);border-radius:12px;text-decoration:none;font:600 14px/1.4 system-ui;color:var(--ben-ink)}
#main .ben221-account-link:hover{background:var(--ben-soft);border-color:var(--ben-orange)}
.ben221-account-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:var(--ben-soft);color:var(--ben-orange)}.ben221-account-icon svg{width:21px;height:21px;display:block}.ben221-arrow{margin-left:auto;color:var(--ben-muted)}
@media(max-width:760px){.ben221-account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#main .ben221-account-link{padding:12px 9px;gap:8px;font-size:13px;overflow-wrap:normal}.ben221-account-icon{width:28px;height:28px;flex-basis:28px}.ben221-arrow{display:none}}
@media(max-width:350px){.ben221-account-grid{grid-template-columns:1fr}}

/* The full video view must not inherit the listing's left thumbnail gutter. */
#innermain>.itembox>.item{margin:0!important;padding:20px 0 0!important;width:100%!important;float:none;min-width:0}
#innermain>.itembox h1#title{font:750 clamp(22px,2.2vw,30px)/1.25 system-ui;margin:0 0 16px;overflow-wrap:anywhere;color:var(--ben-ink)}
#innermain>.itembox>.item>.itembody{font-size:16px;line-height:1.7;color:var(--ben-ink)}
#innermain>.itembox>.doleft{float:none;display:flex;gap:14px;align-items:center;margin-top:14px}
#innermain>.itembox>.doleft .imgbo{display:none}
#innermain>.itembox>.margtopb{margin-left:0!important}
#innermain>.itembox .itemfooter{font-size:12px;line-height:2;margin-top:14px}
#innermain>.itembox .innerus{max-width:85px}

/* Notification counters keep their icons and usable hit areas. */
#header .infobar{display:flex;gap:4px;align-items:center;background:none;width:auto;height:auto;float:none;padding:0}
#header .infobar>a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:32px;min-height:36px;border-radius:8px;color:var(--ben-ink);background:var(--ben-bg);text-decoration:none;font:600 12px system-ui}
#header .infobar img.infobarimg{display:inline-block!important;width:16px!important;height:16px!important;max-width:none;position:static;visibility:visible;opacity:1;float:none;margin:0}
@media(max-width:760px){#header .infobar{gap:3px}#header .infobar>a{min-width:29px;min-height:36px}}
