
/* Vorro 1.8.3: public-page hierarchy and responsive forum lists.
   Keep core table markup, inline-edit IDs, moderation and rating controls. */
html body #container .vorro-index-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 2px 0 28px;
    padding: 6px 0 4px;
}
html body #container .vorro-index-intro > div { min-width: 0; }
html body #container .vorro-index-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #62717c;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
html body #container .vorro-index-intro h1 {
    margin: 0;
    color: #20272d;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
html body #container .vorro-index-intro p {
    margin: 10px 0 0;
    color: #62717c;
    font-size: 14px;
    line-height: 1.6;
}
html body #container .vorro-index-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}
html body #container .vorro-index-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d5dde3;
    border-radius: 10px;
    background: #fff;
    color: #37434d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
html body #container .vorro-index-actions a:first-child {
    border-color: #303b44;
    background: #303b44;
    color: #fff;
}
html body #container .vorro-index-actions a:hover { border-color: #8e9ba5; }
html body #container .vorro-index-actions a:first-child:hover { background: #202a32; }
html body #container .vorro-index-actions svg { width: 16px; height: 16px; }
html body #container .vorro-category-card {
    table-layout: auto;
    border-color: #dfe5e9 !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(29, 39, 47, .025) !important;
}
html body #container .vorro-category-card .vorro-category-head {
    padding: 16px 18px !important;
    background: #edf1f4 !important;
    color: #293640 !important;
    border-bottom: 1px solid #dfe5e9 !important;
}
html body #container .vorro-category-head a { color: #293640 !important; }
html body #container .vorro-category-copy > strong { font-size: 15px; }
html body #container .vorro-category-copy > .smalltext {
    color: #62717c !important;
    font-size: 12px !important;
    line-height: 1.5;
}
html body #container .vorro-category-copy > .smalltext:empty { display: none; }
html body #container .vorro-category-toggle img {
    background: #5e6b75 !important;
    border-radius: 7px;
}
html body #container .vorro-forum-icon-cell { width: 68px !important; }
html body #container .vorro-forum-main { width: auto !important; }
html body #container .vorro-forum-title { font-size: 15px; line-height: 1.4; }
html body #container .vorro-forum-description {
    color: #64727d !important;
    font-size: 12px !important;
    overflow-wrap: anywhere;
}
html body #container .vorro-forum-stat { width: 64px; }
html body #container .vorro-forum-stat span { color: #63717c; font-size: 11px; }
html body #container .vorro-forum-lastpost { width: 210px; }
html body #container .vorro-lastpost-title {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
}
html body #container .vorro-lastpost-meta { color: #64727d; font-size: 11px; }
html body #container .vorro-lastpost-label { display: none; }
html body #container .vorro-widget {
    border-color: #dfe5e9 !important;
    box-shadow: 0 3px 12px rgba(29, 39, 47, .025) !important;
}
html body #container .vorro-widget .vorro-widget-title {
    background: #fff !important;
    border-color: #e7ecef !important;
    color: #34424c !important;
    font-size: 13px !important;
}
html body #container .vorro-widget .vorro-widget-title::before { background-color: #edf1f4; }
html body #container .vorro-widget .vorro-widget-muted,
html body #container .vorro-widget .vorro-widget-empty,
html body #container .vorro-widget .vorro-online-list { color: #64727d; font-size: 12px; }
html body #container .vorro-widget .vorro-latest-title { font-size: 13px; line-height: 1.5; }
html body #container .vorro-widget .vorro-latest-meta { color: #64727d; font-size: 11px; }
html body #container .vorro-widget.vorro-welcome-widget {
    background: #fff !important;
    border-color: #dfe5e9 !important;
    color: #34424c !important;
}
html body #container .vorro-welcome-widget .vorro-welcome-ident strong { color: #293640 !important; }
html body #container .vorro-welcome-widget .vorro-welcome-avatar { background-color: #edf1f4 !important; }
html body #container .vorro-welcome-widget .vorro-widget-copy {
    color: #64727d !important;
    font-size: 12px !important;
    line-height: 1.6;
}
html body #container .vorro-welcome-widget .vorro-widget-actions > a:first-child {
    background: #fff !important;
    border-color: #d5dde3 !important;
    color: #34424c !important;
}
html body #container .vorro-welcome-widget .vorro-widget-actions > a.vorro-widget-button-strong {
    background: #303b44 !important;
    border-color: #303b44 !important;
    color: #fff !important;
}
html body #container .vorro-welcome-widget .vorro-widget-actions > a { min-height: 40px; font-size: 12px; }
html body #container .vorro-thread-list .thead {
    background: #edf1f4 !important;
    border-color: #dfe5e9 !important;
    color: #293640 !important;
}
html body #container .vorro-thread-list .thead *,
html body #container .vorro-thread-list .thead a { color: #293640 !important; }
html body #container .vorro-thread-row .vorro-thread-main {
    min-width: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
html body #container .vorro-thread-subject a { font-size: 14px; font-weight: 700; line-height: 1.55; }
html body #container .vorro-thread-byline { margin-top: 5px; color: #64727d; }
html body #container .vorro-thread-stat-label { display: none; }
html body #container .vorro-thread-lastpost .lastpost { color: #64727d; line-height: 1.6; }
html body #container .vorro-thread-list .tfoot form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
html body #container .vorro-thread-list .tfoot select { max-width: 100%; margin: 0; }
html body #container .vorro-forum-utilities form { max-width: 100%; gap: 8px; }
html body #container .vorro-forum-utilities input[type="text"],
html body #container .vorro-forum-utilities input[type="search"] { min-width: 0; max-width: 100%; }
html body #container a:focus-visible,
html body #container button:focus-visible,
html body #container summary:focus-visible {
    outline: 2px solid #48717c !important;
    outline-offset: 3px !important;
}
/* Keep MyBB post icons readable without shrinking them inside percentage cells. */
html body #container .vorro-thread-row .vorro-thread-icon {
    width: 40px !important;
    min-width: 40px;
    padding: 13px 8px !important;
    vertical-align: middle;
}
html body #container .vorro-thread-icon img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 20px;
    max-height: 20px;
    vertical-align: middle;
    object-fit: contain;
}
@media (min-width: 651px) and (max-width: 1100px) {
    html body #container .vorro-forum-lastpost { width: 175px; }
    html body #container .vorro-forum-stat { width: 56px; }
}
@media (max-width: 860px) {
    html body #container .vorro-index-intro { align-items: flex-start; gap: 18px; }
    html body #container .vorro-index-intro p { font-size: 13px; }
}
@media (max-width: 650px) {
    html body #container .vorro-index-intro { flex-direction: column; margin: 0 0 22px; }
    html body #container .vorro-index-actions { width: 100%; }
    html body #container .vorro-index-actions a { flex: 1 1 auto; min-height: 44px; }
    html body #container .vorro-category-card .vorro-forum-row {
        grid-template-columns: 52px minmax(0, 1fr) auto !important;
        height: auto;
        border-bottom: 1px solid #e7ecef;
    }
    html body #container .vorro-category-card .vorro-forum-row:last-child { border-bottom: 0; }
    html body #container .vorro-category-card .vorro-forum-row > td { border-bottom: 0 !important; }
    html body #container .vorro-forum-row .vorro-forum-icon-cell {
        grid-column: 1;
        grid-row: 1 / 3;
        width: auto !important;
        padding: 18px 6px 0 12px !important;
    }
    html body #container .vorro-forum-row .forum_status { width: 32px !important; height: 32px !important; border-radius: 9px; }
    html body #container .vorro-forum-row .forum_status::before { inset: 7px !important; width: auto; height: auto; }
    html body #container .vorro-forum-row .vorro-forum-main {
        grid-column: 2 / 4;
        grid-row: 1;
        padding: 16px 14px 7px 4px !important;
    }
    html body #container .vorro-forum-row .vorro-forum-stat {
        display: flex !important;
        align-items: baseline;
        gap: 5px;
        width: auto;
        padding: 0 14px 10px 4px !important;
        text-align: left !important;
    }
    html body #container .vorro-forum-row .vorro-forum-stat:nth-of-type(3) { grid-column: 2; grid-row: 2; }
    html body #container .vorro-forum-row .vorro-forum-stat:nth-of-type(4) { grid-column: 3; grid-row: 2; }
    html body #container .vorro-forum-row .vorro-forum-stat span { margin-top: 0; }
    html body #container .vorro-forum-row .vorro-forum-lastpost {
        grid-column: 2 / 4;
        grid-row: 3;
        width: auto !important;
        padding: 0 14px 14px 4px !important;
        color: #64727d;
        font-size: 12px;
    }
    html body #container .vorro-lastpost-label { display: block; color: #64727d; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    html body #container .vorro-thread-list,
    html body #container .vorro-thread-list > tbody,
    html body #container .vorro-thread-list > tbody > tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    html body #container .vorro-thread-list { overflow: hidden !important; }
    html body #container .vorro-thread-list .vorro-colhead-row { display: none !important; }
    html body #container .vorro-thread-list td[colspan] { display: block; width: 100%; min-width: 0; }
    html body #container .vorro-thread-list .vorro-thread-row {
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        padding: 16px 12px;
        gap: 8px 10px;
        border-bottom: 1px solid #e7ecef;
    }
    html body #container .vorro-thread-row > td {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    html body #container .vorro-thread-row .vorro-thread-status { grid-column: 1; grid-row: 1 / 5; padding-top: 4px !important; }
    html body #container .vorro-thread-row .vorro-thread-status { grid-row: 1; }
    html body #container .vorro-thread-row .vorro-thread-icon {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        align-items: center;
        justify-content: center;
        width: auto !important;
        min-width: 0;
        padding: 28px 0 0 !important;
    }
    html body #container .vorro-thread-row .vorro-thread-main { grid-column: 2 / 4; grid-row: 1; }
    html body #container .vorro-thread-row .vorro-thread-replies { grid-column: 2; grid-row: 2; }
    html body #container .vorro-thread-row .vorro-thread-views { grid-column: 3; grid-row: 2; }
    html body #container .vorro-thread-row .vorro-thread-replies,
    html body #container .vorro-thread-row .vorro-thread-views { text-align: left !important; color: #52636e; font-size: 12px; }
    html body #container .vorro-thread-stat-label { display: inline; margin-left: 4px; color: #64727d; }
    html body #container .vorro-thread-row .vorro-thread-lastpost {
        grid-column: 2 / 4;
        grid-row: 3;
        padding-top: 8px !important;
        border-top: 1px solid #edf1f4 !important;
        white-space: normal !important;
        text-align: left !important;
    }
    html body #container .vorro-thread-row td[id^="rating_table_"] { grid-column: 2; grid-row: 4; text-align: left !important; }
    html body #container .vorro-thread-row .vorro-thread-moderation { grid-column: 3; grid-row: 4; text-align: right !important; }
    html body #container .vorro-thread-subject a { font-size: 15px; }
    html body #container .vorro-thread-list .tfoot form { justify-content: flex-start; }
    html body #container .vorro-thread-list .tfoot select { flex: 1 1 130px; width: auto; min-width: 0; }
    html body #container .vorro-forum-utilities { width: 100%; }
    html body #container .vorro-forum-utilities form { display: flex; flex-wrap: wrap; width: 100%; align-items: center; }
    html body #container .vorro-forum-utilities input[type="text"],
    html body #container .vorro-forum-utilities input[type="search"] { flex: 1 1 140px; width: auto; }
}
/* Softer canvas, distinct section bars and room for complete latest titles. */
@media (min-width: 861px) {
    html body #container .wrapper { width: min(96%, 1380px) !important; max-width: 1380px !important; }
}
html body #container,
html body #container #content { background: #e9eef2 !important; }
html body #container .tborder,
html body #container .vorro-widget { background: #f6f8fa !important; }
html body #container .trow1 { background: #f7f9fa !important; }
html body #container .trow2 { background: #f0f4f6 !important; }
html body #container .thead { background: #4b5863 !important; border-color: #4b5863 !important; color: #fff !important; }
html body #container .thead a { color: #fff !important; }
html body #container .vorro-category-card .vorro-category-head,
html body #container .vorro-thread-list .thead {
    background: #4b5863 !important;
    border-color: #4b5863 !important;
    color: #fff !important;
}
html body #container .vorro-category-head a,
html body #container .vorro-thread-list .thead *,
html body #container .vorro-thread-list .thead a { color: #fff !important; }
html body #container .vorro-category-copy > .smalltext { color: #e1e8ed !important; }
html body #container .vorro-category-toggle img { background: #65737e !important; }
html body #container .vorro-sidebar .vorro-widget .vorro-widget-title {
    background: #c7d2da !important;
    border-color: #b5c4cf !important;
}
html body #container .vorro-sidebar .vorro-welcome-widget .vorro-welcome-top {
    background: #c7d2da !important;
    border-bottom: 1px solid #b5c4cf;
    margin: -16px -16px 13px !important;
    padding: 12px 16px;
}
html body #container td.tcat,
html body #container th.tcat { background: #dce4ea !important; border-color: #ccd7df !important; }
html body #container .vorro-category-card .vorro-forum-row > td { background: #f6f8fa !important; }
html body #container .vorro-widget.vorro-welcome-widget { background: #eef3f5 !important; }
html body #container .vorro-footer { background: #dfe7ed !important; border-top: 1px solid #cbd6dd !important; }
html body #container .vorro-cp-nav .trow1,
html body #container .vorro-cp-nav .trow2 { background: #eef3f6 !important; }
html body #container .vorro-lastpost-title { font-size: 14px; line-height: 1.55; font-weight: 650; }
html body #container .vorro-lastpost-meta { font-size: 12px; }
@media (min-width: 651px) {
    html body #container .vorro-forum-lastpost { width: 34%; min-width: 220px; }
    html body #container .vorro-forum-stat { width: 54px; }
}

/* Branded quick login. Scoped selectors preserve this layout after theme import. */
html body #quick_login.vorro-login-modal:has(> .vorro-login-layout) {
    width: 760px !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 1px solid #dce4e7 !important;
    border-radius: 22px !important;
    background: #f9fbfc !important;
    box-shadow: 0 28px 90px rgba(16, 30, 36, .32) !important;
    text-align: left;
}
html body #quick_login.vorro-login-modal .vorro-login-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
html body #quick_login.vorro-login-modal .vorro-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 28px;
    background: #243d42;
    color: #fff;
    overflow: hidden;
}
html body #quick_login.vorro-login-modal .vorro-login-brand-name { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
html body #quick_login.vorro-login-modal .vorro-login-brand-name svg { width: 38px; height: 38px; flex: 0 0 38px; padding: 9px; border: 1px solid #577276; border-radius: 12px; box-sizing: border-box; color: #b3d9d1; }
html body #quick_login.vorro-login-modal .vorro-login-eyebrow { display: block; margin-bottom: 14px; color: #a5cbc3; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
html body #quick_login.vorro-login-modal .vorro-login-brand-copy h2 { margin: 0; color: #fff; font-size: 31px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
html body #quick_login.vorro-login-modal .vorro-login-brand-copy p { margin: 14px 0 0; color: #c5d6d8; font-size: 13px; line-height: 1.75; }
html body #quick_login.vorro-login-modal .vorro-login-art { display: grid; gap: 9px; padding-top: 6px; }
html body #quick_login.vorro-login-modal .vorro-login-art > span { display: flex; align-items: center; gap: 10px; width: 83%; padding: 13px 14px; border: 1px solid #526c70; border-radius: 12px 12px 12px 3px; background: #304b50; box-sizing: border-box; }
html body #quick_login.vorro-login-modal .vorro-login-art > span + span { margin-left: auto; border-radius: 12px 12px 3px 12px; background: #426660; }
html body #quick_login.vorro-login-modal .vorro-login-art i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #7ea49c; }
html body #quick_login.vorro-login-modal .vorro-login-art b { display: block; width: 100%; height: 4px; border-radius: 4px; background: #a7c0bd; }
html body #quick_login.vorro-login-modal .vorro-login-brand-note { margin: 0; color: #a5bfc1; font-size: 11px; line-height: 1.6; }
html body #quick_login.vorro-login-modal .vorro-login-panel { min-width: 0; padding: 40px 32px 28px; background: #f9fbfc; }
html body #quick_login.vorro-login-modal .vorro-login-panel-head { margin: 0 0 25px; }
html body #quick_login.vorro-login-modal .vorro-login-panel-head h2 { margin: 0 0 9px; color: #263940; font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
html body #quick_login.vorro-login-modal .vorro-login-panel-head p { margin: 0; color: #61727a; font-size: 13px; line-height: 1.6; }
html body #quick_login.vorro-login-modal .vorro-login-fields { gap: 19px; }
html body #quick_login.vorro-login-modal .vorro-login-field { gap: 8px; }
html body #quick_login.vorro-login-modal .vorro-login-field label { color: #344a53; font-size: 12px; font-weight: 700; }
html body #quick_login.vorro-login-modal .vorro-login-input { position: relative; }
html body #quick_login.vorro-login-modal .vorro-login-input svg { position: absolute; top: 16px; left: 14px; width: 18px; height: 18px; color: #748a93; pointer-events: none; }
html body #quick_login.vorro-login-modal .vorro-login-field input.textbox {
    height: 50px !important;
    padding: 0 14px 0 43px !important;
    border: 1px solid #cedade !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #243840 !important;
    font-size: 14px !important;
}
html body #quick_login.vorro-login-modal .vorro-login-field input.textbox:focus { border-color: #4a8176 !important; box-shadow: 0 0 0 3px rgba(74,129,118,.12) !important; }
html body #quick_login.vorro-login-modal .vorro-login-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
html body #quick_login.vorro-login-modal .vorro-login-remember { color: #566d77; font-size: 12px; }
html body #quick_login.vorro-login-modal .vorro-login-remember input { width: 16px; height: 16px; accent-color: #2b6259; }
html body #quick_login.vorro-login-modal a.vorro-login-forgot { color: #32675e !important; font-size: 12px; }
html body #quick_login.vorro-login-modal input.vorro-login-submit { height: 50px !important; margin-top: 3px !important; background: #4e565e !important; border-color: #4e565e !important; border-radius: 10px !important; color: #fff !important; font-size: 14px !important; box-shadow: 0 4px 10px rgba(43,98,89,.12) !important; }
html body #quick_login.vorro-login-modal input.vorro-login-submit:hover { background: #354149 !important; border-color: #354149 !important; }
html body #quick_login.vorro-login-modal .vorro-login-register { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 25px 0 0; padding-top: 21px; border-top: 1px solid #dfe7eb; color: #61727a; font-size: 12px; }
html body #quick_login.vorro-login-modal .vorro-login-register a { color: #32675e !important; font-weight: 750; text-decoration: none; }
html body #quick_login.vorro-login-modal .vorro-login-register a:hover { text-decoration: underline; }
html body #quick_login.vorro-login-modal a.close-modal { top: 13px !important; right: 13px !important; width: 32px !important; height: 32px !important; background: #edf2f4 !important; border: 1px solid #dce5e9 !important; }
html body #quick_login.vorro-login-modal a.close-modal::before { color: #526872; font-size: 22px; text-indent: 0; }
html body #quick_login.vorro-login-modal a.close-modal:hover { background: #dfe8ec !important; }
html body #quick_login.vorro-login-modal a:focus-visible,
html body #quick_login.vorro-login-modal input[type="submit"]:focus-visible,
html body #quick_login.vorro-login-modal input[type="checkbox"]:focus-visible { outline: 2px solid #4a8176 !important; outline-offset: 3px !important; }
html body .blocker:has(> #quick_login) { display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
html body .blocker:has(> #quick_login)::before { display: none; }
html body .blocker > #quick_login.vorro-login-modal { display: block !important; flex: 0 0 auto; max-width: 100% !important; margin: auto !important; }
html body #container .vorro-footer-creditbar { background: transparent; border-top: 0; }
html body #container .vorro-footer-creditbar .vorro-footer-meta {
    gap: 12px 24px;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid #c5d2db;
    color: #5d707d;
    font-size: 12px;
}
html body #container .vorro-footer-creditbar .vorro-theme-credit { color: #5d707d; }
html body #container .vorro-footer-creditbar a { color: #334b58 !important; font-weight: 650; }
html body #container .vorro-footer-creditbar a:hover { color: #233843 !important; text-decoration: underline; }
html body #container .vorro-footer-creditbar a:focus-visible { outline: 2px solid #617884 !important; outline-offset: 4px; }
html body #container .vorro-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 6px 0 28px; margin-bottom: 24px; border-bottom: 1px solid #d6e0e6; }
html body #container .vorro-footer-group h3 { margin: 0 0 12px; color: #344b55; font-size: 13px; font-weight: 750; }
html body #container .vorro-footer-group ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
html body #container .vorro-footer-group a { color: #657681; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
html body #container .vorro-footer-group a:hover { color: #32675e; text-decoration: underline; }
@media (max-width: 850px) {
    html body #container table:has(> tbody > tr > td.vorro-cp-navcell),
    html body #container table:has(> tbody > tr > td.vorro-cp-navcell) > tbody,
    html body #container table:has(> tbody > tr > td.vorro-cp-navcell) > tbody > tr {
        display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    }
    html body #container td.vorro-cp-navcell,
    html body #container td.vorro-cp-navcell + td { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; padding: 0 !important; box-sizing: border-box; }
    html body #container .vorro-cp-nav { display: block; width: 100% !important; max-height: 240px; overflow-y: auto !important; overflow-x: hidden !important; }
    html body #container .vorro-cp-nav > tbody { display: table; width: 100%; table-layout: fixed; }
    html body #container td.vorro-cp-navcell + td td { overflow-wrap: anywhere; }
    html body #container td.vorro-cp-navcell + td .tborder:has(.thread_status) { display: block; max-width: 100%; overflow-x: auto !important; }
    html body #container td.vorro-cp-navcell + td .tborder:has(.thread_status) > tbody { display: table; min-width: 580px; width: 100%; }
    html body #container td.vorro-cp-navcell + td .tborder:has(.thread_status) .thead { white-space: normal; }
    html body #container td.vorro-cp-navcell + td .tborder:has(> tbody > tr > td:nth-child(4)) { display: block; max-width: 100%; overflow-x: auto !important; }
    html body #container td.vorro-cp-navcell + td .tborder:has(> tbody > tr > td:nth-child(4)) > tbody { display: table; min-width: 580px; width: 100%; }
}
@media (max-width: 650px) {
    html body #container td.vorro-cp-navcell + td fieldset { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
    html body #container td.vorro-cp-navcell + td fieldset table { width: 100% !important; max-width: 100% !important; table-layout: fixed; }
    /* Native preference tables reserve a real column for checkbox controls. */
    html body #container td.vorro-cp-navcell + td fieldset table td[width="1"]:has(> input[type="checkbox"]),
    html body #container td.vorro-cp-navcell + td fieldset table td[width="1"]:has(> input[type="radio"]) {
        width: 28px !important;
        min-width: 28px !important;
        box-sizing: border-box;
    }
    html body #container td.vorro-cp-navcell + td .tborder:not(:has(.tcat)),
    html body #container td.vorro-cp-navcell + td .tborder:not(:has(.tcat)) > tbody,
    html body #container td.vorro-cp-navcell + td .tborder:not(:has(.tcat)) > tbody > tr,
    html body #container td.vorro-cp-navcell + td .tborder:not(:has(.tcat)) > tbody > tr > td { display: block; width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) > fieldset),
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) input.textbox),
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) .select2-container),
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) .sceditor-container) { display: block; width: 100%; }
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) > fieldset) > td,
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) input.textbox) > td,
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) .select2-container) > td,
    html body #container td.vorro-cp-navcell + td tr:has(> td:not(.thead):not(.tcat):not(.tfoot) .sceditor-container) > td { display: block; width: 100% !important; min-width: 0; box-sizing: border-box; }
    html body #container td.vorro-cp-navcell + td input.textbox,
    html body #container td.vorro-cp-navcell + td input[type="file"],
    html body #container td.vorro-cp-navcell + td .select2-container,
    html body #container td.vorro-cp-navcell + td .sceditor-container { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
    html body #container td.vorro-cp-navcell + td .sceditor-container iframe { max-width: 100% !important; box-sizing: border-box; }
    html body #container td.vorro-cp-navcell + td .tfoot .float_right,
    html body #container td.vorro-cp-navcell + td .tfoot .float_left { float: none !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; min-width: 0; }
    html body #container td.vorro-cp-navcell + td .tfoot select { flex: 1 1 180px; width: auto !important; min-width: 0 !important; max-width: 100% !important; }
    html body #container td.vorro-cp-navcell + td select { max-width: 100% !important; min-width: 0 !important; }
    html body #container td.vorro-cp-navcell + td div[align="right"] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
}

/* Options retain native fields and behaviour with clearer preference controls. */
html body #container form:has(#invisible) fieldset input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 0;
    accent-color: #52646e;
    vertical-align: middle;
}
html body #container form:has(#invisible) fieldset td { padding-top: 4px; padding-bottom: 4px; }
html body #container form:has(#invisible) fieldset label { color: #465b66; font-size: 13px; line-height: 1.6; }
html body #container form:has(#invisible) input.button[name="regsubmit"] {
    min-width: 160px;
    min-height: 44px !important;
    padding: 0 22px !important;
    background: #4e565e !important;
    border-color: #4e565e !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 42px !important;
}
html body #container form:has(#invisible) input.button[name="regsubmit"]:hover {
    background: #354149 !important;
    border-color: #354149 !important;
    color: #fff !important;
}
html body #container form:has(#invisible) input.button[name="regsubmit"]:focus-visible,
html body #container form:has(#invisible) fieldset input[type="checkbox"]:focus-visible { outline: 2px solid #52646e !important; outline-offset: 3px; }
@media (max-width: 650px) {
    html body #container form:has(#invisible) input.button[name="regsubmit"] { width: 100%; max-width: 320px; box-sizing: border-box; }

    /* PM toolbars fit the initial phone view; wider data columns remain scrollable. */
    html body #container form[name="pmForm"] .tborder:has(input[name="quick_search"]) > tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    html body #container form[name="pmForm"] .tborder:has(input[name="quick_search"]) > tbody > tr:not(:first-child):not(:last-child) {
        display: table;
        table-layout: fixed;
        width: 580px;
    }
    html body #container form[name="pmForm"] .tborder:has(input[name="quick_search"]) > tbody > tr:first-child,
    html body #container form[name="pmForm"] .tborder:has(input[name="quick_search"]) > tbody > tr:last-child { display: block; width: 100%; }
    html body #container form[name="pmForm"] .tborder:has(input[name="quick_search"]) .thead {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    html body #container form[name="pmForm"] .thead > .float_right { float: none !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
    html body #container form[name="pmForm"] .thead input[name="keywords"] { flex: 1 1 100%; min-width: 0; box-sizing: border-box; }
    html body #container form[name="pmForm"] .thead input[name="quick_search"] { min-height: 44px !important; }
    html body #container form[name="pmForm"] .tfoot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        white-space: normal !important;
    }
}
@media (max-width: 560px) {
    html body #container .vorro-nav-shell { flex-wrap: nowrap !important; gap: 6px !important; }
    html body #container .vorro-brand { flex: 1 1 auto !important; min-width: 0 !important; max-width: none !important; padding-right: 4px !important; }
    html body #container .vorro-brand .vorro-site-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px !important; min-width: 0; }
    html body #container .vorro-header-actions { flex: 0 0 auto; gap: 6px !important; }
    html body #container .vorro-brand .vorro-brand-logo { max-width: 100% !important; }
}
@media (max-width: 420px) {
    html body #container .vorro-guest-actions .vorro-nav-register { display: none !important; }
}
@media (max-width: 760px) {
    html body #quick_login.vorro-login-modal:has(> .vorro-login-layout) { width: 400px !important; max-width: 100% !important; border-radius: 18px !important; }
    html body #quick_login.vorro-login-modal .vorro-login-layout { grid-template-columns: minmax(0, 1fr); }
    html body #quick_login.vorro-login-modal .vorro-login-brand { padding: 20px 24px; gap: 0; }
    html body #quick_login.vorro-login-modal .vorro-login-brand-name { padding-right: 34px; font-size: 13px; }
    html body #quick_login.vorro-login-modal .vorro-login-brand-name svg { width: 32px; height: 32px; flex-basis: 32px; padding: 7px; }
    html body #quick_login.vorro-login-modal .vorro-login-brand-copy,
    html body #quick_login.vorro-login-modal .vorro-login-art,
    html body #quick_login.vorro-login-modal .vorro-login-brand-note { display: none; }
    html body #quick_login.vorro-login-modal .vorro-login-panel { padding: 27px 24px 25px; }
    html body #quick_login.vorro-login-modal .vorro-login-panel-head h2 { font-size: 25px; }
    html body #quick_login.vorro-login-modal .vorro-login-field input.textbox { font-size: 16px !important; }
    html body #quick_login.vorro-login-modal a.close-modal { background: #365358 !important; border-color: #557478 !important; }
    html body #quick_login.vorro-login-modal a.close-modal::before { color: #fff; }
}
@media (max-width: 620px) {
    html body #container .vorro-guest-actions .vorro-nav-login { display: inline-flex !important; }
    html body #container .vorro-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}

/* Discussion pages: a clear title, soft author cards and a readable text measure. */
html body.vorro-showthread #container .vorro-thread-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 8px 0 22px;
    padding: 30px 32px;
    border: 1px solid #cbd9dc;
    border-left: 4px solid #4e776f;
    border-radius: 18px;
    background: linear-gradient(120deg, #e2eceb, #f1f5f6);
    box-shadow: 0 5px 20px rgba(41, 63, 68, .035);
}
html body.vorro-showthread #container .vorro-thread-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #49685f;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}
html body.vorro-showthread #container .vorro-thread-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #628c7e;
}
html body.vorro-showthread #container .vorro-thread-hero h1 {
    max-width: 34ch;
    margin: 0;
    color: #293e43;
    font-size: clamp(23px, 2.5vw, 33px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
html body.vorro-showthread #container .vorro-thread-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 17px;
    color: #536a70;
    font-size: 12px;
}
html body.vorro-showthread #container .vorro-thread-summary strong { margin-right: 5px; color: #314d50; font-weight: 750; }
html body.vorro-showthread #container .vorro-thread-emblem {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid #c3d5d1;
    border-radius: 26px;
    background: #d9e5e2;
    color: #648a80;
    transform: rotate(-7deg);
}
html body.vorro-showthread #container .vorro-thread-emblem svg { width: 48px; height: 48px; }
html body.vorro-showthread #container .vorro-thread-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
html body.vorro-showthread #container .vorro-thread-card > tbody > tr > .thead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 3px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #576975 !important;
}
html body.vorro-showthread #container .vorro-thread-card > tbody > tr > .thead * { color: #576975 !important; }
html body.vorro-showthread #container .vorro-thread-card > tbody > tr > .thead .float_right { float: none !important; order: 2; }
html body.vorro-showthread #container #posts_container { padding: 0 !important; border: 0 !important; background: transparent !important; }
html body.vorro-showthread #container #posts .post {
    margin: 0 0 20px !important;
    border: 1px solid #cedade !important;
    border-radius: 16px !important;
    background: #f8fafb !important;
    box-shadow: 0 4px 18px rgba(39, 60, 70, .04);
}
html body.vorro-showthread #container #posts .post .post_author {
    padding: 18px 22px !important;
    border-bottom: 1px solid #d0dcdf !important;
    background: #e7eef0 !important;
}
html body.vorro-showthread #container #posts .post:not(.classic) .post_author { gap: 15px; }
html body.vorro-showthread #container #posts .post .author_avatar img {
    border: 3px solid #f8fafb !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(46, 74, 78, .12);
}
html body.vorro-showthread #container #posts .post:not(.classic) .author_avatar img { width: 58px; height: 58px; }
html body.vorro-showthread #container #posts .post .author_statistics { font-size: 11px; line-height: 1.65; color: #5c6f78 !important; }
html body.vorro-showthread #container #posts .post .post_content { min-width: 0; background: #f8fafb !important; }
html body.vorro-showthread #container #posts .post:not(.classic) .post_content { padding: 22px 30px !important; }
html body.vorro-showthread #container #posts .post .post_head {
    padding: 0 0 13px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid #e0e7ea !important;
    background: transparent !important;
}
html body.vorro-showthread #container #posts .post .post_body {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 0 0 18px !important;
    margin: 0;
    color: #30424c !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
}
html body.vorro-showthread #container #posts .post .post_body img { max-width: 100%; height: auto; border-radius: 10px; }
html body.vorro-showthread #container #posts .post .post_body blockquote {
    margin: 12px 0;
    padding: 14px 18px;
    border: 1px solid #d4dfe2;
    border-left: 3px solid #6d9389;
    border-radius: 0 10px 10px 0;
    background: #edf3f3;
}
html body.vorro-showthread #container #posts .post .post_controls {
    padding: 12px 18px !important;
    border-top: 1px solid #dce5e8 !important;
    background: #edf2f5 !important;
}
html body.vorro-showthread #container #posts .post .post_controls a { min-height: 34px; }
html body.vorro-showthread #container #posts .post.classic .post_author { border-bottom: 0 !important; border-right: 1px solid #d0dcdf !important; }
html body.vorro-showthread #container #posts .post.classic .post_content { padding: 22px 24px !important; }
html body.vorro-showthread #container .vorro-thread-card .tfoot { border: 1px solid #d3dfe4 !important; border-radius: 12px !important; background: #e2eaee !important; }
html body.vorro-showthread #container .vorro-thread-utilitybar { border-color: #d0dce2; background: #eef3f5; }
html body.vorro-showthread #container #quick_reply_form .tborder { border: 1px solid #cbd9de !important; }
html body.vorro-showthread #container #quick_reply_form .thead { background: #526c70 !important; }
html body.vorro-showthread #container #quick_reply_form .trow1 { padding: 20px !important; background: #edf3f4 !important; }
html body.vorro-showthread #container #quick_reply_form textarea {
    box-sizing: border-box;
    min-height: 190px;
    padding: 15px !important;
    border: 1px solid #c3d3d9 !important;
    border-radius: 12px !important;
    background: #f9fbfc !important;
    font-size: 15px;
    line-height: 1.65;
}
@media (max-width: 650px) {
    html body.vorro-showthread #container .vorro-thread-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 0; margin-top: 4px; }
    html body.vorro-showthread #container .vorro-thread-card,
    html body.vorro-showthread #container .vorro-thread-card > tbody,
    html body.vorro-showthread #container .vorro-thread-card > tbody > tr,
    html body.vorro-showthread #container .vorro-thread-card > tbody > tr > td { display: block; width: 100% !important; min-width: 0; max-width: 100%; box-sizing: border-box; }
    html body.vorro-showthread #container .vorro-thread-card > tbody > tr > .thead { display: flex; }
    html body.vorro-showthread #container .vorro-thread-prevnext { min-width: 0; white-space: normal; }
    html body.vorro-showthread #container .vorro-thread-search,
    html body.vorro-showthread #container .vorro-thread-search form { width: 100%; min-width: 0; max-width: 100%; }
    html body.vorro-showthread #container .vorro-thread-search form { flex-wrap: wrap; }
    html body.vorro-showthread #container .vorro-thread-search input.textbox { flex: 1 1 130px; min-width: 0; width: auto !important; max-width: 100%; }
    html body.vorro-showthread #container .vorro-thread-emblem { display: none; }
    html body.vorro-showthread #container .vorro-thread-hero h1 { font-size: 23px; }
    html body.vorro-showthread #container #posts .post .post_author { padding: 16px !important; }
    html body.vorro-showthread #container #posts .post .post_content,
    html body.vorro-showthread #container #posts .post.classic .post_content { padding: 18px 16px !important; }
    html body.vorro-showthread #container #posts .post .post_body { font-size: 14px !important; line-height: 1.8 !important; }
    html body.vorro-showthread #container #posts .post .post_controls { padding: 10px 12px !important; }
    html body.vorro-showthread #container #quick_reply_form #quickreply_e > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
    html body.vorro-showthread #container #quick_reply_form .trow1 { padding: 16px !important; }
    html body.vorro-showthread #container #quick_reply_form .trow1 > div { width: 100% !important; }
    html body.vorro-showthread #container #quick_reply_form .tfoot { display: flex !important; justify-content: center; flex-wrap: wrap; gap: 8px; }
}
/* Document transitions use the same canvas as the normal forum pages. */
html body.vorro-redirect-page {
    margin: 0;
    min-height: 100vh;
    background: #e9eef2 !important;
    color: #37474f;
    text-align: left;
}
html body.vorro-redirect-page .vorro-redirect-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
html body.vorro-redirect-page .vorro-redirect-card {
    width: 100%;
    max-width: 560px;
    overflow-wrap: anywhere;
    border: 1px solid #cbd6dd;
    border-radius: 14px;
    background: #f6f8fa;
    box-shadow: 0 12px 32px rgba(35, 48, 58, .06);
}
html body.vorro-redirect-page .vorro-redirect-card h1 {
    margin: 0;
    padding: 18px 24px;
    border-radius: 13px 13px 0 0;
    background: #495966;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
}
html body.vorro-redirect-page .vorro-redirect-message { padding: 24px; }
html body.vorro-redirect-page .vorro-redirect-action {
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid #d5dfe5;
    background: #eef3f5;
    border-radius: 0 0 13px 13px;
}
html body.vorro-redirect-page .vorro-redirect-action a { color: #32675e; text-decoration: underline; }
html body.vorro-redirect-page .vorro-redirect-action a:focus-visible { outline: 2px solid #32675e; outline-offset: 4px; }

/* Preserve all calendar columns without clipping the document or other tables. */
html body.vorro-calendar-page #container .vorro-calendar-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #cbd6dd;
    border-radius: 14px;
    margin-bottom: 18px;
    box-sizing: border-box;
}
html body.vorro-calendar-page #container .vorro-calendar-scroll:focus-visible { outline: 2px solid #32675e; outline-offset: 3px; }
html body.vorro-calendar-page #container .vorro-calendar-grid { margin: 0 !important; border: 0 !important; }
@media (max-width: 850px) {
    html body.vorro-calendar-page #container .vorro-calendar-grid { min-width: 640px !important; max-width: none !important; table-layout: fixed; }
}

/* Fill short pages while keeping the footer in normal document flow. */
html body #container:has(> #footer.vorro-footer) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
html body #container:has(> #footer.vorro-footer) > #content {
    flex: 1 0 auto;
    min-width: 0;
}
html body #container > #footer.vorro-footer {
    flex: 0 0 auto;
}
/* Preserve MyBB's invisible task request without adding a layout row. */
html body #container:has(> #footer.vorro-footer) > img[src$="/task.php"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Navigation overflow: keep every link reachable instead of hiding by rank. */
@media (min-width: 861px) {
    html body #logo .vorro-primary-nav {
        display: flex !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
    }
    html body #logo .vorro-primary-nav.vorro-nav-enhanced { overflow: visible; }
    html body #logo .vorro-primary-nav a { display: inline-flex !important; flex: 0 0 auto; }
    html body #logo .vorro-primary-nav > li { display: contents !important; }
}
html body #logo .vorro-primary-nav > [hidden] { display: none !important; }
html body #logo .vorro-nav-more { position: relative; flex: 0 0 auto; margin: 0; }
html body #logo .vorro-nav-more > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 11px;
    border-radius: 8px;
    color: #4f5963;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}
html body #logo .vorro-nav-more > summary::-webkit-details-marker { display: none; }
html body #logo .vorro-nav-more > summary::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}
html body #logo .vorro-nav-more[open] > summary,
html body #logo .vorro-nav-more > summary:hover { background: #e2e9ec; color: #263940; }
html body #logo .vorro-nav-more > summary:focus-visible { outline: 2px solid #4a8176; outline-offset: 2px; }
html body #logo .vorro-nav-more-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 1000;
    width: 260px;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, 420px);
    padding: 7px;
    box-sizing: border-box;
    overflow-y: auto;
    background: #f9fbfc;
    border: 1px solid #ccd7de;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(27, 39, 47, .16);
}
html body #logo .vorro-nav-more-panel > li { display: block !important; list-style: none; margin: 0 !important; padding: 0; }
html body #logo .vorro-nav-more-panel a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    height: auto !important;
    min-height: 38px !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    border-radius: 7px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #46545e !important;
}
html body #logo .vorro-nav-more-panel a:hover,
html body #logo .vorro-nav-more-panel a:focus-visible { background: #e2e9ec !important; color: #263940 !important; }
html body #logo .vorro-nav-more-panel a::after { display: none !important; }
html body #logo .vorro-mobile-menu.vorro-nav-synced .vorro-mobile-nav-panel { max-height: min(70vh, 480px); overflow-y: auto; }
html body #logo .vorro-mobile-menu.vorro-nav-synced .vorro-mobile-nav-panel a { height: auto !important; justify-content: flex-start !important; white-space: normal !important; overflow-wrap: anywhere; line-height: 1.45 !important; }

/* Registration uses one board label and one aligned title block. */
html body #container .vorro-auth-register-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}
html body #container .vorro-auth-register-head > .vorro-auth-brand { margin: 0; }
html body #container .vorro-auth-register-title { text-align: left; }
html body #container .vorro-auth-register-title h1 { overflow-wrap: anywhere; }
html body #container .vorro-auth-register-head > .vorro-auth-switch { width: auto !important; }
@media (max-width: 650px) {
    html body #container .vorro-auth-register-head { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
    html body #container .vorro-auth-register-head > .vorro-auth-switch { grid-column: 2; justify-self: start; }
}

/* A clearer Home icon while preserving the breadcrumb link footprint. */
html body #container .vorro-breadcrumb .vorro-crumb-home-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

/* Responsive advanced search and native thread/post results. */
@media (max-width: 650px) {
    html body #container .vorro-search-form-table,
    html body #container .vorro-search-results {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    html body #container .vorro-search-form-table > tbody {
        display: flex;
        flex-direction: column;
    }
    html body #container .vorro-search-form-table > tbody > tr {
        display: contents;
    }
    html body #container .vorro-search-form-table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        order: 20;
    }
    html body #container .vorro-search-form-table > tbody > tr > .thead { order: 0; }
    html body #container .vorro-search-form-table .vorro-search-keyword-title { order: 1; }
    html body #container .vorro-search-form-table .vorro-search-keyword-fields { order: 2; }
    html body #container .vorro-search-form-table .vorro-search-user-title { order: 3; }
    html body #container .vorro-search-form-table .vorro-search-user-fields { order: 4; }
    html body #container .vorro-search-form-table .vorro-search-forums-title { order: 5; }
    html body #container .vorro-search-form-table .vorro-search-forums-fields { order: 6; }
    html body #container .vorro-search-form-table .vorro-search-options-title { order: 7; }
    html body #container .vorro-search-form-table .vorro-search-options-fields { order: 8; }
    html body #container .vorro-search-form-table .vorro-search-sorting-title { order: 9; }
    html body #container .vorro-search-form-table .vorro-search-sorting-fields { order: 10; }
    html body #container .vorro-search-form-table .vorro-search-display-title { order: 11; }
    html body #container .vorro-search-form-table .vorro-search-display-fields { order: 12; }
    html body #container .vorro-search-keyword-fields > table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }
    html body #container .vorro-advanced-search input.textbox,
    html body #container .vorro-advanced-search select,
    html body #container .vorro-advanced-search .select2-container {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        font-size: 16px;
    }
    html body #container .vorro-search-keyword-fields input.textbox,
    html body #container .vorro-search-user-fields input.textbox,
    html body #container .vorro-search-user-fields .select2-container,
    html body #container .vorro-search-forums-fields select {
        width: 100% !important;
    }
    html body #container .vorro-advanced-search input.textbox,
    html body #container .vorro-advanced-search select:not([multiple]) {
        min-height: 44px;
    }
    html body #container .vorro-search-forums-fields select {
        max-height: 280px;
    }
    html body #container .vorro-search-options-fields select,
    html body #container .vorro-search-sorting-fields select {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
    html body #container .vorro-advanced-search input[name="numreplies"] { width: 80px; }
    html body #container .vorro-advanced-search label {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        margin-right: 10px;
        line-height: 1.5;
    }
    html body #container .vorro-advanced-search label input {
        flex-shrink: 0;
        margin-left: 0;
    }
    html body #container .vorro-search-user-fields .select2-choice {
        min-height: 44px;
        height: auto;
        box-sizing: border-box;
        line-height: 42px;
    }
    html body #container .vorro-advanced-search input[type="submit"] {
        width: 100%;
        min-height: 44px;
    }

    html body #container .vorro-search-results > tbody { display: block; }
    html body #container .vorro-search-results > tbody > tr:not(.vorro-search-result-row) {
        display: block;
    }
    html body #container .vorro-search-results > tbody > tr > .thead {
        display: block;
        width: auto;
    }
    html body #container .vorro-search-results > tbody > .vorro-search-sort {
        display: flex !important;
        flex-wrap: wrap;
        padding: 8px;
        gap: 6px;
        background: #dce4e9;
    }
    html body #container .vorro-search-sort > td {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto !important;
        max-width: 100%;
        min-height: 44px;
        padding: 8px !important;
        box-sizing: border-box;
        border: 0 !important;
        border-radius: 6px;
    }
    html body #container .vorro-search-sort > td:empty { display: none; }
    html body #container .vorro-search-results .vorro-search-result-row {
        display: grid !important;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 4px 8px;
        margin: 8px;
        padding: 12px;
        border: 1px solid #d6dfe5;
        border-radius: 10px;
        background: #f5f7f8;
    }
    html body #container .vorro-search-result-row > td {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 2px 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    html body #container .vorro-search-result-row > .vorro-result-status {
        grid-column: 1;
        grid-row: 1;
    }
    html body #container .vorro-search-result-row > .vorro-result-icon {
        grid-column: 1;
        grid-row: 2;
    }
    html body #container .vorro-result-icon img {
        width: 16px;
        height: 16px;
        max-width: none;
        object-fit: contain;
    }
    html body #container .vorro-search-result-row > .vorro-result-subject {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding-bottom: 8px !important;
    }
    html body #container .vorro-search-result-row > td[data-label] {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(70px, .32fr) minmax(0, 1fr);
        gap: 8px;
        align-items: baseline;
    }
    html body #container .vorro-search-result-row > td[data-label]::before {
        content: attr(data-label);
        color: #62717c;
        font-size: 12px;
        font-weight: 600;
    }
    html body #container .vorro-search-result-row > td:not(.vorro-result-cell) {
        grid-column: 1 / -1;
        text-align: right !important;
        min-height: 30px;
    }
    html body #container .vorro-result-subject table { table-layout: fixed; }
    html body #container .vorro-result-subject table td {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow-wrap: anywhere;
    }
    html body #container .vorro-search-toolbar,
    html body #container .vorro-search-toolbar > tbody,
    html body #container .vorro-search-toolbar > tbody > tr,
    html body #container .vorro-search-toolbar > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    html body #container .vorro-search-toolbar select,
    html body #container .vorro-search-toolbar input { max-width: 100%; }
}
/* Phone-only Member List, subforum and discussion layout. Native MyBB controls remain intact. */
@media (max-width: 650px) {
    html body #container .vorro-member-list,
    html body #container .vorro-member-list > tbody,
    html body #container .vorro-member-search-table,
    html body #container .vorro-member-advanced-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    html body #container .vorro-member-list > tbody > tr:not(.vorro-member-row) { display: block; }
    html body #container .vorro-member-list > tbody > tr > .thead {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    html body #container .vorro-member-alphabet {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        float: none !important;
        order: 2;
        width: 100%;
    }
    html body #container .vorro-member-alphabet a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        min-height: 32px;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 6px;
    }
    html body #container .vorro-member-list > tbody > .vorro-member-sort {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0 12px;
        padding: 6px 12px;
        background: #e2eaee;
    }
    html body #container .vorro-member-sort > td {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
    }
    html body #container .vorro-member-sort > td:first-child { display: none; }
    html body #container .vorro-member-sort a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    html body #container .vorro-member-list .vorro-member-row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px 12px;
        margin: 8px;
        padding: 12px;
        border: 1px solid #d1dce2;
        border-radius: 10px;
        background: #f8fafb;
    }
    html body #container .vorro-member-row > td {
        display: block;
        grid-column: 1 / -1;
        min-width: 0;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }
    html body #container .vorro-member-row > .vorro-member-avatar { grid-column: 1; grid-row: 1; }
    html body #container .vorro-member-avatar img {
        width: auto !important;
        height: auto !important;
        max-width: 48px !important;
        max-height: 48px !important;
        margin: 0 !important;
        object-fit: contain;
        border-radius: 10px;
    }
    html body #container .vorro-member-row > .vorro-member-name { grid-column: 2; grid-row: 1; }
    html body #container .vorro-member-name .smalltext { line-height: 1.6; }
    html body #container .vorro-member-row > .vorro-member-detail {
        display: grid;
        grid-template-columns: minmax(70px, .4fr) minmax(0, 1fr);
        gap: 10px;
        font-size: 12px;
        line-height: 1.6;
    }
    html body #container .vorro-member-detail::before {
        content: attr(data-label);
        color: #64727d;
        font-weight: 600;
    }
    html body #container .vorro-member-search-table > tbody {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    html body #container .vorro-member-search-table > tbody > tr { display: contents; }
    html body #container .vorro-member-search-table > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
        order: 10;
    }
    html body #container .vorro-member-search-table > tbody > tr > .thead { order: 0; }
    html body #container .vorro-member-search-table .thead > .float_right { float: none !important; margin-bottom: 8px; }
    html body #container .vorro-member-search-table .vorro-member-username-title { order: 1; }
    html body #container .vorro-member-search-table .vorro-member-username-field { order: 2; }
    html body #container .vorro-member-search-table .vorro-member-website-title { order: 3; }
    html body #container .vorro-member-search-table .vorro-member-website-field { order: 4; }
    html body #container .vorro-member-search-table .vorro-member-sort-title { order: 5; }
    html body #container .vorro-member-search-table .vorro-member-sort-field { order: 6; }
    html body #container .vorro-member-advanced-table > tbody,
    html body #container .vorro-member-advanced-table > tbody > tr,
    html body #container .vorro-member-advanced-table > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    html body #container .vorro-member-search input.textbox,
    html body #container .vorro-member-search select,
    html body #container .vorro-member-search .select2-container,
    html body #container .vorro-member-advanced-search input.textbox,
    html body #container .vorro-member-advanced-search select,
    html body #container .vorro-member-advanced-search .select2-container {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 16px;
    }
    html body #container .vorro-member-advanced-search select[name="username_match"] { margin-bottom: 8px; }
    html body #container .vorro-member-search .select2-choice,
    html body #container .vorro-member-advanced-search .select2-choice { min-height: 44px; line-height: 42px; box-sizing: border-box; }
    html body #container .vorro-member-search label[for^="order_"],
    html body #container .vorro-member-advanced-search label[for^="order_"] { display: inline-flex; align-items: center; min-height: 44px; }
    html body #container .vorro-member-search input[type="submit"],
    html body #container .vorro-member-advanced-search input[type="submit"] { width: 100%; min-height: 44px; }

    html body #container .vorro-subforums { display: block; margin-top: 10px; }
    html body #container .vorro-subforums-break { display: none; }
    html body #container .vorro-subforums-label { display: block; margin-bottom: 5px; color: #5c6e77; }
    html body #container .vorro-subforums-links { display: block; line-height: 2; }
    html body #container .vorro-subforum-comma { display: none; }
    html body #container .vorro-subforum-item {
        display: inline-flex;
        align-items: flex-start;
        gap: 7px;
        max-width: 100%;
        margin: 0 5px 5px 0;
        padding: 5px 9px;
        box-sizing: border-box;
        border: 1px solid #d0dce2;
        border-radius: 7px;
        background: #edf3f5;
        line-height: 1.55;
        vertical-align: middle;
    }
    html body #container .vorro-subforum-item .subforumicon { flex: 0 0 auto; margin-top: 3px; }
    html body #container .vorro-subforum-item a { min-width: 0; overflow-wrap: anywhere; }

    html body.vorro-showthread #container .vorro-thread-hero { padding: 18px 16px; margin-bottom: 16px; border-radius: 13px; }
    html body.vorro-showthread #container .vorro-thread-hero h1 { font-size: 22px; line-height: 1.4; }
    html body.vorro-showthread #container .vorro-thread-summary { margin-top: 12px; }
    html body.vorro-showthread #container .vorro-thread-toolbar { margin-bottom: 12px; }
    html body.vorro-showthread #container #posts .post .post_author {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 8px 12px !important;
        padding: 12px !important;
    }
    html body.vorro-showthread #container #posts .post .author_avatar {
        grid-column: 1;
        grid-row: 1;
        float: none !important;
        margin: 0 !important;
    }
    html body.vorro-showthread #container #posts .post .author_avatar img { width: 48px !important; height: 48px !important; border-radius: 11px !important; }
    html body.vorro-showthread #container #posts .post .author_information {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        float: none !important;
        margin: 0 !important;
        overflow-wrap: anywhere;
    }
    html body.vorro-showthread #container #posts .post .author_statistics {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0;
        float: none !important;
        margin: 0 !important;
        padding-top: 8px;
        border-top: 1px solid #d4e0e3;
        column-count: 2;
        column-gap: 14px;
        font-size: 11px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }
    html body.vorro-showthread #container #posts .post .post_content { padding: 16px 12px !important; }
    html body.vorro-showthread #container #posts .post .post_head { gap: 8px; margin-bottom: 14px !important; padding-bottom: 10px !important; }
    html body.vorro-showthread #container .vorro-post-head-left { min-width: 0; flex: 1 1 0; }
    html body.vorro-showthread #container .vorro-post-head-right { flex: 0 0 auto; }
    html body.vorro-showthread #container #posts .post .post_body { min-height: 0 !important; }
    html body.vorro-showthread #container #posts .post .post_controls a { min-height: 40px; box-sizing: border-box; }
    html body.vorro-showthread #container .vorro-thread-utilitybar { margin-top: 16px; padding: 12px; }
    html body.vorro-showthread #container .vorro-thread-admin form { flex-wrap: wrap; }
}
/* The wrappers preserve the original desktop legend flow. */
html body #container .vorro-index-main .vorro-legend-item { display: contents; }
/* Phone index legend: four centered icon-and-label rows. */
@media (max-width: 650px) {
    html body #container .vorro-index-main > .forum_legend {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 12px !important;
        box-sizing: border-box;
        text-align: center;
    }
    html body #container .vorro-index-main .vorro-legend-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
        min-width: 0;
    }
    html body #container .vorro-index-main .vorro-legend-item dt {
        flex: 0 0 24px;
        margin: 0 !important;
    }
    html body #container .vorro-index-main .vorro-legend-item dd {
        display: block !important;
        min-width: 0;
        margin: 0 !important;
        text-align: center;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }
}
/* Thread previous/next links must stay legible on the light footer. */
html body.vorro-showthread #container .vorro-thread-prevnext a:link,
html body.vorro-showthread #container .vorro-thread-prevnext a:visited { color: #465058 !important; }
html body.vorro-showthread #container .vorro-thread-prevnext a:hover,
html body.vorro-showthread #container .vorro-thread-prevnext a:focus-visible,
html body.vorro-showthread #container .vorro-thread-prevnext a:active {
    color: #32675e !important;
    text-decoration: underline;
}
/* Subforum rows use the same phone grid as index forums, not table-column sizing. */
@media (max-width: 650px) {
    html body #container .vorro-subforum-table,
    html body #container .vorro-subforum-table > tbody,
    html body #container .vorro-subforum-table > tbody > tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    html body #container .vorro-subforum-table { overflow: hidden !important; }
    html body #container .vorro-subforum-table .vorro-colhead-row { display: none !important; }
    html body #container .vorro-subforum-table .thead {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    html body #container .vorro-subforum-table .vorro-forum-row {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) auto !important;
        border-bottom: 1px solid #e7ecef;
    }
    html body #container .vorro-subforum-table .vorro-forum-row:last-child { border-bottom: 0; }
    html body #container .vorro-subforum-table .vorro-forum-row > td { border-bottom: 0 !important; }
}
