/* Fast Forum v0.5.0 — classic layout. All colors come from --ff-* variables (Admin → Appearance → Style Editor). */

:root {
    --ff-font: Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
    --ff-radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ff-page-bg);
    color: var(--ff-text);
    font: 13px/1.45 var(--ff-font);
}
a { color: var(--ff-link); }
a:hover { color: var(--ff-link-hover); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.ff-muted { color: var(--ff-text-muted); opacity: .75; }
.ff-small { font-size: 11px; }
.ff-time { color: var(--ff-time); }
.ff-wrap { width: 98%; max-width: 1900px; margin: 0 auto; padding: 0 0 10px; }

/* ---------- header ---------- */
.ff-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--ff-chrome-bg); padding: 10px 4px; flex-wrap: wrap;
}
.ff-logo img { display: block; height: 90px; width: auto; max-width: 100%; }
.ff-logo-text { font: bold 28px var(--ff-font); color: var(--ff-heading-text); text-decoration: none; }
.ff-logo { text-decoration: none; }
.ff-banner img { display: block; max-height: 130px; width: auto; }

/* ---------- top bar (breadcrumb + welcome) ---------- */
.ff-topbar {
    display: flex; justify-content: space-between; gap: 12px;
    background: var(--ff-content-bg); border: 1px solid var(--ff-heading-bg); border-bottom: 0;
    padding: 4px 8px;
}
.ff-crumbs { font-size: 12px; }
.ff-crumbs a { color: var(--ff-link); }
.ff-crumb-icon {
    display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px;
    border: 1px solid var(--ff-link); background: var(--ff-heading-bg);
}
.ff-sep { color: var(--ff-text-muted); margin: 0 2px; }
.ff-h1 { margin: 2px 0 0; font-size: 15px; font-weight: bold; color: var(--ff-heading-text); display: flex; align-items: center; gap: 6px; }
.ff-h1-icon {
    width: 13px; height: 13px; display: inline-block; background: var(--ff-subnav-bg);
    border: 1px solid var(--ff-link); box-sizing: border-box;
}
.ff-topbar-home { display: flex; align-items: center; }
.ff-topbar-home .ff-h1 { margin: 0; }
.ff-welcome { font-size: 11px; text-align: left; min-width: 220px; border-left: 1px solid var(--ff-border); padding-left: 10px; }
.ff-welcome b { font-weight: bold; }
.ff-quicklogin { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: center; }
.ff-quicklogin label { display: contents; font-size: 11px; }
.ff-quicklogin input[type=text], .ff-quicklogin input[type=password] { width: 140px; padding: 1px 4px; font-size: 11px; }
.ff-quicklogin .ff-check { display: block; grid-column: 1 / 2; }

/* ---------- nav bar ---------- */
.ff-navbar {
    background: linear-gradient(var(--ff-subnav-bg), color-mix(in srgb, var(--ff-subnav-bg) 82%, #000));
    border: 1px solid var(--ff-heading-bg); border-top: 1px solid #000;
    margin-bottom: 12px;
}
.ff-navbar > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-around; flex-wrap: wrap; }
.ff-navbar li { position: relative; }
.ff-navbar a, .ff-navbar .ff-dd-toggle, .ff-navbtn {
    display: block; padding: 6px 12px; color: var(--ff-subnav-text); font-weight: bold; font-size: 12px; text-decoration: none;
    background: none; border: 0; cursor: pointer; font-family: var(--ff-font);
}
.ff-navbar a:hover, .ff-navbar .ff-dd-toggle:hover, .ff-navbtn:hover { text-decoration: underline; color: var(--ff-subnav-text); }
.ff-nav-toggle { display: none; }
.ff-inline { display: inline; margin: 0; }

/* dropdowns */
.ff-dropdown { position: relative; display: inline-block; }
.ff-dd-toggle { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.ff-dd-menu {
    display: none; position: absolute; right: 0; top: 100%; z-index: 50; min-width: 200px;
    list-style: none; margin: 0; padding: 0; background: var(--ff-content-bg);
    border: 1px solid var(--ff-heading-bg); box-shadow: 0 4px 12px rgba(0,0,0,.6);
}
.ff-navbar .ff-dd-menu { left: 0; right: auto; }
.ff-dropdown.is-open > .ff-dd-menu { display: block; }
.ff-dd-menu li { border-bottom: 1px solid var(--ff-border); }
.ff-dd-menu a, .ff-dd-menu .ff-linkbtn { display: block; width: 100%; text-align: left; padding: 6px 10px; font-weight: normal; color: var(--ff-link) !important; }
.ff-dd-menu a:hover, .ff-dd-menu .ff-linkbtn:hover { background: var(--ff-alt-bg); }
.ff-linkbtn { background: none; border: 0; color: var(--ff-link); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.ff-navbar .ff-linkbtn { text-decoration: none; }
.ff-modmenu { min-width: 280px; }
.ff-modform { display: flex; gap: 4px; padding: 6px 10px; }
.ff-modform input, .ff-modform select { flex: 1; min-width: 0; }

/* ---------- flash / errors ---------- */
.ff-flash { padding: 8px 12px; margin: 0 0 10px; border: 1px solid; }
.ff-flash-ok { background: #0b3b1a; border-color: #2f8f4e; color: #d6ffe0; }
.ff-flash-err, .ff-errorbox { background: #4a0b10; border: 1px solid #c32c31; color: #ffd8d8; padding: 8px 12px; margin: 0 0 10px; }
.ff-errorbox ol { margin: 4px 0 0 18px; padding: 0; }

/* ---------- blocks ---------- */
.ff-block { border: 1px solid var(--ff-heading-bg); margin: 0 0 12px; background: var(--ff-content-bg); }
.ff-block-head {
    background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2));
    color: var(--ff-heading-text); padding: 5px 8px; font-size: 15px;
    border-bottom: 1px solid #000;
}
.ff-block-head a { color: var(--ff-heading-text); }
.ff-forums-head { font-weight: bold; }
.ff-forums-head a { text-decoration: none; }
.ff-forums-head a:hover { text-decoration: underline; }
.ff-block-head b { font-weight: bold; }
.ff-block-head-split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ff-block-head-small { font-size: 12px; }
.ff-block-desc { display: block; font-size: 11px; opacity: .85; }
.ff-head-meta { font-size: 12px; }
.ff-subhead { background: var(--ff-subhead-bg); padding: 4px 8px; font-weight: bold; font-size: 12px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.ff-row { padding: 8px 10px; }
.ff-notice { padding: 14px; }
.ff-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.ff-titlebar {
    background: var(--ff-content-bg); border: 1px solid var(--ff-heading-bg); padding: 7px 8px; margin-bottom: 14px; font-size: 15px;
}
.ff-titlebar-desc { font-size: 12px; margin-left: 6px; }

/* ---------- tables ---------- */
.ff-table { width: 100%; border-collapse: collapse; }
.ff-table th {
    background: var(--ff-subhead-bg); color: var(--ff-heading-text); font-size: 12px; text-align: left;
    padding: 4px 6px; border-bottom: 1px solid #000; white-space: nowrap;
}
.ff-table th a { color: var(--ff-link); }
.ff-table td { padding: 6px; border-bottom: 1px solid var(--ff-border); vertical-align: middle; }
.ff-table tbody tr:last-child td { border-bottom: 0; }
.ff-col-icon { width: 34px; text-align: center; background: var(--ff-alt-bg); }
.ff-col-picon { width: 26px; text-align: center; background: var(--ff-alt-bg); }
.ff-col-num { width: 70px; text-align: center; }
.ff-col-rating { width: 80px; text-align: right; }
.ff-col-last { width: 210px; text-align: right; background: var(--ff-alt-bg); font-size: 12px; }
.ff-col-date { width: 130px; }
th.ff-col-icon, th.ff-col-picon, th.ff-col-last { background: var(--ff-subhead-bg); }
th.ff-col-num, th.ff-col-last { text-align: center; }
.ff-empty { text-align: center; padding: 18px !important; }

/* forum rows */
.ff-forum-title { font-weight: bold; font-size: 14px; }
.ff-forum-desc { font-size: 12px; margin-top: 2px; }
.ff-subforums { font-size: 12px; margin-top: 4px; }
.ff-subforums ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 16px; }
.ff-subforums li { padding: 1px 0; }
.ff-last-title { font-weight: bold; }
.ff-goto { text-decoration: none; font-weight: bold; margin-left: 2px; }
.ff-date { color: var(--ff-text); }

/* icons drawn with masks so they follow the color settings */
.ff-ficon, .ff-ticon, .ff-sficon, .ff-post-icon, .ff-mp-icon {
    display: inline-block; vertical-align: middle;
    -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ff-ficon { width: 26px; height: 26px; }
.ff-sficon { width: 12px; height: 12px; margin-right: 4px; }
.ff-ticon { width: 20px; height: 20px; }
.ff-ficon, .ff-sficon, .ff-ticon {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6.5A2.5 2.5 0 0 1 4.5 4h15A2.5 2.5 0 0 1 22 6.5v11a2.5 2.5 0 0 1-2.5 2.5h-15A2.5 2.5 0 0 1 2 17.5zM4.2 6.6l7.8 6 7.8-6z'/%3E%3C/svg%3E");
}
.ff-ficon-new, .ff-ticon-new { background: var(--ff-icon-unread); }
.ff-ficon-old, .ff-ticon-old { background: var(--ff-icon-read); }
.ff-ficon-link { background: var(--ff-icon-read); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.6 13.4a1 1 0 0 1 0-1.4l3.5-3.5a3 3 0 1 1 4.2 4.2l-2 2a1 1 0 1 1-1.4-1.4l2-2a1 1 0 0 0-1.4-1.4L12 13.4a1 1 0 0 1-1.4 0zM13.4 10.6a1 1 0 0 1 0 1.4l-3.5 3.5a3 3 0 1 1-4.2-4.2l2-2a1 1 0 1 1 1.4 1.4l-2 2a1 1 0 0 0 1.4 1.4L12 10.6a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E"); }
.ff-ticon-hot, .ff-ticon-hot-new {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s6 5.2 6 11a6 6 0 0 1-12 0c0-2.6 1.3-4.6 2.6-6 .2 2 1.2 3.4 2.6 3.4C11.2 7 12 4.6 12 2z'/%3E%3C/svg%3E");
}
.ff-ticon-hot { background: #c7752c; }
.ff-ticon-hot-new { background: #ff8c1a; }
.ff-ticon-closed {
    background: var(--ff-icon-read);
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E");
}
.ff-post-icon, .ff-mp-icon {
    width: 11px; height: 12px; margin-right: 4px; background: var(--ff-heading-text);
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v17H2zm11 1.5V8h6.5z'/%3E%3C/svg%3E");
}
.ff-mp-icon { background: var(--ff-text); width: 9px; height: 10px; margin: 0 2px 0 0; }

/* thread rows */
.ff-thread-title { font-size: 14px; }
.ff-thread-title a.ff-unread { font-weight: bold; }
.ff-sticky-label { color: var(--ff-heading-text); }
.ff-thread-starter { font-size: 12px; margin-top: 1px; }
.ff-thread-starter a { color: var(--ff-text); text-decoration: none; }
.ff-pagejump { font-size: 12px; }
.ff-stars { color: #ffd34d; letter-spacing: 1px; }
.ff-prefix { display: inline-block; background: var(--ff-heading-bg); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 2px; }
.ff-separator td { background: var(--ff-separator-bg); font-weight: bold; font-size: 12px; border-left: 3px solid var(--ff-link-hover); }
.ff-deleted { opacity: .55; }
.ff-moderated td, .ff-moderated .ff-post-body { background-image: linear-gradient(rgba(255,170,0,.08), rgba(255,170,0,.08)); }
.ff-badge { display: inline-block; font-size: 10px; padding: 0 4px; border-radius: 2px; background: #6b5600; color: #fff; vertical-align: 1px; }
.ff-badge-del { background: #7d1a1f; }
.ff-badge-ok { background: #1f6b34; }
.ff-solved { color: #6dff8f; font-weight: bold; }
.ff-solved-link { color: #6dff8f !important; font-size: 12px; }
.ff-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; padding: 6px 2px; }
.ff-legend .ff-ticon { width: 14px; height: 14px; }

/* ---------- buttons / toolbar / paging ---------- */
.ff-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 6px; flex-wrap: wrap; min-height: 26px; }
.ff-btn, .ff-btn-newthread {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer; text-decoration: none;
    background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2)); color: #fff !important;
    border: 1px solid #c7d3ea; border-radius: var(--ff-radius); padding: 3px 10px; font: bold 13px var(--ff-font);
    box-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.ff-btn:hover { filter: brightness(1.12); text-decoration: none; }
.ff-btn-small { padding: 1px 8px; font-size: 11px; }
.ff-btn-icon { font-size: 15px; line-height: 1; }
.ff-btn-closed { display: inline-block; background: #4a0b10; border: 1px solid #c32c31; color: #fff; padding: 3px 10px; border-radius: var(--ff-radius); font-weight: bold; }
.ff-btn-plain {
    background: #f4f4f4; color: #000; border: 1px solid #888; border-radius: 2px; padding: 3px 9px; font: 13px var(--ff-font); cursor: pointer;
}
.ff-btn-plain:hover { background: #fff; }
.ff-pagenav { display: inline-flex; flex-wrap: wrap; gap: 1px; font-size: 12px; border: 1px solid var(--ff-heading-bg); }
.ff-pagenav a, .ff-pagenav strong, .ff-pn-label { padding: 2px 6px; background: var(--ff-content-bg); text-decoration: none; }
.ff-pagenav strong { background: var(--ff-page-bg); color: #fff; }
.ff-pn-label { background: var(--ff-heading-bg); color: #fff; }
.ff-sortform { font-size: 12px; }
.ff-actions-bottom { display: flex; gap: 16px; font-size: 12px; justify-content: flex-end; }
.ff-prevnext { text-align: center; padding: 10px; }

/* ---------- posts ---------- */
.ff-thread-head { margin-bottom: 6px; }
.ff-post { border: 1px solid var(--ff-heading-bg); margin: 0 0 10px; background: var(--ff-content-bg); }
.ff-post-head {
    display: flex; justify-content: space-between; background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2));
    color: var(--ff-heading-text); padding: 3px 8px; font-size: 12px; border-bottom: 1px solid #000;
}
.ff-post-head a { color: var(--ff-heading-text); }
.ff-post-body { display: flex; }
.ff-postbit {
    flex: 0 0 190px; padding: 10px; border-right: 1px solid var(--ff-border); background: var(--ff-alt-bg); font-size: 12px;
}
.ff-postbit-name { font-size: 15px; font-weight: bold; word-break: break-word; }
.ff-postbit-title { margin: 2px 0 6px; }
.ff-postbit-avatar { display: inline-block; margin-bottom: 6px; }
.ff-postbit-info { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin: 0; }
.ff-postbit-info dt { opacity: .85; }
.ff-postbit-info dd { margin: 0; }
.ff-online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 2px; }
.ff-online-dot.on { background: #3cdc5a; }
.ff-online-dot.off { background: #5a6b7d; }
.ff-avatar { border-radius: 3px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; }
.ff-post-content { flex: 1; min-width: 0; padding: 10px 12px; }
.ff-post-title { font-size: 14px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ff-border); }
.ff-message { font-size: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.ff-message ul, .ff-message ol { margin: 4px 0 4px 6px; }
.ff-edited { font-size: 11px; font-style: italic; margin-top: 10px; opacity: .8; }
.ff-signature { margin-top: 12px; font-size: 12px; overflow: hidden; max-height: 260px; }
.ff-post-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; border-top: 1px solid var(--ff-border); background: var(--ff-alt-bg); font-size: 11px; gap: 8px; flex-wrap: wrap; }
.ff-post-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.ff-pbtn {
    display: inline-block; background: var(--ff-content-bg); color: var(--ff-link); border: 1px solid var(--ff-heading-bg);
    padding: 1px 8px; font: 11px var(--ff-font); cursor: pointer; text-decoration: none; border-radius: 2px;
}
.ff-pbtn:hover { background: var(--ff-heading-bg); color: #fff; }
.ff-thanks-btn.is-on { border-color: #3cdc5a; }
.ff-thanks-row { border-top: 1px solid var(--ff-border); padding: 5px 8px; font-size: 12px; background: var(--ff-content-bg); }
.ff-thanks-label { font-weight: bold; }
.ff-solution { box-shadow: 0 0 0 2px #2f8f4e inset; }
.ff-post-ip { opacity: .7; }

/* BBCode output */
.ff-bb-img { max-width: 100%; height: auto; vertical-align: middle; }
.ff-quote { margin: 8px 0; padding: 0; border: 1px solid var(--ff-heading-bg); background: var(--ff-alt-bg); }
.ff-quote-head { font-size: 11px; padding: 3px 8px; background: var(--ff-subhead-bg); }
.ff-quote-body { padding: 6px 10px; }
.ff-code { margin: 8px 0; border: 1px solid var(--ff-heading-bg); }
.ff-code-head { font-size: 11px; padding: 2px 8px; background: var(--ff-subhead-bg); }
.ff-code pre { margin: 0; padding: 8px; max-height: 360px; overflow: auto; background: #001a28; font: 12px/1.4 Consolas, "Courier New", monospace; white-space: pre; }
.ff-icode { background: #001a28; padding: 0 3px; font-family: Consolas, monospace; }
.ff-bb-hr { border: 0; border-top: 1px solid var(--ff-heading-bg); margin: 10px 0; }
.ff-bb-media { position: relative; max-width: 640px; aspect-ratio: 16/9; margin: 8px 0; }
.ff-bb-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ff-spoiler { border: 1px dashed var(--ff-heading-bg); padding: 4px 8px; margin: 6px 0; }
.ff-spoiler summary { cursor: pointer; font-weight: bold; }
.ff-ispoiler { background: var(--ff-text); color: transparent; border-radius: 2px; }
.ff-ispoiler:hover, .ff-ispoiler:focus { color: inherit; background: transparent; }
.ff-bb-table { border-collapse: collapse; margin: 6px 0; }
.ff-bb-table td, .ff-bb-table th { border: 1px solid var(--ff-heading-bg); padding: 3px 6px; }
.ff-bb-heading { margin: 8px 0 4px; }
.ff-smilie { font-size: 1.15em; }
.ff-mention { font-weight: bold; text-decoration: none; }
.ff-attachments { border: 1px solid var(--ff-heading-bg); margin-top: 12px; padding: 6px 10px; }
.ff-attachments legend { color: var(--ff-time); font-size: 12px; }
.ff-attach-thumb img { max-width: 220px; max-height: 160px; margin: 4px; border: 1px solid var(--ff-border); }
.ff-attach-file { font-size: 12px; margin: 2px 0; }
.ff-attach-locked { font-size: 12px; font-style: italic; }
.ff-bookmarks { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=search], input[type=url], input[type=number], input[type=date], select, textarea {
    background: var(--ff-input-bg); color: var(--ff-text); border: 1px solid var(--ff-input-border);
    padding: 4px 6px; font: 13px var(--ff-font); border-radius: 2px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ff-link); outline-offset: 0; }
.ff-form-panel { padding: 12px 14px; }
.ff-form-center { max-width: 760px; margin: 0 auto; }
.ff-form-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ff-title-field { flex: 1; min-width: 260px; }
.ff-title-row { display: flex; gap: 6px; }
.ff-title-row input { flex: 1; }
.ff-loggedin { font-size: 12px; }
.ff-form-buttons { text-align: center; padding: 8px; background: var(--ff-page-bg); border-top: 1px solid var(--ff-border); }
.ff-stack { display: flex; flex-direction: column; gap: 10px; }
.ff-stack > label { display: flex; flex-direction: column; gap: 3px; }
.ff-stack .ff-form-buttons { background: none; border: 0; text-align: left; padding: 4px 0; }
.ff-check { display: block; margin: 3px 0; }
.ff-fieldset { border: 1px solid #c8c8c8; margin: 10px 0; padding: 6px 12px 10px; }
.ff-fieldset legend { color: var(--ff-time); font-size: 12px; padding: 0 2px; }
.ff-fieldset p { margin: 4px 0; }
.ff-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ff-searchform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ff-searchform label { display: flex; flex-direction: column; gap: 3px; }
.ff-searchform input[type=search] { min-width: 300px; }
.ff-inline-search { display: flex; gap: 4px; }

/* editor — classic two-row toolbar */
.ff-editor { border: 1px solid #888; background: #e0e0e0; padding: 4px; color: #000; }
.ff-editor-toolbar { padding: 2px 2px 4px; }
.ff-tb-row { display: flex; flex-wrap: wrap; gap: 1px; align-items: center; min-height: 26px; }
.ff-editor-toolbar button {
    min-width: 24px; height: 24px; border: 1px solid transparent; background: transparent; cursor: pointer;
    font: 14px Georgia, "Times New Roman", serif; color: #000; border-radius: 2px; padding: 1px 3px; display: inline-flex; align-items: center; justify-content: center;
}
.ff-editor-toolbar button svg { width: 18px; height: 18px; display: block; }
.ff-editor-toolbar button:hover, .ff-editor-toolbar button[aria-pressed=true] { border-color: #316ac5; background: #c1d2ee; }
.ff-editor-toolbar select { background: #fff; color: #000; border: 1px solid #999; height: 22px; padding: 0 2px; font: 12px Tahoma, sans-serif; }
.ff-tb-font { width: 130px; }
.ff-tb-sep { width: 1px; height: 20px; background: #a9a9a9; margin: 0 4px; box-shadow: 1px 0 0 #fff; }
.ff-tb-pop { position: relative; display: inline-flex; }
.ff-tb-drop { gap: 2px; }
.ff-tb-a { font: bold 14px Tahoma, sans-serif; color: #24a; line-height: 1; position: relative; }
.ff-tb-colorbar { display: block; position: absolute; left: 4px; bottom: 2px; width: 14px; height: 3px; background: #000; }
.ff-tb-drop { position: relative; }
.ff-tb-arrow { font-size: 9px; color: #333; margin-left: 2px; }
.ff-tb-menu { position: absolute; top: 26px; left: 0; z-index: 40; background: #fff; border: 1px solid #555; padding: 4px; box-shadow: 2px 3px 8px rgba(0,0,0,.4); }
.ff-tb-palette { display: grid; grid-template-columns: repeat(8, 16px); gap: 3px; padding: 6px; }
.ff-tb-palette button { min-width: 0 !important; width: 16px; height: 16px !important; padding: 0 !important; border: 1px solid #777 !important; border-radius: 0 !important; }
.ff-tb-palette button:hover { outline: 2px solid #316ac5; }
.ff-tb-smilemenu { display: grid; grid-template-columns: repeat(6, 28px); gap: 2px; width: max-content; }
.ff-tb-smilemenu button { font-size: 18px !important; }
.ff-tb-list { display: flex; flex-direction: column; min-width: 230px; }
.ff-tb-list button { justify-content: flex-start !important; width: 100%; font: 12px Tahoma, sans-serif !important; padding: 4px 8px !important; height: auto !important; }
.ff-tb-resize { margin-left: auto; }
.ff-tb-strike { font: bold 14px Georgia, serif !important; color: #8a2a2a !important; background: #f3d6d6 !important; border: 1px solid #a66 !important; }
.ff-editor-area { display: flex; gap: 6px; }
.ff-editor textarea { flex: 1; width: 100%; background: var(--ff-content-bg); color: var(--ff-text); border: 1px solid #666; min-height: 120px; resize: vertical; font-size: 14px; }
.ff-editor textarea.ff-ta-tall { min-height: 520px; }
.ff-smilies { flex: 0 0 100px; margin: 0; border: 1px solid #aaa; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 2px; background: #d9d9d9; }
.ff-smilies legend { color: #ffd800; font-size: 11px; background: transparent; padding: 0 3px; text-shadow: 0 0 2px #000; }
.ff-smilies button { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 2px; }
.ff-posticon-grid { display: grid; grid-template-columns: 110px repeat(7, 70px); gap: 4px 0; align-items: center; }
.ff-posticon-grid label { white-space: nowrap; }
.ff-picon { font-size: 14px; line-height: 1; margin-right: 3px; }
@media (max-width: 700px) { .ff-posticon-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- profile / usercp / members ---------- */
.ff-profile { display: flex; gap: 10px; align-items: flex-start; }
.ff-profile-main { flex: 1; min-width: 0; }
.ff-profile-side { flex: 0 0 270px; }
.ff-profile-top { display: flex; gap: 10px; margin-bottom: 8px; }
.ff-profile-avatar { border: 1px solid var(--ff-heading-bg); padding: 2px; background: var(--ff-content-bg); align-self: flex-start; }
.ff-profile-name { font-size: 26px; font-weight: bold; }
.ff-profile-name .ff-username { color: #ff6f91; }
.ff-profile-status { font-size: 12px; font-weight: normal; margin-left: 6px; color: var(--ff-text); }
.ff-on { color: #3cdc5a; }
.ff-off { color: #4ea0a8; }
.ff-profile-title { font-size: 15px; }
.ff-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 16px 0 0; padding: 0; }
.ff-tabs a {
    display: block; padding: 4px 34px 4px 6px; font-size: 12px; color: #fff; text-decoration: none;
    background: linear-gradient(var(--ff-heading-bg2), var(--ff-subhead-bg)); border: 1px solid var(--ff-heading-bg); border-bottom: 0;
}
.ff-tabs .is-active a { background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2)); font-size: 15px; font-weight: bold; padding-top: 6px; }
.ff-tabpanel { border: 1px solid var(--ff-heading-bg); border-top: 6px solid var(--ff-heading-bg); background: var(--ff-content-bg); padding: 10px 12px; }
.ff-tabpanel h3 { margin: 4px 0 8px; font-size: 15px; }
.ff-aboutlist dt { margin-top: 6px; }
.ff-aboutlist dd { margin: 0 0 0 18px; }
.ff-mini { margin: 0 0 6px; }
.ff-mini dd { margin: 0 0 4px 18px; }
.ff-recent-post { border-bottom: 1px solid var(--ff-border); padding: 6px 0; }
.ff-cp { display: flex; gap: 10px; align-items: flex-start; }
.ff-cp-side { flex: 0 0 190px; border: 1px solid var(--ff-heading-bg); background: var(--ff-content-bg); }
.ff-cp-head { background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2)); padding: 6px 8px; font-weight: bold; font-size: 15px; }
.ff-cp-head a { color: #fff; text-decoration: none; }
.ff-cp-sec { background: var(--ff-subhead-bg); padding: 3px 6px; font-weight: bold; font-size: 12px; border-top: 1px solid #000; }
.ff-cp-link { display: block; padding: 5px 8px; border-top: 1px solid var(--ff-border); font-size: 12px; }
.ff-cp-link.is-active { background: var(--ff-alt-bg); font-weight: bold; }
.ff-cp-main { flex: 1; min-width: 0; }
.ff-avatar-current { margin-bottom: 4px; }
.ff-memberlist td { vertical-align: middle; }

/* ---------- footer ---------- */
.ff-footer { margin-top: 18px; background: var(--ff-footer-bg); }
.ff-footer-cols { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-footer-logo { flex: 1 1 300px; padding: 6px; }
.ff-footer-logo img { max-width: 300px; display: block; }
.ff-footer-logo p { margin: 6px 0 0; font-size: 12px; }
.ff-footer-col { flex: 1 1 200px; background: var(--ff-footer-col-bg); border-radius: 5px; padding: 8px 12px; }
.ff-footer-col h3 { margin: 0 0 6px; font-size: 14px; color: var(--ff-heading-text); }
.ff-footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.ff-footer-col li { padding: 2px 0; }
.ff-footer-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: var(--ff-content-bg); border: 1px solid var(--ff-heading-bg); padding: 5px 8px; font-size: 11px; }
.ff-copyright { text-align: center; font-size: 11px; padding: 8px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .ff-col-rating, .ff-col-picon { display: none; }
    .ff-col-last { width: 150px; }
    .ff-subforums ul { grid-template-columns: 1fr; }
    .ff-profile, .ff-cp { flex-direction: column; }
    .ff-profile-side, .ff-cp-side { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 700px) {
    body { font-size: 14px; }
    .ff-wrap { width: 100%; padding: 0 6px 10px; }
    .ff-topbar { flex-direction: column; }
    .ff-welcome { border-left: 0; padding-left: 0; border-top: 1px solid var(--ff-border); padding-top: 4px; }
    .ff-nav-toggle { display: block; width: 100%; background: none; border: 0; color: var(--ff-subnav-text); font: bold 14px var(--ff-font); padding: 8px; text-align: left; cursor: pointer; }
    .ff-navbar > ul { display: none; flex-direction: column; }
    .ff-navbar.is-open > ul { display: flex; }
    .ff-navbar .ff-dd-menu { position: static; box-shadow: none; }
    .ff-table thead { display: none; }
    .ff-table tr { display: grid; grid-template-columns: 34px 1fr; border-bottom: 1px solid var(--ff-border); }
    .ff-table td { border: 0; }
    .ff-table td.ff-col-icon { grid-row: span 3; }
    .ff-table td.ff-col-last, .ff-table td.ff-col-num, .ff-table td.ff-col-date { text-align: left; background: none; width: auto; grid-column: 2; padding: 1px 6px; font-size: 12px; }
    .ff-table td.ff-col-num::before { content: attr(data-label); }
    .ff-forums td.ff-col-num, .ff-threads td.ff-col-num { display: inline-block; }
    .ff-post-body { flex-direction: column; }
    .ff-postbit { flex: none; border-right: 0; border-bottom: 1px solid var(--ff-border); display: grid; grid-template-columns: 56px 1fr; gap: 0 8px; }
    .ff-postbit-avatar { grid-row: span 3; }
    .ff-postbit-avatar .ff-avatar { width: 52px !important; height: 52px !important; }
    .ff-postbit-info { display: none; }
    .ff-editor-area { flex-direction: column; }
    .ff-smilies { flex: none; grid-template-columns: repeat(8, 1fr); }
    .ff-searchform input[type=search] { min-width: 0; width: 100%; }
    .ff-header { justify-content: center; }
    .ff-banner { display: none; }
    .ff-logo img { height: auto; max-height: 60px; }
}
.ff-navbar form { margin: 0; }
.ff-sficon {
    width: 10px; height: 12px; margin-right: 5px;
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v17H2zm11 1.5V8h6.5z'/%3E%3C/svg%3E");
}

/* status icons (16x16 gifs) */
.ff-sticon { display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.ff-legend img { vertical-align: -3px; margin-right: 3px; }

/* thread list details */
.ff-threads th, .ff-threads td { border-right: 1px solid #000; }
.ff-threads th:last-child, .ff-threads td:last-child { border-right: 0; }
.ff-threads th a { text-decoration: underline; }
.ff-sortarrow { font-size: 9px; vertical-align: 1px; background: #fff; color: #000; padding: 0 2px; border-radius: 1px; }
.ff-col-mod { width: 34px; text-align: center; }
.ff-thread-flags { float: right; margin-left: 8px; font-size: 13px; opacity: .85; }
.ff-gonew { text-decoration: none; margin-right: 2px; }
.ff-gonew .ff-post-icon { background: var(--ff-link); }
.ff-inlinemod { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -6px 0 10px; font-size: 12px; flex-wrap: wrap; }
.ff-inlinemod label { display: flex; gap: 6px; align-items: center; font-weight: bold; }
.ff-modsel td { background-color: var(--ff-mod-highlight) !important; }

/* status icons embedded in the stylesheet (no separate image requests) */
.ff-si { display: inline-block; width: 16px; height: 16px; vertical-align: middle; background: no-repeat center / contain; image-rendering: pixelated; }
.ff-si-forum-new { background-image: url("data:image/gif;base64,R0lGODdhDwAPAPQAAGOEr1+Aq16Aq1+ArVBzo2OEsV5/ql5+q09zo2SEsWCCrU9zpE90o2CCrl1+q2CArGKEsGGDr1BzpGSEsGCArWKEr2GDrmGCrl+ArGCBrV5/q2KDr2OEsP///wAAAAAAACwAAAAADwAPAAAFbCAgjmQJeGiqpqJHSAvzIkhMeO2hGY5u7D3cSRDQaIgC41HowQQwD2cHA8UwB5lOB6vFUAbMjFhL7oiZl4Y2rVUoLkzL5WKRd+R15mYf2fv7TBwAEACCHBWEHIEFHAkcBQUTjYotK5ZCJpkAIQA7"); }
.ff-si-forum-old { background-image: url("data:image/gif;base64,R0lGODdhDwAPAPQAAGOEr1+Aq1+ArV6Aq2CArGOEsVBzo15/ql5+q09zo2CArV1+q2CCrk90o2SEsVBzpGGDr09zpGKEsF+BrGSEsGKEr2CCrWGDrl5/q1+ArGGCrmKDr2OEsGCBrQAAAAAAACwAAAAADwAPAAAFaaAmjmSpeWiqpqJnPFHzJklseC2CHYt+7D3caRDAYIgD41HoyQQyBGcUmmEKOhnFVTDJCpidsHjcYWoYFstZnT61LqILXAOXMzd4CH6vZ3IAEgB/HBWBHH4FHA4cBQUUioctK5NCJpYaIQA7"); }
.ff-si-thread-closed { background-image: url("data:image/gif;base64,R0lGODlhEAAQANU5ALDL/4qJibbP/6KhoWZra6vI/Ju47F16rtvi7p6vz6TB9ajF+Z+88JycnKzI+8nJyaG+8nSRxczc+dfl/5CQkKzJ/Vx5rTY2NpSx5bfQ/32azrbQ/5Wy5p+fn2SBtWuIvHqXy8XR57PF5fz8/JOw5LTO/6rH+198sLPN/4Kf035+fsPDw5677zw8PDs6OkZFRScpKlNTUxITE15eXv///8zMzDMzM5mZmQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAADkALAAAAAAQABAAAAaRwJxwSCwKcUNkcnlkKnPPJlQYe7lsMCNxFrt5YbIjbkye3ay2WxgHQAkyAkHJ/CqkYWSAfjOZcdFgMjgVOAUOIyozNTQ1AwEEMYImCzgSFDh+VVeBOAoQLA8XmIuNj5E4DAYcKy2Yf5syggYYOCIdo4yOkIIkOCkgIQ2ZgLFjGhEfHgkICAknBxYHY1Bk1dZIQQA7"); }
.ff-si-thread-new-posted { background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQfAHSRxefu/tzc0Pz8+uzy/56enrrS/zk5OcLCwsnJye70/5Gu4t7e3vP2/+vx/xsbG7u7u5CQkH5+ftLh/7zO7rDL/8HBtu7u6Iyp3cDS8qK/85i16bu7rv//8gAAAAAAACH5BAEAAB8ALAAAAAAQABAAAAV94CeOZGl+XnqWXuB6ZyrPtOh1eK7jMNpxDA6kIxBwjp3ebYcr8lBLDuIyqFogguSswxhIHg/JgEdIKVKCyCyS8CgcZoUicZgdEgpCIE5A1GUHCHoGKQ5wDQUzBQ0eFQspexMTCgUHB4sGGh4AMhobCwsULhkYAKYqNKkyHyEAOw=="); }
.ff-si-thread-new { background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQfAOjv/7u7u+/0/+zy/7+/spi16dLh/+nw/5Gu4t/q/2mGur3U/5Ct4bTO/56776XC9t7p/5m26p2dnYyp3XeUyOXt/9bk/5Kv4+7z/93d3evx/93d0Lu7rv//8gAAAAAAACH5BAEAAB8ALAAAAAAQABAAAAV94CeOZGl+XnqWHgBA3pnOdC16Xa7veYx2nAwn0NlsOMiOD8fLGXso5tDIAQY2SlonI+RmdJ5BSpCaXr8SD0YzFmA8hB3BIxgAUhiMONWZp+wNKRpsg2xqax4NCCkVHgYGFgkABwcJCw4eFDMPBQgMFxEOBRMUFAoqNakzHyEAOw=="); }
.ff-si-thread-old-posted { background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQfAHWSxmiFuTIyMsbGxvn7/pu47KzJ+8PQ6Z6enrTO/9Ph/JSx5ajF+V16rrLN/6PA9KG+8oqn24Kf07bP/7DL/5CQkKGy0p6779vi7n5+fpm26n2azrPF5XKPwwAAAAAAACH5BAEAAB8ALAAAAAAQABAAAAVz4CeOZGmeaKqu7Oi9cBx/HuVM+JQkDmUwjwuMQpwoCASFIViAGTwGAyEjEGQIF40n8vp5FJVY5bCVvB6Qy0AQEww2G8DrUlis24NOJ/CqezgIMQgWHgF8HgseEhsHCFUIB4aFMHGGFhgYFg2bDS80MqCeIQA7"); }
.ff-si-thread-old { background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQfAF98sGyJvanG+q3K/p267rXP/6TB9XOQxHCNwYmm2pSx5XmWyqK/82WCtpGu4n2azrLN/4Wi1oGe0rDL/5+88Ju47Je06KfE+KvI/KPA9I2q3rfQ/5m26neUyAAAAAAAACH5BAEAAB8ALAAAAAAQABAAAAVz4CeOZGmeaKqu7Oi9cBx/3gQVW6EX0IRdDAJsQhwYB4JLhlKBDTwYQdKQYVAIHE/iJfUYrARCxeLQSl5fIVmTSEQ8j8fhxVS8HotF53VABF4VdhEPHgdzfR4BDS92EgsHf4kBih6Ld5ANAJqbmi80MqCeIQA7"); }
.ff-si-forum-new, .ff-si-forum-old { width: 15px; height: 15px; }

/* classic single-table forum list */
.ff-forumblock { background: none; }
.ff-forumlist td, .ff-forumlist th { border-right: 1px solid #000; }
.ff-forumlist td:last-child, .ff-forumlist th:last-child { border-right: 0; }
.ff-forumlist thead th { font-size: 12px; }
.ff-sechead td {
    background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2)); color: var(--ff-heading-text);
    padding: 5px 8px; border-top: 1px solid #000; border-bottom: 1px solid #000; position: relative;
}
.ff-sectitle { font-size: 15px; font-weight: bold; }
.ff-sectitle a { color: var(--ff-heading-text); text-decoration: none; }
.ff-sectitle a:hover { text-decoration: underline; }
.ff-secdesc { display: block; font-size: 11px; opacity: .85; padding-right: 30px; }
.ff-seccollapse {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; line-height: 13px; padding: 0;
    background: var(--ff-content-bg); color: #fff; border: 1px solid #c7d3ea; cursor: pointer; font: bold 13px var(--ff-font);
}
.ff-secbody.is-collapsed { display: none; }
.ff-viewing { font-size: 12px; }
.ff-forum-title { font-size: 15px; }
.ff-forumlist .ff-col-num { width: 78px; font-size: 14px; }
.ff-lastpost { text-align: left !important; width: 280px; }
.ff-lastpost .ff-last-title a { font-weight: bold; }
.ff-last-date { text-align: right; }
.ff-goto-ico { display: inline-block; width: 13px; height: 13px; line-height: 11px; text-align: center; background: #fff; color: #000 !important; font-size: 11px; text-decoration: none; border: 1px solid #888; margin-left: 2px; }
.ff-forumlist .ff-secbody td { background: var(--ff-content-bg); }
.ff-forumlist .ff-secbody td.ff-col-icon { background: var(--ff-alt-bg); }
.ff-posticon-grid > label:first-child { grid-row: span 2; }
.ff-navbar .ff-linkbtn.ff-navbtn { display: block; padding: 6px 12px; font: bold 12px var(--ff-font); color: var(--ff-subnav-text); line-height: 1.45; }

/* notices + ads */
.ff-notices { margin: 0 0 10px; }
.ff-notice-bar { position: relative; border: 1px solid; padding: 7px 34px 7px 12px; margin: 0 0 6px; font-size: 13px; }
.ff-notice-bar .ff-notice-msg { display: inline; }
.ff-notice-bar .ff-notice-msg p { margin: 0; }
.ff-notice-info { background: #0d3b5e; border-color: #5c9bd1; }
.ff-notice-success { background: #0b3b1a; border-color: #2f8f4e; }
.ff-notice-warning { background: #4a3d00; border-color: #d4a514; }
.ff-notice-danger { background: #4a0b10; border-color: #c32c31; }
.ff-notice-close { position: absolute; right: 6px; top: 4px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.ff-ad { text-align: center; margin: 0 0 10px; overflow: hidden; }
.ff-ad img { max-width: 100%; height: auto; }
.ff-smilie-img { vertical-align: middle; max-height: 24px; }

/* ---- v0.3.1: online counts + bundled plugins ---- */
.ff-subhead-note { font-weight: normal; }
.ff-online-record { margin-top: 6px; font-size: 11px; color: var(--ff-text-muted, #c9d6e8); }
.ff-loginas-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; background: #8a1c1f; color: #fff; border: 1px solid #000; padding: 6px 10px; margin: 0 0 8px; font-size: 13px; }
.ff-loginas-bar b { color: #ffe08a; }
.ff-loginas-bar form { margin: 0; }
.ff-loginas-bar button { background: #fff; color: #8a1c1f; border: 0; border-radius: 3px; padding: 3px 10px; font-weight: bold; cursor: pointer; }
.ff-side-action { padding: 6px 8px; }
.ff-side-action button { width: 100%; }
.ff-topstats { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ff-topstats th { background: var(--ff-subhead-bg); text-align: left; font-size: 12px; padding: 4px 8px; border-right: 1px solid var(--ff-border); }
.ff-topstats td { vertical-align: top; padding: 0; border-right: 1px solid var(--ff-border); background: var(--ff-content-bg); }
.ff-topstats th:last-child, .ff-topstats td:last-child { border-right: 0; }
.ff-topstats ol { list-style: none; margin: 0; padding: 4px 0; }
.ff-topstats li { display: flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 12px; }
.ff-topstats li:nth-child(even) { background: var(--ff-alt-bg); }
.ff-topstats .ff-ta-rank { width: 18px; text-align: right; color: var(--ff-time, #feffad); font-weight: bold; }
.ff-topstats .ff-ta-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-topstats .ff-ta-n { font-weight: bold; }
.ff-topstats .ff-avatar, .ff-topstats .ff-ta-av img, .ff-topstats .ff-ta-av span { width: 20px !important; height: 20px !important; font-size: 11px; line-height: 20px; }
.ff-topstats .ff-ta-empty { padding: 6px 8px; font-size: 12px; opacity: .7; }
@media (max-width: 760px) {
    .ff-topstats, .ff-topstats tbody, .ff-topstats tr, .ff-topstats th, .ff-topstats td { display: block; width: 100%; }
    .ff-topstats thead { display: none; }
    .ff-topstats td::before { content: attr(data-title); display: block; background: var(--ff-subhead-bg); font-weight: bold; font-size: 12px; padding: 4px 8px; }
}

/* ---- v0.4.0: CAPTCHA, approval queue, spam cleaner ---- */
.ff-captcha { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 8px; border: 1px solid var(--ff-border); background: var(--ff-alt-bg); }
.ff-captcha-label { font-weight: bold; font-size: 12px; }
.ff-captcha-row { display: flex; align-items: center; gap: 8px; }
.ff-captcha-img { width: 200px; height: 64px; border: 1px solid #000; border-radius: 3px; background: #dfe8f5; image-rendering: auto; }
.ff-captcha-refresh { width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 3px; border: 1px solid var(--ff-border); background: var(--ff-content-bg); color: var(--ff-link); }
.ff-captcha-refresh:hover { color: var(--ff-link-hover); }
.ff-captcha input[name="ff_captcha"] { text-transform: uppercase; letter-spacing: 3px; max-width: 200px; display: block; margin-top: 3px; }
.ff-captcha-compact { max-width: 420px; }
.ff-pbtn-ok { color: #8eff8e !important; }
.ff-pbtn-spam { color: #ff9a9a !important; }
.ff-queue-link { color: #ffd36b !important; }
.ff-queue td { vertical-align: middle; }
.ff-queue-item { border-bottom: 1px solid var(--ff-border); padding: 8px; }
.ff-queue-item:nth-child(even) { background: var(--ff-alt-bg); }
.ff-queue-head { font-size: 12px; margin-bottom: 6px; }
.ff-queue-reason { color: #ffd36b; margin-top: 3px; }
.ff-queue-msg { max-height: 260px; overflow: auto; background: var(--ff-content-bg); border: 1px solid var(--ff-border); padding: 6px 8px; margin-bottom: 6px; }
.ff-queue-acts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.ff-queue-acts label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ff-danger { color: #ff9a9a; }
.ff-queue-buttons { justify-content: flex-end; gap: 8px; }
.ff-btn-danger { background: #b3261e !important; border-color: #7a1712 !important; }
.ff-stack label.ff-check { display: flex; flex-direction: row; align-items: flex-start; gap: 6px; }
.ff-stack label.ff-check input { width: auto; flex: 0 0 auto; margin-top: 2px; }
.ff-agree-text { max-height: 50vh; overflow: auto; }

/* ---- v0.4.1: GSM plugins, contact info ---- */
.ff-chip { display: inline-block; font-size: 10px; font-weight: bold; line-height: 1; padding: 3px 6px; margin-right: 4px; border-radius: 9px; border: 1px solid var(--ff-border); background: var(--ff-alt-bg); color: var(--ff-text, #fff); vertical-align: 1px; white-space: nowrap; }
.ff-chip small { font-weight: normal; opacity: .75; margin-right: 2px; }
.ff-chip-ok { background: #1f6b34; border-color: #3fae5c; color: #fff; }
.ff-chip-open { background: #6b4b10; border-color: #c9922b; color: #fff; }
.ff-chip-new { background: #c32c31; border-color: #ff6b6b; color: #fff; }
.ff-chip-official { background: #b8860b; border-color: #ffd36b; color: #000; }
.ff-chip-ask { background: #1d4f91; border-color: #5c9bd1; color: #fff; }
.ff-chip-product { background: transparent; }
.ff-chip-model, .ff-chip-chipset, .ff-chip-bit, .ff-chip-error { background: #0d3b5e; border-color: #5c9bd1; color: #fff; }
.ff-widget-list { list-style: none; margin: 0; padding: 0; }
.ff-widget-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-top: 1px solid var(--ff-border); font-size: 12px; }
.ff-widget-list li:nth-child(even) { background: var(--ff-alt-bg); }
.ff-widget-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ff-widget-cols li { border-right: 1px solid var(--ff-border); }
.ff-ls-main { flex: 1; min-width: 0; }
.ff-ls-main > a { font-weight: bold; }
.ff-ls-meta { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }
.ff-ls-check { color: #5fdd7d; font-weight: bold; }
.ff-trend-rank { width: 18px; text-align: right; font-weight: bold; color: var(--ff-time, #feffad); }
.ff-trend-flame { font-size: 11px; white-space: nowrap; }
.ff-wtabs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ff-wtab { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); color: inherit; font-size: 11px; padding: 2px 8px; border-radius: 3px; cursor: pointer; text-decoration: none; }
.ff-wtab.is-active { background: var(--ff-content-bg); border-color: var(--ff-link); color: var(--ff-link); }
.ff-filter-tabs { display: flex; gap: 4px; margin: 0 0 6px; flex-wrap: wrap; }
.ff-filter-tab { padding: 4px 10px; border: 1px solid var(--ff-border); background: var(--ff-alt-bg); font-size: 12px; text-decoration: none; }
.ff-filter-tab.is-active { background: var(--ff-subhead-bg); font-weight: bold; }
.ff-solution-tip, .ff-ask-invite { border: 1px dashed #c9922b; background: rgba(201,146,43,.12); padding: 8px 12px; margin: 6px 0; font-size: 13px; }
.ff-ask-invite { border-color: #5c9bd1; background: rgba(92,155,209,.12); }
.ff-ask-card { border: 1px solid #5c9bd1; background: rgba(13,59,94,.55); margin: 4px 0 10px; }
.ff-ask-card-head { background: rgba(92,155,209,.25); padding: 5px 8px; font-weight: bold; font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ff-ask-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; }
.ff-ask-grid div { padding: 5px 8px; }
.ff-ask-grid span { display: block; font-size: 10px; opacity: .75; }
.ff-ask-form textarea { min-height: 60px; }
.ff-req { color: #ff8a8a; }
.ff-nav-ask { color: #ffd36b !important; }
.ff-gsms-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ff-gsms-form input[type=search] { flex: 1 1 320px; min-width: 0; padding: 7px 10px; font-size: 14px; }
.ff-gsms-big select { max-width: 260px; }
.ff-gsms-parts { margin-top: 8px; font-size: 12px; }
.ff-gsms-hit { padding: 8px 10px; border-top: 1px solid var(--ff-border); }
.ff-gsms-hit:nth-child(even) { background: var(--ff-alt-bg); }
.ff-gsms-title { font-size: 14px; font-weight: bold; }
.ff-gsms-snip { font-size: 12px; margin: 4px 0; opacity: .92; }
.ff-gsms-sol { color: #5fdd7d; }
.ff-gsms-hit mark, .ff-gsms-snip mark { background: #ffd36b; color: #000; padding: 0 1px; }
.ff-gsms-home .ff-row { padding: 8px; }
.ff-joinbox { position: relative; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border: 1px solid var(--ff-link); background: linear-gradient(90deg, var(--ff-heading-bg2, #3e5a8c), var(--ff-content-bg)); padding: 12px 40px 12px 16px; margin: 0 0 8px; }
.ff-joinbox-title { font-size: 16px; display: block; margin-bottom: 4px; }
.ff-joinbox-list { list-style: none; margin: 0; padding: 0; columns: 2 220px; font-size: 13px; }
.ff-joinbox-sub { font-size: 13px; }
.ff-joinbox-stats { font-size: 11px; opacity: .85; margin-top: 6px; }
.ff-joinbox-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ff-joinbox-btn { font-size: 15px !important; padding: 8px 22px !important; background: var(--ff-button-bg, #c32c31) !important; }
.ff-joinbox-login { font-size: 12px; }
.ff-joinbox-thread, .ff-joinbox-reply { margin: 6px 0; }
.ff-joinbox .ff-notice-close { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.ff-official-banner { background: linear-gradient(90deg, #b8860b, transparent); color: #fff; font-weight: bold; padding: 4px 8px; margin: 2px 0 8px; font-size: 12px; }
.ff-pu-bar { position: relative; border: 1px solid #ffd36b; background: rgba(184,134,11,.25); padding: 6px 34px 6px 10px; margin: 0 0 6px; font-size: 13px; }
.ff-pu-bar-label { font-weight: bold; color: #ffd36b; margin-right: 4px; }
.ff-pu-bar .ff-notice-close { position: absolute; right: 8px; top: 4px; background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.ff-rep-stars { color: #ffd36b; letter-spacing: 1px; font-size: 11px; white-space: nowrap; }
.ff-rep-empty { color: rgba(255,255,255,.25); }
.ff-rep-pts { min-width: 40px; text-align: right; }
.ff-rep-title { font-style: italic; font-size: 11px; }
.ff-rep-big { font-size: 20px; }
.ff-cicon { display: inline-block; border-radius: 50%; text-align: center; font-weight: bold; font-family: Arial, sans-serif; vertical-align: middle; flex: 0 0 auto; }
.ff-postbit-contacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ff-postbit-contacts a { text-decoration: none; }
.ff-contact-fs { margin: 8px 0; }
.ff-contact-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 20px 4px 0; }
.ff-contact-table td { padding: 3px 12px 3px 0; }
.ff-contact-svc { white-space: nowrap; font-size: 12px; }
.ff-contact-intro { margin: 0 0 6px; }
.ff-contact-edit td { vertical-align: middle; }
.ff-contact-edit input[type=text] { width: 100%; min-width: 160px; }
.ff-contact-edit td:first-child { white-space: nowrap; }
@media (max-width: 700px) {
    .ff-contact-edit thead { display: none; }
    .ff-contact-edit tr { display: grid; grid-template-columns: 1fr; padding: 6px 0; border-bottom: 1px solid var(--ff-border); }
    .ff-joinbox { padding-right: 16px; }
}
.ff-ask-chips { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 2px; } .ff-ask-chips .ff-chip { text-decoration: none; }

/* ---- v0.4.1: GSM-Forum colors and frames ---- */
/* double frame: thin blue line outside, black line inside */
.ff-block, .ff-topbar, .ff-navbar, .ff-titlebar { border: 1px solid #000; outline: 1px solid var(--ff-outer-border, #3e5c92); outline-offset: 0; }
.ff-topbar { border-bottom: 0; padding: 0 0 0 8px; align-items: stretch; }
.ff-topbar-main { padding: 6px 0; display: flex; flex-direction: column; justify-content: center; }
.ff-welcome { background: var(--ff-alt-bg); border-left: 1px solid #000; padding: 6px 10px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
/* nav bar: flat light blue, thin dark-blue line above */
.ff-navbar { background: var(--ff-subnav-bg); border-top: 1px solid var(--ff-outer-border, #3e5c92); margin-bottom: 18px; }
.ff-navbar a, .ff-navbar .ff-dd-toggle, .ff-navbtn, .ff-navbar .ff-linkbtn.ff-navbtn { padding-top: 4px; padding-bottom: 4px; }
/* header bars: darker at the top, lighter at the bottom */
.ff-block-head, .ff-sechead td { background: linear-gradient(var(--ff-heading-bg), var(--ff-heading-bg2)); }
.ff-table th, .ff-forumlist thead th, th.ff-col-icon, th.ff-col-picon, th.ff-col-last, .ff-subhead {
    background: linear-gradient(var(--ff-subhead-bg), var(--ff-subhead-bg2, var(--ff-subhead-bg)));
}
.ff-forumlist thead th, .ff-forumlist thead th.ff-col-num { font-size: 12px; font-weight: bold; color: #fff; }
/* alternating column colors like vBulletin: icon, last post and the 2nd number column are darker */
.ff-forumlist .ff-secbody td.ff-lastpost, .ff-forumlist .ff-secbody td.ff-col-last,
.ff-forumlist .ff-secbody td.ff-col-num + td.ff-col-num,
.ff-threads td.ff-col-num + td.ff-col-num { background: var(--ff-alt-bg); }
.ff-forumlist td, .ff-forumlist th { border-right: 1px solid #000; }
.ff-sechead td { border-top: 1px solid #000; border-bottom: 1px solid #000; }
@media (max-width: 760px) {
    .ff-topbar { padding: 0; }
    .ff-topbar-main { padding: 6px 8px; }
    .ff-welcome { border-left: 0; border-top: 1px solid #000; }
}
.ff-wrap { width: 96%; }
.ff-welcome { font-size: 12px; font-weight: bold; color: #fff; min-width: 210px; }
.ff-welcome a { font-weight: bold; }
.ff-topbar-home .ff-h1 { font-size: 15px; }
@media (max-width: 760px) { .ff-wrap { width: 100%; } }
@media (max-width: 760px) {
    .ff-forumlist .ff-sechead tr { display: block; }
    .ff-forumlist .ff-sechead td { display: block; width: auto; border-right: 0; }
}

/* ---- v0.5.0: messages, alerts, reactions, tags, warnings, thread fields ---- */
.ff-count { color: var(--ff-text); }
.ff-count.is-new { color: #fff; background: #c32c31; border-radius: 9px; padding: 0 6px; }
.ff-alerts-dd { position: relative; }
.ff-alerts-menu { position: absolute; right: 0; top: 100%; z-index: 50; width: 360px; max-width: 90vw; background: var(--ff-content-bg); border: 1px solid #000; outline: 1px solid var(--ff-outer-border, #3e5c92); box-shadow: 0 6px 18px rgba(0,0,0,.6); font-weight: normal; text-align: left; }
.ff-alert { padding: 7px 10px; border-bottom: 1px solid var(--ff-border); font-size: 12px; font-weight: normal; }
.ff-alert.is-new { background: rgba(255, 211, 107, .12); border-left: 3px solid #ffd36b; }
.ff-alert-time { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.ff-alerts-pop-foot { padding: 6px 10px; font-size: 11px; text-align: right; background: var(--ff-alt-bg); }
.ff-pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.ff-pm-side .ff-row { font-size: 12px; }
.ff-pm-person { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.ff-pm-tools form { margin: 3px 0; }
.ff-pm-unread td { font-weight: bold; }
.ff-pm-star { color: #ffd36b; }
.ff-pm-newline { text-align: center; color: #ffd36b; font-size: 11px; border-top: 1px dashed #ffd36b; margin: 8px 0; padding-top: 2px; }
.ff-col-mod { width: 30px; text-align: center; }
.ff-watch-form { margin-left: auto; font-size: 12px; }
.ff-watch-form .ff-linkbtn { color: var(--ff-heading-text); }
.ff-reactions { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: 12px; border-top: 1px solid var(--ff-border); }
.ff-react-form { position: relative; margin: 0; }
.ff-react-toggle { cursor: pointer; padding: 2px 8px; border: 1px solid var(--ff-border); border-radius: 10px; background: var(--ff-alt-bg); white-space: nowrap; }
.ff-react-picker { display: none; position: absolute; bottom: 100%; left: 0; z-index: 20; background: var(--ff-content-bg); border: 1px solid var(--ff-outer-border, #3e5c92); border-radius: 18px; padding: 3px 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.ff-react-form:hover .ff-react-picker, .ff-react-form:focus-within .ff-react-picker { display: flex; gap: 2px; }
.ff-react-opt { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 2px 4px; border-radius: 50%; transition: transform .1s; }
.ff-react-opt:hover { transform: scale(1.3); }
.ff-react-opt.is-mine { background: rgba(255,255,255,.15); }
.ff-react-sum { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ff-react-chip { padding: 1px 6px; border-radius: 10px; background: rgba(255,255,255,.08); }
.ff-react-chip.is-mine { outline: 1px solid #ffd36b; }
.ff-tag { display: inline-block; padding: 1px 7px; margin: 1px 2px; border-radius: 3px; background: var(--ff-alt-bg); border: 1px solid var(--ff-border); font-size: 12px; text-decoration: none; }
.ff-tag:hover { border-color: var(--ff-link); }
.ff-thread-tags { font-size: 12px; padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ff-inline-details { display: inline; }
.ff-inline-details summary { display: inline; cursor: pointer; list-style: none; font-size: 11px; }
.ff-tagcloud { line-height: 2; }
.ff-warn-note { margin-top: 10px; padding: 6px 10px; border: 1px solid #c32c31; background: rgba(195,44,49,.15); font-size: 12px; }
.ff-quote-preview { border-left: 3px solid var(--ff-outer-border, #3e5c92); padding: 6px 10px; background: var(--ff-alt-bg); font-size: 12px; }
.ff-tf-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; border: 1px solid var(--ff-outer-border, #3e5c92); background: rgba(13,59,94,.55); margin: 4px 0 10px; }
.ff-tf-box div { padding: 5px 8px; }
.ff-tf-box span { display: block; font-size: 10px; opacity: .75; }
.ff-tf-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.ff-tf-choices { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ff-flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ff-narrow-wide { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
    .ff-pm-layout { grid-template-columns: 1fr; }
    .ff-alerts-menu { position: fixed; left: 5vw; right: 5vw; top: 60px; width: auto; }
}
.ff-navbar a, .ff-navbar .ff-dd-toggle, .ff-navbtn, .ff-navbar .ff-linkbtn.ff-navbtn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1500px) { .ff-navbar a, .ff-navbar .ff-dd-toggle, .ff-navbtn, .ff-navbar .ff-linkbtn.ff-navbtn { font-size: 11px; padding-left: 6px; padding-right: 6px; } }

/* Edit thread title (inline pencil in forum lists) */
.ff-title-edit { background: none; border: 0; color: var(--ff-muted, #9ab); cursor: pointer; font-size: 13px; padding: 0 4px; opacity: .55; vertical-align: middle; }
.ff-thread-row:hover .ff-title-edit, .ff-title-edit:focus { opacity: 1; }
.ff-title-edit:hover { color: #fff; }
.ff-title-input { width: min(520px, 90%); font-size: 13px; padding: 2px 6px; }
.ff-input-err { outline: 2px solid #e05555; }
.ff-inlinemod-title { width: 280px; max-width: 100%; }

/* Connected accounts (Log in with Google / Facebook / Microsoft) */
.ff-connect-buttons { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.ff-connect-or { text-align: center; color: var(--ff-muted, #9ab); font-size: 12px; }
.ff-connect-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); font-weight: 600; text-decoration: none !important; }
.ff-connect-btn:hover { filter: brightness(1.08); }
.ff-connect-ico { font-weight: 800; font-family: Arial, sans-serif; width: 18px; text-align: center; }
.ff-connect-table td { padding: 6px 8px; vertical-align: middle; }
/* Two-step verification */
.ff-tfa-setup { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ff-qr { width: 180px; height: 180px; background: #fff; padding: 4px; border-radius: 4px; }
.ff-qr svg { width: 100%; height: 100%; }
.ff-tfa-key { font-size: 14px; letter-spacing: 1px; user-select: all; }
.ff-tfa-code { width: 120px; font-size: 18px; letter-spacing: 3px; text-align: center; }
.ff-tfa-codes { background: rgba(255,255,255,.06); border: 1px dashed #c9a227; padding: 10px; border-radius: 4px; }
.ff-tfa-codes pre { font-size: 16px; columns: 2; margin: 8px 0 0; }
.ff-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #555; color: #fff; vertical-align: middle; }
.ff-chip-ok { background: #2e8b57; }

/* Trophies (profile tab) */
.ff-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ff-trophy { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--ff-outer-border, #3e5c92); border-radius: 4px; opacity: .45; }
.ff-trophy.is-got { opacity: 1; background: rgba(201,162,39,.08); border-color: #c9a227; }
.ff-trophy-ico { font-size: 26px; line-height: 1; }
.ff-trophy-pts { order: 3; margin-left: auto; font-weight: 700; color: #c9a227; }

/* Widgets */
.ff-widget-body { padding: 8px 10px; font-size: 12px; }
.ff-dot-on { color: #3cb371; font-size: 10px; }
