/* Gulf City — reference geometry and palette. Native SMF components inherit below. */
:root {
    --gulf-orange:#ff7900;
    --gulf-peach:#ffd4b5;
    --gulf-ink:#080808;
    --gulf-muted:#f5f5f5
}
html {
    background:#080808;
    scroll-behavior:smooth
}
body {
    background:#080808 url('../images/background.webp') repeat;
    font-family:Arial,Helvetica,sans-serif;
    font-size:14px;
    color:#080808;
    line-height:1.4;
    margin:0;
    padding:0
}
a {
    color:inherit
}
a:hover {
    text-decoration:underline;
    color:#d96000
}
button,input,select,textarea {
    font-family:inherit
}
* {
    box-sizing:border-box
}
.gulf-width {
    width:calc(100% - 40px);
    max-width:1500px;
    margin:0 auto
}
.gulf-skip {
    position:absolute;
    top:-50px;
    left:10px;
    background:white;
    padding:10px;
    z-index:1000
}
.gulf-skip:focus {
    top:10px
}
:focus-visible {
    outline:2px solid #ff7900;
    outline-offset:3px
}
#footerfix {
    min-height:calc(100vh - 64px)
}
.gulf-staff {
    height:34px;
    background:#080808;
    color:#ffa31a;
    font-size:13px;
    font-weight:bold
}
.gulf-staff a {
    display:inline-block;
    padding:8px 8px;
    margin-right:10px
}
.gulf-header {
    height:182px;
    background:transparent;
    border:0;
    box-shadow:none
}
.gulf-logo {
    display:block;
    width:150px;
    height:150px;
    position:relative;
    overflow:hidden;
    top:16px;
    left:10px;
    border-radius:16px;
    border:2px solid #050505;
    background:#ff9d00
}
.gulf-logo img {
    position:absolute;
    width:170px;
    max-width:none;
    height:170px;
    left:-10px;
    top:-10px
}
.gulf-navigation {
    background:#101010;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 2px 4px #0003
}
.gulf-nav {
    height:37px;
    display:flex;
    justify-content:space-between;
    align-items:stretch
}
.gulf-primary,.gulf-account {
    display:flex;
    align-items:stretch;
    min-width:0
}
.gulf-primary>a,.gulf-search {
    padding:8px 10px;
    color:#ffa21a;
    font-weight:bold;
    white-space:nowrap
}
.gulf-primary>a:hover,.gulf-primary>a.gulf-selected {
    background:#ff7900;
    color:white;
    text-decoration:none
}
.gulf-primary>a span {
    font-size:11px;
    opacity:.6;
    margin-left:6px
}
.gulf-search {
    display:flex;
    gap:7px;
    align-items:center;
    background:#090909
}
.gulf-search svg {
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8
}
#top_info {
    display:flex;
    float:none;
    margin:0;
    align-items:stretch
}
#top_info>li {
    margin:0;
    float:none;
    position:relative
}
#top_info>li>a {
    height:37px;
    background:#090909;
    border:0;
    border-radius:0;
    padding:8px 10px;
    color:#ffa21a;
    display:flex;
    align-items:center;
    gap:5px;
    font-size:14px;
    font-weight:bold
}
#top_info>li>a:hover,#top_info>li>a.active {
    background:#ff7900;
    color:white
}
#top_info>li.welcome {
    display:none
}
#top_info .avatar {
    width:20px;
    height:20px;
    border-radius:2px
}
#top_info .main_icons {
    filter:sepia(1) saturate(5)
}
#top_info #pm_menu_top .textmenu,#top_info #alerts_menu_top .textmenu {
    display:none
}
#top_info .top_menu {
    color:#111;
    background:#fff;
    border:1px solid #ddd;
    border-radius:0;
    top:37px;
    right:0;
    box-shadow:0 5px 12px #0005
}
#top_info .top_menu a {
    color:#111
}
.gulf-subnav {
    background:#fff;
    height:24px;
    font-size:13px
}
.gulf-subnav .gulf-width {
    display:flex;
    gap:18px;
    align-items:center;
    height:100%;
    padding:0 7px
}
#wrapper {
    padding:0;
    background:none;
    border:0;
    box-shadow:none
}
#content_section,#main_content_section {
    padding:0;
    margin:0;
    background:none;
    border:0
}
.navigate_section {
    margin:0;
    padding:10px 8px;
    color:#fff;
    font-size:13px;
    font-weight:bold;
    min-height:38px
}
.navigate_section ul {
    background:none;
    border:0;
    box-shadow:none;
    padding:0
}
.navigate_section li {
    line-height:18px
}
.navigate_section li a {
    color:#fff
}
.navigate_section .dividers {
    color:#999;
    font-size:10px
}
.gulf-page-title {
    background:#000b;
    border-left:3px solid #ffa200;
    min-height:52px;
    border-radius:3px;
    display:flex;
    align-items:center;
    padding:12px 14px;
    margin-bottom:0
}
.gulf-page-title h1 {
    font-size:18px;
    color:white;
    line-height:24px
}
:is(.gulf-board-layout,.gulf-childboards) {
    display:grid;
    grid-template-columns:minmax(0,1fr) 250px;
    gap:10px
}
.gulf-board-main {
    min-width:0
}
:is(.gulf-board-layout,.gulf-childboards) .main_container {
    margin:0 0 10px;
    border:0;
    background:white;
    border-radius:3px;
    overflow:hidden;
    box-shadow:none
}
:is(.gulf-board-layout,.gulf-childboards) .cat_bar {
    background:var(--gulf-peach);
    border:0;
    border-radius:0;
    box-shadow:none;
    padding:7px 10px;
    min-height:51px
}
:is(.gulf-board-layout,.gulf-childboards) .catbg {
    background:none;
    box-shadow:none;
    color:#080808;
    border:0;
    padding:0;
    line-height:21px;
    min-height:0;
    font-size:15px;
    font-weight:normal;
    text-shadow:none
}
:is(.gulf-board-layout,.gulf-childboards) .catbg a {
    color:#080808
}
:is(.gulf-board-layout,.gulf-childboards) .cat_bar .desc {
    padding:0;
    margin:0;
    color:#080808;
    font-size:13px;
    line-height:17px
}
:is(.gulf-board-layout,.gulf-childboards) .up_contain {
    display:grid;
    grid-template-columns:46px minmax(0,1fr) 146px 260px;
    min-height:62px;
    align-items:center;
    padding:10px 10px 10px 10px;
    margin:0;
    border:0;
    border-radius:0;
    background:#fff;
    box-shadow:none
}
:is(.gulf-board-layout,.gulf-childboards) .up_contain:hover {
    background:#fffaf5
}
:is(.gulf-board-layout,.gulf-childboards) .board_icon,:is(.gulf-board-layout,.gulf-childboards) .info,:is(.gulf-board-layout,.gulf-childboards) .board_stats,:is(.gulf-board-layout,.gulf-childboards) .lastpost {
    width:auto;
    float:none;
    margin:0;
    padding:0;
    border:0;
    min-width:0;
    display:block
}
.gulf-board-icon {
    display:block;
    width:36px;
    height:36px;
    color:#ff7900
}
.gulf-board-icon svg {
    width:36px;
    height:36px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.9;
    stroke-linecap:round;
    stroke-linejoin:round
}
:is(.gulf-board-layout,.gulf-childboards) .info .subject {
    font-size:17px;
    line-height:22px;
    font-weight:normal;
    color:#000
}
:is(.gulf-board-layout,.gulf-childboards) .board_description {
    font-size:13px;
    line-height:18px;
    margin:0
}
:is(.gulf-board-layout,.gulf-childboards) .moderators {
    font-size:11px
}
:is(.gulf-board-layout,.gulf-childboards) .board_stats {
    display:flex;
    justify-content:space-around;
    text-align:center
}
.gulf-stat span {
    display:block;
    font-size:12px
}
.gulf-stat strong {
    font-size:14px;
    font-weight:normal;
    display:block
}
:is(.gulf-board-layout,.gulf-childboards) .lastpost {
    font-size:13px;
    display:flex;
    gap:10px;
    align-items:center;
    padding-left:0
}
.gulf-last-avatar {
    flex:0 0 36px;
    width:36px;
    height:36px
}
.gulf-last-avatar img {
    width:36px;
    height:36px;
    border-radius:3px;
    object-fit:cover
}
.gulf-avatar-letter {
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:3px;
    background:#ffbd64;
    color:#623100;
    font-size:23px
}
.gulf-last-text {
    min-width:0
}
.gulf-last-text>div {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.gulf-last-title {
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
:is(.gulf-board-layout,.gulf-childboards) .children {
    grid-column:2/-1;
    margin:4px 0 0;
    padding:0;
    border:0;
    background:none;
    font-size:12px
}
:is(.gulf-board-layout,.gulf-childboards) .mark_read {
    margin:5px 0 12px
}
.gulf-sidebar section {
    background:#fff;
    border-radius:3px;
    margin-bottom:10px;
    overflow:hidden;
    padding:7px 10px
}
.gulf-sidebar h2 {
    font-size:17px;
    font-weight:normal;
    line-height:24px;
    margin:0 0 9px;
    padding:0
}
.gulf-sidebar p {
    margin:0 0 6px;
    font-size:13px
}
.gulf-sidebar .gulf-recent {
    padding:0 0 10px;
    font-size:14px
}
.gulf-recent>a {
    display:block
}
.gulf-recent small {
    font-size:12px;
    display:block;
    margin-top:2px
}
.gulf-sidebar dl {
    display:grid;
    grid-template-columns:auto 1fr;
    line-height:21px
}
.gulf-sidebar dd {
    text-align:right;
    margin:0
}
.gulf-online-total {
    margin:0 -10px -7px;
    padding:5px 10px;
    background:#f0f0f0;
    font-size:11px
}
.gulf-share {
    display:flex;
    gap:22px;
    flex-wrap:wrap;
    padding:4px 8px;
    font-size:26px;
    font-weight:bold;
    color:#222
}
/* Keep the complete native templates, including editor, moderation and admin actions. */
.cat_bar,.title_bar,.sub_bar {
    background:var(--gulf-peach);
    border:0;
    box-shadow:none;
    border-radius:3px 3px 0 0
}
.catbg,.titlebg,.subbg,.catbg a,.titlebg a {
    background:none;
    color:#111;
    text-shadow:none;
    font-weight:normal
}
.catbg {
    font-size:16px
}
.windowbg,.roundframe,.information,.description,.generic_list_wrapper {
    background:#fff;
    color:#080808;
    border:0;
    box-shadow:none;
    border-radius:3px
}
.windowbg:nth-of-type(even),.bg.even {
    background:#fff
}
.windowbg:nth-of-type(odd),.bg.odd {
    background:#fff
}
.windowbg.locked {
    background:#fff8ee
}
.windowbg.sticky {
    background:#fff3e7
}
.button,button.button,input.button,.button_submit,.quickbuttons>li>a {
    background:#ff7900;
    color:#fff;
    border:0;
    box-shadow:none;
    text-shadow:none;
    border-radius:3px;
    font-weight:normal
}
.button:hover,button.button:hover,input.button:hover {
    background:#e96800;
    color:#fff
}
.pagesection .buttonlist a {
    background:#fff;
    color:#111
}
.pagesection .buttonlist a.active {
    background:#ff7900;
    color:#fff
}
.pagesection {
    color:#fff
}
.pagesection a {
    color:inherit
}
.pagesection .button {
    color:#111
}
.pagelinks a {
    background:#fff;
    color:#111
}
.pagelinks .current_page {
    background:#ff7900;
    color:#fff
}
input[type=text],input[type=password],input[type=email],input[type=search],textarea,select {
    background:#f9f9f9;
    color:#111;
    border:1px solid #e8e8e8;
    border-radius:3px;
    box-shadow:none;
    min-height:33px
}
input[type=checkbox],input[type=radio] {
    accent-color:#ff7900
}
.table_grid {
    background:#fff
}
.table_grid th {
    background:#ffd4b5;
    color:#111
}
.table_grid td {
    border-color:#eee
}
.table_grid tr:nth-child(even) {
    background:#fafafa
}
#messageindex .board_stats {
    font-size:13px
}
.subject_title,.display_title {
    color:#fff;
    background:#000b;
    border-left:3px solid #ffa200;
    padding:12px 14px;
    font-size:18px
}
#forumposts .cat_bar {
    margin-bottom:10px
}
#forumposts .windowbg {
    padding:0;
    overflow:hidden;
    margin-bottom:10px
}
#forumposts .poster {
    background:#f5f5f5;
    padding:12px 10px;
    width:170px;
    min-height:220px
}
#forumposts .postarea {
    margin:0 0 0 170px;
    padding:12px 10px;
    background:#fff
}
#forumposts .poster h4 {
    font-size:15px
}
#forumposts .poster .user_info {
    line-height:1.35
}
#forumposts .poster .membergroup {
    font-weight:400
}
#forumposts .poster .gulf-admin-rank-icons {
    display:flex;
    gap:2px;
    margin:3px 0 10px
}
#forumposts .poster .gulf-admin-rank-icons img {
    width:14px;
    height:15px
}
#forumposts .poster .avatar {
    max-width:110px;
    max-height:110px;
    border-radius:7px;
    margin:5px 0 12px
}
#forumposts .poster .postcount,#forumposts .poster .registered {
    margin:2px 0
}
#forumposts .poster .gulf-tenure-trophies {
    display:flex;
    flex-wrap:wrap;
    gap:2px;
    margin-top:3px
}
#forumposts .poster .gulf-tenure-trophies img {
    width:16px;
    height:16px
}
#forumposts .post {
    font-size:14px;
    padding:16px 0;
    min-height:160px
}
#forumposts .keyinfo {
    padding:0;
    font-size:12px
}
#forumposts .quickbuttons {
    padding:8px 10px
}
#forumposts .post img {
    max-width:100%;
    height:auto
}
.signature {
    color:#555;
    border-top:1px solid #eee
}
.bbc_standard_quote {
    background:#f7f7f7;
    border-left:3px solid #ff7900
}
.bbc_code {
    background:#f5f5f5
}
#profileview {
    background:white;
    padding:20px
}
#basicinfo {
    background:#f5f5f5
}
#admin_content,#admin_menu,#admin_main_section {
    color:#111
}
.errorbox {
    background:#fff1ec;
    border:1px solid #da6633;
    color:#6f1f09
}
.noticebox,.infobox {
    background:#fff8e9;
    color:#222;
    border:1px solid #f3d2a1
}
.sceditor-container {
    background:white
}
.sceditor-container textarea {
    color:#111
}
.dropmenu li ul {
    background:#fff;
    border-color:#ddd
}
.dropmenu li ul a {
    color:#111
}
.dropmenu li a.active {
    background:#ff7900;
    color:#fff
}
/* SMF's native login overlay preserves token, error and two-factor handling. */
.popup_container {
    background:#0009;
    backdrop-filter:blur(4px)
}
.popup_window {
    border:0;
    border-radius:3px;
    background:#fff;
    color:#111;
    box-shadow:0 8px 24px #0005
}
.popup_heading {
    background:#ffd4b5;
    color:#111;
    padding:9px 10px;
    font-size:18px;
    font-weight:normal
}
.login,.register_form {
    background:white;
    color:#111
}
.login {
    max-width:800px
}
.login dt,.register_form dt {
    background:#f5f5f5
}
.login dd,.register_form dd {
    padding:7px 10px
}
.login .cat_bar {
    background:#ffd4b5
}
.login .button {
    min-width:120px
}
#registration .roundframe {
    padding:20px
}
.content form {
    max-width:100%
}
#footer {
    padding:8px 5px 0;
    background:none;
    color:#ffa31a;
    border:0;
    box-shadow:none;
    clear:both;
    font-size:12px
}
#footer .gulf-footer-links {
    display:flex;
    justify-content:space-between;
    align-items:center
}
#footer .gulf-footer-links a {
    margin-left:15px
}
#footer .copyright {
    text-align:center;
    font-size:11px;
    margin:12px 0 0
}
#footer a {
    color:#ffa31a
}
@media(max-width:1200px) {
    :is(.gulf-board-layout,.gulf-childboards) .up_contain {
        grid-template-columns:44px minmax(0,1fr) 116px 220px
    }
    :is(.gulf-board-layout,.gulf-childboards) {
        grid-template-columns:minmax(0,1fr) 230px
    }
    .gulf-primary>a {
        padding-left:8px;
        padding-right:8px
    }
    .gulf-width {
        width:calc(100% - 24px)
    }
}
@media(max-width:1000px) {
    :is(.gulf-board-layout,.gulf-childboards) {
        grid-template-columns:minmax(0,1fr)
    }
    .gulf-sidebar {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px
    }
    .gulf-sidebar section {
        margin:0
    }
    :is(.gulf-board-layout,.gulf-childboards) .up_contain {
        grid-template-columns:44px minmax(0,1fr) 130px 240px
    }
    .gulf-nav {
        height:auto;
        min-height:37px;
        flex-wrap:wrap
    }
    .gulf-account {
        margin-left:auto
    }
    .gulf-primary>a span {
        display:none
    }
}
@media(max-width:700px) {
    body {
        font-size:14px
    }
    .gulf-width {
        width:calc(100% - 16px)
    }
    .gulf-header {
        height:122px
    }
    .gulf-logo {
        width:96px;
        height:96px;
        top:12px;
        left:5px;
        border-radius:12px
    }
    .gulf-logo img {
        width:110px;
        height:110px;
        top:-7px;
        left:-7px
    }
    .gulf-nav {
        width:100%;
        display:block
    }
    .gulf-primary {
        overflow-x:auto;
        white-space:nowrap
    }
    .gulf-primary>a {
        font-size:13px;
        flex-shrink:0;
        padding:9px 10px
    }
    .gulf-account {
        justify-content:flex-end;
        background:#090909;
        height:34px
    }
    #top_info>li>a {
        height:34px;
        font-size:13px;
        padding:6px 10px
    }
    .gulf-search {
        font-size:13px
    }
    .gulf-subnav {
        height:29px;
        overflow:auto
    }
    .gulf-subnav .gulf-width {
        width:max-content;
        min-width:100%;
        padding:0 12px;
        gap:16px;
        white-space:nowrap;
        font-size:12px
    }
    .navigate_section {
        padding:8px 3px;
        min-height:32px
    }
    .gulf-page-title {
        min-height:45px;
        padding:9px 12px
    }
    :is(.gulf-board-layout,.gulf-childboards) .up_contain {
        grid-template-columns:40px minmax(0,1fr);
        padding:10px 8px;
        min-height:72px;
        row-gap:4px
    }
    :is(.gulf-board-layout,.gulf-childboards) .info .subject {
        font-size:16px
    }
    :is(.gulf-board-layout,.gulf-childboards) .board_description {
        font-size:12px
    }
    :is(.gulf-board-layout,.gulf-childboards) .board_stats {
        grid-column:2;
        justify-content:flex-start;
        gap:14px;
        font-size:11px
    }
    .gulf-stat {
        display:flex;
        gap:4px;
        align-items:center
    }
    .gulf-stat span,.gulf-stat strong {
        font-size:11px
    }
    :is(.gulf-board-layout,.gulf-childboards) .lastpost {
        grid-column:2;
        font-size:11px;
        gap:5px
    }
    .gulf-last-avatar {
        display:none
    }
    .gulf-last-text {
        display:flex;
        gap:6px;
        width:100%
    }
    .gulf-last-text>a {
        max-width:55%
    }
    .gulf-last-text>div {
        flex:1
    }
    :is(.gulf-board-layout,.gulf-childboards) .lastpost:has(.gulf-empty) {
        display:none
    }
    .gulf-sidebar {
        grid-template-columns:1fr 1fr;
        gap:8px
    }
    .gulf-sidebar h2 {
        font-size:15px
    }
    .gulf-sidebar section {
        padding:8px
    }
    .gulf-sidebar section:first-child {
        grid-column:1/-1
    }
    .gulf-online-total {
        margin:0 -8px -8px
    }
    .gulf-share {
        gap:16px
    }
    :is(.gulf-board-layout,.gulf-childboards) .catbg {
        font-size:15px
    }
    :is(.gulf-board-layout,.gulf-childboards) .cat_bar .desc {
        font-size:12px
    }
    #forumposts .poster {
        float:none;
        width:100%;
        min-height:0;
        display:block;
        padding:8px
    }
    #forumposts .poster .avatar {
        width:42px;
        height:42px
    }
    #forumposts .poster ul {
        display:flex;
        gap:10px;
        align-items:center;
        flex-wrap:wrap
    }
    #forumposts .poster li {
        margin:0
    }
    #forumposts .postarea {
        margin:0;
        padding:10px
    }
    .poster li.postcount,.poster li.registered {
        display:none
    }
    #footer .gulf-footer-links {
        align-items:flex-start;
        gap:10px;
        flex-wrap:wrap
    }
    #footer .gulf-footer-links a {
        margin:0 12px 0 0
    }
    .popup_window {
        max-width:calc(100vw - 20px);
        margin:20px auto
    }
    .login dl,.register_form dl {
        display:block
    }
    .login dt,.login dd,.register_form dt,.register_form dd {
        float:none;
        width:100%;
        text-align:left;
        padding:6px 8px
    }
    #top_info .top_menu {
        position:fixed;
        top:auto;
        left:8px;
        right:8px;
        width:auto;
        max-width:calc(100vw - 16px)
    }
}
/* Explicitly override SMF's more specific global framing rules. */
html body {
    background:#080808 url('../images/background.webp') repeat;
    font-family:Arial,Helvetica,sans-serif;
    font-size:14px
}
#top_section.gulf-header {
    background:transparent;
    border:0;
    box-shadow:none
}
#wrapper.gulf-width,#footer.gulf-width {
    max-width:1500px;
    width:calc(100% - 40px);
    margin-left:auto;
    margin-right:auto
}
#top_info {
    padding:0;
    line-height:1.4
}
#top_info>li.button_login>a,#top_info>li.button_signup>a {
    background:#090909;
    color:#ffa21a;
    border:0;
    box-shadow:none
}
#top_info>li.button_login>a .main_icons,#top_info>li.button_signup>a .main_icons {
    display:none
}
#top_info>li>a .main_icons {
    width:16px;
    height:16px;
    display:inline-block
}
.gulf-board-icon,.board_icon a.gulf-board-icon {
    background:none;
    width:36px;
    height:36px
}
:is(.gulf-board-layout,.gulf-childboards) .up_contain {
    border-bottom:0;
    min-height:62px;
    padding-top:10px;
    padding-bottom:10px
}
#display_head {
    background:none;
    padding:0;
    color:white;
    margin-bottom:5px
}
#display_head h2 {
    margin:0;
    font-size:18px;
    font-weight:bold;
    padding:12px 14px;
    background:#000b
}
.gulf-childboards {
    display:block;
    border:0;
    border-radius:3px;
    overflow:hidden;
    margin-bottom:10px
}
.gulf-childboards>.cat_bar {
    display:none
}
@media(max-width:1200px) {
    #wrapper.gulf-width,#footer.gulf-width {
        width:calc(100% - 24px)
    }
}
@media(max-width:700px) {
    #wrapper.gulf-width,#footer.gulf-width {
        width:calc(100% - 16px)
    }
    .gulf-childboards .up_contain {
        grid-template-columns:40px minmax(0,1fr)
    }
}
/* Shared content refinements after comparison with the screenshots. */
.navigate_section,.navigate_section a,.catbg,.titlebg,#top_info>li>a,#footer {
    text-shadow:none
}
#display_head p {
    color:white;
    text-shadow:none;
    font-size:13px
}
#forumposts .keyinfo .messageicon {
    display:none
}
#forumposts .keyinfo .subject_title {
    background:none;
    color:#111;
    border:0;
    padding:0;
    font-size:12px
}
#forumposts .keyinfo .smalltext {
    color:#333
}
#forumposts .poster img.avatar {
    max-width:110px!important;
    max-height:110px!important;
    width:110px;
    height:110px;
    object-fit:cover
}
#forumposts .post_wrapper {
    background:linear-gradient(to right,#f5f5f5 170px,#fff 170px)
}
#forumposts .post {
    border:0
}
#top_info #profile_menu,#top_info #pm_menu,#top_info #alerts_menu {
    left:auto;
    right:0;
    min-width:350px;
    max-width:calc(100vw - 20px)
}
#top_info .top_menu .profile_user_links {
    background:#f5f5f5
}
#top_info .top_menu .catbg,#top_info .top_menu .titlebg {
    background:#ffd4b5;
    color:#111
}
.login {
    width:800px;
    max-width:100%;
    border-radius:3px;
    overflow:hidden
}
.login .roundframe {
    margin:0;
    padding:0;
    border-radius:0
}
.login form.login {
    width:100%;
    background:linear-gradient(to right,#f5f5f5 33%,#fff 33%);
    padding:18px 0 0
}
.login .cat_bar {
    border:0;
    border-radius:0;
    padding:6px 10px
}
.login .catbg {
    color:#111;
    font-size:18px
}
.login .catbg .main_icons {
    display:none
}
.login dl {
    margin:0;
    display:grid;
    grid-template-columns:33% 67%;
    align-items:center;
    padding:0 10px 16px 0
}
.login dt {
    width:auto;
    float:none;
    text-align:right;
    padding:10px;
    font-weight:normal;
    margin:0
}
.login dd {
    width:auto;
    float:none;
    margin:0;
    padding:8px 10px
}
.login input[type=text],.login input[type=password] {
    width:100%
}
.login form>p {
    margin:0;
    padding:8px 10px 8px 34%;
    text-align:left;
    background:#ffd4b5
}
.login form>p.smalltext {
    background:#fff;
    text-align:left
}
.login .roundframe>p {
    padding:18px;
    margin:0;
    text-align:center
}
.popup_window:has(.login) {
    width:800px;
    max-width:calc(100vw - 20px);
    padding:0;
    top:35px
}
.popup_window .login {
    width:100%;
    margin:0
}
.popup_window .login>.cat_bar {
    display:none
}
.popup_window .popup_heading {
    margin:0;
    border-radius:3px 3px 0 0
}
@media(max-width:700px) {
    .login form.login {
        background:#fff
    }
    .login dl {
        display:block;
        padding:0 10px 10px
    }
    .login dt,.login dd {
        text-align:left;
        padding:5px;
        width:100%
    }
    .login form>p {
        padding:10px 15px
    }
    .login {
        width:100%
    }
    #forumposts .poster img.avatar {
        width:42px;
        height:42px
    }
    .gulf-childboards .up_contain {
        grid-template-columns:40px minmax(0,1fr)
    }
    #forumposts .post_wrapper {
        background:white
    }
    #top_info #profile_menu,#top_info #pm_menu,#top_info #alerts_menu {
        min-width:0;
        width:calc(100vw - 16px);
        left:8px;
        right:8px
    }
}
/* Forms and overlays use SMF tokens, validation and verification unchanged. */
div.cat_bar {
    background:#ffd4b5;
    border:0;
    box-shadow:none;
    text-shadow:none
}
h3.catbg,h3.catbg a,h3.catbg a:hover {
    color:#111;
    font-family:inherit;
    text-shadow:none
}
.popup_container:has(#frmLogin) {
    z-index:1000;
    background:#0009;
    backdrop-filter:blur(4px)
}
.popup_window:has(#frmLogin) {
    background:#fff;
    opacity:1;
    border:0
}
.popup_window:has(#frmLogin) .popup_content {
    padding:0;
    border:0;
    box-shadow:none;
    max-height:calc(100vh - 100px);
    border-radius:0
}
.popup_heading .main_icons.login {
    display:none
}
form#frmLogin {
    background:linear-gradient(to right,#f5f5f5 33%,#fff 33%);
    padding:18px 0 0;
    margin:0
}
form#frmLogin>p {
    padding:8px 10px 8px 34%;
    margin:0;
    text-align:left;
    background:#ffd4b5
}
form#frmLogin>p.smalltext {
    background:#fff
}
.popup_content>p {
    padding:20px;
    text-align:center;
    background:#fff;
    margin:0
}
#registration>.cat_bar {
    background:#000b;
    border-left:3px solid #ffa200;
    margin-bottom:0
}
#registration>.cat_bar h3 {
    color:white;
    padding:12px 14px;
    font-size:18px
}
#registration .roundframe {
    margin:0;
    padding:16px 0;
    background:linear-gradient(to right,#f5f5f5 33%,#fff 33%);
    border-radius:0
}
#registration .register_form {
    display:grid;
    grid-template-columns:33% 67%;
    margin:0;
    background:none;
    align-items:center
}
#registration .register_form dt {
    width:auto;
    float:none;
    text-align:right;
    padding:12px 10px;
    background:none;
    margin:0;
    min-height:50px
}
#registration .register_form dt strong {
    font-weight:normal
}
#registration .register_form dd {
    width:auto;
    float:none;
    padding:10px;
    margin:0;
    min-height:50px
}
#registration .register_form input[type=text],#registration .register_form input[type=email],#registration .register_form input[type=password] {
    width:calc(100% - 28px)
}
#registration #confirm_buttons {
    background:#ffd4b5;
    padding:8px 10px 8px 34%;
    text-align:left;
    border-radius:0 0 3px 3px
}
#registration .title_bar {
    border-radius:0;
    background:#ffd4b5
}
#registration .title_bar h3 {
    color:#111;
    font-weight:normal;
    text-shadow:none
}
#registration .centertext {
    text-align:left;
    margin-left:34%
}
#registration fieldset {
    border:0
}
.button,input.button,.quickbuttons>li>a {
    text-transform:none;
    font-size:13px;
    min-height:28px;
    line-height:20px
}
@media(max-width:700px) {
    form#frmLogin,#registration .roundframe {
        background:white
    }
    #registration .register_form {
        display:block
    }
    #registration .register_form dt {
        text-align:left;
        min-height:0;
        padding:6px 10px
    }
    #registration .register_form dd {
        padding:0 10px 10px;
        min-height:0
    }
    #registration .centertext {
        margin:0 10px
    }
    #registration #confirm_buttons,form#frmLogin>p {
        padding:10px
    }
    .popup_window:has(#frmLogin) {
        top:15px
    }
}
/* Native profile popup with the reference account-panel proportions. */
#top_info #profile_menu {
    padding:0;
    width:350px;
    min-width:350px;
    border:0
}
#profile_menu .gulf-account-heading {
    padding:7px 15px;
    background:#ffd4b5;
    border-bottom:2px solid #ff7900;
    font-size:14px
}
#profile_menu .gulf-account-summary {
    display:flex;
    gap:16px;
    min-height:108px;
    background:#f5f5f5;
    padding:12px 20px
}
#profile_menu .profile_user_avatar {
    float:none;
    flex:0 0 84px;
    max-width:none;
    margin:0
}
#profile_menu .profile_user_avatar img.avatar {
    width:84px!important;
    height:84px!important;
    max-width:84px!important;
    max-height:84px!important;
    border-radius:8px;
    object-fit:cover
}
#profile_menu .profile_user_info {
    float:none;
    margin:0;
    padding:0
}
#profile_menu .profile_username {
    font-size:18px;
    font-weight:bold
}
#profile_menu .profile_user_links {
    background:#fff;
    padding:10px 15px;
    clear:both
}
#profile_menu .profile_user_links ol {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 12px
}
#profile_menu .profile_user_links li {
    float:none;
    width:auto;
    line-height:32px;
    font-size:13px;
    padding:0
}
#profile_menu .profile_user_links .main_icons {
    display:none
}
.gulf-account #pm_menu_top .main_icons,.gulf-account #alerts_menu_top .main_icons {
    filter:none;
    background:none
}
.gulf-account #pm_menu_top .main_icons:before {
    background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%23ffa21a"%3E%3Cpath d="M2 5h16v11H2zM2 5l8 6 8-6"/%3E%3C/svg%3E') center/18px no-repeat
}
.gulf-account #alerts_menu_top .main_icons:before {
    background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%23ffa21a"%3E%3Cpath d="M4 15h12l-2-4V8c0-6-8-6-8 0v3zM8 17h4M10 2V1"/%3E%3C/svg%3E') center/18px no-repeat
}
@media(max-width:560px) {
    a[class^="mobile_generic_menu_"] {
        background:#fff;
        color:#111;
        border-radius:3px;
        padding:6px 10px
    }
    #genericmenu>.popup_container,#adm_submenus>.popup_container {
        z-index:1000;
        background:#0009
    }
    #genericmenu .popup_window,#adm_submenus .popup_window {
        background:white;
        color:#111;
        max-width:calc(100vw - 20px)
    }
    #top_info #profile_menu {
        min-width:0;
        width:calc(100vw - 16px)
    }
}
#top_info #profile_menu .profile_user_links {
    background:#fff;
    padding:10px 15px;
    margin:0
}
#top_info #profile_menu .profile_user_links ol {
    margin:0;
    padding:0;
    width:100%
}
.navigate_section ul li {
    text-shadow:none
}
.gulf-sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
.gulf-chat-log {
    max-height:260px;
    overflow-y:auto;
    padding-right:5px
}
.gulf-shout {
    padding:9px 0;
    border-bottom:1px solid #e5e5e5
}
.gulf-shout:last-child {
    border-bottom:0
}
.gulf-shout>div {
    display:flex;
    gap:8px;
    align-items:center
}
.gulf-shout a {
    font-weight:700
}
.gulf-shout time {
    color:#777;
    font-size:11px
}
.gulf-shout-delete {
    margin-left:auto;
    color:#9a261f!important;
    font-size:18px;
    line-height:1
}
.gulf-shout p {
    margin:4px 0 0;
    overflow-wrap:anywhere
}
.gulf-chat-form {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
    margin-top:10px
}
.gulf-chat-form input {
    min-width:0;
    border:1px solid #c8c8c8;
    border-radius:3px;
    padding:8px 9px
}
.gulf-chat-login,.gulf-chat-empty {
    color:#666;
    margin:8px 0 0
}
.gulf-chat-toolbar {
    margin:0 0 8px
}
.gulf-chat-toolbar-main {
    display:flex;
    align-items:center;
    gap:4px
}
.gulf-chat-tool {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    padding:0;
    border:1px solid transparent;
    border-radius:4px;
    background:transparent;
    color:#5a616b;
    cursor:pointer;
    line-height:1
}
.gulf-chat-tool svg {
    display:block
}
.gulf-chat-tool:hover,
.gulf-chat-tool:focus-visible,
.gulf-chat-tool[aria-expanded=true] {
    background:#eef2f5;
    color:#175c91;
    border-color:#d7dce1
}
.gulf-chat-format-row {
    display:flex;
    align-items:center;
    gap:4px;
    margin-top:6px
}
.gulf-chat-format-row[hidden],
.gulf-chat-smileys[hidden] {
    display:none
}
.gulf-chat-format-row button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:26px;
    height:22px;
    padding:0 6px;
    border:1px solid #d7dce1;
    border-radius:3px;
    background:#fff;
    color:#30363d;
    font-size:12px;
    cursor:pointer;
    line-height:1
}
.gulf-chat-format-row button:hover {
    background:#eef2f5;
    border-color:#bcc3cb
}
.gulf-chat-smileys {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(26px,1fr));
    gap:2px;
    margin-top:6px;
    padding:6px;
    border:1px solid #d7dce1;
    border-radius:4px;
    background:#fff;
    max-height:180px;
    overflow-y:auto
}
.gulf-chat-smiley {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px;
    border:1px solid transparent;
    border-radius:3px;
    background:transparent;
    cursor:pointer
}
.gulf-chat-smiley:hover {
    background:#eef2f5;
    border-color:#d7dce1
}
.gulf-chat-smiley img {
    width:18px;
    height:18px;
    object-fit:contain
}
.gulf-chat-history {
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(10,18,26,.55)
}
.gulf-chat-history[hidden] {
    display:none
}
.gulf-chat-history-box {
    width:100%;
    max-width:480px;
    max-height:80vh;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #d7dce1;
    border-radius:6px;
    box-shadow:0 18px 48px rgba(0,0,0,.25);
    overflow:hidden
}
.gulf-chat-history-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 14px;
    border-bottom:1px solid #d7dce1;
    background:#f0f2f4
}
.gulf-chat-history-head strong {
    font-size:14px;
    color:#202328
}
.gulf-chat-history-close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    padding:0;
    border:0;
    border-radius:3px;
    background:transparent;
    color:#5a616b;
    font-size:18px;
    line-height:1;
    cursor:pointer
}
.gulf-chat-history-close:hover {
    background:#e2e7eb;
    color:#202328
}
.gulf-chat-history-log {
    flex:1 1 auto;
    overflow-y:auto;
    padding:6px 14px
}
.gulf-chat-history-pages {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    padding:8px 14px;
    border-top:1px solid #d7dce1;
    font-size:12px
}
.gulf-chat-history-pages a,
.gulf-chat-history-pages span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:24px;
    min-height:24px;
    padding:1px 6px;
    border:1px solid #d7dce1;
    border-radius:3px;
    background:#fff;
    color:#30363d;
    text-decoration:none
}
.gulf-chat-history-pages a:hover {
    background:#eef2f5
}
.gulf-chat-history-pages .gulf-chat-page-current {
    background:#fff0d8;
    border-color:#e4b569;
    color:#723f00;
    font-weight:700
}
.gulf-change {
    padding:7px 0;
    border-bottom:1px solid #e5e5e5
}
.gulf-change:last-child {
    border-bottom:0
}
.gulf-change a,.gulf-change small {
    display:block
}
.gulf-change small {
    color:#777;
    margin-top:2px
}
.poster h4 .on,.poster h4 .off {
    display:inline-block;
    width:9px;
    height:9px;
    margin:0 4px 1px 0;
    border-radius:50%;
    font-size:0;
    vertical-align:middle
}
.poster h4 .on {
    background:#30a94b;
    box-shadow:0 0 0 2px #d9f3df
}
.poster h4 .off {
    background:#9a9a9a;
    box-shadow:0 0 0 2px #e9e9e9
}
