.chat-gallery-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}
.chat-logbook-gallery-overview .chat-gallery-section {
    min-width: 0;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-radius-card);
    background: var(--chat-surface);
    display: flow-root;
}
.chat-logbook-gallery-overview h2 { font-size: 1.25rem; }
.chat-gallery-actions { margin-top: 12px; }
.chat-gallery-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.chat-gallery-form label { margin: 0; }
.chat-gallery-form .form-control { width: auto; flex: 1 1 140px; min-width: 0; max-width: 100%; }
.chat-gallery-ad { float: right; max-width: 100%; overflow-x: auto; margin: 0 0 12px 12px; }
.chat-gallery-random-intro { text-align: center; margin: 16px 0; }
.chat-logbook-gallery-overview .gallery-item {
    flex: 1 1 110px !important;
    max-width: 160px !important;
    min-width: 0;
    border-radius: 10px;
}

.chat-logbook-toplists a.active { font-weight: 700; text-decoration: underline; }
.chat-toplists-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.chat-toplists-filter-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-radius-card);
    background: var(--chat-surface);
}
.chat-logbook-toplists .list-group-item-link { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.chat-logbook-toplists .list-group-item-link img { width: 35px; height: 35px; object-fit: cover; border-radius: 4px; }
.chat-toplists-filter-card a { overflow-wrap: anywhere; }
.chat-toplists-panel { margin-top: 12px; border: 1px solid var(--chat-border); border-radius: 12px; overflow: hidden; }
.chat-toplists-panel .table { margin-bottom: 0; }
.chat-logbook-toplists .toplist .buddy a { font-weight: 600; }
.chat-logbook-toplists .ordinal { width: 40px; text-align: right; padding-right: 8px; }
.chat-logbook-toplists .user-photo { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.chat-toplists-ad { float: right; max-width: 100%; overflow-x: auto; margin: 0 0 12px 12px; }
.chat-logbook-toplists [id$="GenderLinksAndAdContainer"] { display: flow-root; }
.chat-toplists-promotion { margin-top: 16px; }

.chat-photo-album h2 { font-size: 1.2rem; margin: 0 0 10px; }
.chat-album-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.chat-album-feature,
.chat-album-section {
    padding: 16px;
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-radius-card);
    background: var(--chat-surface);
    min-width: 0;
}
.chat-album-feature { display: flex; flex-wrap: wrap; gap: 14px; }
.chat-album-feature > div:last-child { flex: 1 1 100px; min-width: 0; }
.chat-album-feature-image { flex: 0 0 100px; text-align: center; }
.chat-album-feature-image > img { max-width: 100px; height: auto; border-radius: 10px; margin-bottom: 10px; }
.chat-album-toolbar,
.chat-album-actions,
.chat-album-settings,
.chat-album-access-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.chat-album-toolbar .form-control { flex: 1 1 160px; width: auto; min-width: 0; }
.chat-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
    gap: 14px;
    margin: 16px 0;
}
.chat-album-photo { border: 1px solid var(--chat-border); border-radius: 12px; overflow: hidden; background: var(--chat-surface); min-width: 0; }
.chat-album-photo-tools { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--chat-border); }
.chat-album-photo-tools > span { margin-left: auto; }
.chat-album-photo-tools input[type="image"] { flex: 0 0 auto; }
.chat-album-thumbnail { display: flex; align-items: center; justify-content: center; min-height: 130px; padding: 12px; background: #f4f9fc; }
.chat-album-thumbnail img { max-width: 100%; height: auto; }
.chat-album-access { padding: 10px 12px 0; font-size: .8rem; }
.chat-album-description { padding: 12px; overflow-wrap: anywhere; max-height: 130px; overflow-y: auto; }
.chat-album-description a { color: var(--chat-text); }
.chat-album-settings { padding-top: 14px; border-top: 1px solid var(--chat-border); }
.chat-album-settings .form-control { width: auto; }
.chat-album-options { display: grid; gap: 10px; margin: 16px 0; }
.chat-album-upload-field { padding: 18px; border: 1px dashed var(--chat-border); border-radius: 12px; background: #f4f9fc; }
.chat-album-upload-field input { max-width: 100%; }
.chat-album-disclaimer { color: #a32626; font-weight: 600; }
.chat-album-preview img,
.chat-album-full-photo img { max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.chat-album-preview { margin: 16px 0; }
.chat-album-full-photo { padding: 14px 0; text-align: center; }
.chat-album-editor .chat-album-section { margin-bottom: 18px; }
.chat-album-access-field .form-control { width: auto; max-width: 100%; }
.chat-album-help { font-size: .85rem; color: var(--chat-muted, #58758a); }
.chat-album-description-input { min-height: 120px; resize: vertical; }

.chat-logbook-rank h2 { font-size: 1.2rem; }
.chat-rank-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.chat-rank-heading h1 { margin: 0; }
.chat-rank-icon { max-width: 74px; height: auto; }
.chat-rank-card { padding: 18px; margin-bottom: 16px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); min-width: 0; }
.chat-rank-boost,
.chat-rank-progress { text-align: center; }
.chat-rank-card img { max-width: 100%; height: auto; }
.chat-rank-actions,
.chat-rank-level-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.chat-rank-level-links > div { flex: 1 1 auto; }
.chat-rank-level-links > div:last-child { text-align: right; }
.chat-rank-promotion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.chat-rank-description { overflow-wrap: anywhere; }
.chat-rank-reasons { padding-left: 24px; margin-bottom: 0; }
.chat-rank-reasons li { margin-bottom: 12px; }
.chat-rank-gauge { width: 180px; height: 180px; max-width: 100%; border-radius: 50%; margin: 18px auto 0; display: grid; place-items: center; background: conic-gradient(#087caf calc(var(--rank-progress) * 1%), #e1edf5 0); }
.chat-rank-gauge-content { width: 148px; height: 148px; border-radius: 50%; background: var(--chat-surface); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.chat-rank-gauge-content strong { font-size: 1.6rem; }
.chat-rank-barometer .userLevel { display: grid; grid-template-columns: 74px 58px minmax(0, 1fr); align-items: center; gap: 0 12px; min-height: 18px; }
.chat-rank-barometer .levelIcon { display: flex; align-items: center; justify-content: center; }
.chat-rank-barometer .levelTitle { overflow-wrap: anywhere; font-size: .9rem; }
.chat-rank-barometer .meterElm { display: flex; justify-content: center; }
.chat-rank-barometer .meterElm img { display: block; flex: 0 0 auto; }

.chat-photo-gallery { container-type: inline-size; }
.chat-photo-gallery h2 { font-size: 1.2rem; }
.chat-gallery-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.chat-gallery-count { flex: 1 1 100px; text-align: center; font-size: .9rem; }
.chat-gallery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; }
.chat-gallery-main,
.chat-gallery-details { min-width: 0; }
.chat-gallery-card { padding: 16px; margin: 0 0 16px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); overflow-wrap: anywhere; }
.chat-gallery-photo { text-align: center; padding: 12px; background: #f4f9fc; }
.chat-gallery-photo > img { max-width: 100%; height: auto; border-radius: 8px; }
.chat-gallery-photo figcaption { padding-top: 14px; }
.chat-gallery-photo figcaption small { color: #58758a; }
.chat-gallery-ad-slot { max-width: 100%; overflow-x: auto; }
.chat-gallery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.chat-gallery-actions .form-control { min-width: 0; flex: 1 1 140px; width: auto; }
.chat-gallery-comment-input { min-height: 100px; resize: vertical; }
.chat-gallery-comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--chat-border); }
.chat-gallery-avatar { flex: 0 0 50px; object-fit: cover; border-radius: 50%; }
.chat-gallery-comment-body { min-width: 0; flex: 1; white-space: normal; }
.chat-gallery-comment-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: #58758a; margin: 6px 0; }
.chat-gallery-comment-author { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.5; }
.chat-gallery-comment-author img { max-width: 100%; height: auto; }
.chat-gallery-comment-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.chat-gallery-owner { display: flex; gap: 12px; align-items: center; }
.chat-gallery-owner > div { min-width: 0; }
.chat-gallery-online { color: #21863b; font-size: .85rem; margin-top: 10px; }
.chat-gallery-owner-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 14px; }
.chat-gallery-owner-facts dd { margin: 0; }
.chat-gallery-rating-card { text-align: center; }
.chat-gallery-rating-total { font-size: 2rem; color: #087caf; }
.chat-gallery-stars { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.chat-gallery-stars button { background: none; border: 0; color: #a36e00; font-size: 1.6rem; padding: 2px; cursor: pointer; }
.chat-gallery-stars button:hover,
.chat-gallery-stars button:focus-visible { color: #087caf; }
.chat-gallery-stars button:disabled { opacity: .5; cursor: wait; }
.chat-gallery-rating-status { display: block; margin-top: 10px; color: #a32626; font-size: .85rem; }
@media (max-width: 767px) {
    .chat-gallery-layout { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 520px) {
    .chat-gallery-layout { grid-template-columns: minmax(0, 1fr); }
}

.chat-badges-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.chat-badges-welcome > div { flex: 1 1 200px; min-width: 0; }
.chat-badges-category { margin-bottom: 24px; }
.chat-logbook-badges h2 { font-size: 1.25rem; }
.chat-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 14px; padding: 0; margin: 16px 0; list-style: none; }
.chat-badge-card { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 18px 12px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); text-align: center; overflow-wrap: anywhere; }
.chat-badge-card:hover,
.chat-badge-card:focus-visible { background: #f0f8fc; border-color: #087caf; text-decoration: none; }
.chat-badge-card img { width: 80px; height: 80px; object-fit: contain; }
.chat-badge-card small { color: #58758a; }
.chat-badge-details { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.chat-badge-summary { flex: 1 1 180px; text-align: center; padding: 18px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-badge-explanation { flex: 3 1 300px; min-width: 0; overflow-wrap: anywhere; }
.chat-badge-explanation > div { margin-bottom: 16px; }
.chat-badge-detail-image { max-width: 100%; height: auto; max-height: 160px; margin-bottom: 20px; }
.chat-badge-explanation img { max-width: 100%; height: auto; }
.chat-badge-disclaimer { color: #58758a; font-size: .9rem; }

.chat-buddy-notice,
.chat-buddy-upgrade { display: block; padding: 14px; margin-bottom: 16px; background: #eef7fc; border: 1px solid var(--chat-border); border-radius: 10px; }
.chat-buddylist .nav-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chat-buddylist .nav-pills a { display: block; padding: 8px 12px; border-radius: 8px; }
.chat-buddylist .nav-pills .active a { color: #fff; background: #087caf; }
.chat-buddy-table { overflow-x: auto; }
.chat-buddy-table .table { margin-bottom: 0; }
.chat-buddy-table td,
.chat-buddy-table th { vertical-align: middle; }
.chat-buddy-select-all { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.chat-buddy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.chat-buddy-card { padding: 16px; background: var(--chat-surface); border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); min-width: 0; }
.chat-buddy-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-buddy-card-heading h2 { font-size: 1.15rem; margin: 0; overflow-wrap: anywhere; }
.chat-buddy-card-profile { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.chat-buddy-card-profile img { border-radius: 50%; object-fit: cover; }
.chat-buddy-meta { font-size: .85rem; color: #58758a; margin-top: 8px; }
.chat-buddy-card-actions,
.chat-buddy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

.chat-logbook-settings { display: grid; gap: 16px; }
.chat-settings-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; padding: 16px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); }
.chat-settings-icon img { width: 64px; height: 64px; object-fit: contain; }
.chat-settings-description { min-width: 0; overflow-wrap: anywhere; }
.chat-settings-description h2 { font-size: 1.2rem; margin: 0 0 8px; }
.chat-settings-description p { margin-bottom: 0; }
.chat-settings-action { grid-column: 2; }
.chat-settings-action .btn { white-space: normal; }
@media (max-width: 480px) {
    .chat-settings-card { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; gap: 10px; }
    .chat-settings-icon img { width: 44px; height: 44px; }
}

.chat-profile-email h2 { font-size: 1.2rem; }
.chat-email-section { padding: 18px; margin-bottom: 16px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); }
.chat-email-current { margin: 18px 0; overflow-wrap: anywhere; }
.chat-email-unverified { padding: 12px 0; border-top: 1px solid var(--chat-border); overflow-wrap: anywhere; }
.chat-email-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.chat-email-actions .btn { white-space: normal; }

.chat-information-table-scroll { overflow-x: auto; }
.chat-information-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.chat-information-table td,
.chat-information-table th { padding: 10px 8px; vertical-align: middle; border-bottom: 1px solid var(--chat-border); }
.chat-information-table td:first-child { width: 24%; }
.chat-information-table td:nth-child(2) { width: 43%; }
.chat-information-table td:last-child { width: 33%; }
.chat-information-table .form-control { width: 100%; min-width: 0; }
.chat-information-table .chat-information-small-field { width: 60px; display: inline-block; }
.chat-information-table img { max-width: 100%; height: auto; }
.chat-information-table select { max-width: 100%; }
.chat-information-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chat-information-saved { padding: 14px; margin-top: 16px; border: 1px solid #b9ddc3; border-radius: 10px; background: #effaf2; color: #226638; }

.chat-essay-editor { min-width: 0; max-width: 100%; }
.chat-essay-editor textarea { width: 100%; min-height: 400px; resize: vertical; }
.chat-essay-editor .mce-tinymce { width: 100% !important; box-sizing: border-box; }
.chat-essay-editor .mce-container { max-width: 100%; }
.chat-essay-editor .mce-toolbar-grp { overflow-x: auto; }
.chat-essay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.chat-essay-warning { color: #a32626; margin-top: 18px; }

.chat-guestbook-write h2 { font-size: 1.2rem; }
.chat-guestbook-recipients { display: grid; gap: 12px; padding: 16px; margin-bottom: 20px; border: 1px solid var(--chat-border); border-radius: 12px; background: #f4f9fc; }
.chat-guestbook-recipients .form-control { margin-bottom: 10px; }
.chat-guestbook-write #BuddyList { max-width: 100%; overflow-x: auto; margin-bottom: 20px; }
.chat-guestbook-write #BuddyList td { padding: 8px; }
.chat-guestbook-write #MultiMessageWarning { color: #a32626; }

.chat-inventory-treasure { object-fit: contain; margin: 0 0 14px 16px; }
.chat-inventory-category,
.chat-logbook-inventory .expired-history-category { margin-top: 22px; }
.chat-logbook-inventory h2 { font-size: 1.25rem; }
.chat-inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; list-style: none; margin: 16px 0; padding: 0; }
.chat-inventory-grid li { padding: 16px; border: 1px solid var(--chat-border); border-radius: 12px; text-align: center; overflow-wrap: anywhere; }
.chat-inventory-grid a.feature { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.chat-inventory-grid img { width: 80px; height: 80px; object-fit: contain; }
.chat-inventory-grid li > span { display: block; margin-top: 10px; font-size: .85rem; color: #58758a; }
.chat-logbook-inventory .expired-history-list { list-style: none; margin: 0; padding: 12px; border: 1px solid var(--chat-border); border-radius: 12px; background: #f4f9fc; }
.chat-logbook-inventory .expired-history-list li { padding: 10px 0; border-bottom: 1px solid var(--chat-border); overflow-wrap: anywhere; }
.chat-logbook-inventory .expired-history-list li:last-child { border-bottom: 0; }
.chat-logbook-inventory .expired-history-list img { width: 28px; height: 28px; object-fit: contain; margin-right: 8px; }
.chat-logbook-inventory .expired-message { display: block; margin-top: 6px; color: #58758a; font-size: .85rem; }
.chat-inventory-modal .modal-title { font-size: 1.25rem; }
.chat-inventory-modal #dialog-message { display: flex; flex-wrap: wrap; gap: 20px; overflow-wrap: anywhere; }
.chat-inventory-modal .dialog-info-left { flex: 1 1 180px; min-width: 0; }
.chat-inventory-modal .dialog-info-left small { display: block; margin: 10px 0; }
.chat-inventory-modal .dialog-info-right { flex: 2 1 260px; min-width: 0; }
.chat-inventory-modal .dialog-bottom { flex-basis: 100%; }
.chat-inventory-modal img { max-width: 100%; height: auto; }

/* Community Master layout for migrated Bridge pages. */
.chat-community-page .chat-site-footer,
.chat-community-page .chat-community-shell {
    width: min(1240px, calc(100% - 32px));
    max-width: 1240px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.chat-community-shell {
    display: grid;
    grid-template-columns: minmax(210px, 245px) minmax(0, 1fr) minmax(220px, 270px);
    gap: 18px;
    min-height: 650px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--chat-border);
    background: #f4f9fc;
    box-shadow: var(--chat-shadow-shell);
    color: var(--chat-text);
}

.chat-community-shell.chat-community-shell-wide {
    grid-template-columns: minmax(210px, 245px) minmax(0, 1fr);
}

.chat-community-sidebar,
.chat-community-main,
.chat-community-aside {
    min-width: 0;
}

.chat-community-card,
.chat-community-legacy-widgets .panel,
.chat-community-legacy-widgets #loginbox {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-radius-card);
    background: var(--chat-surface);
    box-shadow: var(--chat-shadow-card);
}

.chat-community-card h1 {
    margin: 0 0 18px;
    color: var(--chat-text);
    font-size: 30px;
    font-weight: 700;
}

.chat-community-card h2,
.chat-community-legacy-widgets h3 {
    margin: 0 0 12px;
    color: var(--chat-text);
    font-size: 18px;
    font-weight: 700;
}

.chat-community-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--chat-link);
    line-height: 1.25;
    text-decoration: none;
}

.chat-community-menu a:hover,
.chat-community-menu a:focus {
    background: var(--chat-surface-muted);
    color: var(--chat-text);
    text-decoration: none;
}

.chat-community-submenu {
    margin: 0 0 8px 16px;
    padding-left: 8px;
    border-left: 2px solid var(--chat-border);
}

.chat-community-submenu a {
    padding: 7px 10px;
    font-size: 14px;
}

.chat-community-content {
    min-height: 500px;
    padding: 25px;
}

.chat-community-content form {
    margin: 0;
}

.chat-community-news-entry {
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--chat-border);
    overflow-wrap: anywhere;
}

.chat-community-news-entry:last-child {
    border-bottom: 0;
}

.chat-community-news-entry h2 {
    margin-bottom: 5px;
    font-size: 23px;
}

.chat-community-news-entry small {
    display: block;
    margin-bottom: 12px;
    color: var(--chat-text-muted);
}

.chat-community-news-list-content {
    margin: 14px 0;
    overflow-x: auto;
}

.chat-community-news-list small {
    display: block;
    margin-top: 4px;
    color: var(--chat-text-muted);
}

.chat-community-news-list .table td {
    vertical-align: middle;
}

.chat-shipmail-toolbar,
.chat-shipmail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
}

.chat-logbook-shipmail .nav-pills {
    gap: 8px;
}

.chat-logbook-shipmail .nav-pills a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
}

.chat-logbook-shipmail .nav-pills .active a {
    background: var(--chat-surface-muted);
    font-weight: bold;
}

.chat-shipmail-list {
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
}

.chat-shipmail-list .table {
    margin: 0;
}

.chat-shipmail-list td,
.chat-shipmail-list th {
    vertical-align: middle;
}

.chat-shipmail-list thead,
.chat-shipmail-list tbody tr:nth-child(even) {
    background: var(--chat-surface-muted);
}

.chat-shipmail-icons {
    white-space: nowrap;
}

.chat-logbook-welcome .hr {
    margin: 18px 0;
    border-top: 1px solid var(--chat-border);
}

.chat-logbook-guestbook {
    position: relative;
    overflow-wrap: anywhere;
}

.chat-guestbook-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px !important;
    padding: 14px;
    border-radius: 12px;
    background: var(--chat-surface-muted);
}

.chat-guestbook-search .form-control {
    flex: 1 1 140px;
    width: auto;
}

.chat-logbook-guestbook .panel-info,
.chat-logbook-guestbook .well {
    margin-bottom: 16px;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    background: var(--chat-surface);
    text-align: left !important;
}

.chat-logbook-guestbook .panel-heading {
    padding: 12px;
    border-bottom: 1px solid var(--chat-border);
    border-radius: 12px 12px 0 0;
    background: var(--chat-surface-muted);
}

.chat-logbook-guestbook .GuestbookMsgHeaderColumns3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.chat-logbook-guestbook .panel-default,
.chat-logbook-guestbook .well .content {
    padding: 12px;
    overflow-x: auto;
}

.chat-logbook-guestbook .corners {
    display: none;
}

.chat-guestbook-navigation td {
    padding: 3px;
}

.chat-guestbook-navigation .btn {
    width: 100% !important;
    white-space: normal;
}

.chat-guestbook-navigation .btn-default {
    border: 1px solid var(--chat-border);
    color: var(--chat-link);
    background: var(--chat-surface-muted);
}

.chat-logbook-guestbook #CensorBox {
    background: var(--chat-surface);
    box-shadow: var(--chat-shadow-card);
}

.chat-logbook-welcome .columns2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.chat-logbook-welcome .columns2 > div {
    padding: 16px;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    background: var(--chat-surface-muted);
}

.chat-community-content .row {
    margin-top: 18px;
}

.chat-community-search .well {
    padding: 18px;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    background: var(--chat-surface-muted);
}

.chat-community-search .corners,
.chat-community-search .breaker {
    display: none;
}

.chat-community-search .content {
    margin: 0 !important;
}

.chat-community-search table {
    width: 100%;
}

.chat-community-search td {
    padding: 7px;
    vertical-align: middle;
}

.chat-community-search .form-control {
    width: min(100%, 280px) !important;
}

.chat-community-search-results {
    border: 0;
    box-shadow: none;
}

.chat-community-results-scroll {
    margin-top: 14px;
    overflow-x: auto;
}

.chat-community-results-scroll .table {
    min-width: 620px;
    margin-top: 12px;
}

.chat-community-results-scroll .table th,
.chat-community-results-scroll .table td {
    vertical-align: middle;
}

.chat-logbook-mypage .myPageColumns3 {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(135px, 185px);
    gap: 15px;
    align-items: center;
    margin: 0 0 14px;
    padding: 17px;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    background: var(--chat-surface-muted);
}

.chat-logbook-mypage .myPageColumns3 .col1,
.chat-logbook-mypage .myPageColumns3 .col2,
.chat-logbook-mypage .myPageColumns3 .col3 {
    min-width: 0;
}

.chat-logbook-mypage .myPageColumns3 .col2 h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.chat-logbook-mypage .myPageColumns3 .col2 p {
    margin-bottom: 4px;
}

.chat-logbook-mypage .myPageColumns3 .col3 {
    font-size: 14px;
    line-height: 1.7;
}

.chat-logbook-mypage .myPageColumns3 .icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    background: transparent;
}

.chat-logbook-mypage .myPageColumns3 .icon img {
    object-fit: contain;
}

/* Original MyPage artwork and sprite positions from newstyle.css. */
.chat-logbook-mypage .icon > div {
    width: 50px;
    height: 50px;
    background-image: url("../csg-4de3fc3590fc6.png");
    background-repeat: no-repeat;
}
.chat-logbook-mypage .icon-news { background-position: -301px -960px; }
.chat-logbook-mypage .icon-logbook { background-position: -301px -858px; }
.chat-logbook-mypage .icon-shipmail { background-position: -352px -909px; }
.chat-logbook-mypage .icon-porthole { background-position: -301px -1062px; }
.chat-logbook-mypage .icon-rank { background-position: -352px -807px; }
.chat-logbook-mypage .icon-treasure { background-position: -352px -960px; }
.chat-logbook-mypage .icon-friends { background-position: -301px -705px; }
.chat-logbook-mypage .icon-settings { background-position: -352px -858px; }
.chat-logbook-mypage .icon-profile_cismale,
.chat-logbook-mypage .icon-profile_male { background-position: -352px -756px; }
.chat-logbook-mypage .icon-profile_cisfemale,
.chat-logbook-mypage .icon-profile_female { background-position: -352px -705px; }

.chat-logbook-mypage #client {
    grid-column: 1 / -1;
}

.chat-logbook-profile .columns1,
.chat-logbook-profile .panel {
    margin-bottom: 16px;
}

.chat-logbook-profile [id$="ProfilePictureContainer"] {
    display: inline-block;
    max-width: 100% !important;
    height: auto !important;
    min-height: 180px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--chat-surface-muted);
}

.chat-logbook-profile [id$="ProfilePictureContainer"] img {
    max-width: 100%;
    height: auto;
}

.chat-logbook-profile .panel {
    overflow-x: auto;
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    background: var(--chat-surface);
}

.chat-logbook-profile .table {
    margin-bottom: 0;
}

.chat-logbook-profile .table th,
.chat-logbook-profile .table td {
    padding: 10px 12px;
    vertical-align: top;
}

.chat-logbook-profile .nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.chat-logbook-profile .nav-pills a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--chat-link);
}

.chat-logbook-profile .nav-pills .active a,
.chat-logbook-profile .nav-pills a:hover {
    background: var(--chat-surface-muted);
    text-decoration: none;
}

.chat-logbook-profile [id$="EssayContent"] {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.chat-logbook-profile input[type="text"],
.chat-logbook-profile textarea {
    max-width: 100%;
}

@media (min-width: 768px) {
    .chat-logbook-mypage > .hidden-lg.hidden-md.hidden-sm {
        display: none;
    }
}

.chat-community-legacy-widgets .panel-heading {
    margin: -18px -18px 14px;
    padding: 12px 18px;
    border-radius: 13px 13px 0 0;
    background: var(--chat-surface-muted);
}

.chat-community-legacy-widgets .panel-body {
    padding: 0;
}

.chat-community-legacy-widgets ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat-community-legacy-widgets li {
    margin: 5px 0;
}

/* Bootstrap's .nav otherwise places the old ItemMenu entries side by side. */
.chat-community-legacy-widgets ul[id="menuicon"] {
    display: block;
}

.chat-community-legacy-widgets ul[id="menuicon"] a {
    display: block;
    padding: 7px 0;
    overflow-wrap: anywhere;
}

.chat-community-legacy-widgets .chat-toplist-widget {
    width: 100%;
    max-width: none;
    padding: 0;
    flex: none;
}

.chat-community-legacy-widgets .chat-toplist-widget .panel-body {
    container-type: inline-size;
}

.chat-community-legacy-widgets .chat-toplist-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    margin-bottom: 14px;
}

.chat-community-legacy-widgets .chat-toplist-photos .photo,
.chat-community-legacy-widgets .chat-toplist-photos .buddy {
    min-width: 0;
    margin: 0;
    float: none;
    text-align: center;
}

.chat-community-legacy-widgets .chat-toplist-photos a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.chat-community-legacy-widgets .chat-toplist-photos img {
    width: 50px;
    height: 50px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 4px;
}

@container (max-width: 205px) {
    .chat-community-legacy-widgets .chat-toplist-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.chat-community-legacy-widgets a:not(.btn) {
    color: var(--chat-link);
}

.chat-community-legacy-widgets .btn,
.chat-community-legacy-widgets button {
    max-width: 100%;
}

@media (max-width: 1100px) {
    .chat-community-shell {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    }

    .chat-community-aside {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .chat-logbook-welcome .columns2 {
        grid-template-columns: 1fr;
    }

    .chat-community-page .chat-site-footer,
    .chat-community-page .chat-community-shell {
        width: calc(100% - 16px);
    }

    .chat-community-shell {
        display: block;
        padding: 10px;
    }

    .chat-community-content {
        padding: 18px;
    }

    .chat-community-menu {
        margin-bottom: 10px;
    }

    .chat-community-aside {
        display: block;
    }

    .chat-logbook-mypage .myPageColumns3 {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .chat-logbook-mypage .myPageColumns3 .col3 {
        grid-column: 2;
    }

    .chat-logbook-mypage #client {
        display: none;
    }

    .chat-logbook-profile [id$="ProfilePictureContainer"] {
        min-height: 0;
    }
}
.chat-shipmail-write .buddy .f { color: #800; }
.chat-shipmail-write .buddy .m { color: #008; }
.chat-shipmail-write .well,
.chat-shipmail-read .well { margin-bottom: 20px; }
.chat-shipmail-write textarea { resize: vertical; }
.chat-shipmail-write #BuddyList,
.chat-shipmail-write #NaviList { overflow-x: auto; margin: 16px 0; }
.chat-shipmail-photo { float: right; margin: 0 0 12px 16px; }
.chat-shipmail-message {
    clear: both;
    padding: 12px;
    border: 1px solid #d2e4ef;
    border-radius: 12px;
    overflow-wrap: anywhere;
    overflow-x: auto;
}
.chat-user-search h1 { margin-bottom: 1.25rem; }
.chat-search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.chat-search-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.chat-search-field > label, .chat-search-field legend { display: block; margin-bottom: .5rem; font-size: 1rem; font-weight: 600; }
.chat-search-field small { display: block; margin-top: .4rem; color: #567084; }
.chat-search-age { display: flex; align-items: center; gap: .5rem; }
.chat-search-age select { min-width: 0; }
.chat-search-genders td { padding-right: .8rem; }
.chat-search-genders input { margin-right: .3rem; }
.chat-search-genders label { margin-bottom: 0; }
.chat-search-actions { margin: 1.25rem 0; }
.chat-search-status { padding: 1rem; border-radius: .6rem; background: #eef6fb; }
.chat-search-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .8rem; }
.chat-search-result { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid #d5e5ef; border-radius: .7rem; background: #fff; overflow-wrap: anywhere; }
.chat-search-result img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.chat-search-nick { font-weight: 600; }
.chat-search-online { display: inline-block; margin-left: .3rem; color: #21763d; font-size: .8rem; }
.chat-search-pagination { width: 100%; margin-top: 1.25rem; }
.chat-search-pagination td:last-child { text-align: right; }
@media (max-width: 650px) { .chat-search-fields { grid-template-columns: 1fr; } }
.chat-configuration { min-width: 0; }
.chat-configuration h2 { margin: 1rem 0; font-size: 1.4rem; }
.chat-configuration h3 { margin: 0 0 .7rem; font-size: 1rem; font-weight: 600; }
.chat-configuration-tabs ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chat-configuration-tabs a { display: block; padding: .55rem .8rem; border: 1px solid var(--chat-border); border-radius: .5rem; text-decoration: none; }
.chat-configuration-tabs a.active { color: #fff; background: #0879ad; border-color: #0879ad; }
.chat-configuration-tabs a:hover { background: #eaf4fa; color: #07517b; }
.chat-configuration .columns1, .chat-configuration .columns2, .chat-configuration .column1, .chat-configuration .columnsl,
.chat-configuration .col1, .chat-configuration .col2, .chat-configuration .content, .chat-configuration .colorbox { float: none; width: auto; max-width: 100%; margin: 0; padding: 0; }
.chat-configuration .well { background: transparent; border: 0; margin: 0 !important; padding: 0; box-shadow: none; }
.chat-configuration .corners > span, .chat-configuration .breaker, .chat-configuration .hr { display: none; }
.chat-configuration .columns1, .chat-configuration .column1 { margin-bottom: 1rem; }
.chat-configuration-card, .chat-configuration .avatars { padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); }
.chat-configuration-input .form-control { width: 100%; max-width: 100%; }
.chat-configuration-description { margin-top: .45rem; color: #567084; overflow-wrap: anywhere; }
.chat-configuration-check { padding: .8rem 0; border-bottom: 1px solid #e4edf3; }
.chat-configuration-check:last-child { border-bottom: 0; }
.chat-configuration-check label { display: flex; gap: .5rem; align-items: baseline; margin: 0; }
.chat-configuration-check input { flex-shrink: 0; }
.chat-configuration-check .chat-configuration-description { padding-left: 1.5rem; }
.chat-configuration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-configuration .avatars { text-align: center; }
.chat-configuration .avatars img { box-sizing: content-box; padding: 7px; margin: 3px; border: 2px solid transparent; border-radius: .35rem; cursor: pointer; }
.chat-configuration .avatars img.selected { border-color: #0879ad; background: #e5f4fd; }
.chat-configuration .avatars img:focus-visible { outline: 2px solid #0879ad; outline-offset: 2px; }
.chat-configuration table { max-width: 100%; }
.chat-configuration table td { padding: .3rem; }
.chat-configuration table input[type="text"] { width: 6.5rem; max-width: 100%; padding: .35rem; border: 1px solid var(--chat-border); border-radius: .3rem; }
.chat-change-password h1 { margin-bottom: 1.25rem; }
.chat-password-fields { max-width: 460px; }
.chat-password-field { margin-bottom: 1rem; }
.chat-password-field label { display: block; margin-bottom: .45rem; font-weight: 600; }
.chat-password-error { display: block; margin-top: .4rem; color: #b3261e; }
.chat-password-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-profile-visits h1 { margin-bottom: 1.25rem; }
.chat-visits-section { padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); }
.chat-visits-section h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.chat-visits-list { display: grid; gap: .5rem; }
.chat-visit { display: flex; align-items: center; gap: .75rem; padding: .65rem; border-radius: .5rem; background: #f2f7fb; }
.chat-visit-ordinal { min-width: 1.5rem; color: #567084; text-align: right; }
.chat-visit-avatar { flex: 0 0 50px; }
.chat-visit-avatar img { display: block; border-radius: 50%; object-fit: cover; }
.chat-visit-details { min-width: 0; overflow-wrap: anywhere; }
.chat-visit-nick { font-weight: 600; }
.chat-visit-date, .chat-visits-empty { color: #567084; font-size: .9rem; }
.chat-visits-ad { text-align: center; margin-bottom: 1rem; max-width: 100%; overflow-x: auto; }
.chat-deactivate h1 { margin-bottom: 1.25rem; }
.chat-deactivate-notice { padding: 1rem; margin-bottom: 1.25rem; background: #fff5ed; border: 1px solid #f0d3bd; border-radius: var(--chat-radius-card); overflow-wrap: anywhere; }
.chat-deactivate-fields { max-width: 460px; }
.chat-deactivate-field { margin-bottom: 1rem; }
.chat-deactivate-field label { display: block; margin-bottom: .45rem; font-weight: 600; }
.chat-deactivate-errors > span { display: block; margin-bottom: .6rem; color: #b3261e; }
.chat-deactivate-description { margin-top: 1rem; overflow-wrap: anywhere; }
.chat-deactivate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-own-emotes h1 { margin-bottom: 1.25rem; }
.chat-emotes-info, .chat-emotes-warning { padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: #eef6fb; }
.chat-emotes-warning { color: #9c3021; background: #fff4ee; }
.chat-emotes-scroll { overflow-x: auto; }
.chat-emotes-table { width: 100%; min-width: 420px; }
.chat-emotes-table td { vertical-align: middle; }
.chat-emotes-table .tagForEmoteReplaceClass { background: #243647; color: #8ac6c6; overflow-wrap: anywhere; }
.chat-emotes-table .tagForEmoteReplaceClass img { vertical-align: middle; }
.chat-emote-command { font-weight: 600; }
.chat-emotes-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-create-emotes h1 { margin-bottom: 1.25rem; }
.chat-create-emotes form > label, .chat-emote-field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-emote-field { margin-top: 1.25rem; }
.chat-emote-preview { margin-top: .5rem; padding: .8rem; min-height: 2.8rem; background: #243647; color: #8ac6c6; border-radius: .5rem; overflow-wrap: anywhere; }
.chat-emote-preview img { vertical-align: middle; }
.chat-emotes-help { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-emotes-help summary { cursor: pointer; font-weight: 600; }
.chat-emotes-help table { margin-top: .75rem; }
.chat-bot-training h1 { margin-bottom: 1rem; }
.chat-bot-intro { margin-bottom: 1.25rem; }
.chat-bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.chat-bot-card, .chat-bot-panel { padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: var(--chat-surface); min-width: 0; overflow-wrap: anywhere; }
.chat-bot-card { display: flex; flex-direction: column; gap: .85rem; }
.chat-bot-heading { display: flex; align-items: center; gap: .8rem; }
.chat-bot-heading img, .chat-bot-editor-heading > img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.chat-bot-heading h2, .chat-bot-panel h2 { margin: 0; font-size: 1.15rem; }
.chat-bot-description { flex: 1; }
.chat-bot-editor-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.chat-bot-editor-heading h1 { font-size: 1.5rem; }
.chat-bot-panel { margin-bottom: 1rem; }
.chat-bot-panel h2 { margin-bottom: .6rem; }
.chat-bot-panel label { display: block; margin-bottom: .65rem; }
.chat-bot-panel .form-control { width: 100%; }
.chat-bot-error { display: block; color: #b3261e; margin-top: .4rem; }
.chat-bot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-cabin-designer { min-width: 0; }
.chat-cabin-designer h2 { font-size: 1.25rem; margin: 1.25rem 0 .8rem; }
.chat-cabin-designer .columns1, .chat-cabin-designer .col1, .chat-cabin-designer .col2, .chat-cabin-designer .content { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
.chat-cabin-designer .columns2l, .chat-cabin-designer .columns2 { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 1rem; margin-bottom: 1rem; }
.chat-cabin-designer .colorbox { padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); margin-bottom: 1rem; }
.chat-cabin-designer .nav-pills { gap: .4rem; margin-bottom: 1.25rem; }
.chat-cabin-designer .nav-pills a { display: block; padding: .55rem .8rem; border: 1px solid var(--chat-border); border-radius: .5rem; }
.chat-cabin-designer .nav-pills .active a { color: white; background: #0879ad; }
.chat-cabin-designer .nav-pills [disabled] a { pointer-events: none; opacity: .45; }
.chat-cabin-designer .form-control { max-width: 100%; width: 100%; }
.chat-cabin-designer .btn { margin: .3rem .3rem .3rem 0; }
.chat-cabin-divider { margin: 1.25rem 0; border-color: #e0eaf2; }
.chat-cabin-designer #PreviewPanel > div { max-width: 440px; margin: auto; }
.chat-cabin-designer #PreviewImage { width: 100%; height: auto; }
.chat-cabin-canvas-scroll { overflow: auto; max-width: 100%; }
.chat-cabin-guide-canvas, .chat-cabin-preview-canvas { position: relative; box-sizing: content-box; background-color: white; }
.chat-cabin-guide-canvas { width: 800px; height: 600px; background-repeat: no-repeat; }
.chat-cabin-guide-canvas .explBox { position: absolute; width: 590px; height: 420px; z-index: 1; background: white; left: 200px; top: 118px; }
.chat-cabin-guide-canvas .element { padding: 0 5px; font-size: 12px; }
.chat-cabin-guide-canvas .size { font-size: 10px; float: left; }
.chat-cabin-guide-canvas .coords { font-size: 10px; margin-left: 3px; }
.chat-cabin-guide-canvas #box { position: absolute; overflow: hidden; z-index: 2; border: 2px solid red; visibility: hidden; width: 1px; height: 1px; }
.chat-cabin-preview-canvas * { box-sizing: content-box; }
.chat-cabin-preview-canvas table { font-size: 12px; }
.chat-cabin-help { margin: 1rem 0; padding: .8rem; border: 1px solid var(--chat-border); border-radius: .5rem; }
.chat-cabin-help summary { cursor: pointer; font-weight: 600; }
@media (max-width: 650px) { .chat-cabin-designer .columns2l, .chat-cabin-designer .columns2 { grid-template-columns: 1fr; gap: .5rem; } }
.chat-navigator-create h1 { margin-bottom: 1.25rem; }
.chat-navigator-create-fields { max-width: 460px; }
.chat-navigator-create-field { margin-bottom: 1.25rem; }
.chat-navigator-create-field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-navigator-create-error { display: block; margin-top: .4rem; color: #b3261e; }
.chat-navigator-create-permissions { padding: .85rem; background: #eef6fb; border: 1px solid var(--chat-border); border-radius: .5rem; }
.chat-navigator-create-permissions input { margin-right: .4rem; }
.chat-navigator-create-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-navigator-edit h1 { margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.chat-navigator-edit .columns1, .chat-navigator-edit .col1, .chat-navigator-edit .content { width: auto; float: none; margin: 0; padding: 0; }
.chat-navigator-edit .colorbox { padding: .8rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-navigator-edit .corners { display: none; }
.chat-navigator-edit .tabpages { overflow-x: auto; max-width: 100%; }
.chat-navigator-edit .tabpages table { width: 100%; min-width: 470px; }
.chat-navigator-edit .tabpages td { vertical-align: top; padding: .7rem .35rem; overflow-wrap: anywhere; }
.chat-navigator-edit .tabpages select, .chat-navigator-edit .tabpages input[type="text"] { border: 1px solid var(--chat-border); border-radius: .3rem; padding: .3rem; max-width: 100%; }
.chat-navigator-edit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.chat-navigator-edit .tabpages > div { display: none; }
.chat-navigator-edit .tabpages > div.selected { display: block; }
.chat-navigator-edit .nav-tabs { gap: .4rem; margin-bottom: .75rem; }
.chat-navigator-edit .nav-tabs a { display: block; padding: .55rem .75rem; border: 1px solid var(--chat-border); border-radius: .5rem .5rem 0 0; }
.chat-navigator-edit .nav-tabs li.selected a, .chat-navigator-edit .nav-tabs li.active a { color: white; background: #0879ad; }
.chat-navigator-summary { padding: 1rem; margin-bottom: 1.25rem; background: #eef6fb; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-navigator-summary-heading, .chat-navigator-summary-person { display: flex; align-items: center; gap: .8rem; }
.chat-navigator-summary-heading h2 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.chat-navigator-summary-person { margin-top: .9rem; }
.chat-navigator-summary-person img { border-radius: .5rem; object-fit: cover; }
.chat-navigator-view .columns1, .chat-navigator-view .col1, .chat-navigator-view .content { width: auto; float: none; margin: 0; padding: 0; }
.chat-navigator-view .colorbox { padding: .8rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-navigator-view .corners { display: none; }
.chat-navigator-view .tabpages { overflow-x: auto; }
.chat-navigator-view .tabpages > div { display: none; }
.chat-navigator-view .tabpages > div.selected { display: block; }
.chat-navigator-view .nav-tabs { gap: .4rem; margin-bottom: .75rem; }
.chat-navigator-view .nav-tabs a { display: block; padding: .55rem .75rem; border: 1px solid var(--chat-border); border-radius: .5rem .5rem 0 0; }
.chat-navigator-view .nav-tabs li.selected a, .chat-navigator-view .nav-tabs li.active a { color: white; background: #0879ad; }
.chat-navigator-view .table td { vertical-align: top; overflow-wrap: anywhere; }
.chat-navigator-view .table td:last-child { text-align: right; }
.chat-navigator-view .tabpages ul { padding-left: 1.25rem; }
.chat-bridge-activity .columns1, .chat-bridge-activity .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-bridge-activity h2 { font-size: 1.25rem; }
.chat-bridge-activity .nav-pills { gap: .4rem; margin: 1.25rem 0; }
.chat-bridge-activity .nav-pills a { display: block; padding: .55rem .8rem; border: 1px solid var(--chat-border); border-radius: .5rem; }
.chat-bridge-activity .nav-pills .active a { color: white; background: #0879ad; }
.chat-bridge-activity .colorbox { padding: .8rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-activity-table-scroll { overflow-x: auto; }
.chat-activity-table-scroll table { width: 100%; min-width: 380px; }
.chat-activity-table-scroll td, .chat-activity-table-scroll th { vertical-align: middle; }
.chat-activity-table-scroll td:last-child, .chat-activity-table-scroll th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.chat-activity-table-scroll a { font-weight: 600; overflow-wrap: anywhere; }
.chat-assign-points h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-points-fields { max-width: 460px; margin-bottom: 1.5rem; }
.chat-points-field { margin-bottom: 1rem; }
.chat-points-field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-points-error { display: block; color: #b3261e; margin-top: .4rem; }
.chat-points-weekly { padding: .8rem; border: 1px solid var(--chat-border); border-radius: .5rem; background: #eef6fb; }
.chat-points-weekly input { margin-right: .4rem; }
.chat-points-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.chat-points-table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.chat-points-table-scroll table { min-width: 480px; }
.chat-points-table-scroll td { vertical-align: top; overflow-wrap: anywhere; }
.chat-abuse-reports h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-abuse-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.chat-abuse-filters label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-abuse-actions { display: flex; justify-content: flex-end; margin: 1rem 0 1.5rem; }
.chat-abuse-reports .columns1, .chat-abuse-reports .col1, .chat-abuse-reports .content { width: auto; float: none; margin: 0; padding: 0; }
.chat-abuse-reports .colorbox { padding: .8rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-abuse-table-scroll { overflow-x: auto; margin: .8rem 0; }
.chat-abuse-table-scroll table { min-width: 650px; }
.chat-abuse-table-scroll td { vertical-align: top; overflow-wrap: anywhere; }
.chat-abuse-table-scroll td:nth-child(4) { min-width: 180px; }
@media (max-width: 650px) { .chat-abuse-filters { grid-template-columns: 1fr; } }
.chat-bridge-bans .columns1, .chat-bridge-bans .col1, .chat-bridge-bans .content { width: auto; float: none; margin: 0; padding: 0; }
.chat-bridge-bans h1 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-bridge-bans .well { background: transparent; border: 0; padding: 0; }
.chat-bridge-bans .table-borderless { max-width: 650px; margin-bottom: 1.5rem; }
.chat-bridge-bans label { font-weight: 600; }
.chat-bans-table-scroll { overflow-x: auto; margin: .8rem 0; }
.chat-bans-table-scroll table { min-width: 720px; }
.chat-bans-table-scroll td { vertical-align: middle; overflow-wrap: anywhere; }
.chat-bans-table-scroll small { display: block; color: #526879; }
.chat-bans-table-scroll .chat-ban-details { white-space: normal; padding: .75rem; background: #eef6fb; border-radius: .5rem; }
.chat-bridge-bans .colorbox { margin-top: 1rem; padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-bridge-bans .colorbox textarea { margin: .5rem 0; width: 100%; }
.chat-bridge-bans .repeatx { margin-top: 1rem; text-align: right; }
.chat-bridge-bans .colorbox span { color: #b3261e; }
@media (max-width: 650px) { .chat-bridge-bans .table-borderless td { display: block; padding: .35rem 0; } }
.chat-admin-log .columns1, .chat-admin-log .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-admin-log h1 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-admin-log .well { background: transparent; padding: 0; border: 0; }
.chat-admin-log .table-borderless { max-width: 700px; }
.chat-admin-log .table-borderless td:first-child { width: 30%; vertical-align: top; }
.chat-admin-log label { font-weight: 600; }
.chat-admin-log .table-borderless td > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-admin-log .table-borderless td > span { color: #b3261e; }
.chat-admin-log-actions { max-width: 700px; display: flex; justify-content: flex-end; margin: .75rem 0 1.5rem; }
.chat-admin-log-table-scroll { overflow-x: auto; margin: .8rem 0; }
.chat-admin-log-table-scroll table { min-width: 650px; }
.chat-admin-log-table-scroll td { vertical-align: top; overflow-wrap: anywhere; }
.chat-admin-log-table-scroll td:last-child small { white-space: nowrap; }
.chat-admin-log .chat-admin-log-event-text { padding: .65rem 1rem 1rem; background: #eef6fb; white-space: pre-wrap; border-bottom: 2px solid var(--chat-border); }
@media (max-width: 650px) { .chat-admin-log .table-borderless td { display: block; padding: .35rem 0; } .chat-admin-log .table-borderless td:first-child { width: auto; } }
.chat-gallery-thumbs h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.chat-gallery-thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; margin-top: 1.25rem; }
.chat-gallery-thumb { display: block; aspect-ratio: 1; border: 3px solid var(--chat-border); border-radius: 12px; overflow: hidden; background: var(--chat-surface); transition: border-color .2s, box-shadow .2s; }
.chat-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-gallery-thumb:hover, .chat-gallery-thumb:focus-visible { border-color: #087caf; box-shadow: 0 4px 12px rgba(8, 124, 175, .2); }
.chat-gallery-thumb:focus-visible { outline: 2px solid #087caf; outline-offset: 3px; }

.chat-logbook-fansites .columns1, .chat-logbook-fansites .col1 { float: none; width: auto; padding: 0; margin: 0; }
.chat-logbook-fansites h2 { font-size: 1.25rem; }
.chat-logbook-fansites .chat-fansite-entry { padding: 16px 0; overflow-wrap: anywhere; }
.chat-logbook-fansites .chat-fansite-entry b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.chat-logbook-fansites .hr { border-top: 1px solid var(--chat-border); margin: 0; }

.chat-bridge-albums .columns1, .chat-bridge-albums .col1 { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }
.chat-bridge-albums .content { display: flow-root; }
.chat-bridge-albums .corners { display: none; }
.chat-bridge-albums .breaker { clear: both; }
.chat-bridge-albums .hr { border-top: 1px solid var(--chat-border); margin: 20px 0; }
.chat-bridge-albums h2 { font-size: 1.25rem; margin: 16px 0; }
.chat-bridge-albums .photo { box-sizing: content-box; border-radius: 8px; overflow: hidden; margin-top: 12px !important; }
.chat-bridge-albums .photo:focus-within { outline: 2px solid #087caf; }
.chat-bridge-albums input[type=text] { max-width: 100%; border: 1px solid var(--chat-border); border-radius: 6px; padding: 8px; }
.chat-bridge-albums .repeatx { margin-top: 12px; margin-bottom: 12px; }
.chat-bridge-albums #photoPreviewContainer { height: auto !important; min-height: 180px; padding: 16px; margin: 16px 0; border-radius: 12px; background: #eef5fa; }
.chat-bridge-albums #photoPreviewImage { max-width: 100%; height: auto; margin: 0 auto !important; }
.chat-bridge-albums #photoPreviewDescripction { overflow-wrap: anywhere; margin-top: 10px; }
.chat-bridge-albums #photoContainer { overflow-x: auto; }

.chat-bridge-photochat .columns1, .chat-bridge-photochat .col1 { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
.chat-bridge-photochat .corners { display: none; }
.chat-bridge-photochat .breaker { clear: both; }
.chat-photochat-queue { overflow-x: auto; }
.chat-photochat-queue table { min-width: 520px; }
.chat-photochat-queue td { overflow-wrap: anywhere; vertical-align: middle; }
.chat-photochat-image-scroll { overflow-x: auto; margin: 16px 0; border-radius: 10px; background: #eef5fa; }
.chat-bridge-photochat #PhotoContainer { display: inline-block; vertical-align: top; }
/* Preserve native pixels: the approval handler uses these crop coordinates. */
.chat-bridge-photochat .chat-photochat-original { max-width: none; }
.chat-bridge-photochat .chat-photochat-selection { box-sizing: content-box; max-width: none; }
.chat-bridge-photochat #Preview { box-sizing: content-box; }
.chat-bridge-photochat input[type=text], .chat-bridge-photochat select { max-width: 100%; border: 1px solid var(--chat-border); border-radius: 6px; padding: 8px; margin: 8px 0; }
.chat-bridge-photochat .alert .content { display: flow-root; }

.chat-bridge-user-edit .columns1, .chat-bridge-user-edit .col1 { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }
.chat-bridge-user-edit .corners { display: none; }
.chat-bridge-user-edit .well { background: #f3f8fb; border: 1px solid var(--chat-border); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.chat-bridge-user-edit td { padding: 8px; vertical-align: middle; }
.chat-bridge-user-edit input[type=text], .chat-bridge-user-edit select { max-width: 100%; }
.chat-bridge-user-edit .error { color: #b3261e; }
.chat-bridge-user-edit .breaker { clear: both; }
.chat-bridge-user-edit .chat-user-birthdate { display: flex; flex-wrap: nowrap; gap: .5rem; max-width: 100%; }
.chat-bridge-user-edit .chat-user-birthdate > select { flex: 1 1 105px; min-width: 0; width: auto !important; max-width: 140px; padding-left: .4rem; padding-right: .4rem; }
.chat-bridge-user-rank .columns1, .chat-bridge-user-rank .col1 { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }
.chat-bridge-user-rank .corners { display: none; }
.chat-bridge-user-rank .well { background: #f3f8fb; border: 1px solid var(--chat-border); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.chat-bridge-user-rank td { padding: 8px; vertical-align: middle; }
.chat-bridge-user-rank .error { color: #b3261e; }
.chat-user-rank-history { overflow-x: auto; }
.chat-user-rank-history table { min-width: 400px; }

.chat-bridge-forum-thread .panel { border: 1px solid var(--chat-border); border-radius: 12px; margin: 18px 0; overflow: hidden; background: var(--chat-surface); }
.chat-bridge-forum-thread .panel-heading { padding: 12px 16px; background: #e9f4fb; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chat-bridge-forum-thread .panel-title { font-size: 1.15rem; margin: 0; }
.chat-bridge-forum-thread .panel-body { padding: 16px; overflow-wrap: anywhere; }
.chat-bridge-forum-thread .pull-right { margin-left: auto; }
.chat-bridge-forum-thread textarea { max-width: 100%; }
.chat-bridge-forum-thread img { max-width: 100%; height: auto; }
.chat-bridge-forum-thread .tox-tinymce, .chat-bridge-forum-thread .mce-tinymce { max-width: 100%; box-sizing: border-box; }
.chat-bridge-forum-thread .btn-default { border: 1px solid var(--chat-border); background: #edf5fa; color: var(--chat-text); }
.chat-bridge-forum-thread .panel > .btn { margin: 0 16px 16px; }

.chat-bridge-fansite-edit .columns1, .chat-bridge-fansite-edit .col1 { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
.chat-bridge-fansite-edit td { padding: 8px; vertical-align: top; }
.chat-bridge-fansite-edit input[type=text], .chat-bridge-fansite-edit textarea { max-width: 100%; border: 1px solid var(--chat-border); border-radius: 6px; padding: 8px; }
.chat-bridge-fansite-edit textarea { min-height: 110px; resize: vertical; }
@media (max-width: 600px) {
    .chat-bridge-fansite-edit table, .chat-bridge-fansite-edit tbody, .chat-bridge-fansite-edit tr, .chat-bridge-fansite-edit td { display: block; width: 100%; }
    .chat-bridge-fansite-edit td:empty { display: none; }
}

.chat-gallery-mini-overview .columns1, .chat-gallery-mini-overview .col1 { float: none; width: auto; padding: 0; margin: 12px 0; }
.chat-gallery-mini-overview .gallery-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 12px; }
.chat-gallery-mini-overview .gallery-item { max-width: none !important; min-width: 0; border-radius: 10px; }
.chat-gallery-mini-overview .gallery-item img { object-fit: contain; }
.chat-gallery-mini-overview .breaker { clear: both; }
.chat-gallery-report { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.chat-gallery-report-preview { flex: 0 1 200px; text-align: center; }
.chat-gallery-report-preview img { max-width: 100%; max-height: none; width: auto; height: auto; border-radius: 8px; }
.chat-gallery-report > div:last-child { flex: 1 1 220px; min-width: 0; }
.chat-gallery-report h2 { font-size: 1.35rem; margin: 0 0 .75rem; }

/* Shared page banner: reuse the original harbour artwork without legacy layout. */
.chat-community-card.chat-community-content { padding: 0; }
.chat-community-page-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-radius: var(--chat-radius-card) var(--chat-radius-card) 0 0;
    background-color: #337ab7;
    background-image: linear-gradient(to right, #2476ae 0%, rgba(36,118,174,.94) 20%, rgba(36,118,174,.65) 55%, rgba(36,118,174,.08) 100%), url("../Seasons/default/headers/header_day.png");
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
}
.chat-community-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgba(0,35,65,.3);
}
.chat-community-page-body { padding: 25px; min-width: 0; }
@media (max-width: 650px) {
    .chat-community-page-header { min-height: 64px; padding: 16px 18px; }
    .chat-community-page-body { padding: 18px; }
}
@media (max-width: 600px) {
    .chat-bridge-user-edit table, .chat-bridge-user-edit tbody, .chat-bridge-user-edit tr, .chat-bridge-user-edit td { display: block; width: 100%; }
    .chat-bridge-user-edit td:empty { display: none; }
}
.chat-fansites-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.chat-fansites-heading h2 { font-size: 1.25rem; margin: 0; }
.chat-fansites-table-scroll { overflow-x: auto; margin: .8rem 0; }
.chat-fansites-table-scroll table { min-width: 360px; width: 100%; }
.chat-fansites-table-scroll td { vertical-align: middle; overflow-wrap: anywhere; }
.chat-fansites-table-scroll td:first-child a { font-weight: 600; }
.chat-fansites-table-scroll .chat-fansites-action { width: 70px; text-align: center; }
.chat-fansites-action a { display: inline-flex; padding: .5rem; border-radius: .4rem; }
.chat-fansites-action input[type="image"] { padding: .5rem; box-sizing: content-box; border-radius: .4rem; }
.chat-fansites-action a:hover, .chat-fansites-action input[type="image"]:hover { background: #e7f3fa; }
.chat-fansites-empty { padding: 1rem; background: #eef6fb; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); }
.chat-news-editor h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.chat-news-field { min-width: 0; margin-bottom: 1rem; }
.chat-news-field > label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-news-content { min-height: 325px; resize: vertical; }
.chat-news-settings { padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); margin-top: 1.25rem; }
.chat-news-settings legend { font-size: 1rem; font-weight: 600; width: auto; padding: 0 .4rem; }
.chat-news-audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.chat-news-options { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.chat-news-options input { margin-right: .4rem; }
.chat-news-options label { margin: 0; }
.chat-news-buttons, .chat-news-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.chat-news-buttons { justify-content: space-between; margin-top: 1.25rem; }
.chat-news-primary-actions { margin-left: auto; }
.chat-news-saving, .chat-news-save-error { padding: 1rem; margin-top: 1rem; border-radius: .5rem; background: #eef6fb; }
.chat-news-save-error { color: #b3261e; border: 1px solid #b3261e; }
.chat-news-editor .mce-tinymce { max-width: 100%; box-sizing: border-box; }
@media (max-width: 850px) { .chat-news-audience { grid-template-columns: 1fr; gap: 0; } }
.chat-news-editor [hidden] { display: none !important; }
.chat-navigator-news-intro { margin-bottom: 1.25rem; padding: 1rem; background: #eef6fb; border-radius: .5rem; }
.chat-navigator-news .table { min-width: 380px; }
.chat-navigator-news .table td:first-child { overflow-wrap: anywhere; }
.chat-navigator-news .table td:first-child a { font-weight: 600; }
.chat-navigator-news .table td:not(:first-child) a { display: inline-flex; padding: .5rem; border-radius: .4rem; }
.chat-navigator-news .table td:not(:first-child) a:hover { background: #e7f3fa; }
.chat-navigator-news .chat-community-news-entry img { max-width: 100%; height: auto; }
.chat-award-intro { padding: 1rem; background: #eef6fb; border-radius: .5rem; margin-bottom: 1.25rem; }
.chat-award-category { padding: 1.25rem 0; border-top: 1px solid var(--chat-border); }
.chat-award-category h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.chat-award-grid li { min-width: 0; }
.chat-award-feature { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 1rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); text-align: center; background: var(--chat-surface); }
.chat-award-feature:hover, .chat-award-feature:focus-visible { border-color: #087caf; background: #eef6fb; text-decoration: none; }
.chat-award-image { position: relative; display: block; margin-bottom: .75rem; }
.chat-award-image img { display: block; max-width: 100%; height: auto; }
.chat-award-badge { position: absolute; top: -.4rem; right: -.4rem; padding: .2rem .45rem; color: white; background: #087caf; border-radius: .5rem; font-size: .75rem; }
.chat-award-title { font-weight: 600; overflow-wrap: anywhere; }
.chat-logbook-profile .chat-profile-rank { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.chat-logbook-profile .chat-profile-rank img { display: block; max-width: 74px; height: auto; flex: 0 0 auto; }
.chat-support-page .columns1, .chat-support-page .col1, .chat-support-page .col2, .chat-support-page .content { width: auto; float: none; margin: 0; padding: 0; min-width: 0; }
.chat-support-page h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-support-page .col1 > label, .chat-support-field-label { display: block; margin: 1rem 0 .4rem; font-size: 1rem; font-weight: 600; }
.chat-support-page .form-control { width: 100%; max-width: 100%; }
.chat-support-page .chat-support-message { min-height: 180px; resize: vertical; }
.chat-support-page .colorbox { border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); padding: 1rem; margin: 1rem 0; }
.chat-support-ticket-header { padding: 1rem; margin-bottom: 1rem; background: #eef6fb; border-radius: .5rem; overflow-wrap: anywhere; }
.chat-support-comment { border-top: 1px solid var(--chat-border); padding: 1rem 0; }
.chat-support-comment-body { overflow-wrap: anywhere; padding-top: .65rem; }
.chat-support-page .chat-support-action { display: inline-block; margin: .4rem .5rem .4rem 0; vertical-align: top; }
.chat-support-page .repeatx { min-width: 0 !important; }
.chat-support-page .repeatx input { width: auto !important; }
.chat-support-page .alert table td { padding: .35rem; vertical-align: top; }
.chat-support-table-scroll { overflow-x: auto; }
.chat-support-table-scroll table { min-width: 480px; }
.chat-support-table-scroll td { overflow-wrap: anywhere; }
.chat-support-page input[type=radio] { margin: .4rem .4rem .4rem 0; }
.chat-support-page .error { color: #b3261e; }
@media (max-width: 650px) { .chat-support-page .alert table td { display: block; width: 100%; } }
.chat-kb-editor .columns1, .chat-kb-editor .col1 { width: auto; float: none; padding: 0; margin: 0; }
.chat-kb-editor .chat-kb-action { display: inline-block; margin: .5rem .5rem .5rem 0; vertical-align: top; }
.chat-kb-editor .chat-kb-tree { overflow: auto; min-height: 360px; max-height: 650px; padding: 1rem; margin-top: 1rem; border: 1px solid var(--chat-border); border-radius: .5rem; }
.chat-kb-editor table { width: 100%; }
.chat-kb-editor td { padding: .5rem; vertical-align: top; }
.chat-kb-editor td:first-child { width: 30%; }
.chat-kb-editor .form-control { width: 100%; max-width: 100%; }
.chat-kb-editor .chat-kb-content { min-height: 325px; }
.chat-kb-editor .tabpages > div { display: none; }
.chat-kb-editor .tabpages > div.selected { display: block; }
.chat-kb-editor .nav-tabs { gap: .4rem; margin-bottom: 1rem; }
.chat-kb-editor .nav-tabs a { display: block; padding: .6rem .8rem; border: 1px solid var(--chat-border); border-radius: .5rem .5rem 0 0; }
.chat-kb-editor .nav-tabs li.selected a, .chat-kb-editor .nav-tabs li.active a { background: #0879ad; color: white; }
.chat-kb-editor .chat-kb-empty { padding: 1rem; background: #eef6fb; border-radius: .5rem; }
.chat-kb-editor .mce-tinymce { max-width: 100%; box-sizing: border-box; }
@media (max-width: 650px) { .chat-kb-editor td { display: block; width: 100% !important; } .chat-kb-editor .chat-kb-tree td { display: table-cell; width: auto !important; } }
.chat-forgot-password { max-width: 520px; }
.chat-forgot-password h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-forgot-password label { display: block; font-weight: 600; margin-bottom: .45rem; }
.chat-forgot-captcha { margin: 1rem 0; max-width: 100%; overflow-x: auto; }
.chat-forgot-message { padding: 1rem; margin-top: 1rem; background: #eef6fb; border: 1px solid var(--chat-border); border-radius: .5rem; overflow-wrap: anywhere; }
.chat-forgot-help { margin-top: 1.25rem; color: var(--chat-text-muted); }
.chat-contract-intro { padding: 1rem; margin-bottom: 1rem; background: #eef6fb; border-radius: .5rem; }
.chat-contract-document { max-height: min(600px, 65vh); overflow: auto; padding: 1.25rem; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); line-height: 1.6; overflow-wrap: anywhere; }
.chat-contract-document:focus-visible { outline: 2px solid #087caf; outline-offset: 3px; }
.chat-contract-document img { max-width: 100%; height: auto; }
.chat-contract-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.chat-my-rights .columns1, .chat-my-rights .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-my-rights-heading { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin-bottom: 1rem; }
.chat-my-rights .nav-tabs { gap: .4rem; margin-bottom: 1rem; }
.chat-my-rights .nav-tabs a { display: block; padding: .6rem .8rem; border: 1px solid var(--chat-border); border-radius: .5rem .5rem 0 0; }
.chat-my-rights .nav-tabs li.selected a, .chat-my-rights .nav-tabs li.active a { color: white; background: #0879ad; }
.chat-my-rights .tabpages > div { display: none; overflow-x: auto; }
.chat-my-rights .tabpages > div.selected { display: block; }
.chat-my-rights .table { min-width: 360px; }
.chat-my-rights .table td { vertical-align: middle; overflow-wrap: anywhere; }
.chat-activity-information .columns1, .chat-activity-information .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-activity-information { line-height: 1.7; overflow-wrap: anywhere; }
.chat-activity-information h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-activity-information table { width: 100%; }
.chat-activity-information td, .chat-activity-information th { padding: .5rem; }
.chat-activity-realtime-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.chat-activity-realtime-filter .form-control { max-width: 22rem; }
.chat-activity-realtime-filter label { display: block; font-weight: 600; }
.chat-activity-realtime .chat-activity-table-scroll { overflow-x: auto; }
.chat-activity-realtime .table { width: 100%; margin-bottom: 0; }
.chat-activity-statistics .columns1,
.chat-activity-statistics .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-activity-statistics h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.chat-activity-statistics-chart { margin: 1.25rem 0; }
.chat-activity-statistics-chart img { max-width: 100%; height: auto; }
.chat-forum .list-group { margin-bottom: 1rem; }
.chat-forum .list-group-item { border-color: #d7e5ef; padding: 1rem; }
.chat-forum .list-group-item-heading { font-size: 1rem; margin: 0; line-height: 1.6; }
.chat-forum .list-group-item-heading .btn-link { font-weight: 600; white-space: normal; text-align: left; }
.chat-forum .panel { margin: 1rem 0; }
.chat-forum .panel-heading { margin-bottom: 1rem; }
.chat-forum .panel-title { font-size: 1.2rem; }
.chat-forum .panel-body { padding: 1.25rem; border: 1px solid #d7e5ef; border-radius: .75rem; background: #f5f9fc; }
.chat-forum .text-center .btn { margin: .25rem; }
.chat-forum .mce-tinymce { max-width: 100%; box-sizing: border-box; }
.chat-error-message { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.chat-error-illustration { flex: 0 1 auto; max-width: 35%; height: auto; }
.chat-error-details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-error-details h2 { font-size: 1.35rem; margin: 0 0 .75rem; line-height: 1.4; }
.chat-error-hint { line-height: 1.65; }
.chat-error-actions { margin-top: 1rem; }
@media (max-width: 575px) {
    .chat-error-message { flex-direction: column; align-items: flex-start; }
    .chat-error-illustration { max-width: 50%; }
}
.chat-navigator-search .chat-community-results-scroll .table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}
.chat-navigator-search .table th,
.chat-navigator-search .table td { padding: .5rem .25rem; overflow-wrap: anywhere; }
.chat-navigator-search .table .chat-navigator-action { width: 30px; text-align: center; }
.chat-navigator-search .chat-navigator-action a { display: inline-flex; align-items: center; justify-content: center; }
.chat-navigator-search .chat-navigator-action img { width: 21px; height: 18px; max-width: 100%; }
.chat-navigator-search .table .chat-navigator-rank { width: 48px; }
.chat-navigator-search .table .chat-navigator-photo { width: 48px; }
.chat-navigator-search .table .chat-navigator-score { width: 50px; }
.chat-navigator-search .table .chat-navigator-last-watch { width: 85px; }
.chat-navigator-delete .columns1,
.chat-navigator-delete .col1 { width: auto; float: none; margin: 0; padding: 0; }
.chat-navigator-delete h2 { font-size: 1.25rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.chat-navigator-delete label { font-weight: 600; margin-top: .75rem; }
.chat-navigator-delete .form-control { width: 100%; max-width: 100%; }
.chat-navigator-delete textarea { resize: vertical; }
.chat-navigator-delete-actions { margin-top: 1.25rem; }
.chat-logbook-profile .chat-profile-info-panel { position: relative; }
.chat-profile-photochat { position: absolute; top: 8px; right: 12px; width: 50px; height: 50px; }
.chat-profile-photochat a { display: block; }
.chat-profile-photochat img { display: block; width: 50px; height: 50px; object-fit: cover; border-radius: 50%; }
.chat-profile-info-panel .table tr:first-child { height: 66px; }
.chat-logbook-profile .chat-profile-info-panel .table tr:first-child td:last-child { padding-right: 78px; }
.chat-shipmail-header-details { display: flex; align-items: flex-start; gap: 16px; }
.chat-shipmail-read .chat-shipmail-header-details .table { flex: 1; width: auto; min-width: 0; margin: 0; table-layout: fixed; }
.chat-shipmail-header-details .table td { overflow-wrap: anywhere; }
.chat-shipmail-read .chat-shipmail-header-details .chat-shipmail-photo { order: 2; flex: 0 0 auto; float: none; margin: 0; }
.chat-shipmail-header-details .chat-shipmail-photo img { display: block; float: none; width: 50px; height: 50px; object-fit: cover; }
