/* Shared subpage shell; legacy forms retain parchment, rich guides use dark panels. */
body.subpage-theme #cnt-center{font:14px/1.55 Arial,sans-serif;text-align:left;color:#30220f}
body.subpage-theme #cnt-center .content-bg{width:100%;max-width:100%;margin-bottom:12px}
body.subpage-theme #cnt-center .content-txt{width:100%;max-width:100%;min-width:0;container-type:inline-size}
body.subpage-theme #cnt-center .content-txt>br{display:none}
body.subpage-theme #cnt-center :is(p,li,td,th,h1,h2,h3,h4,figcaption){overflow-wrap:anywhere}
body.subpage-theme #cnt-center :is(form,fieldset,section,article){min-width:0;max-width:100%;box-sizing:border-box}
body.subpage-theme #cnt-center :is(img,video,iframe){max-width:100%}
body.subpage-theme #cnt-center :is(pre,.subpage-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b39042 #15160e}
body.subpage-theme #cnt-center pre{box-sizing:border-box;padding:12px;background:#12150f;color:#f2dfaa;border:1px solid #987438;font:12px/1.6 Consolas,monospace}
body.subpage-theme #cnt-center .pageheader{box-sizing:border-box;width:100%;margin:0 0 16px;padding:12px 10px;border:1px solid #c39943;border-radius:3px;background:linear-gradient(#30230f,#0c100a 75%);color:#ffeb94;font:bold 21px/1.3 Georgia,serif;text-align:center;text-shadow:0 1px #000}
body.subpage-theme #cnt-center .content-bg:has(.lbn-cmd,.lbn-itm,.lbn-mob,.lbn-info,.lbn-sup,.lbn-eventy,.lots,.char-page,.guilds-page,.profession-ranking){background:#11140e;border-image-source:url('frame-paper-dark-v14.svg')}
body.subpage-theme #cnt-center :is(.lbn-cmd,.lbn-itm,.lbn-mob,.lbn-info,.lbn-sup,.lbn-eventy,.lots,.char-page,.guilds-page,.profession-ranking){--ink:#f0e5cb;--ink-soft:#d7c8a3;--muted:#c0ad80;--gold:#c89b3c;--gold-bright:#ffe68a;--gold-dark:#95702d;font-family:Arial,sans-serif}
body.subpage-theme #cnt-center :is(.cmd-title,.itm-title,.mob-title,.sup-title){font-family:Georgia,serif;color:#ffeb94;overflow-wrap:anywhere}
body.subpage-theme #cnt-center :is(.cmd-panel,.itm-panel,.mob-panel,.lots-panel){border-color:#a47c35}
body.subpage-theme #cnt-center :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;padding:8px 10px;border:1px solid #9f7c3a;border-radius:3px;background:#11160f;color:#fff1cf;font:14px/1.4 Arial,sans-serif}
body.subpage-theme #cnt-center :is(input[type=checkbox],input[type=radio]){accent-color:#c39120;vertical-align:middle}
body.subpage-theme #cnt-center :is(input[type=submit],input[type=button],input[type=reset]){box-sizing:border-box;min-height:34px;max-width:100%;padding:8px 14px;border:1px solid #c99c38;border-radius:3px;background:linear-gradient(#ffe48c,#c38b16);color:#201807;font:bold 13px/1.3 Arial,sans-serif;cursor:pointer;white-space:normal}
body.subpage-theme #cnt-center :is(input[type=submit],input[type=button],input[type=reset]):hover{filter:brightness(1.08)}
body.subpage-theme #cnt-center :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #d49a1d;outline-offset:3px}
body.subpage-theme #cnt-center .legacy-panel{color:#30220f}
body.subpage-theme #cnt-center .legacy-panel font{font-family:Arial,sans-serif;font-size:inherit}
body.subpage-theme #cnt-center .legacy-panel font[color=white]{color:#30220f}
body.subpage-theme #cnt-center .legacy-panel a:not([class]){color:#762c0b;text-decoration:underline;text-underline-offset:2px}
body.subpage-theme #cnt-center .legacy-panel table{width:100%;border-collapse:collapse;font:13px/1.5 Arial,sans-serif}
body.subpage-theme #cnt-center .legacy-panel :is(td,th){padding:7px 6px;vertical-align:top;border-bottom:1px solid #9d74334d}
body.subpage-theme #cnt-center .legacy-panel th{color:#fff0c6;background:#35260f}
body.subpage-theme #cnt-center .subpage-table-scroll{box-sizing:border-box;width:100%;margin:10px 0;border:1px solid #8e7139;border-radius:3px}
body.subpage-theme #cnt-center .subpage-table-scroll>table{width:auto!important;min-width:100%;max-width:none!important;margin:0}
body.subpage-theme #cnt-center #create{margin-left:0!important;width:100%;max-width:100%}
body.subpage-theme #form-create-account{margin:10px 0 0}
body.subpage-theme #form-create-account td:first-child:not([colspan]){width:30%}
body.subpage-theme #form-create-account input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]):not([type=reset]){width:100%}
body.subpage-theme #cnt-center .acc-voc-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.subpage-theme #cnt-center .acc-voc-option{box-sizing:border-box;min-width:0;width:auto;max-width:100%;padding:10px;border-color:#a67d35}
body.subpage-theme #cnt-center .acc-professions-info{margin:0 0 16px;border-color:#a67d35;border-radius:3px;background:linear-gradient(#282315,#11160f);font:13px/1.6 Arial,sans-serif}
body.subpage-theme #cnt-center .acc-professions-info h2{color:#ffeb94;font:bold 21px/1.3 Georgia,serif}
body.subpage-theme #cnt-center .subpage-stack{grid-template-columns:minmax(0,1fr)!important}
@container(max-width:500px){
 body.subpage-theme #cnt-center :is(.info-cols,.info-sys-mini,.lots-grid,.lots-gallery,.fusion-guide-pair){grid-template-columns:minmax(0,1fr)}
 body.subpage-theme #cnt-center .profession-ranking__summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

html:has(body.subpage-theme.lots-layout),body.subpage-theme.lots-layout{min-width:0!important}
body.subpage-theme #cnt-center .lots-page{min-width:0!important}
body.subpage-theme #cnt-center .lots h1{font:bold 30px/1.2 Georgia,serif}
body.subpage-theme #cnt-center .legacy-panel :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#773b12}
body.subpage-theme #cnt-center .content-txt br+br{display:none}
body.subpage-theme #cnt-center .legacy-panel :is(input[type=submit],input[type=button],input[type=reset]){min-width:90px;width:auto;height:auto}
body.subpage-theme #cnt-center .acc-voc-option{background:#ecd4a2;color:#3c2e13;border-radius:3px}
body.subpage-theme #cnt-center .acc-voc-option.is-selected{background:#dfb55c;border-color:#75430b;box-shadow:inset 0 0 0 1px #895a17}
body.subpage-theme #cnt-center .acc-voc-label{font:bold 13px/1.4 Arial,sans-serif;color:#3c2e13}
body.subpage-theme #cnt-center .rk-featured{grid-template-columns:repeat(2,minmax(0,1fr))}
body.subpage-theme #cnt-center .rk-feat__label,body.subpage-theme #cnt-center .rk-feat__sub{width:100%;height:auto;flex:0 0 auto;white-space:normal}
body.subpage-theme #cnt-center .char-hero{flex-direction:column;align-items:stretch}
body.subpage-theme #cnt-center .char-outfit-showcase{align-self:center}
body.subpage-theme #cnt-center .char-info-table{width:100%}
body.subpage-theme #cnt-center .char-grid-2,body.subpage-theme #cnt-center .char-stats-split{grid-template-columns:minmax(0,1fr)}
body.subpage-theme #cnt-center .char-eq-grid{width:100%;max-width:234px;margin:0 auto}