/*
// Compress CSS
// DO NOT COMPRESS ROOT
*/

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Fira+Code&family=IBM+Plex+Mono&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Global Styles */
*, *::before, *::after { box-sizing: inherit; }
:root {
    --bg-color: #0a0a0a;
    --text-color: #00ff00;
    --topic-color: #00ffff;
    --heading-color: #ffbf00;
    --border-color: #008000;
    --button-bg-color: #004d00;
    --inner-border-color: #00ffff;
    --inner-shadow-color: rgba(0, 255, 255, 0.7);
    --button-hover-bg-color: #006600;
    --delete-button-bg-color: #800000;
    --delete-button-hover-bg-color: #b30000;
    --pin-button-bg-color: #4b0082;
    --compressed_replies_text: #666666;
    --pin-button-hover-bg-color: #6a0dad;
    --lock-button-bg-color: #E18B00;
    --lock-button-hover-bg-color: #D08D00;
    --form-bg-color: #1a1a1a;
    --error-color: #ff4040;
    --success-color: #00cc00;
    --shadow-color: rgba(0, 255, 0, 0.3);
    --heading-shadow-color: rgba(255, 0, 0, 0.5);
    --post-bg-color: #0d0d0d;
    --post-inner-border: #004d00;
    --separator-color: #003300;
}

/* Layout Containers */
.forum_main_wrapper { color: var(--text-color); display: flex; justify-content: center; align-items: flex-start; border-radius: 10px; width: 100%; }
.mf_container { border-radius: 10px; padding: 15px; width: 100%; box-sizing: border-box; font-weight: normal; }
.mf_container h1, .mf_container h2, .mf_container h3 { color: var(--heading-color); text-shadow: 0 0 8px var(--heading-shadow-color); border-bottom: 2px dashed var(--border-color); padding-bottom: 10px; margin: 0 0 15px; text-transform: uppercase; text-align: left; }
.mf_container h1 { font-size: 2.5em; }
.mf_container h2 { font-size: 1.8em; }
.mf_container h3 { font-size: 1.4em; }
.mf_container a { color: var(--topic-color); text-decoration: none; }
.mf_container a:hover { text-decoration: underline; color: var(--text-color); }

/* Navbar */
.mf_navbar { display: flex; align-items: center; gap: 10px; padding: 10px 15px; background: var(--form-bg-color); border: 1px dashed var(--border-color); border-radius: 6px; margin-bottom: 10px; box-shadow: inset 0 0 5px var(--shadow-color); flex-wrap: wrap; }
.mf_navbar_brand { flex-shrink: 0; order: 1; }
.mf_navbar_title { color: var(--heading-color); text-decoration: none; font-family: 'VT323', monospace; font-size: 1.8em; text-transform: uppercase; text-shadow: 0 0 8px var(--heading-shadow-color); white-space: nowrap; }
.mf_navbar_title:hover { color: var(--heading-color); text-decoration: none; text-shadow: 0 0 14px var(--heading-shadow-color); }
.mf_navbar_search { order: 3; flex-basis: 100%; display: flex; gap: 6px; }
.mf_navbar_user { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; order: 2; margin-left: auto; }
.mf_navbar_username { font-size: 0.9em; color: var(--text-color); white-space: nowrap; margin-right: 2px; }
.mf_role_badge { font-size: 0.65em; padding: 1px 4px; border-radius: 2px; font-family: 'VT323', monospace; vertical-align: middle; }
.mf_button_admin { background-color: #1a0033; border-color: #9932cc; color: #cc66ff; box-shadow: 0 0 5px rgba(153,50,204,0.4); }
.mf_button_admin:hover { background-color: #2a0055; color: #dd88ff; box-shadow: 0 0 8px rgba(153,50,204,0.7); }

/* Breadcrumbs */
.mf_breadcrumbs { font-family: 'VT323', monospace; font-size: 0.95em; color: #555; margin-bottom: 10px; padding: 4px 2px; }
.mf_bc_sep { margin: 0 5px; color: #444; }
.mf_bc_link { color: var(--topic-color); text-decoration: none; }
.mf_bc_link:hover { text-decoration: underline; color: var(--text-color); }
.mf_bc_current { color: var(--heading-color); }

/* Search */
.mf_search_input { flex: 1; background: var(--input-bg-color); color: var(--text-color); border: 1px solid var(--border-color); padding: 6px 10px; font-family: 'VT323', monospace; font-size: 1em; border-radius: 4px; }
.mf_search_input:focus { outline: none; border-color: var(--heading-color); box-shadow: 0 0 5px var(--shadow-color); }
.mf_search_results { display: flex; flex-direction: column; gap: 10px; }
.mf_hit_badge { font-size: 0.7em; color: #fff; background: #cc0000; padding: 1px 5px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }
.mf_term_highlight { background: #ffe066; color: #000; border-radius: 2px; padding: 0 2px; }
.mf_search_result_item { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 4px; }
.mf_search_result_subject { margin-bottom: 2px; }
.mf_search_result_snippet { font-size: 0.8em; color: #777; margin-top: 4px; }

/* Form Section */
.mf_form_section { background-color: var(--form-bg-color); padding: 20px; border: 1px dashed var(--border-color); border-radius: 6px; margin-top: 10px; box-shadow: inset 0 0 5px var(--shadow-color); text-align: left; }
.mf_form_section label { display: block; margin-bottom: 8px; color: var(--heading-color); font-weight: bold; text-transform: uppercase; font-size: 0.9em; }
.mf_form_section input[type="text"], .mf_form_section input[type="password"], .mf_form_section textarea { width: 100%; padding: 5px; margin-bottom: 18px; border: 1px solid var(--border-color); background-color: var(--bg-color); color: var(--text-color); border-radius: 4px; font-family: 'VT323', monospace; font-size: 1.5em; box-sizing: border-box; outline: none; box-shadow: inset 0 0 3px var(--shadow-color); }
.mf_form_section input[type="text"]:focus, .mf_form_section input[type="password"]:focus, .mf_form_section textarea:focus { border-color: var(--inner-border-color); box-shadow: inset 0 0 5px var(--heading-shadow-color), 0 0 5px var(--heading-shadow-color); }
.mf_form_section textarea { resize: vertical; min-height: 120px; }
.mf_form_buttons { display: flex; align-items: center; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.mf_form_buttons #mf_bbcode_button { margin-left: auto; }

/* Buttons */
.mf_button { background-color: var(--button-bg-color); color: var(--text-color); border: 1px solid #00ff00; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-family: 'VT323', monospace; font-size: 1em; text-transform: uppercase; text-decoration: none; display: inline-block; margin-right: 0; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; box-shadow: 0 0 5px var(--shadow-color); text-align: center; white-space: nowrap; }
.mf_button:hover { background-color: var(--button-hover-bg-color); color: var(--heading-color); box-shadow: 0 0 8px var(--inner-shadow-color); }
.mf_button_delete, .mf_button_delete_icon { background-color: var(--delete-button-bg-color); border-color: var(--error-color); box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
.mf_button_delete:hover, .mf_button_delete_icon:hover { background-color: var(--delete-button-hover-bg-color); color: #fff; box-shadow: 0 0 8px rgba(255, 0, 0, 0.8); }
.mf_button_warn { background-color: #4a2200; color: #00ff00; border-color: #ff7700; box-shadow: 0 0 5px rgba(255, 119, 0, 0.4); }
.mf_button_warn:hover { background-color: #5c2900; color: #00ff00; box-shadow: 0 0 8px rgba(255, 119, 0, 0.7); }
.mf_button_pin_icon { background-color: var(--pin-button-bg-color); border-color: #9932cc; box-shadow: 0 0 5px rgba(75, 0, 130, 0.5); }
.mf_button_pin_icon:hover { background-color: var(--pin-button-hover-bg-color); color: #fff; box-shadow: 0 0 8px rgba(75, 0, 130, 0.8); }
.mf_button_lock_icon { background-color: var(--lock-button-bg-color); border-color: #E18B00; }
.mf_button_lock_icon:hover { background-color: var(--lock-button-hover-bg-color); }
.mf_button_nav_icon { font-size: 1.40em; }
.mf_button_back { background-color: #7a3500; color: #00ffff; border: 1px solid #ff7700; box-shadow: 0 0 5px rgba(255, 119, 0, 0.4); }
.mf_button_back:hover { background-color: #9e4400; color: #00ffff; box-shadow: 0 0 8px rgba(255, 119, 0, 0.7); }
.mf_button_profile { color: #00ffff; }
.mf_button_profile:hover { color: #00ffff; }
.mf_quote_button { background-color: var(--button-bg-color); }
.mf_quote_button:hover { background-color: var(--button-hover-bg-color); }
.mf_small_button { padding: 10px 20px; font-size: 1.0em; }
.mf_topic_list_header { display: flex; justify-content: space-between; align-items: center; }
.mf_topic_list_header h2 { margin: 0 10 0 0; }
.mf_mark_read_form { margin: 0; }
.mf_topic_list_actions { display: flex; gap: 8px; align-items: center; }
.mf_topic_list_actions > .mf_button, .mf_topic_list_actions > form { flex: 1; }
.mf_topic_list_actions .mf_button { width: 100%; }
.mf_button_group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; justify-content: flex-start; }
.mf_nav_buttons { display: flex; justify-content: space-between; }
.mf_nav_buttons .mf_button { flex-grow: 1; margin: 0 5px; text-align: center; }
.mf_nav_buttons .mf_button:first-child { margin-left: 0; }
.mf_nav_buttons .mf_button:last-child { margin-right: 0; }

/* Indicators */
.mf_pinned_indicator { color: #9932cc; font-weight: bold; font-size: 1.1em; margin-right: -3px; vertical-align: middle; position: relative; top: 0; }
.mf_locked_indicator { color: #ffbf00; font-weight: bold; font-size: 1em; margin-right: -3px; vertical-align: middle; position: relative; top: -2px; }
.mf_collapse_indicator, .mf_expand_indicator { color: var(--heading-color); font-size: 1.1em; display: inline-block; margin-right: -5px; position: relative; top: 2px; }
.mf_reply_indicator { color: var(--heading-color); font-size: 1.2em; display: inline-block; margin-right: -5px; }
.mf_new_indicator { color: var(--error-color); font-weight: bold; font-size: 0.8em; margin-right: -3px; vertical-align: middle; position: relative; top: -2px; }
.mf_edited_indicator { color: #ffa500; font-style: italic; font-size: 0.9em; }

/* Collapse Replies */
.mf_collapse_replies { color: var(--compressed_replies_text); margin-top: -10px; cursor: pointer; text-decoration: none; display: inline-block; }
.mf_collapse_replies .mf_new_indicator { cursor: pointer; }

/* Posts */
.mf_post_list { margin-top: 10px; background-color: var(--post-bg-color); border: 1px dashed var(--border-color); border-radius: 6px; padding: 15px; box-shadow: inset 0 0 5px var(--shadow-color); text-align: left; }
.mf_post_item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mf_post_item_header { color: var(--heading-color); }
.mf_post_subject { color: var(--topic-color); text-decoration: none; font-weight: bold; font-size: 1.1em; text-shadow: 0 0 3px var(--heading-shadow-color); }
.mf_post_subject:hover { text-decoration: underline; color: var(--text-color); }
.mf_post_subject_full { font-size: 1.5em; text-shadow: 0 0 5px var(--heading-shadow-color); }
.mf_post_meta { font-size: 0.8em; color: #999; display: inline-block; }
.mf_last_reply_meta { font-size: 0.75em; color: #666; display: block; margin-top: 2px; }
.mf_post_author_meta { font-size: 0.75em; color: #666; display: block; margin-top: 2px; }
.mf_post_author_meta strong { color: #999; }
/* --- Signatures --- */
.mf_post_signature { margin-top: 15px; padding-top: 10px; border-top: 1px dashed var(--separator-color); font-size: 0.8em; line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word; }
.mf_sig_counter { font-size: 0.78em; color: #666; margin: 3px 0 8px; font-family: 'VT323', monospace; }
.mf_unread_badge { font-size: 0.7em; color: #000; background: var(--heading-color); padding: 1px 5px; border-radius: 3px; vertical-align: middle; }
.mf_post_item_message { white-space: pre-line; line-height: 1.25; margin-bottom: 30px; margin-top: 15px ;border-top: 2px dashed var(--border-color); }
.mf_post_replies { margin-top: -7px; }
.mf_post_replies .mf_post_item + .mf_post_item { margin-top: -8px; }
.mf_post_actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; flex-wrap: wrap; gap: 10px; }
.mf_post_actions_left, .mf_post_actions_right { display: flex; gap: 10px; flex-wrap: wrap; }
.mf_main_view_post .mf_post_item { margin-bottom: 15px; padding-bottom: 15px; }
.mf_main_view_post .mf_pinned_indicator { font-size: 1.3em; vertical-align: middle; position: relative; top: -3px; }
.mf_main_view_post .mf_locked_indicator { font-size: 1.2em; vertical-align: middle; position: relative; top: -4px; }
.mf_main_view_post .mf_new_indicator { font-size: 1.1em; vertical-align: middle; position: relative; top: -3px; }
.mf_main_view_post .mf_post_item:last-child { border-bottom: 2px dashed var(--border-color); }

/* BBCode */
.mf_bbcode_custom_list { margin: 0; padding: 0; list-style: none; white-space: normal; }
.mf_bbcode_list_item_wrapper { display: flex; align-items: flex-start; }
.mf_bbcode_list_bullet_unordered, .mf_bbcode_list_bullet_ordered { margin-right: 0.5em; flex-shrink: 0; text-align: left; color: var(--text-color); }
.mf_bbcode_quote { font-weight: bold; margin-bottom: 5px; }
.mf_bbcode_spoiler { background-color: #333; color: #333; cursor: help; padding: 2px 5px; border-radius: 3px; user-select: none; transition: color 0.3s ease, background-color 0.3s ease; }
.mf_bbcode_spoiler:hover { background-color: var(--post-bg-color); color: var(--text-color); }
.mf_bbcode_code { background-color: #000; border: 1px dashed var(--border-color); padding: 10px; margin: 10px 0; white-space: pre-wrap; word-break: break-all; overflow-x: auto; border-radius: 4px; box-shadow: inset 0 0 5px var(--shadow-color); color: #00ffcc; }
/* New posts notification banner */
.mf_new_posts_banner { display:none; background:var(--heading-color); color:#000; text-align:center; padding:6px 12px; cursor:pointer; font-family:'VT323',monospace; font-size:1.1em; margin-bottom:8px; border-radius:4px; }
.mf_new_posts_banner:hover { opacity:0.85; }

/* Preview */
.mf_preview_container { border: 1px dashed var(--border-color); border-radius: 6px; margin: 10px 0; padding: 10px 14px; background: var(--post-bg-color); }
.mf_preview_label { font-size: 0.75em; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-color); padding-bottom: 4px; }
.mf_preview_body { white-space: pre-line; line-height: 1.25; }

.mf_bbcode_toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.mf_bbcode_btn { background: var(--button-bg-color); color: var(--text-color); border: 1px solid var(--border-color); padding: 2px 7px; font-family: 'VT323', monospace; font-size: 1.0em; cursor: pointer; border-radius: 3px; transition: background-color 0.15s, color 0.15s; }
.mf_bbcode_btn:hover { background: var(--button-hover-bg-color); color: var(--heading-color); }
.mf_color_popover { align-items: center; gap: 6px; background: var(--form-bg-color); border: 1px solid var(--border-color); border-radius: 6px; padding: 8px 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.6); z-index: 9999; }
.mf_color_input { width: 38px; height: 28px; padding: 1px; border: 1px solid var(--border-color); border-radius: 3px; cursor: pointer; background: none; }

/* Dropdown */
.mf_security_select { background-color: var(--background-color, #1a1a1a); color: var(--text-color, #d3d3d3); border: 1px solid var(--border-color, #333); border-radius: 10px; padding: 10px; margin-bottom: 10px; font-size: 0.9em; width: 100%; max-width: 26em; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d3d3d3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5em center; background-size: 1em; }
.mf_security_select:hover { background-color: var(--hover-background, #2a2a2a); border-color: var(--hover-border, #444); }
.mf_security_select:focus { outline: none; border-color: var(--focus-border, #666); box-shadow: 0 0 5px var(--focus-shadow, #666); }
.mf_security_select option { background-color: var(--background-color, #1a1a1a); color: var(--text-color, #d3d3d3); }
.mf_security_select option[value=""] { color: var(--placeholder-color, #888); }
.mf_security_select::-ms-expand { display: none; }

/* Error and Success */
.mf_error { color: var(--error-color); background-color: #330000; border: 1px dashed var(--error-color); padding: 12px; margin-bottom: 10px; border-radius: 6px; box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.3); text-align: left; }
.mf_success { color: var(--success-color); background-color: #003300; border: 1px dashed var(--success-color); padding: 12px; margin-bottom: 10px; border-radius: 6px; box-shadow: inset 0 0 5px rgba(0, 204, 0, 0.3); text-align: left; }

/* Stats Bar */
.mf_stats_bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.8em; color: #777; font-family: 'VT323', monospace; }
.mf_stats_item strong { color: var(--heading-color); }
.mf_stats_sep { color: #444; }
.mf_online_bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.8em; color: #777; font-family: 'VT323', monospace; }
.mf_online_label { color: #999; margin-right: 4px; }
.mf_online_dot { display: inline-block; width: 7px; height: 7px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 4px #00ff00; vertical-align: middle; margin-left: 3px; }
.mf_online_user { color: var(--heading-color); }
.mf_online_empty { color: #444; font-style: italic; }

/* Pagination */
.mf_pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; font-family: 'VT323', monospace; font-size: 1.1em; }
.mf_pagination_button { background-color: var(--button-bg-color); color: var(--text-color); border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 4px; text-decoration: none; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; box-shadow: 0 0 5px var(--shadow-color); }
.mf_pagination_button:hover { background-color: var(--button-hover-bg-color); color: var(--heading-color); box-shadow: 0 0 8px var(--inner-shadow-color); }
.mf_pagination_current { background-color: var(--button-hover-bg-color); color: var(--heading-color); border: 1px solid var(--inner-border-color); padding: 8px 12px; border-radius: 4px; box-shadow: 0 0 8px var(--inner-shadow-color); }
.mf_pagination_chevron { font-size: 1.2em; padding: 8px 10px; }
.mf_pagination_disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.mf_pagination_ellipsis { color: var(--text-color); padding: 0; }

/* Profile Page */
.mf_profile_page h2 { margin-bottom: 0; }
.mf_profile_section { border-top: 1px solid var(--border-color); padding: 1.2em 0 0.5em; margin-top: 0.5em; }
.mf_profile_section h3 { color: var(--heading-color); font-family: 'VT323', monospace; font-size: 1.1em; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75em; }
.mf_profile_info { display: grid; grid-template-columns: max-content 1fr; gap: 0.3em 1.25em; font-size: 0.9em; margin-bottom: 0.5em; }
.mf_profile_label { color: #666; }
.mf_profile_value { color: var(--text-color); }
.mf_access_admin { color: var(--error-color); }
.mf_access_moderator { color: var(--heading-color); }
.mf_access_user { color: var(--text-color); }
.mf_profile_hint { font-size: 0.82em; color: #666; margin: 0 0 0.75em; }
.mf_profile_details { border: none; }
.mf_profile_details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5em; color: var(--heading-color); font-family: 'VT323', monospace; font-size: 1.1em; text-transform: uppercase; letter-spacing: 0.08em; user-select: none; }
.mf_profile_details summary::-webkit-details-marker { display: none; }
.mf_profile_details summary::before { content: '▷'; font-size: 0.9em; flex-shrink: 0; }
.mf_profile_details[open] summary::before { content: '▽'; }
.mf_profile_details_body { padding-top: 0.75em; }
.mf_profile_unset_badge { font-size: 0.7em; color: var(--error-color); border: 1px solid var(--error-color); padding: 1px 5px; border-radius: 3px; text-transform: none; letter-spacing: 0; vertical-align: middle; }

/* Utility Classes */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.mf_password_requirements { margin-bottom: 15px; }
#mf_edit_subject, #mf_post_subject, #mf_reg_password, #mf_log_username, #mf_security_ans_1, #mf_security_ans_2, #mf_security_ans_3, #mf_new_password { margin-bottom: 15px; }


/* Media Queries */
@media (max-width: 1000px) {
    .mf_collapse_replies { margin-top: -3px; }
    .mf_collapse_indicator, .mf_expand_indicator { font-size: 1.3em; top: 0; }
    .mf_post_item { margin-top: -3px; }
    .mf_pinned_indicator { font-size: 1.2em; top: -2px; }
    .mf_main_view_post .mf_pinned_indicator { font-size: 1.5em; top: -4px; }
    .mf_main_view_post .mf_locked_indicator { font-size: 1.4em; }
    .mf_post_item_message { margin-bottom: 20px; }
    /* Landscape phones (601–1000px): larger BBCode toolbar buttons for touch */
    .mf_bbcode_btn { font-size: 1.4em; }
}
/* =======================================================================
   PORTRAIT MOBILE  (≤600px — covers portrait phones up to ~430px)
   Z Flip 4 portrait = 360px  →  gets these styles.
   Z Flip 4 landscape = 748px →  falls through to desktop styles above.
   ======================================================================= */
@media (max-width: 600px) {

    /* --- Core layout: squeeze every pixel --- */
    .mf_container { margin: 0; padding: 6px; }
    .mf_container h1 { font-size: 1.5em; padding-bottom: 6px; margin-bottom: 8px; }
    .mf_container h2 { font-size: 1.25em; padding-bottom: 5px; margin-bottom: 8px; }
    .mf_container h3 { font-size: 1.1em; }

    /* --- Navbar --- */
    .mf_navbar { padding: 8px 10px; gap: 6px; }
    .mf_navbar_title { font-size: 1.3em; }
    .mf_navbar_user { gap: 4px; }
    .mf_navbar_username { display: none; }
    .mf_navbar_user .mf_btn_label { display: none; }
    .mf_navbar_user .mf_button { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
    .mf_search_input { font-size: 16px; padding: 6px 8px; }
    .mf_navbar_search .mf_button { flex-shrink: 0; padding: 6px 12px; width: auto; height: auto; }

    /* --- Breadcrumbs --- */
    .mf_breadcrumbs { font-size: 0.85em; margin-bottom: 8px; }

    /* --- Form sections (login, register, new-topic, reply, edit, profile) --- */
    .mf_form_section { padding: 10px; margin-top: 10px; }
    .mf_form_section label { font-size: 0.85em; margin-bottom: 4px; }
    .mf_form_section input[type="text"],
    .mf_form_section input[type="password"] { font-size: 1.2em; padding: 4px 6px; margin-bottom: 10px; }
    .mf_form_section textarea { font-size: 1.2em; padding: 4px 6px; margin-bottom: 0; min-height: 100px; }

    /* --- BBCode toolbar (injected by JS above every .bbcode-target textarea) ---
         Larger touch targets; buttons wrap naturally across rows. */
    .mf_bbcode_toolbar { gap: 5px; margin-bottom: 8px; }
    .mf_bbcode_btn { padding: 6px 10px; font-size: 1.3em; min-height: 36px; }

    /* --- BBCode color/list popovers: clamp to viewport on narrow screens --- */
    .mf_color_popover { flex-wrap: wrap; max-width: calc(100vw - 20px); }

    /* --- Form action buttons (Submit / Cancel / Quote / Preview — injected or static) ---
         Row first; if too tight they wrap to a 2x2. */
    .mf_form_buttons { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .mf_form_buttons .mf_button { flex: 1; min-width: calc(50% - 6px); min-height: 42px; margin: 0; }

    /* --- Main button padding --- */
    .mf_button { padding: 10px 0px; }
    a.mf_small_button { padding: 10px 10px; }

    /* --- Button groups (login, register, delete-confirm forms) --- */
    .mf_button_group { flex-direction: column; gap: 6px; width: 100%; }
    .mf_button_group .mf_button { width: 100%; min-height: 42px; margin: 0; }

    /* --- Topic list header ---
         Use flex-wrap (not column) so h2 + single button (profile/search Back
         to Forum) stay on one row with space-between, matching desktop.
         The actions div (New Topic + Mark All Read) gets flex-basis:100% so
         it wraps to its own full-width row below the h2 on the topics page. */
    .mf_topic_list_header { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
    .mf_topic_list_header h2 { margin-bottom: 0; }
    .mf_topic_list_header > .mf_button { margin-left: auto; }
    .mf_topic_list_actions { display: flex; flex-basis: 100%; gap: 6px; }
    .mf_topic_list_actions > .mf_button,
    .mf_topic_list_actions > form { flex: 1; }
    .mf_topic_list_actions .mf_button { width: 100%; min-height: 40px; margin: 0; text-align: center; }

    /* --- Post list container --- */
    .mf_post_list { padding: 10px; margin-top: 10px; }
    .mf_post_item_header { margin-top: 4px; }
    .mf_post_item_message { margin-bottom: 15px; }
    .mf_main_view_post .mf_post_item_message { margin-top: 12px; }
    .mf_collapse_replies { margin-top: -3px; }

    /* --- Post actions (Reply / Edit / Delete / Back / Pin / Lock) ---
         Left side (admin icon buttons): stay in a flex row, share width.
         Right side (Reply, Edit, Back): stack full-width. */
    .mf_post_actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; }
    .mf_post_actions_left { flex-direction: row; flex-wrap: wrap; gap: 6px; width: 100%; }
    .mf_post_actions_left .mf_button { flex: 1; min-height: 40px; margin: 0; }
    .mf_post_actions_right { flex-direction: column; gap: 6px; }
    .mf_post_actions_right .mf_button { width: 100%; min-height: 40px; margin: 0; }
    .mf_button_delete { margin-bottom: 0; }

    /* --- Prev / Next post navigation --- */
    .mf_nav_buttons { gap: 6px; }
    .mf_nav_buttons .mf_button { flex: 1; min-height: 40px; padding: 8px 6px; font-size: 0.85em; margin: 0; }

    /* --- Stats + online bars --- */
    .mf_stats_bar { flex-wrap: wrap; gap: 5px; padding: 5px 8px; font-size: 0.75em; margin-top: 8px; }
    .mf_online_bar { gap: 5px; padding: 5px 8px; font-size: 0.75em; margin-top: 4px; }

    /* --- Pagination --- */
    .mf_pagination { flex-wrap: wrap; gap: 4px; font-size: 0.95em; margin-top: 12px; }
    .mf_pagination_button { color: var(--topic-color); text-decoration: underline; box-shadow: none; padding: 5px 10px; }
    .mf_pagination_current { padding: 5px 10px; }
    .mf_pagination_chevron { padding: 5px 10px; }
    .mf_pagination_disabled { opacity: 0.5; text-decoration: none; color: var(--text-color); }

    /* --- Security question dropdowns --- */
    .mf_security_select { max-width: 100%; }

    /* --- Profile page --- */
    .mf_profile_info { font-size: 0.85em; gap: 0.2em 0.6em; }

    /* --- Indicator sizing --- */
    .mf_collapse_indicator, .mf_expand_indicator { font-size: 1.2em; top: 0; }
    .mf_pinned_indicator { font-size: 1.1em; top: -1px; }
    .mf_main_view_post .mf_pinned_indicator { font-size: 1.3em; top: -2px; }
    .mf_main_view_post .mf_locked_indicator { font-size: 1.2em; }
    .mf_main_view_post .mf_new_indicator { font-size: 1em; }
}

/* Admin Panel */
.mf_admin_panel h2 { margin-bottom: 10px; }
.mf_admin_tabs { display: flex; gap: 6px; margin: 12px 0 14px; flex-wrap: wrap; }
.mf_admin_tab_active { background-color: var(--button-hover-bg-color); color: var(--heading-color); border-color: var(--heading-color); box-shadow: 0 0 8px var(--inner-shadow-color); }
.mf_admin_tab_count { font-size: 0.75em; background: rgba(0,255,0,0.15); padding: 1px 5px; border-radius: 10px; margin-left: 3px; }
.mf_admin_section { margin-top: 6px; }
.mf_admin_table_wrap { overflow-x: auto; }
.mf_admin_table { width: 100%; border-collapse: collapse; font-family: 'VT323', monospace; font-size: 0.95em; }
.mf_admin_table th { color: var(--heading-color); text-transform: uppercase; font-size: 0.82em; letter-spacing: 0.05em; border-bottom: 2px dashed var(--border-color); padding: 6px 8px; text-align: left; white-space: nowrap; }
.mf_admin_table td { padding: 6px 8px; border-bottom: 1px solid var(--separator-color); vertical-align: middle; }
.mf_admin_table tbody tr:hover td { background: rgba(0,255,0,0.03); }
.mf_admin_table tr:last-child td { border-bottom: none; }
.mf_admin_row_banned td { opacity: 0.65; }
.mf_admin_td_user { white-space: nowrap; }
.mf_admin_td_actions { min-width: 200px; }
.mf_admin_actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.mf_admin_inline_form { display: inline-flex; align-items: center; gap: 6px; }
.mf_admin_select { background: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); font-family: 'VT323', monospace; font-size: 0.9em; padding: 0 6px; border-radius: 3px; cursor: pointer; }
.mf_admin_select:focus { outline: none; border-color: var(--heading-color); }
.mf_admin_expand_form { margin-top: 5px; }
.mf_admin_panel input.mf_admin_input { background: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); font-family: 'VT323', monospace; font-size: 0.95em; padding: 10px 10px; border-radius: 3px; min-width: 140px; box-sizing: border-box; width: auto; margin-bottom: 0; }
.mf_admin_panel input.mf_admin_input:focus { outline: none; border-color: var(--heading-color); box-shadow: none; }
.mf_banned_badge { color: var(--error-color); font-size: 0.85em; white-space: nowrap; }
.mf_active_badge { color: var(--success-color); font-size: 0.85em; }
.mf_active_badge .fa-circle { font-size: 0.6em; vertical-align: middle; }
.mf_admin_self_note { color: #444; font-size: 0.85em; font-style: italic; }
.mf_admin_sys_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 20px; }
.mf_admin_stat_box { background: var(--post-bg-color); border: 1px dashed var(--border-color); border-radius: 4px; padding: 14px 10px; text-align: center; }
.mf_admin_stat_value { font-size: 2.2em; color: var(--heading-color); display: block; line-height: 1; margin-bottom: 4px; font-family: 'VT323', monospace; }
.mf_admin_stat_label { font-size: 0.75em; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
.mf_admin_hint { font-size: 0.82em; color: #666; margin: 0 0 8px; }

/* Admin Meta */
/* Artifact Tracking
// artifact_id: 9c02cf73-5511-415a-a437-c771de7c5494
*/
