/* Moderator-only compact forum controls. */
.account569{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;margin-left:auto;flex:none;position:relative;}
.account569 .f560-mod-tools{margin:0;position:static;}
.account569 .f560-mod-tools>summary{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 14px;box-sizing:border-box;cursor:pointer;list-style:none;border:1px solid var(--diuk-c-45647c,#45647c);border-radius:10px;background:var(--diuk-c-142638,#142638);color:var(--diuk-c-eef7ff,#eef7ff);font-weight:700;font-size:.9rem;}
.f560-mod-tools>summary::-webkit-details-marker{display:none;}.f560-mod-tools>summary::marker{content:"";}.f560-mod-tools>summary svg{color:var(--diuk-c-72ccef,#72ccef);flex:none;}.f560-mod-tools[open]>summary,.f560-mod-tools>summary:hover{border-color:var(--diuk-c-54caff,#54caff);background:var(--diuk-c-193b50,#193b50);}.f560-mod-tools[open] .f560-chevron{transform:rotate(180deg);}.f560-mod-tools>summary:focus-visible{outline:2px solid var(--diuk-c-8bd8ff,#8bd8ff);outline-offset:3px;}
.account569 .f560-mod-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(350px,calc(100vw - 40px));box-sizing:border-box;z-index:30;background:var(--diuk-c-101e2d,#101e2d);border:1px solid var(--diuk-c-45647c,#45647c);border-radius:14px;padding:18px;box-shadow:0 12px 30px #0007;}
.account569 .f560-mod-panel #mod-renew{background:transparent;border:0;padding:0;margin:0;box-shadow:none;}.f560-mod-panel #mod-renew h2{font-size:1.1rem;margin:0 0 12px;}.f560-mod-panel #mod-renew-status{font-size:.9rem;line-height:1.5;margin:0 0 14px;}.f560-mod-panel #mod-renew-open,.f560-mod-panel .f560-manage{display:block;width:100%;box-sizing:border-box;text-align:center;margin:0;}.f560-mod-panel .f560-manage{margin-top:10px;}
@media(max-width:600px){.account569{gap:12px;max-width:100%;}.account569 .f560-mod-tools>summary{padding:9px 10px;font-size:.85rem;}.account569 .f560-mod-panel{width:min(350px,calc(100vw - 40px));}}

.account569{gap:10px;flex-wrap:wrap;max-width:100%;}.account569 .btn{margin:0;white-space:normal}.account569-profile{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:var(--diuk-c-eef7ff,#eef7ff);font-size:.85rem;font-weight:700;white-space:nowrap}.account569-avatar{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--diuk-c-45647c,#45647c);background:var(--diuk-c-142638,#142638)}.account569-avatar svg{width:40px;height:40px}.account569-profile:hover .account569-avatar{border-color:var(--diuk-c-54caff,#54caff)}.account569-profile:focus-visible{outline:2px solid currentColor;outline-offset:4px}.account569-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;min-width:0}.account569-row>.news51-intro{flex:1;min-width:0;margin-bottom:0}.account569-slot{display:flex;justify-content:flex-end;margin:0 0 14px;min-width:0}.account569-slot .account569{margin-left:0}.account569 .f560-mod-panel{top:calc(100% + 8px)}.account569 .f560-mod-panel .f560-manage{margin-top:10px}.account569 .f560-mod-panel dialog{max-width:calc(100vw - 32px);box-sizing:border-box}.hero-490 .account569-slot{margin-bottom:20px}@media(max-width:700px){.account569-row{flex-wrap:wrap;gap:12px}.account569-row>.news51-intro{flex-basis:100%}.account569-row>.account569{margin-left:auto}.account569-slot{margin-bottom:12px}.account569 .btn{min-height:44px}.account569 .f560-mod-panel{width:min(350px,calc(100vw - 32px));right:0}.account569-avatar{width:48px;height:48px}.account569-avatar svg{width:34px;height:34px}}

/* V5.7.0: one shared account strip, independent of page content width. */
body > .account570-strip { box-sizing:border-box; width:100%; max-width:1488px; margin:0 auto; padding:12px 24px 0; display:flex; justify-content:flex-end; position:relative; z-index:31; min-width:0; }
.account570-strip .account569 { margin:0; gap:12px; }
.account570-strip .account569-profile { flex-direction:row; gap:8px; min-height:44px; }
.account570-strip .account569-avatar { width:44px; height:44px; flex:none; }
.account570-strip .account569-avatar svg { width:32px; height:32px; }
body > .account570-strip + main.wrap.page { padding-top:12px; }
body.home520 > .account570-strip + main#main.wrap.page { max-width:none; width:100%; padding:0 0 36px; margin:0; }
body.home520 > .account570-strip + main .home520-inner { padding-top:clamp(18px,2vw,32px); }
/* Remove only the browser's outer fieldset border; retain semantic grouping. */
#diuk-theme-form > fieldset { border:0; padding:0; margin:0 0 8px; min-inline-size:0; }
#diuk-theme-form > fieldset > legend { padding:0; }
#diuk-theme-form .diuk-theme-options { margin:12px 3px 16px; }
@media(max-width:850px){body > .account570-strip { padding:10px 16px 0; }}
@media(max-width:600px){body > .account570-strip + main.wrap.page { padding-top:10px; }.account570-strip .account569 { gap:8px; }.account570-strip .account569-profile { gap:5px; }.account570-strip .f560-mod-tools>summary { padding:8px; min-height:44px; }.account570-strip .account569-avatar { width:40px; height:40px; }.account570-strip .account569-avatar svg { width:29px; height:29px; }}

/* Reserve one stable row while the session is checked. Never paint guest controls early. */
body > .account570-strip { min-height:56px; }
.account571-fallback { text-align:right; padding:8px 24px; }
/* Overlap the account row with the hero background, not the hero text. */
body.home520 > .account570-strip { margin-bottom:-56px; }
body.home520 > .account570-strip ~ main#main.wrap.page { max-width:none; width:100%; padding:0 0 36px; margin:0; }
body.home520 > .account570-strip ~ main .home520-inner { padding-top:72px; }
.account570-strip .account569 { flex-wrap:nowrap; }
.account570-strip .account569 .btn { white-space:nowrap; }
@media(max-width:600px){body.home520 > .account570-strip ~ main .home520-inner {padding-top:68px;} .account570-strip .f560-mod-tools>summary{gap:5px;} .account570-strip .f560-mod-tools>summary svg:first-child{width:18px;} .account570-strip .account569-profile{font-size:.8rem;} }
@media(max-width:350px){.account570-strip .f560-mod-tools>summary{font-size:.75rem;padding:6px;} .account570-strip .f560-mod-tools>summary svg:first-child{display:none;} .account570-strip .account569-avatar{width:36px;height:36px;} .account570-strip .account569 .btn{padding-inline:9px;font-size:.8rem;} }

/* V5.7.2: guest account actions live inside the mobile navigation only. */
header .navlinks > a.account572-login,header .navlinks > a.account572-register {display:none;}
@media(max-width:760px){
 body:has(.account570-strip .account569 > a.btn.primary):not(:has(.account570-strip .account569-profile)) header .navlinks > a.home520-nav-join {display:none;}
 body:has(.account570-strip .account569 > a.btn.primary):not(:has(.account570-strip .account569-profile)) header .navlinks > a.account572-login,
 body:has(.account570-strip .account569 > a.btn.primary):not(:has(.account570-strip .account569-profile)) header .navlinks > a.account572-register {display:flex;align-items:center;justify-content:center;height:auto;min-height:48px;border:1px solid var(--diuk-c-45647c,#45647c);border-radius:10px;font-weight:700;white-space:normal;}
 body header .navlinks > a.account572-register {background:var(--diuk-c-0074a9,#0074a9);color:white;}
 body:has(.account570-strip[aria-busy="true"]) header .navlinks > a.home520-nav-join {visibility:hidden;}
 body > .account570-strip:has(.account569 > a.btn.primary):not(:has(.account569-profile)),body > .account570-strip[aria-busy="true"] {display:none;}
 body.home520 > .account570-strip:has(.account569 > a.btn.primary):not(:has(.account569-profile)) ~ main .home520-inner,body.home520 > .account570-strip[aria-busy="true"] ~ main .home520-inner {padding-top:32px;}
}
