*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: #000000;
    background: #ffffff;
}

a {
    color: #538adc;
    text-decoration: none;
}

a:hover {
    color: #77c9f3;
    text-decoration: underline;
}

img {
    max-width: 100%;
    border: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

input,
textarea,
select,
button {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 11px;
}

textarea {
    resize: vertical;
}

.char-counter {
    margin-top: 3px;
    font-size: 10px;
    text-align: right;
    color: #666666;
}

.char-counter.is-near-limit {
    color: #9c2f2f;
    font-weight: bold;
}

.site-wrap {
    width: 100%;
    max-width: 780px;
    margin: 10px auto 18px;
    padding: 0 6px;
}

.page-frame {
    border: 1px solid #3b5998;
    background: #ffffff;
}

.brand-band {
    position: relative;
    display: flex;
    min-height: 80px;
    overflow: hidden;
    background: #3b5998;
    border: 1px solid #2d4373;
}

.brand-left {
    width: 250px;
    flex: 0 0 250px;
    position: static;
    background: transparent;
}

.brand-banner-link {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: auto;
    height: 100%;
    padding: 0;
    z-index: 0;
}

.brand-banner-link:hover {
    text-decoration: none;
}

.brand-banner {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
}

.brand-right {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 10px;
    background: transparent;
}

.brand-upper {
    margin-bottom: 8px;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-logo-text {
    font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
}

.menu-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px 0;
    font-size: 11px;
}

.menu-links a {
    color: #ffffff;
    padding: 0 6px;
    white-space: nowrap;
}

.menu-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-content {
    padding: 8px;
}

.layout-cols {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sidebar {
    width: 155px;
    flex: 0 0 155px;
}

.feed-col {
    width: 366px;
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-right {
    width: 155px;
    flex: 0 0 155px;
}

.widget,
.retro-box,
.retro-panel {
    border: 1px solid #3b5998;
    background: #ffffff;
    margin-bottom: 8px;
}

.retro-panel-dashed {
    border-style: dashed;
}

.widget,
.retro-box-body,
.retro-panel,
.retro-panel form {
    padding: 0;
}

.widget>h2,
.widget>h3,
.widget-title,
.retro-box-title {
    margin: 0;
    padding: 3px 6px;
    background: #3b5998;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.widget> :not(h2):not(h3) {
    padding-left: 6px;
    padding-right: 6px;
}

.widget> :last-child {
    padding-bottom: 6px;
}

.widget>h2+*,
.widget>h3+* {
    padding-top: 6px;
}

.profile-friends-widget h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 3px 6px;
    font-size: 10px;
}

.profile-friends-widget h3 .profile-friends-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friends-widget .profile-friends-see-all {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 1px 5px;
    border: 1px solid #203864;
    border-radius: 2px;
    background: #fef3c7;
    color: #203864;
    font-size: 9px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.profile-friends-widget .profile-friends-see-all:hover {
    background: #fff4a8;
    color: #102447;
    text-decoration: none;
}

.intro-widget p {
    color: #333333;
}

.badge {
    display: inline-block;
    min-width: 14px;
    padding: 0 4px;
    margin-left: 4px;
    background: #d9dfea;
    border: 1px solid #ffffff;
    color: #3b5998;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

.btn,
.inputsubmit,
.retro-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    min-height: 22px;
    border-top: 1px solid #d9dfea;
    border-left: 1px solid #d9dfea;
    border-right: 2px solid #3b5998;
    border-bottom: 2px solid #3b5998;
    background: #538adc;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    overflow: visible;
    max-width: 100%;
}

.btn:hover,
.inputsubmit:hover,
.retro-button-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: #3b5998;
}

.btn-sm {
    padding: 1px 5px;
    font-size: 10px;
    min-height: 18px;
}

.btn-wrap,
.btn[style*="display:block"],
.btn[style*="width:100%"],
.avatar-upload-form .btn,
.group-create-btn {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
}

.btn-primary,
.retro-button-link-primary {
    background: #3b5998;
}

.btn-primary:hover,
.retro-button-link-primary:hover {
    background: #2d4373;
}

.btn-link {
    background: none;
    border: 0;
    padding: 0;
    color: #538adc;
    cursor: pointer;
}

.btn-link:hover {
    color: #77c9f3;
    text-decoration: underline;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: default;
}

.inputtext,
input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=date],
textarea,
select {
    width: 100%;
    padding: 3px 4px;
    border: 1px solid #666666;
    background: #d9dfea;
    color: #000000;
}

input[type=color] {
    width: 42px;
    height: 22px;
    padding: 0;
    border: 1px solid #666666;
}

fieldset {
    border: 1px solid #3b5998;
    margin: 0 0 8px;
    padding: 8px;
}

legend {
    padding: 0 4px;
    color: #3b5998;
    font-weight: bold;
}

label {
    display: block;
    margin: 6px 0 2px;
    font-weight: bold;
}

.profile-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: normal;
}

.profile-checkbox-row input {
    width: auto;
    margin: 0;
}

.profile-form-note {
    margin-bottom: 8px;
    color: #555555;
}

.profile-interest-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
}

.profile-interest-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
}

.profile-interest-option input {
    width: auto;
    margin: 0;
}

.profile-interest-counter {
    margin-top: 8px;
}

.flash {
    margin-bottom: 8px;
    padding: 5px 7px;
    border: 1px solid;
}

.flash-error {
    background: #fff1f1;
    border-color: #a94442;
    color: #7d1717;
}

.flash-success {
    background: #f4fff0;
    border-color: #2f6b2f;
    color: #215321;
}

.avatar-xs,
.avatar-sm,
.avatar-md,
.profile-avatar,
.group-avatar,
.friend-card img:not(.founder-floppy-icon),
.group-card img:not(.founder-floppy-icon) {
    border: 1px solid #3b5998;
    object-fit: cover;
}

.avatar-xs {
    width: 24px;
    height: 24px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
}

.avatar-md {
    width: 50px;
    height: 50px;
}

#auth-wrap {
    padding: 2px 0 0;
}

.guest-columns {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.guest-sidebar {
    width: 160px;
    flex: 0 0 160px;
}

.guest-main {
    flex: 1;
    min-width: 0;
}

.compact-login-form,
.retro-panel {
    padding: 6px;
}

.compact-login-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
    align-items: center;
}

.compact-login-actions .inputsubmit,
.compact-login-actions .retro-button-link {
    display: inline-flex;
    flex: 1 1 0;
}

.compact-login-form label:first-of-type {
    margin-top: 0;
}

.welcome-copy,
.retro-box-body {
    padding: 10px 12px;
}

.welcome-heading {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.welcome-copy p,
.sidebar-copy,
.register-copy {
    margin-bottom: 10px;
}

.network-list {
    margin: 10px auto;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #3b5998;
    background: #f5f7fb;
    color: #333333;
}

.retro-bullets {
    margin: 0 0 12px 18px;
    list-style: disc;
}

.retro-bullets li {
    margin-bottom: 3px;
}

.welcome-actions {
    text-align: center;
    padding-top: 2px;
}

.welcome-actions .retro-button-link {
    margin: 0 6px;
}

.sidebar-title {
    margin-bottom: 6px;
    font-weight: bold;
    color: #3b5998;
}

.retro-form-table td {
    padding: 4px 2px;
    vertical-align: top;
}

.retro-form-table td:first-child {
    width: 130px;
}

.form-note {
    margin-top: 3px;
    color: #666666;
}

.post-composer form,
.post-card,
.comments-section,
.profile-theme-wrap,
.search-result-item,
.notif-item,
.friend-request-item,
.suggestion-item,
.convo-item a,
.convo-sidebar-link,
.group-list li,
.group-card,
.chat-header,
.chat-form,
.message-bubble {
    padding: 6px;
}

.post-composer textarea {
    min-height: 60px;
    margin-bottom: 4px;
}

.composer-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.composer-footer select {
    width: auto;
    min-width: 100px;
}

.composer-footer .btn-primary {
    margin-left: auto;
}

#image-preview-wrap {
    margin-top: 6px;
}

#image-preview {
    max-height: 100px;
    border: 1px solid #3b5998;
    margin-bottom: 4px;
}

.hidden {
    display: none !important;
}

.post-card:last-of-type {
    margin-bottom: 0;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.post-meta {
    flex: 1;
}

.post-time {
    margin-left: 4px;
    color: #666666;
    font-size: 10px;
}

.visibility-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 0 3px;
    border: 1px solid #3b5998;
    background: #d9dfea;
    color: #3b5998;
    font-size: 9px;
    text-transform: uppercase;
}

.post-body {
    margin-top: 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.post-body p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mention-link {
    color: #3b5998;
    font-weight: bold;
    text-decoration: none;
    background: #edf0f5;
    padding: 0 3px;
    border: 1px solid #d8dfea;
    border-radius: 2px;
}

.mention-link:hover {
    text-decoration: underline;
    background: #dce3ee;
}

/* @Mention Autocomplete Dropdown */
.mention-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid #3b5998;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    width: 230px;
    max-height: 190px;
    overflow-y: auto;
    z-index: 10000;
    font-size: 11px;
}

.mention-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.mention-dropdown-item:last-child {
    border-bottom: none;
}

.mention-dropdown-item:hover,
.mention-dropdown-item.active {
    background: #3b5998;
    color: #ffffff;
}

.mention-dropdown-item:hover strong,
.mention-dropdown-item.active strong,
.mention-dropdown-item:hover .muted,
.mention-dropdown-item.active .muted {
    color: #ffffff !important;
}

.post-image img {
    margin-top: 6px;
    border: 1px solid #3b5998;
    max-height: 300px;
    max-width: 100%;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d9dfea;
    color: #666666;
    font-size: 10px;
}

.comments-section {
    margin-top: 6px;
    border-top: 1px solid #d9dfea;
    min-width: 0;
}

.comment-item {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    min-width: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    background: #f5f7fb;
    border: 1px solid #d9dfea;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-body p {
    margin-top: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
}

.comment-like-count {
    font-size: 11px;
}

.comment-like-btn.is-liked {
    font-weight: bold;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.comment-form.is-replying {
    margin-left: 30px;
    margin-top: 4px;
    margin-bottom: 6px;
    width: calc(100% - 30px);
}

.comment-input-row {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.comment-input-row input[type=text] {
    flex: 1;
    min-width: 0;
}

.comment-form .char-counter,
.comment-input-row .char-counter {
    margin-top: 0;
    font-size: 9px;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-theme-wrap {
    padding: 0;
    background-color: #ffffff !important;
}

.profile-title-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    background: #3b5998;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    margin-bottom: 4px;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pull-right {
    float: none;
    margin-left: auto;
    font-weight: normal;
    font-size: 11px;
}

.profile-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-quick-links li {
    padding: 4px 6px;
    border-bottom: 1px solid #d9dfea;
}

.profile-quick-links li::before {
    content: '\00BB ';
    color: #3b5998;
}

.profile-quick-links li a {
    color: #3b5998;
}

/* Sidebar quick search - matches 2004 Facebook style */
.sidebar-search {
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    overflow: visible;
}

.sidebar-search label {
    font-weight: bold;
    margin: 0;
    display: block;
    width: 100%;
    color: #000000;
}

.sidebar-search-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap;
    overflow: visible;
}

.sidebar-search input[type="text"] {
    flex: 1;
    width: auto;
    min-width: 0;
}

.sidebar-search .inputsubmit {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Info-table section headers (Account Info, Basic Info, etc.) */
.info-section-header td {
    background: #d9dfea !important;
    color: #333333;
    font-weight: bold;
    padding: 3px 6px !important;
    border-bottom: 1px solid #b9c0d5;
}

.profile-header.widget,
.group-header.widget {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    min-width: 0;
}

.profile-header.widget>div,
.group-header.widget>div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-header.widget h2,
.profile-header.widget h3,
.group-header.widget h2,
.group-header.widget h3 {
    background: none;
    color: #000000;
    padding: 0;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-avatar-wrap {
    flex: 0 0 auto;
    width: 160px;
}

.profile-avatar {
    width: 160px;
    height: 160px;
}

.profile-avatar-compact {
    width: 120px;
    height: 120px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h1 {
    margin-bottom: 4px;
    color: #3b5998;
    font-size: 16px;
}

.profile-info h1 small {
    color: #666666;
    font-size: 11px;
    font-weight: normal;
}

.status-text {
    margin-bottom: 4px;
    font-style: italic;
    color: #555555;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-upload-form {
    width: 160px;
}

.avatar-upload-form .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.notifications-toolbar {
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 6px 6px;
}

.friends-grid,
.friends-full-grid,
.groups-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px;
}

.friends-grid .avatar-sm {
    width: 42px;
    height: 42px;
}

.friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    text-align: center;
}

.friend-card a {
    display: block;
    width: 100%;
}

.friend-card img:not(.founder-floppy-icon) {
    width: 70px;
    height: 70px;
}

.profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    box-sizing: border-box;
}

.profile-friends-grid .profile-friend-card {
    width: auto;
    min-width: 0;
}

.profile-friends-grid .profile-friend-card a {
    display: flex;
    min-height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    border: 1px solid #d9dfea;
    background: #f5f7fb;
    text-decoration: none;
    overflow: hidden;
}

.profile-friends-grid .profile-friend-card a:hover {
    background: #edf1f7;
    text-decoration: none;
}

.profile-friends-grid .profile-friend-card img:not(.founder-floppy-icon) {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid #3b5998;
}

.profile-friend-card-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    color: #3b5998;
    margin-top: 1px;
}

.profile-friends-summary {
    padding: 2px 6px 6px;
    text-align: center;
    color: #666666;
    font-weight: bold;
    font-size: 10px;
}

.profile-friends-empty {
    padding: 6px;
}

.see-all {
    float: right;
    font-size: 10px;
    font-weight: normal;
}

.avatar-upload-form {
    margin-top: 4px;
}

.group-card {
    width: 116px;
    text-align: center;
}

.group-card img,
.group-avatar {
    width: 60px;
    height: 60px;
}

.group-list li {
    border-bottom: 1px solid #d9dfea;
}

.group-list li:last-child {
    border-bottom: 0;
}

.group-create-btn {
    display: block;
    width: fit-content;
    margin: 10px 0 2px 6px;
}

.convo-list li {
    border-bottom: 1px solid #d9dfea;
}

.convo-list li:last-child {
    border-bottom: 0;
}

.convo-item a,
.convo-sidebar-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000000;
}

.convo-item a:hover,
.convo-sidebar-link:hover {
    background: #f5f7fb;
    color: #000000;
    text-decoration: none;
}

.convo-item.unread a,
.notif-unread {
    background: #edf0f8;
    font-weight: bold;
}

.convo-sidebar-link.active {
    background: #d9dfea;
    font-weight: bold;
}

.convo-preview {
    flex: 1;
    min-width: 0;
}

.convo-preview p {
    color: #666666;
}

.friend-card strong,
.friend-card small,
.convo-preview strong,
.convo-preview p,
.search-result-item>div,
.search-result-item strong a,
.search-result-item .muted,
.friend-request-item strong a,
.suggestion-item>a,
.notif-body p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-widget {
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid #d9dfea;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-item {
    display: flex;
    gap: 4px;
    max-width: 75%;
    min-width: 0;
}

.message-item.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    border: 1px solid #d9dfea;
    background: #f5f7fb;
    padding: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-bubble p {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-item.mine .message-bubble {
    background: #d9dfea;
    border-color: #3b5998;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.message-item.mine .message-meta {
    justify-content: flex-end;
}

.chat-reply-btn {
    font-size: 10px;
    color: #3b5998;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.chat-reply-btn:hover {
    color: #1d2f53;
}

.message-item.mine .chat-reply-btn {
    color: #2b4270;
}

.delete-message {
    font-size: 10px;
    color: #888;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.delete-message:hover {
    color: #c00;
}

.message-item.mine .delete-message {
    color: #4b628f;
}

.message-item.mine .delete-message:hover {
    color: #900;
}

.message-reply-quote {
    display: block;
    margin-bottom: 5px;
    padding: 3px 6px;
    background: #e9ecf2;
    border-left: 3px solid #3b5998;
    text-decoration: none;
    color: inherit;
    font-size: 11px;
    border-radius: 2px;
    cursor: pointer;
}

.message-reply-quote:hover {
    background: #dee3ec;
}

.message-item.mine .message-reply-quote {
    background: rgba(255, 255, 255, 0.45);
    border-left-color: #2b4270;
}

.message-item.mine .message-reply-quote:hover {
    background: rgba(255, 255, 255, 0.65);
}

.reply-quote-sender {
    display: block;
    font-weight: bold;
    color: #3b5998;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.message-item.mine .reply-quote-sender {
    color: #1d2f53;
}

.reply-quote-body {
    display: block;
    color: #555;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.message-item.mine .reply-quote-body {
    color: #333;
}

.chat-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    background: #eceff5;
    border: 1px solid #c4d0e4;
    border-left: 3px solid #3b5998;
    font-size: 11px;
    margin-bottom: 4px;
}

.chat-reply-bar.hidden {
    display: none !important;
}

.chat-reply-bar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.chat-reply-icon {
    font-size: 13px;
    color: #3b5998;
    font-weight: bold;
}

.chat-reply-bar-content {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-reply-cancel {
    background: none;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    text-decoration: none;
}

.chat-reply-cancel:hover {
    color: #000;
}

@keyframes messageFlash {
    0% {
        background-color: #fff9c4;
        border-color: #fbc02d;
    }

    50% {
        background-color: #fff59d;
        border-color: #fbc02d;
    }

    100% {}
}

.message-item.message-highlight .message-bubble {
    animation: messageFlash 1.6s ease;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #d9dfea;
    padding: 6px;
    box-sizing: border-box;
    width: 100%;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.chat-input-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chat-input-field input[type=text] {
    width: 100%;
    box-sizing: border-box;
}

.chat-input-field .char-counter {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1;
}

.chat-btn-photo,
.chat-btn-send {
    flex-shrink: 0;
    white-space: nowrap;
}

.chat-image-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid #d9dfea;
    background: #f5f7fb;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#chat-image-name {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
    word-break: break-all;
    color: #333333;
    line-height: 1.3;
}

.chat-image-preview {
    max-width: 60px;
    max-height: 48px;
    object-fit: contain;
    border: 1px solid #3b5998;
    flex-shrink: 0;
    background: #ffffff;
}

.chat-inline-image,
.message-bubble img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #3b5998;
    display: block;
    margin-bottom: 4px;
}

.chat-image-preview.hidden {
    display: none !important;
}

.friend-request-item,
.suggestion-item,
.notif-item,
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid #d9dfea;
}

.friend-request-item:last-child,
.suggestion-item:last-child,
.notif-item:last-child,
.search-result-item:last-child {
    border-bottom: 0;
}

.friend-request-item,
.suggestion-item {
    flex-wrap: wrap;
}

.search-result-item>div,
.notif-body {
    flex: 1;
}

.notif-actions,
.request-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.notif-actions form,
.request-actions form {
    margin: 0;
}

.section-subhead {
    margin: 0 0 4px;
    color: #3b5998;
    font-size: 11px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 6px 0 0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 16px;
}

.load-more-btn {
    min-width: 120px;
    padding: 3px 14px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.load-more-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.load-more-end {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
}

.quick-links li {
    padding: 2px 0;
}

.quick-links li::before {
    content: '\00BB ';
    color: #3b5998;
}

table.info-table {
    width: 100%;
    border-collapse: collapse;
}

table.info-table td {
    padding: 2px 4px;
    border-bottom: 1px solid #d9dfea;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.info-table td:first-child {
    width: 100px;
    color: #666666;
    font-weight: bold;
    white-space: nowrap;
}

.muted {
    color: #666666 !important;
}

.profile-interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.profile-interest-pill {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid #9db4d8;
    background: #eef3fb;
    color: #3b5998;
}

.center {
    text-align: center;
}

hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #d9dfea;
}

.text-blue {
    color: #3b5998;
}

.section-divider {
    border-top: 1px solid #3b5998;
    margin: 8px 0;
}

#footer {
    margin-top: 8px;
    text-align: center;
    color: #000000;
}

#footer-links {
    margin-bottom: 2px;
}

#footer-links a {
    margin: 0 5px;
}

#error-page {
    padding: 40px 0 20px;
    text-align: center;
}

#error-page h1 {
    color: #3b5998;
    font-size: 42px;
    margin-bottom: 6px;
}

#error-page h2 {
    margin-bottom: 8px;
    font-size: 14px;
}

.static-page-content,
.static-page-content p {
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-form {
    padding: 6px;
    border-top: 1px solid #d9dfea;
}

.admin-form:first-of-type {
    border-top: 0;
}

.admin-form label {
    display: block;
    margin: 6px 0 3px;
    font-weight: bold;
    color: #3b5998;
}

.admin-form input[type=text],
.admin-form input[type=email],
.admin-form input[type=number],
.admin-form textarea,
.admin-form select {
    width: 100%;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-search-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-search-row input[type=text] {
    flex: 1;
}

.admin-result-note {
    padding: 0 6px 6px;
}

.admin-groups-grid {
    padding: 6px;
}

.admin-group-card {
    width: 150px;
}

.admin-user-header,
.member-admin-row,
.member-admin-meta,
.member-admin-actions {
    display: flex;
    gap: 8px;
}

.admin-user-header,
.member-admin-row {
    align-items: flex-start;
}

.member-admin-row {
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid #d9dfea;
}

.member-admin-row:first-of-type {
    border-top: 0;
}

.member-admin-meta {
    flex: 1;
    min-width: 0;
}

.member-admin-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-admin-actions form,
.admin-actions {
    margin: 0;
}

.member-admin-form-inline {
    display: flex;
    gap: 4px;
    align-items: center;
}

.member-admin-form-inline input[type=text] {
    width: 130px;
}

.member-admin-form-inline input[type=number] {
    width: 56px;
}

.admin-checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.admin-checkbox input {
    width: auto;
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .site-wrap {
        width: 100%;
        margin: 0 auto;
        padding: 4px;
    }

    .brand-band,
    .menu-band,
    .guest-columns,
    .layout-cols,
    .profile-header.widget,
    .group-header.widget {
        flex-direction: column;
    }

    .layout-cols {
        display: flex;
    }

    .feed-col {
        order: 1;
        width: 100%;
        flex: 1 1 auto;
    }

    .sidebar {
        order: 2;
        width: 100%;
        flex: 1 1 auto;
        margin-top: 8px;
    }

    .sidebar-right {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
        margin-top: 8px;
    }

    .profile-theme-wrap .sidebar {
        order: 1;
    }

    .profile-theme-wrap .feed-col {
        order: 2;
    }

    .brand-left,
    .brand-right,
    .guest-sidebar,
    .shell-search {
        width: 100%;
        flex: 1 1 auto;
    }

    .brand-right {
        justify-content: flex-start;
        padding: 4px 6px;
    }

    .menu-links {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        padding: 4px 0;
    }

    .menu-links a {
        border-left: 0;
        padding: 3px 6px;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        white-space: nowrap;
    }

    .brand-left,
    .brand-right {
        width: 100%;
        flex: 1 1 auto;
    }

    .brand-banner-link {
        position: static;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .brand-banner {
        height: auto;
        max-width: 100%;
    }

    .composer-footer .btn-primary {
        margin-left: 0;
    }

    .profile-interest-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comment-form,
    .search-result-item,
    .friend-request-item,
    .suggestion-item,
    .notif-item,
    .post-footer,
    .member-admin-row,
    .member-admin-actions,
    .member-admin-form-inline,
    .admin-search-row,
    .chat-image-status {
        flex-wrap: wrap;
    }

    .admin-grid-two {
        display: block;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        max-width: 100%;
    }

    .chat-messages {
        max-height: 55vh;
    }
}