/* TF2 Classified Depot - MyBB 1.8 theme
   Importable child theme for forums.tf2classifieddepot.com */
:root {
  --tf2c-bg: #090b11;
  --tf2c-bg-2: #0d1018;
  --tf2c-bg-3: #121620;
  --tf2c-panel: #151924;
  --tf2c-panel-2: #1b202c;
  --tf2c-border: rgba(255,255,255,.08);
  --tf2c-border-strong: rgba(245,151,53,.32);
  --tf2c-text: #d9dde6;
  --tf2c-muted: #8b94a7;
  --tf2c-dim: #667085;
  --tf2c-orange: #d9892f;
  --tf2c-orange-2: #f0a646;
  --tf2c-blue: #1b2d45;
  --tf2c-green: #69b36d;
  --tf2c-red: #d66a6a;
  --tf2c-radius: 12px;
  --tf2c-shadow: 0 22px 70px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { background: var(--tf2c-bg); }
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(217,137,47,.13), transparent 28rem),
    radial-gradient(circle at 82% 3%, rgba(30,55,90,.25), transparent 33rem),
    linear-gradient(180deg, #10131b 0%, #090b11 44%, #07090e 100%);
  color: var(--tf2c-text);
  text-align: center;
  line-height: 1.45;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  overflow-y: scroll;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.018) 25%, transparent 25%);
  background-size: 72px 72px;
  opacity: .24;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

#container {
  color: var(--tf2c-text);
  text-align: left;
  line-height: 1.45;
  margin: 0;
  min-width: 960px;
}
.wrapper {
  width: min(1180px, calc(100% - 48px));
  min-width: 940px;
  max-width: 1180px;
  margin: 0 auto;
}

/* Links */
a:link, a:visited { color: #eda94f; text-decoration: none; }
a:hover, a:active { color: #ffc36c; text-decoration: none; }
.smalltext { color: var(--tf2c-muted); font-size: 12px; }
.largetext { font-size: 15px; }
hr { border: 0; border-top: 1px solid var(--tf2c-border); }

/* Header */
#header {
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(12,14,20,.86);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
#logo {
  background: transparent;
  padding: 12px 0 8px;
  border: 0;
}
.tf2c-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.tf2c-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tf2c-text) !important;
  font-weight: 800;
  letter-spacing: -.01em;
}
.tf2c-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #efaa4e, #a86a24);
  color: #1a1005;
  font-weight: 900;
  font-size: 12px;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(217,137,47,.18);
}
.tf2c-brand-text { font-size: 15px; }
#logo img { max-height: 40px; }
#header ul.menu,
ul.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
#header ul.menu li,
ul.menu li {
  display: inline-block;
  margin: 0 3px;
}
#header ul.menu li a,
ul.menu li a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px !important;
  border-radius: 9px;
  color: #cfd5df !important;
  background-image: none !important;
  background-color: transparent;
  font-weight: 700;
  line-height: 1;
}
#header ul.menu li a:hover,
ul.menu li a:hover {
  background: rgba(255,255,255,.06);
  color: #fff !important;
}
#header ul.menu li a.tf2c-portal-link {
  color: #1d1306 !important;
  background: linear-gradient(180deg, #f1aa4d, #c77b28);
  box-shadow: inset 0 1px rgba(255,255,255,.24);
}
#panel {
  background: rgba(16,19,28,.72);
  border-top: 1px solid rgba(255,255,255,.05);
}
#panel .upper {
  background: transparent;
  color: var(--tf2c-muted);
  padding: 8px 0;
}
#panel .lower {
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.045);
  color: var(--tf2c-muted);
  padding: 7px 0;
}
#panel .welcome { color: var(--tf2c-muted); }
#panel .welcome a { font-weight: 800; }
#panel .upper a.logout,
a.logout { background: none !important; padding-right: 10px !important; }
#quick_login .thead { border-radius: 0; }

/* Search */
#search { margin: 0; }
#search input.textbox,
#search input[type="text"],
input.textbox,
textarea,
select {
  background: #0e121b;
  color: var(--tf2c-text);
  border: 1px solid var(--tf2c-border);
  border-radius: 9px;
  padding: 8px 10px;
  outline: none;
}
input.textbox:focus,
textarea:focus,
select:focus {
  border-color: rgba(240,166,70,.6);
  box-shadow: 0 0 0 3px rgba(217,137,47,.14);
}
textarea { min-height: 170px; }

/* Content */
#content {
  background: transparent;
  width: auto !important;
  padding: 24px 0 40px;
  overflow: visible;
}
.navigation {
  color: var(--tf2c-muted);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--tf2c-border);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 16px;
}
.navigation .active { color: var(--tf2c-text); font-weight: 800; }

/* Forum tables */
.tborder {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--tf2c-border);
  border-radius: var(--tf2c-radius);
  box-shadow: var(--tf2c-shadow);
  overflow: hidden;
  margin: 0 0 18px;
}
.thead {
  background: linear-gradient(180deg, rgba(217,137,47,.22), rgba(28,32,44,.98));
  color: #fff;
  border-bottom: 1px solid rgba(240,166,70,.22);
  padding: 12px 14px !important;
  font-weight: 900;
}
.thead a:link,
.thead a:visited { color: #fff; }
.tcat {
  background: #111722;
  color: #aeb7c7;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.055);
  padding: 8px 10px !important;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .06em;
}
.tcat a { color: #d7dce6 !important; }
.trow1,
.trow2 {
  background: rgba(18,22,32,.96);
  color: var(--tf2c-text);
  border-bottom: 1px solid rgba(255,255,255,.055);
  padding: 12px !important;
}
.trow2 { background: rgba(15,19,28,.96); }
.trow1:hover,
.trow2:hover,
tr.inline_row:hover td {
  background: rgba(28,34,48,.98) !important;
}
.tborder table { border-radius: inherit; }
table { color: var(--tf2c-text); }
td { border-color: rgba(255,255,255,.06) !important; }

/* Forum status icons */
.forum_status,
.thread_status {
  display: inline-flex !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px;
  background-image: none !important;
  background-color: #202838;
  border: 1px solid var(--tf2c-border);
  position: relative;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
}
.forum_status:before,
.thread_status:before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--tf2c-dim);
}
.forum_on,
.newfolder,
.newhotfolder { border-color: rgba(240,166,70,.45); background: rgba(217,137,47,.16); }
.forum_on:before,
.newfolder:before,
.newhotfolder:before { background: var(--tf2c-orange-2); }
.forum_offclose,
.closefolder,
.hotclosefolder { background: rgba(214,106,106,.12); }
.forum_offclose:before,
.closefolder:before,
.hotclosefolder:before { background: var(--tf2c-red); }
.forum_offlink:before { background: #77a8ff; }

/* Forum typography */
strong a[href*="forumdisplay"],
span[id^="tid_"] a,
.subject_new a,
.subject_old a {
  color: #eef2f8 !important;
  font-weight: 900;
}
.author,
.lastpost,
.lastpost a { color: var(--tf2c-muted); }
.lastpost a:hover { color: var(--tf2c-orange-2); }

/* Buttons */
.button,
input.button,
button,
a.button,
.new_thread_button,
.new_reply_button,
.postbit_buttons a,
.pagination a,
.pagination_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.055) !important;
  color: #dbe1ea !important;
  font-weight: 800;
  box-shadow: none !important;
  cursor: pointer;
}
input.button,
button.button,
.new_thread_button,
.new_reply_button,
a[href*="newthread"],
a[href*="newreply"] {
  background: linear-gradient(180deg, #f0a64c, #bb7429) !important;
  color: #1b1208 !important;
  border-color: rgba(255,198,117,.34) !important;
}
.button:hover,
.postbit_buttons a:hover,
.pagination a:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.pagination .pagination_current,
.pagination_current {
  background: rgba(217,137,47,.18) !important;
  color: #ffd092 !important;
}

/* Board statistics / who's online */
#boardstats .thead,
#boardstats_e .thead { border-radius: 0; }
#boardstats,
#boardstats_e,
.stats,
.forum_legend,
.thread_legend {
  color: var(--tf2c-muted);
}
.forum_legend,
.thread_legend {
  background: rgba(18,22,32,.86);
  border: 1px solid var(--tf2c-border);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 18px;
}
.forum_legend dt,
.forum_legend dd,
.thread_legend dd { margin-bottom: 6px; }

/* Postbit */
.post {
  background: rgba(18,22,32,.95);
  border: 1px solid var(--tf2c-border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--tf2c-shadow);
}
.post.classic { display: table; width: 100%; table-layout: fixed; }
.post_author {
  background: rgba(12,15,23,.96);
  border-right: 1px solid var(--tf2c-border);
  padding: 14px !important;
  color: var(--tf2c-muted);
}
.post.classic .post_author { width: 230px; }
.post_author strong a { color: #fff !important; }
.post_author img { max-width: 128px; border-radius: 12px; }
.author_statistics {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--tf2c-border);
}
.post_content { padding: 0 !important; }
.post_head {
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid var(--tf2c-border);
  padding: 10px 14px;
  color: var(--tf2c-muted);
}
.post_body {
  color: var(--tf2c-text);
  padding: 18px 16px !important;
  font-size: 14px;
}
.post_body blockquote,
blockquote {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(217,137,47,.2);
  border-left: 4px solid var(--tf2c-orange);
  color: #d9dde6;
  border-radius: 10px;
}
.post_controls {
  background: rgba(9,11,17,.78);
  border-top: 1px solid var(--tf2c-border);
  padding: 10px 12px !important;
}
.signature {
  border-top: 1px solid var(--tf2c-border);
  color: var(--tf2c-muted);
  margin: 0 16px 12px;
  padding-top: 12px;
}

/* Forms and editors */
fieldset,
fieldset.trow1,
fieldset.trow2 {
  border: 1px solid var(--tf2c-border);
  border-radius: 12px;
  background: rgba(18,22,32,.88);
}
legend { color: #ffc36c; font-weight: 900; }
.editor_control_bar,
.editor_control_bar :is(button,a) { background-color: #111722 !important; color: var(--tf2c-text) !important; }
.sceditor-container,
.sceditor-toolbar,
.sceditor-container iframe,
.sceditor-container textarea {
  background: #0f131d !important;
  color: var(--tf2c-text) !important;
  border-color: var(--tf2c-border) !important;
}

/* Alerts and misc */
.alert,
.pm_alert,
.red_alert,
.yellow_alert {
  border-radius: 10px;
  border: 1px solid rgba(240,166,70,.25);
  background: rgba(217,137,47,.12);
  color: #ffd092;
}
.error,
.error_message {
  background: rgba(214,106,106,.12);
  border-color: rgba(214,106,106,.35);
  color: #ffd4d4;
}
.success_message {
  background: rgba(105,179,109,.12);
  border-color: rgba(105,179,109,.35);
  color: #d5ffd7;
}

/* Footer */
#footer {
  background: rgba(7,9,14,.94);
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--tf2c-muted);
  margin-top: 30px;
}
#footer .upper,
#footer .lower {
  background: transparent;
  border: 0;
  padding: 13px 0;
}
#footer .lower { border-top: 1px solid rgba(255,255,255,.05); }
#footer a { color: #cfd5df; }
#footer a:hover { color: #ffc36c; }
.tf2c-footer-brand { font-weight: 900; color: #fff; }
.tf2c-footer-note { color: var(--tf2c-muted); }

/* User CP / mod CP table controls */
.usercp_nav_item,
.modcp_nav_item { color: #dbe1ea; }
.expcolimage img { opacity: .7; filter: grayscale(1); }

/* Responsive-ish MyBB minimums */
@media (max-width: 1000px) {
  #container { min-width: 760px; }
  .wrapper { min-width: 720px; width: calc(100% - 24px); }
  .post.classic .post_author { width: 190px; }
}


/* TF2C v2 polish: wider classic forum tables and cleaner MyBB/phpBB proportions */
#container,
#content,
.wrapper,
#container .wrapper,
#content .wrapper {
  min-width: 0 !important;
}
#container .wrapper,
#content .wrapper,
#header .wrapper,
#footer .wrapper {
  width: min(1280px, calc(100vw - 72px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#content {
  padding-top: 26px !important;
}
#content .wrapper > br:first-child,
#content .wrapper > br:nth-child(2) {
  display: none;
}
#content table.tborder,
#content .tborder,
table.tborder {
  width: 100% !important;
  max-width: none !important;
  display: table !important;
  table-layout: auto;
}
#content .tborder[style],
table.tborder[style] {
  width: 100% !important;
}
#content .tborder + .tborder,
#content .tborder + br + .tborder {
  margin-top: 16px !important;
}
.tborder {
  border-radius: 13px !important;
  background: rgba(255,255,255,.045) !important;
}
.tborder .thead,
.tborder .tcat,
.tborder .trow1,
.tborder .trow2 {
  border-left: 0 !important;
  border-right: 0 !important;
}
.thead {
  padding: 10px 14px !important;
  letter-spacing: .01em;
}
.tcat {
  padding: 7px 10px !important;
}
.trow1,
.trow2,
.tborder td {
  padding: 10px 12px !important;
}
.tborder td:first-child {
  border-left: 0 !important;
}
.tborder td:last-child {
  border-right: 0 !important;
}
/* forum index/category tables: make title column breathe and numeric columns compact */
.tborder td[width="1"],
.tborder td[width="2%"],
.tborder td[width="5%"] {
  width: 44px !important;
  white-space: nowrap;
}
.tborder td[align="center"] {
  color: #a5afbf;
  font-weight: 800;
}
.tborder td[align="right"],
.lastpost {
  min-width: 190px;
}
.forum_status,
.thread_status {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}
.forum_status:before,
.thread_status:before {
  inset: 8px !important;
}
/* Header/panel compaction */
#logo {
  padding: 11px 0 !important;
}
.tf2c-brandbar {
  min-height: 38px;
}
#panel .upper,
#panel .lower {
  padding: 7px 0 !important;
}
#panel .upper .wrapper,
#panel .lower .wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#search {
  flex: 1 1 360px;
  max-width: 760px;
}
#search input.textbox,
#search input[type="text"] {
  width: min(520px, 100%) !important;
  height: 32px;
}
#panel .welcome {
  flex: 1 1 auto;
}
#panel .lower ul.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#panel .lower ul.menu li a {
  min-height: 26px;
  padding: 5px 8px !important;
}
.navigation {
  margin: 0 0 18px !important;
}
/* Stronger category header bar, closer to classic boards */
.thead strong,
.thead a {
  font-size: 13px;
}
.thead:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tf2c-orange);
  margin-right: 8px;
  box-shadow: 0 0 12px rgba(240,166,70,.45);
  vertical-align: 1px;
}
/* Better title/description hierarchy */
.trow1 strong,
.trow2 strong,
.trow1 strong a,
.trow2 strong a {
  color: #f2f5fa !important;
  font-weight: 900 !important;
}
.trow1 .smalltext,
.trow2 .smalltext {
  color: #8994a6 !important;
  line-height: 1.35;
}
/* Postbit wide layout */
.post.classic .post_author {
  width: 245px !important;
}
.post_body {
  min-height: 120px;
}
/* Footer polish */
#footer {
  margin-top: 42px !important;
}
/* Mobile/tablet fallback */
@media (max-width: 900px) {
  #container .wrapper,
  #content .wrapper,
  #header .wrapper,
  #footer .wrapper {
    width: calc(100vw - 24px) !important;
  }
  .tf2c-brandbar { flex-wrap: wrap; }
  #header ul.menu { width: 100%; }
  .post.classic .post_author { width: 190px !important; }
  .tborder td[align="right"], .lastpost { min-width: 130px; }
}


/* TF2C Classic v3: tighter MyBB/phpBB header and board proportions */
#container .wrapper,
#content .wrapper,
#header .wrapper,
#footer .wrapper {
  width: min(1360px, calc(100vw - 96px)) !important;
  max-width: 1360px !important;
}
#header {
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
#logo {
  padding: 10px 0 !important;
}
.tf2c-brandbar {
  min-height: 34px !important;
}
.tf2c-brand-text {
  font-size: 14px !important;
}
.tf2c-logo-pill {
  height: 22px !important;
  min-width: 40px !important;
  border-radius: 7px !important;
}
#header ul.menu li a,
ul.menu li a {
  min-height: 26px !important;
  padding: 5px 9px !important;
  font-size: 12px !important;
}
#panel {
  background: linear-gradient(180deg, rgba(17,20,29,.88), rgba(13,15,22,.88)) !important;
}
#panel .upper {
  padding: 8px 0 !important;
}
#panel .upper .wrapper {
  display: grid !important;
  grid-template-columns: minmax(280px, 430px) 1fr !important;
  align-items: center !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
}
#panel .lower .wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
#panel .welcome {
  justify-self: start !important;
  font-size: 12px !important;
}
#search,
#search fieldset,
fieldset#search,
#panel form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#panel form,
fieldset#search {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}
fieldset#search input.textbox,
#search input.textbox,
#search input[type="text"] {
  width: 100% !important;
  max-width: none !important;
  height: 31px !important;
  min-width: 0 !important;
}
fieldset#search input.button,
#search input.button {
  flex: 0 0 auto !important;
  height: 31px !important;
  min-height: 31px !important;
  padding: 0 12px !important;
}
#panel .lower {
  padding: 6px 0 !important;
}
#panel .lower ul.menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
#panel .lower ul.menu li {
  margin: 0 !important;
}
#content {
  padding-top: 22px !important;
}
.navigation {
  padding: 8px 11px !important;
  margin-bottom: 14px !important;
}
.tborder {
  margin-bottom: 20px !important;
}
.thead {
  padding: 11px 14px !important;
  background: linear-gradient(180deg, rgba(217,137,47,.25), rgba(27,30,42,.98)) !important;
}
.tcat {
  padding: 7px 12px !important;
}
.trow1,
.trow2,
.tborder td {
  padding: 9px 12px !important;
}
.tborder td[align="center"] {
  min-width: 68px !important;
}
.tborder td[align="right"],
.lastpost {
  min-width: 220px !important;
}
.forum_status,
.thread_status {
  width: 26px !important;
  height: 26px !important;
}
.forum_status:before,
.thread_status:before {
  inset: 7px !important;
}
/* Make the board index feel less like floating skinny cards */
#content .tborder table {
  width: 100% !important;
}
#boardstats .tborder,
#boardstats,
.forum_legend {
  width: 100% !important;
}
.forum_legend {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px 14px !important;
}
.forum_legend dt,
.forum_legend dd {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.forum_legend dt { justify-content: center; }
/* Cleaner footer/debug placement */
#footer {
  margin-top: 34px !important;
}
#footer .upper .wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}
#footer .lower .wrapper {
  line-height: 1.55 !important;
}
/* Admin/debug details are still visible for admins, but less visually noisy */
#debug,
.debug {
  color: var(--tf2c-dim) !important;
  font-size: 11px !important;
}
@media (max-width: 980px) {
  #container .wrapper,
  #content .wrapper,
  #header .wrapper,
  #footer .wrapper {
    width: calc(100vw - 28px) !important;
  }
  #panel .upper .wrapper {
    grid-template-columns: 1fr !important;
  }
  #panel .lower .wrapper {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .forum_legend {
    grid-template-columns: 1fr 1fr !important;
  }
  .tborder td[align="right"], .lastpost { min-width: 140px !important; }
}



/* TF2C Board Polish v4 - wider phpBB/MyBB board proportions */
:root {
  --tf2c-wrapper: 1480px;
}
body {
  font-size: 13px;
  background:
    radial-gradient(circle at 16% 0%, rgba(217,137,47,.12), transparent 30rem),
    radial-gradient(circle at 84% 1%, rgba(32,58,92,.26), transparent 36rem),
    linear-gradient(180deg, #10131b 0%, #0b0d14 38%, #07090e 100%);
}
.wrapper {
  width: min(var(--tf2c-wrapper), calc(100% - 72px));
  max-width: var(--tf2c-wrapper);
  min-width: 1040px;
}
#container {
  min-width: 1100px;
}
#header {
  box-shadow: 0 14px 42px rgba(0,0,0,.26);
}
#logo {
  padding: 10px 0 8px;
}
.tf2c-brandbar {
  min-height: 32px;
}
.tf2c-brand-text {
  font-size: 16px;
}
#header ul.menu li a,
ul.menu li a {
  min-height: 30px;
  padding: 7px 12px !important;
  font-size: 13px;
}
#panel .upper .wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
#panel .upper form,
#panel .upper #search {
  margin: 0;
}
#search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 420px;
  border: 0;
  padding: 0;
}
#search input.textbox,
#search input[type="text"] {
  width: 370px;
  height: 34px;
}
#search input.button,
#search .button {
  height: 34px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#panel .welcome {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
#panel .lower .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#panel .lower br.clear {
  display: none;
}
ul.panel_links,
ul.user_links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#content {
  padding-top: 22px;
}
.navigation {
  max-width: var(--tf2c-wrapper);
  margin-left: auto;
  margin-right: auto;
}
.tborder {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.thead {
  padding: 13px 16px !important;
  letter-spacing: -.01em;
}
.tcat {
  padding: 10px 14px !important;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trow1,
.trow2 {
  padding: 12px 14px !important;
  min-height: 48px;
}
.trow1:hover,
.trow2:hover {
  background: rgba(217,137,47,.045) !important;
}
.forum_status {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  margin: 0 auto;
}
.forum_status:before {
  width: 10px;
  height: 10px;
}
.forum_on,
.forum_off,
.forum_offlock,
.forum_offlink {
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 8px 18px rgba(0,0,0,.22);
}
.forum_on { border-color: rgba(240,166,70,.6) !important; }
.forum_off { border-color: rgba(130,142,164,.22) !important; }
.forum_offlock { border-color: rgba(214,106,106,.45) !important; }
.forum_offlink { border-color: rgba(105,126,205,.45) !important; }
.tborder .trow1 strong,
.tborder .trow2 strong,
.tborder .trow1 .largetext,
.tborder .trow2 .largetext {
  color: #e4e8f0;
  font-weight: 850;
}
.tborder td:nth-last-child(3),
.tborder td:nth-last-child(2),
.tborder td:last-child {
  color: #b9c0cf;
}
.tborder td[align="center"] {
  font-variant-numeric: tabular-nums;
  color: #cbd1dd;
}
#content table[width="100%"] {
  table-layout: auto;
}
#content table[width="100%"] td:first-child + td {
  width: auto;
}
#content table[width="100%"] td[width="85"],
#content table[width="100%"] td[width="80"] {
  width: 96px !important;
}
#content table[width="100%"] td[width="200"],
#content table[width="100%"] td[width="250"] {
  width: 260px !important;
}
/* Classic MyBB footer/stat blocks */
#content > .wrapper > .tborder:last-of-type {
  margin-top: 16px;
}
#footer {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 34px;
  padding-top: 18px;
}
#footer .upper,
#footer .lower {
  background: transparent;
}
#footer ul.menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
#footer .wrapper {
  color: var(--tf2c-muted);
}
#debug,
.debug {
  opacity: .35;
  font-size: 11px;
}
select {
  min-height: 32px;
}
.go_button,
input.button,
.button,
button {
  min-height: 32px;
}
/* Thread / postbit readability */
.post.classic,
.post {
  border-radius: 14px;
  overflow: hidden;
}
.post_author {
  background: rgba(255,255,255,.025) !important;
  border-right: 1px solid rgba(255,255,255,.06);
}
.post_content {
  background: rgba(14,17,25,.88) !important;
}
.post_body {
  font-size: 14px;
  line-height: 1.6;
}
/* Responsive fallback */
@media (max-width: 1240px) {
  .wrapper {
    width: calc(100% - 36px);
    min-width: 0;
  }
  #container {
    min-width: 0;
  }
  #panel .upper .wrapper,
  #panel .lower .wrapper {
    flex-wrap: wrap;
  }
  #search {
    min-width: 0;
    width: 100%;
  }
  #search input.textbox,
  #search input[type="text"] {
    width: min(100%, 420px);
  }
}


/* TF2 Classified Depot - website-matched header pass */
#header.tf2c-site-header,
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 20, .94) !important;
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: 0 12px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
#logo {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.tf2c-site-nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tf2c-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f4f6fb !important;
  text-decoration: none !important;
}
.tf2c-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0a646, #b77227);
  color: #140d05;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.02em;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(217,137,47,.16);
}
.tf2c-brand-text {
  color: #edf0f6;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.tf2c-main-nav,
#header ul.menu.tf2c-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tf2c-main-nav li,
#header ul.menu.tf2c-main-nav li {
  display: block;
  margin: 0;
}
.tf2c-main-nav a,
#header ul.menu.tf2c-main-nav li a {
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c8ceda !important;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  background: transparent !important;
}
.tf2c-main-nav a:hover,
#header ul.menu.tf2c-main-nav li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.06);
}
.tf2c-main-nav a.tf2c-nav-active,
#header ul.menu.tf2c-main-nav li a.tf2c-nav-active {
  background: rgba(217,137,47,.12) !important;
  border-color: rgba(217,137,47,.28);
  color: #f0a646 !important;
}
.tf2c-main-nav a.tf2c-depot-link,
#header ul.menu.tf2c-main-nav li a.tf2c-depot-link {
  color: #eceff5 !important;
}
.tf2c-main-nav a.tf2c-browse-link,
#header ul.menu.tf2c-main-nav li a.tf2c-browse-link {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.065);
}
#panel.tf2c-site-panel,
#panel {
  background: rgba(10,12,18,.82) !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
}
#panel .upper {
  padding: 9px 0 !important;
  background: transparent !important;
}
#panel .upper .wrapper.tf2c-panel-upper,
#panel .upper .wrapper {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
#panel .lower {
  padding: 8px 0 !important;
  background: rgba(255,255,255,.025) !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
}
#panel .lower .wrapper.tf2c-panel-lower,
#panel .lower .wrapper {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#search {
  flex: 1 1 380px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#search input.textbox,
#search input[type="text"] {
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  color: #dce2ec !important;
}
#search .button,
#search input.button,
#search input[type="submit"] {
  height: 34px !important;
  min-width: 72px;
  margin: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #eca144, #b87327) !important;
  color: #161006 !important;
  border: 0 !important;
  font-weight: 850;
}
#panel .welcome,
.tf2c-account-summary {
  flex: 0 1 auto;
  margin-left: auto;
  color: #8f98aa !important;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
#panel .welcome a,
.tf2c-account-summary a {
  color: #f0a646 !important;
  font-weight: 850;
}
#panel .welcome .logout,
a.logout {
  color: #e09b55 !important;
  padding: 0 !important;
  background: none !important;
}
#panel .lower ul.menu,
#panel .lower ul.menu.panel_links,
#panel .lower ul.menu.user_links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#panel .lower ul.menu li {
  display: block;
  margin: 0;
}
#panel .lower ul.menu li a {
  min-height: 28px;
  display: inline-flex !important;
  align-items: center;
  padding: 5px 9px !important;
  border-radius: 8px;
  color: #bcc4d2 !important;
  background: transparent !important;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 750;
}
#panel .lower ul.menu li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.065);
}
#content {
  padding-top: 22px !important;
}
.navigation {
  margin-top: 2px;
  margin-bottom: 18px;
}
#footer {
  border-top: 1px solid rgba(255,255,255,.065);
  background: rgba(7,9,13,.72);
}

@media (max-width: 900px) {
  #container { min-width: 0; }
  .wrapper { width: min(100% - 24px, 1180px); min-width: 0; }
  .tf2c-site-nav { min-height: auto; padding: 12px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .tf2c-main-nav { justify-content: flex-start; flex-wrap: wrap; }
  #panel .upper .wrapper.tf2c-panel-upper, #panel .upper .wrapper { flex-wrap: wrap; }
  #panel .welcome, .tf2c-account-summary { margin-left: 0; white-space: normal; }
  #search { flex: 1 1 100%; max-width: none; }
}



/* === TF2C portal-matched header pass === */
#header.tf2c-portal-matched-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgba(15, 15, 21, .92);
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
#header.tf2c-portal-matched-header #logo {
  padding: 0;
  min-height: 58px;
}
.tf2c-portal-shell {
  width: min(1030px, calc(100% - 44px));
  max-width: 1030px;
  min-width: 940px;
  margin: 0 auto;
}
.tf2c-portal-nav-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.tf2c-portal-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e7eaf0 !important;
  font-weight: 850;
  letter-spacing: -.015em;
  line-height: 1;
}
.tf2c-portal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  min-width: 39px;
  padding: 0 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eca64a 0%, #bc762a 100%);
  color: #1d1207;
  font-size: 11px;
  font-weight: 950;
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(198,126,45,.18);
}
.tf2c-portal-brand-text {
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.tf2c-portal-mainnav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tf2c-portal-mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: #c4cad4 !important;
  font-weight: 760;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
}
.tf2c-portal-mainnav a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.07);
}
.tf2c-portal-mainnav a.active {
  color: #edb264 !important;
  background: rgba(217,137,47,.14);
  border-color: rgba(217,137,47,.24);
}
.tf2c-portal-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tf2c-portal-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: #1d1307 !important;
  background: linear-gradient(180deg, #eaa14a, #bd7629);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 890;
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 22px rgba(198,126,45,.16);
}
.tf2c-portal-publish:hover {
  color: #130c04 !important;
  filter: brightness(1.08);
}
.tf2c-portal-account,
.tf2c-portal-auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22,24,31,.76);
  border: 1px solid rgba(226,171,92,.16);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  color: #d8dde6;
  white-space: nowrap;
}
.tf2c-portal-account:before,
.tf2c-portal-auth:before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(226,171,92,.27);
  background: radial-gradient(circle at 30% 20%, rgba(239,169,78,.45), rgba(31,35,48,.95));
}
.tf2c-portal-account a,
.tf2c-portal-auth a {
  color: #e7eaf0 !important;
  font-weight: 800;
}
.tf2c-portal-account .logout {
  color: #edb264 !important;
  font-weight: 800;
  padding: 0 !important;
}
.tf2c-portal-account small,
.tf2c-last-visit {
  display: none;
}
.tf2c-portal-utility {
  border-top: 1px solid rgba(255,255,255,.045);
  background: rgba(13,15,22,.58);
}
.tf2c-portal-utility-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.tf2c-portal-utility #search,
#panel #search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: 520px;
}
.tf2c-portal-utility #search input.textbox {
  width: min(420px, 40vw);
  height: 31px;
  padding: 0 11px;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
}
.tf2c-portal-utility #search input.button,
.tf2c-portal-utility #search .button {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 9px;
}
.tf2c-portal-memberlinks {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.tf2c-portal-memberlinks ul.menu,
.tf2c-portal-memberlinks .menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tf2c-portal-memberlinks ul.menu li,
.tf2c-portal-memberlinks .menu li {
  margin: 0;
}
.tf2c-portal-memberlinks a,
.tf2c-portal-memberlinks ul.menu li a {
  min-height: 28px;
  padding: 0 8px !important;
  border-radius: 8px;
  color: #aeb6c5 !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 760;
}
.tf2c-portal-memberlinks a:hover,
.tf2c-portal-memberlinks ul.menu li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
}
#panel,
#panel .upper,
#panel .lower {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
#content {
  padding-top: 22px !important;
}
.navigation {
  width: min(1030px, calc(100% - 44px));
  max-width: 1030px;
  margin-left: auto;
  margin-right: auto;
}
.wrapper {
  width: min(1030px, calc(100% - 44px));
  max-width: 1030px;
}
.tborder {
  width: 100% !important;
}
@media (max-width: 980px) {
  #container { min-width: 0; }
  .wrapper,
  .tf2c-portal-shell,
  .navigation { min-width: 0; width: min(100% - 24px, 1030px); }
  .tf2c-portal-nav-row { grid-template-columns: 1fr; justify-items: start; padding: 10px 0; gap: 10px; }
  .tf2c-portal-mainnav, .tf2c-portal-actions { justify-self: start; }
  .tf2c-portal-utility-row { grid-template-columns: 1fr; padding: 8px 0; }
  .tf2c-portal-memberlinks { justify-content: flex-start; flex-wrap: wrap; }
  .tf2c-portal-utility #search input.textbox { width: min(100%, 360px); }
}


/* === TF2C portal exact header pass === */
#header.tf2c-portal-matched-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 56px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgba(17,17,23,.94);
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
#header.tf2c-portal-matched-header #logo {
  min-height: 56px;
  padding: 0;
}
.tf2c-portal-shell,
.wrapper,
.navigation {
  width: min(960px, calc(100% - 48px)) !important;
  max-width: 960px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tf2c-portal-nav-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 18px;
}
.tf2c-portal-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e8ebf1 !important;
  font-weight: 850;
  letter-spacing: -.015em;
  line-height: 1;
}
.tf2c-portal-logo {
  height: 22px;
  min-width: 38px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
}
.tf2c-portal-brand-text {
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.tf2c-portal-mainnav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tf2c-portal-mainnav a {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
  color: #c9ced8 !important;
  white-space: nowrap;
}
.tf2c-portal-mainnav a.active {
  color: #edb264 !important;
  background: rgba(217,137,47,.14);
  border-color: rgba(217,137,47,.24);
}
.tf2c-portal-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.tf2c-portal-publish {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 14px !important;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1 !important;
  color: #1d1307 !important;
  background: linear-gradient(180deg, #eaa14a, #bd7629);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 890;
}
.tf2c-portal-account,
.tf2c-portal-auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  min-height: 34px;
  padding: 0 11px 0 7px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 190px;
  background: rgba(22,24,31,.76);
  border: 1px solid rgba(226,171,92,.16);
}
.tf2c-portal-account:before,
.tf2c-portal-auth:before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.tf2c-portal-account a,
.tf2c-portal-auth a {
  display: none !important;
}
.tf2c-portal-account a.tf2c-account-name,
.tf2c-portal-auth a.login,
.tf2c-portal-auth a.register {
  display: inline-flex !important;
  color: #e7eaf0 !important;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tf2c-portal-auth a.register {
  color: #edb264 !important;
}
.tf2c-portal-utility {
  border-top: 1px solid rgba(255,255,255,.045);
  background: rgba(13,15,22,.58);
}
.tf2c-portal-utility-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.tf2c-portal-utility #search,
#panel #search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  margin: 0;
  border: 0;
  padding: 0;
}
.tf2c-portal-utility #search input.textbox {
  width: 330px;
  max-width: 100%;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
}
.tf2c-portal-utility #search input.button,
.tf2c-portal-utility #search .button {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
}
.tf2c-portal-memberlinks {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.tf2c-portal-memberlinks .tf2c-member-welcome {
  color: #8e97a8;
  font-size: 12px;
}
.tf2c-portal-memberlinks .tf2c-member-welcome strong {
  color: #edb264;
}
.tf2c-portal-memberlinks a,
.tf2c-portal-memberlinks ul.menu li a {
  min-height: 28px;
  padding: 0 8px !important;
  border-radius: 8px;
  color: #aeb6c5 !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
}
.tf2c-portal-memberlinks a:hover,
.tf2c-portal-memberlinks ul.menu li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
}
#panel, #panel .upper, #panel .lower {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
#content { padding-top: 22px !important; }
@media (max-width: 980px) {
  #container { min-width: 0; }
  .wrapper,
  .tf2c-portal-shell,
  .navigation { min-width: 0 !important; width: min(100% - 24px, 960px) !important; }
  .tf2c-portal-nav-row { grid-template-columns: 1fr; justify-items: start; padding: 10px 0; gap: 10px; }
  .tf2c-portal-mainnav, .tf2c-portal-actions { justify-self: start; }
  .tf2c-portal-utility-row { grid-template-columns: 1fr; padding: 8px 0; }
  .tf2c-portal-memberlinks { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .tf2c-portal-utility #search input.textbox { width: min(100%, 360px); }
}


/* === TF2C portal unified header pass: top bar matches main site; forum tools moved below === */
#header.tf2c-portal-matched-header {
  min-height: 52px !important;
  background: rgba(17, 16, 22, .96) !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
#header.tf2c-portal-matched-header #logo {
  min-height: 52px !important;
  padding: 0 !important;
}
.tf2c-portal-shell,
.wrapper,
.navigation {
  width: min(960px, calc(100% - 48px)) !important;
  max-width: 960px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tf2c-portal-nav-row {
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
}
.tf2c-portal-brand { gap: 9px !important; }
.tf2c-portal-logo {
  height: 22px !important;
  min-width: 38px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}
.tf2c-portal-brand-text {
  font-size: 14px !important;
  font-weight: 850 !important;
}
.tf2c-portal-mainnav {
  justify-self: center !important;
  gap: 8px !important;
}
.tf2c-portal-mainnav a {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 30px !important;
}
.tf2c-portal-actions {
  justify-self: end !important;
  gap: 8px !important;
}
.tf2c-portal-publish {
  height: 33px !important;
  min-height: 33px !important;
  padding: 0 14px !important;
  line-height: 33px !important;
  white-space: nowrap !important;
}
.tf2c-portal-account,
.tf2c-portal-auth {
  position: relative !important;
  height: 33px !important;
  min-height: 33px !important;
  max-width: 190px !important;
  padding: 0 28px 0 7px !important;
  overflow: visible !important;
  cursor: default !important;
}
.tf2c-portal-account:after,
.tf2c-portal-auth:after {
  content: "⌄";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-55%);
  color: #8f98a8;
  font-size: 12px;
  line-height: 1;
}
.tf2c-portal-account .tf2c-account-name,
.tf2c-portal-auth .login,
.tf2c-portal-auth .register {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 130px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.tf2c-account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(27, 28, 36, .98);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
  z-index: 100;
}
.tf2c-portal-account:hover .tf2c-account-menu,
.tf2c-portal-account:focus-within .tf2c-account-menu {
  display: grid;
  gap: 2px;
}
.tf2c-account-menu a,
.tf2c-portal-account .tf2c-account-menu a {
  display: flex !important;
  align-items: center;
  min-height: 32px;
  padding: 0 10px !important;
  border-radius: 8px;
  color: #d8dde6 !important;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}
.tf2c-account-menu a:hover {
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.tf2c-account-menu .logout { color: #f0a646 !important; }
#panel,
.tf2c-portal-utility,
#panel .upper,
#panel .lower {
  display: none !important;
}
#content {
  padding-top: 18px !important;
}
.tf2c-forum-toolbar {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}
.tf2c-forum-toolbar #search,
.tf2c-forum-toolbar fieldset {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 430px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.tf2c-forum-toolbar #search input.textbox,
.tf2c-forum-toolbar input.textbox {
  width: 330px !important;
  max-width: 100% !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 9px !important;
}
.tf2c-forum-toolbar #search input.button,
.tf2c-forum-toolbar .button {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
}
.tf2c-forum-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.tf2c-forum-tools a {
  color: #aeb6c5 !important;
  font-size: 12px;
  font-weight: 760;
}
.tf2c-forum-tools a:hover { color: #fff !important; }
.navigation {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
@media (max-width: 980px) {
  .tf2c-portal-shell,
  .wrapper,
  .navigation { width: min(100% - 24px, 960px) !important; }
  .tf2c-portal-nav-row { grid-template-columns: 1fr !important; justify-items: start !important; padding: 10px 0 !important; gap: 10px !important; }
  .tf2c-portal-mainnav, .tf2c-portal-actions { justify-self: start !important; }
  .tf2c-forum-toolbar { grid-template-columns: 1fr !important; }
  .tf2c-forum-tools { justify-content: flex-start !important; flex-wrap: wrap !important; }
}

