/* ==========================================================================
   Quick BB 2.10 - shared classic forum layout
   (c) 2025 Easier Software LLC
   Colours come from the active skin (skin.php sets the --variables).
   ========================================================================== */

:root {
  --page-bg:#F5F7FA; --panel-bg:#FFFFFF; --text:#222; --page-text:#222; --muted:#555; --border:#8EA4BC; --row-border:#C9D5E1;
  --header-bg1:#F5F7FA; --header-bg2:#DCE5EE; --header-text:#30506F; --header-accent:#819BB5;
  --nav-bg:#355A80; --nav-text:#fff; --nav-border:#24405C; --nav-hover-bg:#2B4A6B; --crumb-bg:#F5F7FA; --crumb-text:#333;
  --cat-bg:#355A80; --cat-bg2:#4E7194; --cat-text:#fff; --cat-link:#fff; --thead-bg:#819BB5; --thead-text:#fff;
  --alt1:#F5F7FA; --alt2:#DCE5EE; --link:#22476E; --link-hover:#B03A10;
  --btn-bg:#355A80; --btn-text:#fff; --btn-border:#24405C; --btn-hover-bg:#2B4A6B; --btn-hover-text:#fff; --highlight:#819BB5;
  --input-bg:#fff; --input-text:#222; --input-border:#8EA4BC;
  --post-head-bg:#819BB5; --post-head-text:#fff; --post-user-bg:#DCE5EE; --post-body-bg:#F5F7FA; --post-foot-bg:#EDF2F7;
  --quote-bg:#F2F6FA; --quote-border:#8EA4BC; --quote-text:#333; --code-bg:#EEF3F8; --code-text:#1A1A1A;
  --page-active-bg:#355A80; --page-active-text:#fff;
  --notice-bg:#E8F4E8; --notice-text:#1D5B1D; --notice-border:#9CC69C; --error-bg:#FBEAEA; --error-text:#8A1F1F; --error-border:#E0A0A0;
  --icon-new:#E2A33A; --icon-old:#A7B8CA; --online:#2F8A3C; --offline:#9A9A9A; --rep-pos:#2F8A3C; --rep-neg:#B32D2D; --ad-label:#777;
  --footer-bg:#355A80; --footer-text:#DCE5EE; --footer-link:#fff;
  --font: Verdana, Geneva, Tahoma, "DejaVu Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0 0 10px; background: var(--page-bg); color: var(--page-text); font: 13px/1.4 var(--font); }
a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:active { color: var(--link-hover); text-decoration: underline; }
img { border: 0; max-width: 100%; }
p { margin: 0 0 8px; }
h1, h2, h3 { font-size: 13px; margin: 0; }
form { margin: 0; }
hr { border: 0; border-top: 1px solid var(--row-border); margin: 8px 0; }
.smallfont, .small { font-size: 11px; }
.time { color: var(--muted); }
.muted { color: var(--muted); }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.highlight { color: var(--highlight); font-weight: bold; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 4px; background: var(--panel-bg); padding: 6px 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 1px; }

/* ---------- page container ---------- */
.page { margin: 0 auto; padding: 0 10px; }
.page.fixed { max-width: var(--page-width, 1000px); }
.page.fluid { max-width: none; padding: 0 16px; }
.page.percent { width: var(--page-pct, 90%); max-width: none; padding: 0; box-sizing: border-box; }
.spacer { height: 10px; }

/* ---------- header ---------- */
.qbb-header { margin-top: 10px; border: 1px solid var(--border); border-bottom: 0; background: linear-gradient(var(--header-bg1), var(--header-bg2)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.qbb-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qbb-logo img { max-height: 70px; display: block; }
.qbb-logo .board-name { font-size: 22px; font-weight: bold; color: var(--header-text); letter-spacing: -.5px; line-height: 1.1; }
.qbb-logo .board-name span { color: var(--header-accent); }
.qbb-logo .board-desc { font-size: 11px; color: var(--header-muted, var(--muted)); margin-top: 2px; }
.qbb-logo a:hover { text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.welcome { font-size: 11px; text-align: right; color: var(--header-muted, var(--page-text)); line-height: 1.6; }
.welcome a { color: var(--header-link, var(--link)); }
.welcome label { color: var(--header-muted, var(--page-text)); }
.welcome b a { font-weight: bold; }
.welcome .pm-new { font-weight: bold; color: var(--link-hover); }
.loginbox { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; font-size: 11px; }
.loginbox input.bginput { width: 110px; padding: 2px 4px; font-size: 11px; }
.loginbox label { white-space: nowrap; }

/* ---------- navigation strip ---------- */
.navbar-main { background: var(--nav-bg); border: 1px solid var(--nav-border); display: flex; flex-wrap: wrap; }
.navbar-main a, .navbar-main .navitem { color: var(--nav-text) !important; padding: 6px 12px; font-size: 11px; font-weight: bold; border-right: 1px solid rgba(255,255,255,.15); display: block; white-space: nowrap; }
.navbar-main a:hover, .navbar-main a.active { background: var(--nav-hover-bg); text-decoration: none; }
.navbar-main .navtoggle { display: none; }
.navbar-main .navlinks { display: contents; }
.navbar-main .nav-right { margin-left: auto; display: flex; }
.navbar-main .nav-right a { border-right: 0; border-left: 1px solid rgba(255,255,255,.15); }
.quicklinks { position: relative; }
.quicklinks-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 190px; background: var(--panel-bg); border: 1px solid var(--border); box-shadow: 2px 2px 6px rgba(0,0,0,.25); }
.quicklinks-menu a { color: var(--link) !important; font-weight: normal; border: 0; border-bottom: 1px solid var(--row-border); background: var(--alt1); }
.quicklinks-menu a:hover { background: var(--alt2); }
.quicklinks.open .quicklinks-menu, .quicklinks:focus-within .quicklinks-menu { display: block; }

/* ---------- breadcrumb ---------- */
.breadcrumb { border: 1px solid var(--border); border-top: 0; background: var(--crumb-bg); color: var(--crumb-text); padding: 6px 10px; font-size: 11px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.breadcrumb .navbit-current { font-weight: bold; font-size: 13px; display: block; margin-top: 2px; }
.breadcrumb .crumbs a { color: var(--link); }
.breadcrumb .crumb-sep { color: var(--muted); margin: 0 3px; }
.breadcrumb .crumb-tools { text-align: right; align-self: center; }

/* ---------- classic tables ---------- */
.tborder { background: var(--border); border-spacing: 1px; border-collapse: separate; width: 100%; color: var(--text); }
.tborder td, .tborder th { padding: 6px; vertical-align: middle; }
.tcat { background: linear-gradient(var(--cat-bg2), var(--cat-bg)); color: var(--cat-text); font-weight: bold; font-size: 12px; text-align: left; }
.tcat a:link, .tcat a:visited { color: var(--cat-link); }
.tcat .tcat-desc { font-weight: normal; font-size: 11px; opacity: .85; display: block; }
.thead { background: var(--thead-bg); color: var(--thead-text); font-size: 11px; font-weight: bold; text-align: left; }
.thead a:link, .thead a:visited { color: var(--thead-text); text-decoration: underline; }
.alt1, .alt1Active { background: var(--alt1); color: var(--text); }
.alt2, .alt2Active { background: var(--alt2); color: var(--text); }
.tfoot { background: var(--thead-bg); color: var(--thead-text); font-size: 11px; }
.tfoot a:link, .tfoot a:visited { color: var(--thead-text); }
.panel { background: var(--alt2); color: var(--text); border: 1px solid var(--border); padding: 10px; }
.panelsurround { background: var(--alt1); padding: 8px; }
.block { margin-top: 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.collapse-toggle { float: right; color: var(--cat-text) !important; font-weight: bold; padding: 0 4px; cursor: pointer; background: none; border: 0; font: inherit; }

/* forum list */
.forum-icon, .thread-icon { width: 34px; text-align: center; }
.forumtitle { font-weight: bold; font-size: 13px; }
.forumdesc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.subforums { font-size: 11px; margin-top: 3px; }
.subforums b { color: var(--muted); }
.lastpost { font-size: 11px; width: 210px; white-space: nowrap; }
.lastpost .lp-title { font-weight: bold; display: block; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.lastpost .lp-go { font-size: 10px; }
.count { width: 62px; text-align: center; font-size: 11px; }
.moderators-line { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* status icons (drawn with CSS so they take the skin colours) */
.sicon { display: inline-block; position: relative; width: 22px; height: 16px; border-radius: 3px; background: var(--icon-old); vertical-align: middle; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.sicon::after { content: ''; position: absolute; left: 5px; bottom: -5px; border: 4px solid transparent; border-top-color: var(--icon-old); border-bottom: 0; }
.sicon.new { background: var(--icon-new); } .sicon.new::after { border-top-color: var(--icon-new); }
.sicon.hot::before { content: ''; position: absolute; right: 2px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: #D9381E; box-shadow: 0 0 0 1px #fff; }
.sicon.locked::before { content: ''; position: absolute; right: -3px; top: 5px; width: 9px; height: 7px; border-radius: 1px; background: #6B6B6B; box-shadow: 0 0 0 1px #fff; }
.sicon.locked { opacity: .9; }
.sicon.moved { background: transparent; box-shadow: none; }
.sicon.moved::after { left: 3px; bottom: 3px; border: 0; width: 14px; height: 2px; background: var(--muted); }
.sicon.moved::before { content: '\2192'; position: absolute; left: 3px; top: -3px; color: var(--muted); font-size: 16px; }
.sicon.link { background: transparent; box-shadow: none; }
.sicon.link::after { display: none; }
.sicon.link::before { content: '\21AA'; color: var(--muted); font-size: 17px; position: absolute; left: 3px; top: -4px; }
.sicon.forum { width: 26px; height: 20px; }
.sicon.forum::after { left: 6px; }
.sicon.forum.private::before { content: ''; position: absolute; right: -3px; top: 7px; width: 9px; height: 8px; border-radius: 1px; background: #6B6B6B; box-shadow: 0 0 0 1px #fff; }

/* thread list */
.threadtitle { font-weight: bold; }
.threadtitle.unread a { font-weight: bold; }
.threadtitle .prefix { font-weight: bold; color: var(--muted); }
.thread-glyph { color: var(--highlight); font-weight: bold; margin-right: 3px; }
.threadmeta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.minipages { margin-left: 4px; font-weight: normal; }
.thread-tags { font-size: 10px; color: var(--muted); }
.thread-tags a { color: var(--muted); }
.goto-new { font-size: 10px; font-weight: bold; margin-right: 2px; }
.icon-attach, .icon-poll { font-size: 10px; color: var(--muted); margin-left: 4px; }
tr.sticky-sep td { background: var(--thead-bg); color: var(--thead-text); font-size: 11px; font-weight: bold; padding: 3px 6px; }
tr.moderated td { opacity: .8; }
tr.moderated td.alt1, tr.moderated td.alt2 { background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,200,0,.10) 6px, rgba(255,200,0,.10) 12px); }
tr.deleted td { opacity: .6; }
.inlinemod { width: 22px; text-align: center; }

/* ---------- controls ---------- */
.button, input.button, button.button, a.button { display: inline-block; font: bold 11px var(--font); background: var(--btn-bg); color: var(--btn-text) !important; border: 1px solid var(--btn-border); border-radius: 2px; padding: 4px 9px; cursor: pointer; text-decoration: none !important; line-height: 1.3; vertical-align: middle; }
.button:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text) !important; }
.button.secondary { background: var(--alt2); color: var(--link) !important; border-color: var(--border); }
.button.secondary:hover { background: var(--alt1); }
.button:disabled, .button.is-busy { opacity: .6; cursor: default; }
.button-big { font-size: 12px; padding: 6px 14px; }
.bginput, input.bginput, select.bginput, textarea.bginput, .qbb-form input[type=text], .qbb-form input[type=email], .qbb-form input[type=password], .qbb-form input[type=number], .qbb-form input[type=url], .qbb-form input[type=date], .qbb-form select, .qbb-form textarea { font: 13px var(--font); background: var(--input-bg); color: var(--input-text); border: 1px solid var(--input-border); padding: 3px 4px; border-radius: 0; max-width: 100%; }
textarea.bginput { width: 100%; }
select.bginput { padding: 2px; }
fieldset.fieldset { border: 1px solid var(--border); margin: 0 0 8px; padding: 6px 10px 10px; }
fieldset.fieldset legend { font-size: 11px; padding: 0 4px; color: var(--text); }
.form-row { margin-bottom: 8px; }
.form-row label.lbl { display: block; font-weight: bold; font-size: 11px; margin-bottom: 2px; }
.form-row .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.btnbar { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.controlbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.controlbar .left, .controlbar .rightside { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- messages ---------- */
.notice, .errorbox, .infobox { border: 1px solid; padding: 8px 10px; margin: 10px 0 0; font-size: 12px; }
.notice { background: var(--notice-bg); color: var(--notice-text); border-color: var(--notice-border); }
.errorbox { background: var(--error-bg); color: var(--error-text); border-color: var(--error-border); }
.infobox { background: var(--alt2); color: var(--text); border-color: var(--border); }
.errorbox ul, .notice ul { margin: 4px 0 0 18px; padding: 0; }
.standard-message td.panelsurround { padding: 14px; }
.standard-message .panel { line-height: 1.6; }

/* ---------- postbit (two-column classic layout) ---------- */
.postbit { margin-top: 6px; }
.postbit .post-head { background: var(--post-head-bg); color: var(--post-head-text); font-size: 11px; padding: 5px 8px; }
.postbit .post-head a:link, .postbit .post-head a:visited { color: var(--post-head-text); }
.postbit .post-head .postnum { float: right; font-weight: bold; }
.postbit .post-head .postnum a { text-decoration: none; }
.postbit .post-user { width: 175px; background: var(--post-user-bg); vertical-align: top !important; font-size: 11px; padding: 8px !important; }
.postbit .post-body { background: var(--post-body-bg); vertical-align: top !important; padding: 8px 10px !important; }
.postbit .post-foot { background: var(--post-foot-bg); padding: 4px 8px !important; text-align: right; }
.post-user .username { font-weight: bold; font-size: 13px; display: inline-block; word-break: break-word; }
.post-user .usertitle { margin: 2px 0 4px; }
.post-user .avatar { display: block; margin: 6px 0; max-width: 120px; max-height: 120px; }
.post-user .avatar-default { width: 60px; height: 60px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; color: #fff; margin: 6px 0; }
.post-user .userinfo { line-height: 1.6; margin-top: 4px; }
.post-user .userinfo b { font-weight: normal; color: var(--muted); }
.onlinestatus { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--offline); margin-left: 4px; vertical-align: middle; }
.onlinestatus.on { background: var(--online); }
.rep-pips { letter-spacing: 1px; font-size: 11px; }
.rep-pips .pos { color: var(--rep-pos); }
.rep-pips .neg { color: var(--rep-neg); }
.post-title { font-weight: bold; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--row-border); }
.post-message { font-size: 13px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; min-height: 40px; }
.post-message img.post-img { max-width: 100%; height: auto; }
.post-message ul, .post-message ol { margin: 4px 0 4px 24px; padding: 0; }
.post-signature { margin-top: 12px; padding-top: 6px; border-top: 1px dashed var(--row-border); font-size: 11px; color: var(--muted); max-height: 160px; overflow: hidden; }
.post-edited { font-size: 10px; color: var(--muted); font-style: italic; margin-top: 10px; }
.post-attachments { margin-top: 10px; }
.post-attachments fieldset { border: 1px solid var(--row-border); padding: 4px 8px; font-size: 11px; }
.post-attachments .thumb { display: inline-block; margin: 4px 6px 4px 0; vertical-align: top; }
.post-attachments .thumb img { max-width: 180px; max-height: 140px; border: 1px solid var(--row-border); }
.post-foot .button { font-size: 10px; padding: 2px 7px; margin-left: 2px; }
.post-foot .button.mq-on { background: var(--icon-new); }
.post-foot .left-tools { float: left; font-size: 11px; padding-top: 3px; }
.post-ignored .post-body { color: var(--muted); font-style: italic; }
.post-moderated .post-body { background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,200,0,.10) 8px, rgba(255,200,0,.10) 16px); }
.post-deleted .post-body { opacity: .7; }
.post-flag { display: inline-block; font-size: 10px; font-weight: bold; padding: 1px 5px; border: 1px solid var(--border); background: var(--alt2); margin-bottom: 6px; }

/* BBCode */
.bbcode-quote { margin: 6px 20px 8px; }
.bbcode-quote .quote-title { font-size: 11px; margin-bottom: 2px; color: var(--muted); }
.bbcode-quote .quote-body { background: var(--quote-bg); color: var(--quote-text); border: 1px inset var(--quote-border); border-left: 3px solid var(--quote-border); padding: 6px 8px; }
.bbcode-code { margin: 6px 20px 8px; }
.bbcode-code .code-title { font-size: 11px; margin-bottom: 2px; color: var(--muted); }
.bbcode-code pre { background: var(--code-bg); color: var(--code-text); border: 1px inset var(--quote-border); padding: 6px 8px; margin: 0; max-height: 400px; overflow: auto; font: 12px/1.45 Consolas, "Courier New", monospace; white-space: pre; }
.bbcode-spoiler { margin: 6px 0; }
.bbcode-spoiler summary { cursor: pointer; font-size: 11px; font-weight: bold; }
.bbcode-spoiler > div { background: var(--quote-bg); border: 1px solid var(--quote-border); padding: 6px; margin-top: 3px; }
.hashtag { font-weight: bold; }
.smilie { vertical-align: middle; width: 16px; height: 16px; }

/* ---------- editor ---------- */
.editor-toolbar { background: var(--alt2); border: 1px solid var(--input-border); border-bottom: 0; padding: 3px; display: flex; flex-wrap: wrap; gap: 2px; }
.editor-toolbar button { font: bold 11px var(--font); min-width: 24px; height: 22px; background: var(--alt1); color: var(--text); border: 1px solid var(--border); cursor: pointer; padding: 0 5px; }
.editor-toolbar button:hover { background: var(--panel-bg); }
.editor-toolbar select { font-size: 11px; height: 22px; background: var(--input-bg); color: var(--input-text); border: 1px solid var(--border); }
.editor-area { width: 100%; min-height: 220px; font: 13px/1.45 var(--font); }
.smilie-box { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--alt1); border: 1px solid var(--border); }
.smilie-box button { background: none; border: 0; padding: 2px; cursor: pointer; }
.quickreply .editor-area { min-height: 120px; }
.tag-input-wrap { position: relative; }
.tag-suggest { position: absolute; z-index: 40; background: var(--panel-bg); border: 1px solid var(--border); min-width: 220px; max-height: 180px; overflow: auto; display: none; }
.tag-suggest div { padding: 3px 6px; cursor: pointer; font-size: 12px; }
.tag-suggest div:hover, .tag-suggest div.on { background: var(--alt2); }
.tag-chips { margin-top: 4px; font-size: 11px; }
.tag-chips button { font-size: 11px; margin: 0 4px 4px 0; background: var(--alt2); border: 1px solid var(--border); color: var(--link); cursor: pointer; padding: 1px 6px; }

/* ---------- pagination ---------- */
.pagenav { display: inline-block; }
.pagenav .tborder { width: auto; }
.pagenav td { padding: 3px 6px !important; font-size: 11px; white-space: nowrap; }
.pagenav td.current { background: var(--page-active-bg); color: var(--page-active-text); }
.pagenav-label { background: var(--thead-bg); color: var(--thead-text); }

/* ---------- polls ---------- */
.poll-bar { height: 10px; background: var(--highlight); min-width: 1px; display: inline-block; vertical-align: middle; border: 1px solid var(--border); }
.poll-row td { font-size: 12px; }

/* ---------- advertising ---------- */
.qbb-ad { text-align: center; margin: 10px 0 0; }
.qbb-ad .ad-label { display: block; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: var(--ad-label); margin-bottom: 2px; }
.qbb-ad a { display: inline-block; line-height: 0; }
.qbb-ad img { max-width: 100%; height: auto; border: 1px solid var(--row-border); }
.qbb-ad-row td { text-align: center; padding: 8px !important; }
.qbb-ad-post { margin: 6px 0 0; border: 1px solid var(--border); background: var(--alt1); padding: 6px; }
.with-sidebars { display: flex; gap: 10px; align-items: flex-start; }
.with-sidebars .main-col { flex: 1; min-width: 0; }
.sidebar { flex: none; }
.sidebar .qbb-ad { margin-top: 0; }

/* ---------- forum home bottom ---------- */
.wgo .wgo-title { font-weight: bold; }
.wgo-section td { font-size: 11px; line-height: 1.6; }
.wgo-section .wgo-icon { width: 30px; text-align: center; vertical-align: top; color: var(--muted); font-weight: bold; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; align-items: center; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- member profile ---------- */
.profile-head { display: flex; gap: 14px; align-items: flex-start; }
.profile-head .avatar { max-width: 120px; }
.profile-head .pname { font-size: 18px; font-weight: bold; }
.stat-list { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.8; }
.stat-list b { display: inline-block; min-width: 150px; font-weight: normal; color: var(--muted); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 10px; }
.tabs a { background: var(--alt2); border: 1px solid var(--border); border-bottom: 0; padding: 5px 10px; font-size: 11px; font-weight: bold; }
.tabs a.on { background: var(--cat-bg); color: var(--cat-text) !important; }

/* ---------- User CP ---------- */
.ucp { display: flex; gap: 10px; align-items: flex-start; }
.ucp-nav { width: 200px; flex: none; }
.ucp-nav td { font-size: 11px; padding: 4px 8px !important; }
.ucp-nav td.on { font-weight: bold; }
.ucp-main { flex: 1; min-width: 0; }
.storage-bar { height: 12px; border: 1px solid var(--border); background: var(--alt1); position: relative; }
.storage-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--highlight); }
.storage-bar.full span { background: var(--rep-neg); }

/* ---------- calendar ---------- */
.calendar td.day { height: 80px; vertical-align: top; width: 14.28%; font-size: 11px; }
.calendar td.day .dnum { font-weight: bold; }
.calendar td.today { outline: 2px solid var(--highlight); outline-offset: -2px; }
.calendar td.other { opacity: .45; }

/* ---------- footer ---------- */
.qbb-footer { margin-top: 10px; background: var(--footer-bg); color: var(--footer-text); border: 1px solid var(--border); padding: 6px 10px; font-size: 11px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.qbb-footer a:link, .qbb-footer a:visited { color: var(--footer-link); }
.qbb-footer select { font-size: 11px; background: var(--input-bg); color: var(--input-text); border: 1px solid var(--input-border); max-width: 180px; }
.qbb-footer .footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.copyright { text-align: center; font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.copyright a { color: var(--muted); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--nav-bg); color: var(--nav-text); padding: 8px 12px; font-size: 12px; display: flex; gap: 10px; justify-content: center; align-items: center; z-index: 200; flex-wrap: wrap; }
.cookie-bar a { color: var(--nav-text) !important; text-decoration: underline; }

/* ---------- CAPTCHA ---------- */
.captcha-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-box img { border: 1px solid var(--border); background: #fff; display: block; }
.captcha-answer { text-transform: uppercase; letter-spacing: 3px; font-family: Consolas, monospace !important; width: 160px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .page, .page.fluid, .page.percent { padding: 0 6px; width: auto; }
  .qbb-header { flex-direction: column; align-items: flex-start; }
  .welcome { text-align: left; }
  .loginbox { justify-content: flex-start; }
  .navbar-main .navtoggle { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--nav-text); font: bold 12px var(--font); padding: 8px 12px; cursor: pointer; }
  .navbar-main .navlinks { display: none; width: 100%; flex-direction: column; }
  .navbar-main.open .navlinks { display: flex; }
  .navbar-main .navlinks a { border-right: 0; border-top: 1px solid rgba(255,255,255,.15); padding: 9px 12px; font-size: 12px; }
  .navbar-main .nav-right { margin-left: 0; flex-direction: column; }
  .quicklinks-menu { position: static; box-shadow: none; }
  .hide-mobile { display: none !important; }
  .lastpost { width: auto; white-space: normal; }
  .lastpost .lp-title { max-width: 150px; }
  .count { width: 44px; }
  .postbit .post-row { display: flex; flex-direction: column; }
  .postbit .post-user { width: auto; display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; border-bottom: 1px solid var(--row-border); }
  .postbit .post-user .avatar, .postbit .post-user .avatar-default { width: 40px; height: 40px; margin: 0; font-size: 18px; order: -1; }
  .postbit .post-user .userinfo { width: 100%; display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; }
  .postbit .post-user .userinfo br { display: none; }
  .postbit .post-body { display: block; }
  .ucp { flex-direction: column; }
  .ucp-nav { width: 100%; }
  .with-sidebars { flex-direction: column; }
  .sidebar { width: 100% !important; }
  .bbcode-quote, .bbcode-code { margin: 6px 0; }
  .breadcrumb { flex-direction: column; }
  .breadcrumb .crumb-tools { text-align: left; }
  .stat-list b { min-width: 120px; }
  .qbb-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .navbar-main, .qbb-footer, .qbb-ad, .post-foot, .quickreply, .controlbar { display: none !important; } }
