/* Cool-Teens v1.1: MyBB 1.8 responsive layout overlay */
:root{--ct-green:#176b45;--ct-dark:#104d35;--ct-light:#eaf6ef;--ct-ink:#172b23;--ct-border:#dce8e1}
html,body{margin:0!important;min-width:0!important;background:#f5f8f6!important;color:var(--ct-ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#container{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
#content{box-sizing:border-box!important;width:min(92%,1400px)!important;max-width:1400px!important;margin:24px auto!important;padding:0!important;background:transparent!important;overflow:visible!important}
#header{background:white!important;border-bottom:1px solid var(--ct-border)!important;box-shadow:0 2px 10px rgba(0,0,0,.04)}
#header .wrapper{width:min(92%,1400px)!important;margin:auto!important;padding:16px 0!important;box-sizing:border-box}
#logo{padding:0!important;min-height:58px;display:flex;align-items:center}
#logo a{font-weight:800;font-size:28px;color:var(--ct-green);text-decoration:none}
#logo img{max-width:260px;max-height:70px;width:auto;height:auto}
#panel{background:var(--ct-dark)!important;color:#fff!important;border-radius:12px!important;padding:12px 18px!important;box-sizing:border-box}
#panel a{color:#fff!important}
#upper,#lower{background:transparent!important;border:0!important}
#search{float:none!important}
#menu{margin:10px 0!important;padding:0!important;background:var(--ct-green)!important;border-radius:12px!important;overflow:hidden}
#menu ul{display:flex;flex-wrap:wrap;gap:2px;margin:0!important;padding:8px!important;list-style:none}
#menu li{float:none!important;display:block!important;margin:0!important}
#menu a{display:block!important;border:0!important;border-radius:8px!important;padding:10px 14px!important;color:white!important;background:transparent!important;font-weight:600}
#menu a:hover,#menu a:focus{background:rgba(255,255,255,.16)!important}
.navigation{background:white;border:1px solid var(--ct-border);border-radius:10px;padding:12px 16px;margin:0 0 20px!important}
.tborder{border:1px solid var(--ct-border)!important;border-radius:12px!important;overflow:hidden;box-shadow:0 4px 16px rgba(16,77,53,.045);background:white!important;margin-bottom:18px}
.thead{background:var(--ct-green)!important;color:#fff!important;padding:13px 15px!important;font-size:15px!important;font-weight:700}
.thead a,.thead strong{color:#fff!important}
.tcat{background:var(--ct-light)!important;color:var(--ct-dark)!important;padding:10px 12px!important}
.tcat a{color:var(--ct-dark)!important}
.trow1,.trow2{background:#fff!important;border-color:var(--ct-border)!important;padding:12px!important}
.trow2{background:#f9fcfa!important}
.trow_sep{background:var(--ct-light)!important;color:var(--ct-dark)!important}
.smalltext{font-size:12px!important;line-height:1.5}
a{color:#126b49}a:hover{color:#0c4a33}
.button,input[type=submit],button{background:var(--ct-green)!important;color:white!important;border:0!important;border-radius:8px!important;padding:9px 14px!important;cursor:pointer}
input[type=text],input[type=password],input[type=email],select,textarea{max-width:100%;box-sizing:border-box;border:1px solid #cbdcd1;border-radius:7px;padding:8px}
#footer{width:min(92%,1400px)!important;margin:28px auto!important;border:0!important;background:transparent!important;color:#557265}
#footer .upper,#footer .lower{background:transparent!important}
/* Hide original MyBB image logo only when a text brand is explicitly enabled in header template */
.ct-brand{font-size:clamp(24px,3vw,34px);font-weight:850;color:var(--ct-green)!important;letter-spacing:-.04em;text-decoration:none!important}
.ct-brand span{color:#213b2f}
@media(max-width:760px){#content,#header .wrapper,#footer{width:94%!important}#header .wrapper{padding:12px 0!important}#panel{padding:10px!important}#menu ul{gap:0}#menu a{padding:9px 10px!important;font-size:13px}.tborder{display:block;max-width:100%;overflow-x:auto!important}.tborder table{max-width:100%}.trow1,.trow2{padding:8px!important}#search{display:block!important;width:100%;margin:8px 0!important}#search input{max-width:70%}#logo img{max-width:180px}}

		

/* Cool-Teens v1.2 — add AFTER previous coolteens.css */
:root { --ct-green:#176b45; --ct-dark:#104d35; --ct-ink:#172b23; --ct-border:#dce8e1; }
body {font-size:15px!important}
#header.ct-header {background:#fff!important;box-shadow:0 2px 14px rgba(18,60,39,.07)!important;border-bottom:1px solid var(--ct-border)!important}
#header.ct-header #logo {min-height:0!important;padding:0!important}
#header.ct-header #logo .wrapper.ct-header-inner {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;max-width:1400px!important;width:92%!important;margin:0 auto!important;padding:18px 0!important}
#header .ct-brand {display:flex!important;flex-direction:column!important;flex-shrink:0!important;line-height:1.05!important;font-weight:850!important;font-size:31px!important;letter-spacing:-.045em!important;color:var(--ct-green)!important;text-decoration:none!important}
#header .ct-brand span {color:#243b30!important;display:inline!important}
#header .ct-brand small {font-size:11px!important;letter-spacing:.14em!important;text-transform:uppercase!important;font-weight:700!important;color:#688174!important;margin-top:6px!important}
#header .ct-primary-nav {flex:1;min-width:0}
#header .ct-primary-nav ul.top_links {display:flex!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:wrap!important;float:none!important;gap:5px!important;margin:0!important;padding:0!important;list-style:none!important}
#header .ct-primary-nav ul.top_links li {float:none!important;margin:0!important;padding:0!important}
#header .ct-primary-nav ul.top_links a {display:block!important;background:transparent!important;border-radius:9px!important;padding:10px 12px!important;color:var(--ct-dark)!important;font-size:14px!important;font-weight:650!important;text-decoration:none!important}
#header .ct-primary-nav ul.top_links a:hover,#header .ct-primary-nav ul.top_links a:focus {background:#eaf6ef!important;color:var(--ct-dark)!important}
#header .ct-account-panel {background:var(--ct-dark)!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;min-height:0!important;box-shadow:none!important;color:white!important}
#header .ct-account-panel .upper,#header .ct-account-panel .lower {background:transparent!important;border:0!important;min-height:0!important;line-height:1.5!important}
#header .ct-account-panel .wrapper {max-width:1400px!important;width:92%!important;margin:0 auto!important;padding:7px 0!important;box-sizing:border-box!important;min-height:0!important}
#header .ct-account-panel a,#header .ct-account-panel .smalltext {color:#fff!important}
#header .ct-account-panel input[type="text"] {max-width:220px!important;padding:7px!important}
#header .ct-account-panel input[type="submit"] {padding:7px 12px!important;background:#248958!important}
#header .ct-account-panel .upper ul,#header .ct-account-panel .lower ul {margin:0!important;padding:0!important}
#header .ct-account-panel .lower {border-top:1px solid rgba(255,255,255,.12)!important}
#header .ct-account-panel .lower a {color:#fff!important}
#content>.wrapper {max-width:1400px!important;width:100%!important;margin:0 auto!important;box-sizing:border-box!important}
.trow1,.trow2 {font-size:14px!important}
.smalltext {font-size:12px!important}
@media(max-width:800px) {
 #header.ct-header #logo .wrapper.ct-header-inner {width:94%!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important}
 #header .ct-primary-nav {width:100%!important}
 #header .ct-primary-nav ul.top_links {justify-content:flex-start!important;gap:2px!important}
 #header .ct-primary-nav ul.top_links a {padding:8px 10px!important;font-size:13px!important}
 #header .ct-account-panel .wrapper {width:94%!important}
 #header .ct-account-panel input[type="text"] {max-width:140px!important}
}
		

/* ==========================================
   COOL-TEENS MYBB THEME v1.3
   Modern Discussion Posts
   ========================================== */

:root {
    --ct-green: #176b45;
    --ct-dark: #104d35;
    --ct-light: #eaf6ef;
    --ct-border: #dce8e1;
    --ct-text: #243b30;
}

/* Main post card */

.ct-post {
    background: #ffffff !important;
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(16,77,53,.05);
    display: flex;
    flex-direction: column;
}

/* Author information */

.ct-post-author {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 18px 22px !important;
    background: #f5faf7 !important;
    border-bottom: 1px solid var(--ct-border);
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
}

.ct-author-avatar {
    flex-shrink: 0;
}

.ct-author-avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.ct-author-info {
    flex: 1;
    min-width: 0;
}

.ct-author-name {
    font-size: 17px;
    font-weight: 700;
}

.ct-author-name a {
    color: var(--ct-green) !important;
    text-decoration: none;
}

.ct-author-title {
    color: #667d70;
    margin-top: 3px;
}

.ct-author-badges {
    margin-top: 5px;
}

.ct-author-stats {
    font-size: 12px;
    color: #667d70;
    text-align: right;
    margin-left: auto;
}

/* Post content */

.ct-post-content {
    padding: 22px 26px !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    min-height: 0 !important;
    box-sizing: border-box;
}

.ct-post-head {
    border-bottom: 1px solid #edf1ee;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: #718477;
    font-size: 13px;
}

.ct-post-body {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--ct-text);
    min-height: 80px;
    overflow-wrap: anywhere;
}

.ct-post-body img {
    max-width: 100%;
    height: auto;
}

.ct-post-body blockquote {
    background: #f4f9f6;
    border-left: 4px solid var(--ct-green);
    padding: 14px 18px;
    border-radius: 6px;
}

/* Footer information */

.ct-post-meta {
    margin-top: 20px;
    color: #819288;
    font-size: 12px;
}

/* Action buttons */

.ct-post-controls {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px !important;
    background: #f8fbf9 !important;
    border-top: 1px solid var(--ct-border);
    min-height: 0 !important;
}

.ct-post-controls .float_left,
.ct-post-controls .float_right {
    float: none !important;
}

.ct-post-controls .postbit_buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ct-post-controls .postbit_buttons a {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #d9e7de !important;
    background-color: #ffffff !important;
    border-radius: 7px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
    font-weight: 600;
    color: var(--ct-dark) !important;
    text-decoration: none !important;
}

.ct-post-controls .postbit_buttons a:hover {
    background-color: var(--ct-light) !important;
    border-color: #a8cbb5 !important;
}

/* Mobile adjustments */

@media (max-width: 700px) {

    .ct-post-author {
        flex-wrap: wrap;
        padding: 14px !important;
        gap: 12px;
    }

    .ct-author-avatar img {
        width: 48px;
        height: 48px;
    }

    .ct-author-stats {
        width: 100%;
        margin-left: 0;
        text-align: left;
        border-top: 1px solid var(--ct-border);
        padding-top: 10px;
    }

    .ct-post-content {
        padding: 16px !important;
    }

    .ct-post-body {
        font-size: 15px !important;
    }

    .ct-post-controls {
        padding: 12px !important;
    }

    .ct-post-controls .postbit_buttons {
        width: 100%;
    }
}
		

/* =====================================
   COOL-TEENS MYBB THEME v1.4
   Modern Forum Listings
   ===================================== */

:root {
    --ct-green: #176b45;
    --ct-dark: #104d35;
    --ct-light: #eaf6ef;
    --ct-border: #dce8e1;
}

/* Forum row */

.ct-forum-row td {
    padding: 20px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--ct-border) !important;
    background: #ffffff !important;
    transition: background .2s ease;
}

.ct-forum-row:hover td {
    background: #f7fbf8 !important;
}

/* Forum unread/read status */

.ct-forum-status-cell {
    width: 50px;
    text-align: center;
}

.ct-forum-status-cell .forum_status {
    display: inline-block;
    margin: 0 auto;
}

/* Forum information */

.ct-forum-info-cell {
    min-width: 200px;
}

.ct-forum-title {
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    margin-bottom: 5px;
}

.ct-forum-title a {
    color: var(--ct-dark) !important;
    text-decoration: none !important;
}

.ct-forum-title a:hover {
    color: var(--ct-green) !important;
    text-decoration: underline !important;
}

.ct-forum-description {
    font-size: 14px;
    color: #667d70;
    line-height: 1.6;
}

.ct-forum-subforums {
    margin-top: 8px;
    color: #74877a;
}

.ct-forum-subforums:empty {
    display: none;
}

/* Thread and post counts */

.ct-forum-count {
    width: 85px;
    text-align: center;
    white-space: nowrap;
}

.ct-forum-number {
    display: block;
    font-size: 16px;
    font-weight: 750;
    color: var(--ct-dark);
}

.ct-forum-count-label {
    display: block;
    font-size: 11px;
    color: #829287;
    margin-top: 3px;
}

/* Last post */

.ct-forum-lastpost {
    width: 210px;
    text-align: right;
}

.ct-forum-lastpost-inner {
    font-size: 13px;
    line-height: 1.5;
    color: #728478;
    overflow-wrap: anywhere;
}

.ct-forum-lastpost-inner a {
    color: var(--ct-green);
    font-weight: 600;
}

/* Keep forum tables working on narrow screens */

@media (max-width: 760px) {

    .ct-forum-row td {
        padding: 12px 8px !important;
    }

    .ct-forum-status-cell {
        width: 30px;
    }

    .ct-forum-info-cell {
        min-width: 160px;
    }

    .ct-forum-title {
        font-size: 15px;
    }

    .ct-forum-description {
        font-size: 12px;
    }

    .ct-forum-count {
        width: 55px;
    }

    .ct-forum-number {
        font-size: 13px;
    }

    .ct-forum-count-label {
        font-size: 10px;
    }

    .ct-forum-lastpost {
        min-width: 125px;
        width: 125px;
    }

    .ct-forum-lastpost-inner {
        font-size: 11px;
    }
}
		

/* =========================================
   COOL-TEENS MYBB v1.5
   Modern Forum Category Headers
   ========================================= */

:root {
    --ct-green: #176b45;
    --ct-dark: #104d35;
    --ct-light: #eaf6ef;
    --ct-border: #dce8e1;
}

/* Category container */

.ct-category {
    width: 100%;
    border: 1px solid var(--ct-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(16,77,53,.05);
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Main category header */

.ct-category-header {
    background: var(--ct-green) !important;
    padding: 18px 22px !important;
    border: 0 !important;
}

.ct-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ct-category-info {
    flex: 1;
    min-width: 0;
}

.ct-category-title {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
}

.ct-category-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.ct-category-title a:hover {
    text-decoration: underline !important;
}

.ct-category-description {
    color: #d9f0e2;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 5px;
}

.ct-category-description:empty {
    display: none;
}

/* Expand/collapse control */

.ct-category-toggle {
    float: none !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}

.ct-category-toggle:hover {
    background: rgba(255,255,255,.22);
}

.ct-category-toggle img {
    cursor: pointer;
    max-width: 16px;
    max-height: 16px;
}

/* Column headings */

.ct-category-columns .tcat {
    background: #eaf6ef !important;
    color: var(--ct-dark) !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid #cfe3d6 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-weight: 700;
}

/* Forum rows */

.ct-category .ct-forum-row td {
    border-bottom: 1px solid #edf2ee !important;
}

.ct-category .ct-forum-row:last-child td {
    border-bottom: none !important;
}

/* Mobile adjustments */

@media (max-width: 760px) {

    .ct-category-header {
        padding: 14px !important;
    }

    .ct-category-title {
        font-size: 17px;
    }

    .ct-category-description {
        font-size: 12px;
    }

    .ct-category-columns .tcat {
        padding: 9px 8px !important;
        font-size: 10px !important;
        letter-spacing: 0;
    }

    .ct-category-toggle {
        width: 26px;
        height: 26px;
    }
}
		


/* ==========================================
   COOL-TEENS MYBB THEME v1.6
   Community Statistics
   ========================================== */

:root {
    --ct-green: #176b45;
    --ct-dark: #104d35;
    --ct-light: #eaf6ef;
    --ct-border: #dce8e1;
}

/* Main community statistics container */

.ct-community-stats {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid var(--ct-border) !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16,77,53,.05);
    margin-bottom: 24px !important;
}

/* Header */

.ct-stats-header {
    background: var(--ct-green) !important;
    border: 0 !important;
    padding: 18px 22px !important;
}

.ct-stats-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ct-stats-heading-info {
    flex: 1;
}

.ct-stats-title {
    display: block;
    font-size: 19px;
    font-weight: 750;
    color: #ffffff;
    line-height: 1.3;
}

.ct-stats-subtitle {
    color: #d9f0e2;
    font-size: 13px;
    margin-top: 5px;
}

/* Collapse control */

.ct-stats-toggle {
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
}

.ct-stats-toggle:hover {
    background: rgba(255,255,255,.22);
}

.ct-stats-toggle img {
    cursor: pointer;
    max-width: 16px;
    max-height: 16px;
}

/* Internal section headings */

.ct-community-stats .tcat {
    background: var(--ct-light) !important;
    color: var(--ct-dark) !important;
    padding: 13px 18px !important;
    font-size: 14px !important;
    font-weight: 700;
    border-bottom: 1px solid #d5e7dc !important;
}

.ct-community-stats .tcat a {
    color: var(--ct-dark) !important;
}

/* Statistics content */

.ct-community-stats .trow1,
.ct-community-stats .trow2 {
    background: #ffffff !important;
    padding: 18px 20px !important;
    font-size: 14px !important;
    line-height: 1.8;
    color: #344b3d;
    border-bottom: 1px solid #edf2ee !important;
}

.ct-community-stats .smalltext {
    font-size: 13px !important;
    line-height: 1.7;
}

.ct-community-stats a {
    color: var(--ct-green);
    font-weight: 600;
}

/* Footer */

.ct-stats-footer {
    background: #f7faf8 !important;
    padding: 12px 20px !important;
    text-align: right;
    border-top: 1px solid var(--ct-border);
}

.ct-stats-footer a {
    color: var(--ct-dark) !important;
    text-decoration: none;
    margin-left: 12px;
}

.ct-stats-footer a:hover {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 760px) {

    .ct-stats-header {
        padding: 14px !important;
    }

    .ct-stats-title {
        font-size: 17px;
    }

    .ct-stats-subtitle {
        font-size: 12px;
    }

    .ct-community-stats .tcat {
        padding: 11px 12px !important;
        font-size: 13px !important;
    }

    .ct-community-stats .trow1,
    .ct-community-stats .trow2 {
        padding: 14px 12px !important;
        font-size: 13px !important;
    }

    .ct-community-stats .smalltext {
        font-size: 12px !important;
    }

    .ct-stats-footer {
        padding: 12px !important;
    }
}

		


/* Cool-Teens v1.7 — Statistics cards */

.ct-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ct-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f5faf7;
    border: 1px solid #dce8e1;
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}

.ct-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e2f2e8;
    font-size: 23px;
}

.ct-stat-details {
    color: #243b30;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ct-stats-section-title {
    font-size: 15px !important;
}

.ct-stats-content {
    padding: 20px !important;
}

@media (max-width: 650px) {
    .ct-stats-grid {
        grid-template-columns: 1fr;
    }

    .ct-stat-card {
        padding: 14px;
    }
}

		

/* Cool-Teens v2.0 corrections: online display, typography, and mobile safety */
.ct-online-heading-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.ct-online-heading-title{display:flex;align-items:center;gap:9px;font-size:15px;color:#104d35}
.ct-online-icon{color:#20a365;font-size:17px}
.ct-online-viewall{display:inline-flex;align-items:center;border:1px solid #cde3d5;background:#fff;color:#176b45!important;border-radius:8px;padding:7px 12px;font-size:13px;text-decoration:none!important}
.ct-online-viewall:hover{background:#dff1e6}
.ct-online-content{padding:20px!important;background:#fff!important}
.ct-online-summary{color:#526c5d;font-size:14px;margin-bottom:12px}
.ct-online-members{background:#f5faf7;border:1px solid #dce8e1;border-radius:10px;padding:14px 16px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.ct-online-members a{color:#176b45!important;font-weight:700;text-decoration:none!important}
.ct-stats-details{font-size:14px!important;line-height:1.9!important;color:#344b3d}
.ct-stats-section-title{padding:14px 20px!important;font-size:15px!important}
.ct-stats-content{padding:20px!important}
/* Avoid fixed 80px minimum height for one-line posts */
.ct-post-body{min-height:0!important}
/* Keep table layout valid; allow horizontal scroll only where necessary */
@media(max-width:760px){
 .ct-online-content{padding:14px!important}
 .ct-online-members{padding:10px}
 .ct-category{display:table!important;width:100%!important;overflow:visible!important}
 .ct-category .ct-forum-info-cell{min-width:125px!important}
 .ct-category .ct-forum-lastpost{min-width:110px!important}
}


/* Cool-Teens v2.1: header branding, account toolbar, and stats cards */
#header .ct-brand {
  display:inline-flex!important;flex-direction:column!important;align-items:flex-start!important;
  flex:0 0 auto!important;width:max-content!important;max-width:100%;
  line-height:1.1!important;text-decoration:none!important;
}
#header .ct-brand .ct-brand-name {
  display:block!important;white-space:nowrap!important;color:#176b45!important;
  font-size:clamp(24px,2.5vw,32px)!important;font-weight:800!important;
  letter-spacing:-1.1px!important;
}
#header .ct-brand .ct-brand-tagline {
  display:block!important;margin-top:5px!important;font-size:10px!important;
  font-weight:700!important;letter-spacing:2px!important;color:#688174!important;
}
#header.ct-header #logo .wrapper.ct-header-inner{align-items:center!important;gap:24px!important}
#header .ct-primary-nav{min-width:0!important}
/* Allow the MyBB welcome blocks to retain their expected markup and behavior. */
#header .ct-account-panel .upper .wrapper{display:flow-root!important;padding-top:10px!important;padding-bottom:10px!important}
#header .ct-account-panel #search{display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0 18px 6px 0!important;vertical-align:middle!important}
#header .ct-account-panel #search input[type=text],
#header .ct-account-panel #search input[type=search]{width:200px!important;max-width:100%!important}
#header .ct-account-panel .upper .wrapper a{white-space:normal}
/* Make the four existing MyBB stats sentences readable as cards. */
.ct-community-stats .ct-stats-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.ct-community-stats .ct-stat-card{display:flex!important;align-items:center!important;padding:16px 18px!important;min-width:0!important;background:#f5faf7!important;border:1px solid #dce8e1!important;border-radius:10px!important}
.ct-community-stats .ct-stat-details{font-size:14px!important;font-weight:500!important;line-height:1.6!important;overflow-wrap:anywhere}
@media(max-width:760px){
  #header.ct-header #logo .wrapper.ct-header-inner{gap:12px!important}
  #header .ct-account-panel #search{display:flex!important;max-width:100%!important;margin-right:0!important}
  #header .ct-account-panel #search input[type=text],
  #header .ct-account-panel #search input[type=search]{width:min(220px,65vw)!important}
  .ct-community-stats .ct-stats-grid{grid-template-columns:1fr!important}
}


/* Cool-Teens v2.2 — progressive refinement, no changes to MyBB logic */
/* Member bar: put search and welcome controls in a single flowing row. */
#header.ct-header .ct-account-panel .upper > .wrapper {
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;
  gap:8px 18px!important;padding-top:12px!important;padding-bottom:12px!important;
}
#header.ct-header .ct-account-panel .upper > .wrapper > #search {
  display:flex!important;align-items:center!important;gap:8px!important;
  margin:0!important;float:none!important;flex:0 1 auto!important;
}
#header.ct-header .ct-account-panel #search input[type=text],
#header.ct-header .ct-account-panel #search input[type=search] {
  width:clamp(170px,20vw,290px)!important;max-width:100%!important;
  border-radius:8px!important;background:#fff!important;color:#172b23!important;
}
#header.ct-header .ct-account-panel .upper > .wrapper > .welcome,
#header.ct-header .ct-account-panel .upper > .wrapper > .welcomeblock,
#header.ct-header .ct-account-panel .upper > .wrapper > .float_right,
#header.ct-header .ct-account-panel .upper > .wrapper > .float_left {
  margin:0!important;float:none!important;
}
#header.ct-header .ct-account-panel .upper > .wrapper a:focus-visible,
#header.ct-header .ct-primary-nav a:focus-visible,
.ct-community-stats a:focus-visible {
  outline:2px solid #b7e6c9!important;outline-offset:3px!important;
}
/* Compact homepage sections while retaining native table behavior. */
#content .ct-category {margin-bottom:14px!important;}
#content .ct-community-stats {margin-bottom:16px!important;}
#content .ct-category + br {display:none;}
#content .ct-community-stats + br {display:none;}
.ct-category-header,.ct-stats-header {padding-top:15px!important;padding-bottom:15px!important;}
.ct-community-stats .ct-stat-card {padding:14px 16px!important;}
.ct-community-stats .ct-stats-grid {gap:10px!important;}
/* Prevent fixed-size navigation items and controls from overflowing. */
#header.ct-header .ct-primary-nav ul.top_links {row-gap:4px!important;}
#header.ct-header .ct-account-panel .wrapper {box-sizing:border-box!important;}
@media(max-width:760px){
  #header.ct-header .ct-account-panel .upper > .wrapper {align-items:flex-start!important;gap:8px!important;}
  #header.ct-header .ct-account-panel .upper > .wrapper > #search {width:100%!important;}
  #header.ct-header .ct-account-panel #search input[type=text],
  #header.ct-header .ct-account-panel #search input[type=search] {width:min(300px,70vw)!important;}
  #header.ct-header #logo .wrapper.ct-header-inner {gap:10px!important;}
  #header.ct-header .ct-primary-nav ul.top_links {justify-content:flex-start!important;}
  .ct-community-stats .ct-stats-grid {grid-template-columns:1fr!important;}
  .ct-community-stats .ct-stat-card {padding:13px!important;}
  .ct-community-stats .ct-online-heading-inner {flex-wrap:wrap!important;gap:8px!important;}
  .ct-category .ct-forum-lastpost {width:120px!important;min-width:120px!important;}
}
@media(max-width:480px){
  #content {width:96%!important;margin-top:14px!important;}
  #header.ct-header #logo .wrapper.ct-header-inner {width:96%!important;}
  #header.ct-header .ct-account-panel .wrapper {width:96%!important;}
  .ct-category .ct-forum-row td {padding:10px 6px!important;}
  .ct-category .ct-forum-title {font-size:14px!important;}
  .ct-category .ct-forum-description {font-size:12px!important;}
  .ct-community-stats .ct-stats-subtitle {font-size:12px!important;}
}



/* Cool-Teens v2.3.3 — single responsive header implementation */
#header .ct-search-row {display:flex; align-items:center; min-width:0;}
#header .ct-search-row #search {float:none!important; display:flex; align-items:center; gap:8px; min-width:0;}
#header .ct-mobile-menu {display:none;}
@media screen and (max-width: 800px) {
  html,body {width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:clip!important;}
  #container,#header,#header #logo,#header #panel,#content,#footer {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  #header.ct-header #logo {position:relative!important;overflow:visible!important;display:block!important;}
  #header.ct-header #logo .wrapper.ct-header-inner {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:16px!important;margin:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;}
  #header.ct-header .ct-brand {min-width:0!important;max-width:calc(100% - 104px)!important;flex:0 1 auto!important;}
  #header.ct-header .ct-brand-name {font-size:26px!important;white-space:nowrap!important;}
  #header.ct-header .ct-primary-nav {display:none!important;}
  #header.ct-header #logo details.ct-mobile-menu {display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;flex:0 0 auto!important;z-index:999!important;min-width:0!important;}
  #header.ct-header #logo details.ct-mobile-menu > summary {display:block!important;visibility:visible!important;opacity:1!important;list-style:none!important;cursor:pointer!important;background:#eaf6ef!important;border:1px solid #b9d9c7!important;border-radius:10px!important;color:#104d35!important;font-size:15px!important;font-weight:700!important;line-height:1.3!important;padding:10px 12px!important;white-space:nowrap!important;}
  #header.ct-header #logo details.ct-mobile-menu > summary::-webkit-details-marker {display:none!important;}
  #header.ct-header #logo details.ct-mobile-menu > nav.ct-mobile-links {display:none!important;position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;width:min(260px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #d1e4d8!important;border-radius:12px!important;padding:6px!important;box-shadow:0 12px 32px rgba(0,0,0,.17)!important;z-index:1000!important;}
  #header.ct-header #logo details.ct-mobile-menu[open] > nav.ct-mobile-links {display:block!important;}
  #header.ct-header #logo details.ct-mobile-menu > nav.ct-mobile-links > a {display:block!important;color:#104d35!important;text-decoration:none!important;font-size:16px!important;font-weight:600!important;padding:12px 14px!important;border-radius:7px!important;}
  #header.ct-header #logo details.ct-mobile-menu > nav.ct-mobile-links > a:focus-visible {outline:2px solid #176b45!important;}
  #header.ct-header #logo details.ct-mobile-menu > nav.ct-mobile-links > a:hover {background:#eaf6ef!important;}
  #header.ct-header #panel.ct-account-panel {border-radius:0!important;padding:0!important;margin:0!important;overflow:visible!important;}
  #header.ct-header #panel .upper,#header.ct-header #panel .lower {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;height:auto!important;}
  #header.ct-header #panel .upper > .wrapper,#header.ct-header #panel .lower > .wrapper {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:12px 16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important;float:none!important;}
  #header.ct-header #panel .upper > .wrapper > .ct-search-row {display:block!important;order:1!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;float:none!important;}
  #header.ct-header #panel .ct-search-row #search {display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;float:none!important;margin:0!important;}
  #header.ct-header #panel .ct-search-row #search input[type=text],#header.ct-header #panel .ct-search-row #search input[type=search] {width:0!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;font-size:16px!important;}
  #header.ct-header #panel .ct-search-row #search input[type=submit],#header.ct-header #panel .ct-search-row #search button {flex:0 0 auto!important;white-space:nowrap!important;}
  #header.ct-header #panel .upper > .wrapper > :not(.ct-search-row) {order:2!important;float:none!important;min-width:0!important;max-width:100%!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;}
  #header.ct-header #panel .upper > .wrapper .welcome,#header.ct-header #panel .upper > .wrapper .float_right,#header.ct-header #panel .upper > .wrapper .float_left {float:none!important;display:block!important;max-width:100%!important;white-space:normal!important;line-height:1.7!important;}
  #header.ct-header #panel .lower > .wrapper {display:block!important;line-height:1.6!important;}
  #header.ct-header #panel .lower ul,#header.ct-header #panel .upper ul {display:flex!important;flex-flow:row wrap!important;gap:8px 16px!important;max-width:100%!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;list-style:none!important;}
  #header.ct-header #panel .lower li,#header.ct-header #panel .upper li {display:list-item!important;float:none!important;margin:0!important;white-space:normal!important;}
  #header.ct-header #panel .lower a,#header.ct-header #panel .upper a {white-space:normal!important;}
  #content {width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:0 12px!important;margin:12px 0!important;}
  #content > .wrapper {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;}
  .ct-community-stats .ct-online-summary {white-space:normal!important;overflow-wrap:anywhere!important;}
  .ct-community-stats .ct-stats-grid {grid-template-columns:1fr!important;}
  .ct-category .ct-category-columns {display:none!important;}
  .ct-category tr.ct-forum-row {display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:'status info' 'status counts' 'status last'!important;gap:6px 10px!important;padding:12px!important;}
  .ct-category tr.ct-forum-row td {display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;padding:0!important;border:0!important;}
  .ct-category .ct-forum-status-cell {grid-area:status!important;}
  .ct-category .ct-forum-info-cell {grid-area:info!important;}
  .ct-category .ct-forum-count:nth-child(3),.ct-category .ct-forum-count:nth-child(4) {grid-area:counts!important;display:inline-block!important;}
  .ct-category .ct-forum-count:nth-child(4) {margin-left:100px!important;}
  .ct-category .ct-forum-lastpost {grid-area:last!important;}
  .ct-category .ct-forum-number,.ct-category .ct-forum-count-label {display:inline!important;}
  .ct-category .ct-forum-count-label {margin-left:4px!important;}
  #footer {width:100%!important;box-sizing:border-box!important;padding:12px!important;overflow-wrap:anywhere!important;}
}
@media screen and (max-width:380px) {
  #header.ct-header .ct-brand-name {font-size:23px!important;}
  #header.ct-header #logo details.ct-mobile-menu > summary {font-size:14px!important;padding:9px!important;}
}


/* Cool-Teens v2.4 — Mobile discussion readability and forum count repair */
@media screen and (max-width: 800px) {
  /* Keep author identity and role, remove lengthy per-post member metrics. */
  .ct-post .ct-post-author {
    display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
    align-items:center!important; gap:10px 12px!important; padding:14px!important;
    min-height:0!important; height:auto!important; box-sizing:border-box!important;
  }
  .ct-post .ct-author-avatar {
    flex:0 0 auto!important; margin:0!important; float:none!important;
  }
  .ct-post .ct-author-avatar img {
    width:52px!important; height:52px!important; max-width:52px!important;
    object-fit:cover!important; border-radius:50%!important;
  }
  .ct-post .ct-author-info {
    flex:1 1 130px!important; min-width:0!important; width:auto!important;
    margin:0!important; padding:0!important; float:none!important;
  }
  .ct-post .ct-author-stats,
  .ct-post .author_statistics,
  .ct-post .ct-author-badges .stars {display:none!important;}
  .ct-post .ct-author-badges {margin:3px 0 0!important;}
  .ct-post .ct-author-badges > img:not(.groupimage),
  .ct-post .ct-author-badges > br {display:none!important;}
  .ct-post .ct-post-content {
    margin:0!important; width:100%!important; min-width:0!important;
    padding:14px!important; box-sizing:border-box!important;
  }
  .ct-post .ct-post-head {
    display:flex!important; flex-wrap:wrap!important; gap:6px 10px!important;
    align-items:center!important; min-width:0!important;
    font-size:13px!important; line-height:1.5!important;
  }
  .ct-post .ct-post-body {
    margin:12px 0!important; padding:0!important; min-height:0!important;
    font-size:16px!important; line-height:1.65!important;
    overflow-wrap:anywhere!important;
  }
  .ct-post .ct-post-controls {
    display:flex!important; flex-wrap:wrap!important; gap:8px!important;
    align-items:center!important; padding:12px 14px!important;
  }
  .ct-post .ct-post-controls .float_left,
  .ct-post .ct-post-controls .float_right {
    float:none!important; display:flex!important; flex-wrap:wrap!important;
    width:auto!important; gap:6px!important; margin:0!important;
  }
  .ct-post .ct-post-controls .postbit_buttons a {
    display:inline-flex!important; align-items:center!important; min-height:38px!important;
    padding:7px 10px!important; box-sizing:border-box!important;
    white-space:normal!important;
  }
  /* Fix v2.3.3's overlapping grid area for Threads and Posts. */
  .ct-category tr.ct-forum-row {
    grid-template-columns:40px minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:'status info info' 'status threads posts' 'status last last'!important;
    gap:8px 10px!important;
  }
  .ct-category tr.ct-forum-row .ct-forum-count:nth-child(3) {
    grid-area:threads!important; display:block!important; margin:0!important; text-align:left!important;
  }
  .ct-category tr.ct-forum-row .ct-forum-count:nth-child(4) {
    grid-area:posts!important; display:block!important; margin:0!important; text-align:left!important;
  }
  .ct-category tr.ct-forum-row .ct-forum-lastpost {
    grid-area:last!important; text-align:left!important; margin:0!important;
  }
}

/* Cool-Teens v2.5: thread readability and accessible post controls */
.ct-post .ct-post-controls .postbit_buttons a {
  border-radius:9px!important; min-height:40px; display:inline-flex;
  align-items:center; justify-content:center; gap:5px;
  padding:8px 12px!important; text-decoration:none!important;
  font-weight:600; line-height:1.3; transition:background-color .15s ease;
}
.ct-post .ct-post-controls .postbit_buttons a:focus-visible,
.ct-mobile-menu summary:focus-visible {outline:3px solid #64bb91!important;outline-offset:2px!important;}
.ct-post .ct-post-body img,.ct-post .ct-post-body video {max-width:100%;height:auto;}
@media screen and (max-width:800px) {
  /* Compact the thread heading without removing core navigation. */
  #content .navigation {margin-bottom:8px!important;padding:10px 12px!important;overflow-wrap:anywhere!important;}
  #content > .wrapper > br {line-height:6px;}
  .ct-post .ct-post-author {padding:12px!important;}
  .ct-post .ct-post-content {padding:12px 14px!important;}
  .ct-post .ct-post-body {margin:10px 0!important;}
  .ct-post .ct-post-controls {padding:10px 12px!important;gap:8px!important;}
  .ct-post .ct-post-controls .postbit_buttons {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
  .ct-post .ct-post-controls .postbit_buttons a {
    min-height:44px!important;padding:10px 13px!important;
    border:1px solid #cce2d5!important;border-radius:9px!important;
    background:#eff8f2!important;color:#155c3e!important;
    box-shadow:none!important;font-size:14px!important;
  }
  .ct-post .ct-post-controls .postbit_buttons a:hover,
  .ct-post .ct-post-controls .postbit_buttons a:focus-visible {background:#dcefe3!important;}
  .ct-post .ct-post-head {gap:5px 8px!important;}
  .ct-post .ct-post-head .post_date {white-space:normal!important;}
  /* Hide thread rating on small screens, without disabling ratings on desktop. */
  .thread_rating, .thread_rating_container, #rating_thread, .star_rating {display:none!important;}
  /* MyBB's post toolbar should never force horizontal scrolling. */
  .ct-post,.ct-post .ct-post-controls,.ct-post .ct-post-content {max-width:100%!important;min-width:0!important;}
}
@media (prefers-reduced-motion:reduce) {
  .ct-post .ct-post-controls .postbit_buttons a {transition:none!important;}
}


/* Cool-Teens v2.6 — profile presentation enhancements.
   CSS only: MyBB's inherited member_profile template and functionality remain unchanged.
   Target only recognizable profile-related classes/IDs to avoid altering thread layouts. */
.profile_avatar img, .profile-avatar img, #profile_avatar img,
.member_profile .avatar img, .member-profile .avatar img {
  display:block;max-width:128px;height:auto;aspect-ratio:1/1;object-fit:cover;
  border-radius:50%;border:4px solid #fff;
  box-shadow:0 3px 16px rgba(13,70,43,.13);
}
.profile_avatar, .profile-avatar, #profile_avatar {max-width:100%;}
.profile_details, .profile-details, .profile_fields, .profile-fields,
.profile_stats, .profile-stats, .member_profile .tborder,
.member-profile .tborder {
  border-radius:12px;overflow:hidden;
  border:1px solid #dcebe2;
  box-shadow:0 2px 10px rgba(14,68,43,.04);
}
.profile_details .thead, .profile-details .thead,
.profile_fields .thead, .profile-fields .thead,
.profile_stats .thead, .profile-stats .thead,
.member_profile .thead, .member-profile .thead {
  background:#176b45!important;color:#fff!important;
}
.profile_details a, .profile-details a, .profile_fields a,
.profile-fields a, .profile_stats a, .profile-stats a,
.member_profile a, .member-profile a {overflow-wrap:anywhere;}
@media screen and (max-width:800px) {
  .profile_avatar img, .profile-avatar img, #profile_avatar img,
  .member_profile .avatar img, .member-profile .avatar img {max-width:88px;}
  .profile_details, .profile-details, .profile_fields, .profile-fields,
  .profile_stats, .profile-stats, .member_profile .tborder,
  .member-profile .tborder {max-width:100%;box-sizing:border-box;}
  .member_profile td, .member-profile td,
  .profile_details td, .profile-details td,
  .profile_fields td, .profile-fields td,
  .profile_stats td, .profile-stats td {overflow-wrap:anywhere;}
}
