*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #F8F0E3;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

.topnav {
    background-color: #162a31;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 0.5rem;
    padding: 0 0.5rem;
    position: relative;
}

.topnav-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topnav-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    height: 100%;
    padding: 0 0.5rem;
}

.topnav a {
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topnav-logo {
    padding: 10px 12px;
}

.topnav-logo-image {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.topnav-links {
    display: flex;
    align-items: center;
}

.topnav-links a:hover,
.topnav-dropbtn:hover {
    background-color: #ddd;
    color: #000;
}

.topnav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.topnav-dropdown-content {
    display: none;
    position: absolute;
    color: #f2f2f2;
    background-color: #162a31;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 20;
    flex-direction: column;
    min-width: max-content;
    top: 100%;
    left: 0;
}

.topnav-dropdown-content a {
    color: #f2f2f2;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.topnav-dropdown-content a:hover {
    background-color: #ddd;
    color: #000;
}

.topnav-dropdown:hover .topnav-dropdown-content {
    display: flex;
}

.topnav-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topnav-search-form input {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #c7c7c7;
    border-radius: 2px;
    width: 13rem;
}

.topnav-search-form button {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #c7c7c7;
    border-radius: 2px;
    background: #f3f3f3;
    cursor: pointer;
}

.topnav-search-form button:hover {
    background: #e3e3e3;
}

.topnav-account-summary {
    display: inline-flex;
    align-items: center;
    color: #f2f2f2;
    white-space: nowrap;
}

.topnav-username {
    font-weight: 600;
}

.topnav .topnav-account-link {
    display: inline;
    padding: 0;
    color: #f2f2f2;
    font-size: inherit;
    text-decoration: none;
}

.topnav .topnav-account-link:hover {
    color: #ffffff;
}

.topnav-logout-form {
    display: inline;
    margin: 0;
}

.topnav-login-link {
    height: 100%;
    white-space: nowrap;
}

.topnav-login-link:hover {
    background: #ddd;
    color: #000;
}

.content {
    max-width: 1000px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.intro p {
    margin-top: 0;
    color: #333;
}

.home-quotes-section {
    margin: 0 0 0.5rem;
}

.home-quotes-box .problem-text p {
    margin: 0 0 0.85rem;
}

.home-quotes-box .problem-text p:last-child {
    margin-bottom: 0;
}

.home-quotes-box .problem-text p.home-quote-attribution {
    margin: 0.15rem 0 1rem;
    color: #444;
    text-align: right;
    font-size: 0.82em;
}

.home-quotes-box .problem-text p.home-quote-attribution:last-child {
    margin-bottom: 0;
}

.stats-line {
    margin-top: 2rem;
    color: #444;
}

.error-message {
    color: #a33;
    margin: 1rem 0 0;
}

.problem-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.problem-header h1 {
    font-size: 1.75rem;
    font-weight: normal;
    margin: 0;
}

.status-badge {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
}

.status-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: #333;
}

.status-select-label {
    font-weight: 600;
}

.status-select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    color: #1a1a1a;
    padding: 0.2rem 0.35rem;
}

.status-select:disabled {
    opacity: 0.7;
}

.status-solved {
    background: #e6f4ea;
    color: #1e6b3a;
}

.status-open {
    background: #fdecea;
    color: #a12622;
}

.status-partial {
    background: #fff4e5;
    color: #9a6700;
}

.status-missing {
    background: #eee;
    color: #666;
}

.problem-section {
    margin-bottom: 0.9rem;
}

.problem-section h2 {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0 0 0.75rem;
    color: #444;
}

.problem-text {
    color: #1a1a1a;
    font-family: "Times New Roman", Times, serif;
}

.problem-text p.indent-1 {
    margin-left: 2em;
}

.problem-text p.indent-2 {
    margin-left: 4em;
}

.problem-text p.indent-3 {
    margin-left: 6em;
}

.problem-text p.indent-4 {
    margin-left: 8em;
}

.problem-text .line-indent-1,
.problem-text .line-indent-2,
.problem-text .line-indent-3,
.problem-text .line-indent-4 {
    display: inline-block;
}

.problem-text .line-indent-1 {
    margin-left: 2em;
}

.problem-text .line-indent-2 {
    margin-left: 4em;
}

.problem-text .line-indent-3 {
    margin-left: 6em;
}

.problem-text .line-indent-4 {
    margin-left: 8em;
}
               

.remarks {
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
}

.comments-section {
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
}

.proof-claim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.proof-claim-page-title {
    margin: 1.5rem 0 1rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.section-visibility-toggle {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: normal;
    color: #1f5fbf;
    cursor: pointer;
}

.section-visibility-toggle:hover {
    color: #164a96;
}

.section-body.is-collapsed {
    display: none;
}

.proof-claim-action-btn,
a.proof-claim-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.35rem 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.proof-claim-action-btn:hover,
a.proof-claim-action-btn:hover {
    background: #e3e3e3;
    color: #1a1a1a;
}

.proof-claim-jump-btn {
    background: #fff;
}

.proof-claims-section {
    margin-top: 0.5rem;
}

.proof-claim-meta {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.proof-claim-meta div + div {
    margin-top: 0.2rem;
}

.proof-claim-summary,
.proof-claim-notes {
    margin-top: 0.75rem;
}

.proof-submit-section .comments-disclaimer p {
    margin: 0.75rem 0 0;
}

.proof-submit-section {
    border-top: none;
    padding-top: 0;
}

.proof-claim-form {
    max-width: 820px;
    margin-top: 1rem;
}

.proof-claim-form input[type="text"],
.proof-claim-form input[type="url"],
.proof-claim-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

.proof-claim-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #333;
}

.proof-claim-checkbox input {
    margin-top: 0.2rem;
    width: auto;
}

.proof-claim-moderation-note {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #444;
}

.proof-claim-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.proof-claim-cancel {
    color: #1f5fbf;
    text-decoration: none;
}

.proof-claim-cancel:hover {
    color: #164a96;
}

.comment-count {
    margin: 0 0 0.35rem;
    text-align: center;
    line-height: 1.2;
}

.thread-sort {
    font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, monospace;
    font-size: 14px;
    text-align: center;
    margin: 0.5em 0 1em;
    color: #555;
}

.thread-sort .order {
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 6px;
}

.thread-sort .order.active {
    background: #c0c0c0;
}

.comments-section .post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-section .post {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 2px solid #b8b8b8;
}

.comments-section .post.even {
    background-color: #f0f0f0;
}

.comments-section .post.odd {
    background-color: #e0e0e0;
}

.comments-section .post.recent {
    border-color: #c62828;
}

.comment-children {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid #a8a8a8;
}

.comment-children .post {
    margin-bottom: 0.45rem;
}

.comment-children .post:last-child {
    margin-bottom: 0;
}

.comments-section .post-body p {
    margin: 0.25rem 0;
}

.comments-section .post-body {
    font-family: "Times New Roman", Times, serif;
}

.comment-actions {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #555;
}

.comment-action {
    display: inline-flex;
    align-items: center;
}

.comment-author {
    font-weight: 700;
    color: #333;
}

.comment-pending-badge {
    color: #8a5a00;
    font-weight: 600;
}

.comment-link {
    color: #2563eb;
    text-decoration: none;
}

.comment-link:hover {
    text-decoration: underline;
}

.comment-link[aria-disabled="true"] {
    pointer-events: none;
}

.comment-delete-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.comment-delete-btn {
    border: none;
    background: transparent;
    color: #2563eb;
    text-decoration: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.comment-delete-btn:hover {
    text-decoration: underline;
}

.comment-owner-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.comment-owner-btn {
    border: none;
    background: transparent;
    color: #7a5800;
    text-decoration: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.comment-owner-btn:hover {
    text-decoration: underline;
}

.comment-owner-btn-danger {
    color: #b42318;
}

.comment-approve-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.comment-approve-btn {
    border: none;
    background: transparent;
    color: #1e6b3a;
    text-decoration: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.comment-approve-btn:hover {
    text-decoration: underline;
}

.comment-reject-toggle {
    color: #b42318;
}

.comment-reject-form.hidden {
    display: none;
}

.comment-reject-form {
    margin-top: 0.5rem;
}

.comment-reject-label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.comment-reject-source {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 0.45rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    resize: vertical;
    background: #fff;
}

.comment-reject-actions {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.45rem;
}

.comment-reject-submit,
.comment-reject-cancel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.3rem 0.65rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.comment-reject-submit {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.comment-reject-submit:hover {
    background: #8f1d14;
}

.comment-reject-cancel:hover {
    background: #e3e3e3;
}

.comment-reaction-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
}

.comment-reaction-btn {
    color: #555;
    gap: 0.2rem;
    cursor: pointer;
}

.comment-reaction-btn.is-active {
    color: #1e6b3a;
    font-weight: 700;
}

.comment-reaction-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.reaction-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.comment-deleted {
    color: #555;
}

.comment-edit-form.hidden,
.comment-view.hidden {
    display: none;
}

.comment-edit-form {
    margin-top: 0.35rem;
}

.comment-edit-source {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.5rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    resize: vertical;
    background: #fff;
}

.comment-edit-preview-label {
    margin-top: 0.45rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.comment-edit-input-label {
    margin-top: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.comment-edit-preview {
    margin-top: 0.25rem;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fffdf8;
    padding: 0.45rem 0.55rem;
    min-height: 2.2rem;
}

.comment-edit-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.45rem;
}

.comment-edit-save,
.comment-edit-cancel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.3rem 0.65rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.comment-edit-save:hover,
.comment-edit-cancel:hover {
    background: #e3e3e3;
}

.comment-reply-form.hidden {
    display: none;
}

.comment-reply-form {
    margin: 0.55rem auto 0;
    width: 100%;
    max-width: 820px;
}

.comment-reply-preview-label,
.comment-reply-input-label {
    margin-top: 0.45rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.comment-reply-preview {
    margin-top: 0.25rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fffdf8;
    padding: 0.45rem 0.55rem;
    min-height: 2.2rem;
}

.comment-reply-source {
    width: 100%;
    max-width: 800px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.5rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    resize: vertical;
    background: #fff;
}

.comment-reply-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.45rem;
}

.comment-reply-submit,
.comment-reply-cancel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.3rem 0.65rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.comment-reply-submit:hover,
.comment-reply-cancel:hover {
    background: #e3e3e3;
}

.unhide-comments-form {
    margin-top: 0.85rem;
    text-align: center;
}

.unhide-comments-btn {
    border: none;
    background: transparent;
    color: #7a5800;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.unhide-comments-btn:hover {
    text-decoration: underline;
}

.comments-empty {
    margin: 0.6rem 0 1rem;
    text-align: center;
    color: #555;
}

.comment-moderation-notice {
    margin: 0.35rem auto 0.8rem;
    max-width: 820px;
    border: 1px solid #f0dcb8;
    border-radius: 4px;
    background: #fff4e5;
    color: #8a5a00;
    padding: 0.55rem 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.comments-disclaimer {
    text-align: center;
    margin: 0.35em 0 0.85em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 400;
}

.comment-form {
    max-width: 820px;
    margin: 0 auto;
}

.comment-form.hidden {
    display: none;
}

.comment-new-post-btn {
    display: block;
    margin: 0.5rem auto 0;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.35rem 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

a.comment-new-post-btn {
    width: fit-content;
    text-align: center;
    text-decoration: none;
}

.comment-new-post-btn:hover {
    background: #e3e3e3;
}

a.comment-new-post-btn:hover {
    color: #1a1a1a;
    text-decoration: none;
}

.comment-post-preview-label,
.comment-post-input-label {
    margin-top: 0.45rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.comment-post-preview {
    margin-top: 0.25rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fffdf8;
    padding: 0.45rem 0.55rem;
    min-height: 2.2rem;
}

#post-content {
    width: 100%;
    max-width: 800px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.5em;
}

.comment-post-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.45rem;
}

.comment-submit {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.comment-submit:hover {
    background: #e3e3e3;
}

.comment-post-cancel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.comment-post-cancel:hover {
    background: #e3e3e3;
}

.comment-login-note {
    text-align: center;
    margin: 0.5rem 0 0;
}

.problem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.contributor {
    color: #1b0e0e;
    font-size: 0.95rem;
    margin-left: auto;
}

.latex-source-toggle-btn {
    background: transparent;
    border: 1px solid #757575;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.latex-source-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #333;
}

.latex-source-box {
    margin-top: 1rem;
    background-color: inherit;
}

.latex-source-box.hidden,
.latex-source-box[hidden] {
    display: none !important;
}

.latex-source-box.status-open {
    background-color: #ffebeb;
}

.latex-source-box.status-solved {
    background-color: #e6facd;
}

.latex-source-box.status-partiallysolved {
    background-color: #facf42a1;
}

.latex-source-box.status-missing {
    background-color: #eee;
}

.latex-source-header h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.latex-source-text {
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    resize: vertical;
}

.problem-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.problem-nav-top {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.problem-nav-top .nav-prev {
    justify-self: start;
}

.problem-nav-top .nav-next {
    justify-self: end;
}

.problem-nav-top .proof-claim-actions {
    justify-self: center;
}

.problem-box {
  position: relative;
  padding: 10px;
  display: flex;
  flex-direction: column;
  max-width: 100%; 
  margin: 0 auto;
  border-radius: 15px;
  border: 2px solid black;
}

.favorite-star {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
}

.favorite-star.is-favorited {
  color: #2a9df4;
}

.verify-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}

.problem-box.has-favorite .verify-tag {
  right: 56px;
}

.verify-tag.is-verified {
  background: #1e6b3a;
  border-color: #1e6b3a;
  color: #fff;
}

.verify-tag.is-unverified {
  background: #fff;
  border-color: #b5453f;
  color: #b5453f;
}

.verify-tag:disabled {
  opacity: 0.6;
  cursor: default;
}

.problem-box#open {
  background-color : #ffebeb; /* #E9967A; */
}

.problem-box#solved {
  background-color : #e6facd /* #8FBC8F; */
}

.problem-box#partiallysolved {
  background-color : #facf42a1;
}

.problem-box#missing {
  background-color: #eee;
}

.nav-disabled {
    color: #bbb;
}

.nav-home {
    text-decoration: none;
    color: #555;
}

.nav-home:hover {
    text-decoration: underline;
}

.stats-content-width {
    max-width: 990px;
    margin: 0 auto;
    overflow-x: auto;
}

.stats-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    min-width: 580px;
}

.stats-sidebar {
    width: 190px;
    flex-shrink: 0;
    margin-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #e2d8c6;
    padding-bottom: 0;
    padding-right: 1rem;
}

.stats-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.stats-issue-link {
    text-decoration: none;
    color: #555;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
}

.stats-issue-link:hover {
    text-decoration: underline;
}

.stats-issue-link.active {
    background: #eaddc7;
    color: #1a1a1a;
    font-weight: 600;
}

.stats-main {
    width: 100%;
    min-width: 0;
    max-width: 780px;
    margin: 0;
}

.stats-all-box {
    margin-bottom: 1.5rem;
}

.stats-all-box .problem-header h1 {
    font-size: 1.5rem;
}

.stats-all-box .problem-header h1 a {
    text-decoration: none;
}

.stats-all-box .problem-header h1 a:hover {
    text-decoration: underline;
}

.stats-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 1rem;
}

.forum-page {
    padding-bottom: 2rem;
}

.forum-section {
    margin: 0 0 1.75rem;
}

.forum-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid #cfcfcf;
    padding-bottom: 0.25rem;
}

.forum-section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.forum-section-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.forum-new-post-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    padding: 0.2rem 0.65rem;
}

.forum-new-post-btn:hover {
    background: #e3e3e3;
    color: #1a1a1a;
    text-decoration: none;
}

.forum-show-all {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.forum-show-all:hover {
    text-decoration: underline;
}

.general-thread-header {
    justify-content: center;
    text-align: center;
}

.general-thread-header h1 {
    width: 100%;
    text-align: center;
}

.general-thread-box {
    background-color: #e6facd;
}

.general-thread-footer {
    margin: 0.85rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.general-thread-reply-btn {
    margin-top: 0.75rem;
}

.general-thread-comments {
    margin-top: 0.85rem;
}

.general-thread-box #general-thread-edit-title {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.55rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    font: inherit;
}

.general-thread-form label {
    display: block;
    margin: 0.85rem 0 0.35rem;
}

.general-thread-form input[type="text"],
.general-thread-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.general-thread-preview {
    min-height: 6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fffdf8;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.85rem;
}

.general-thread-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.general-thread-cancel {
    color: #1f5fbf;
    text-decoration: none;
}

.general-thread-cancel:hover {
    color: #164a96;
}

.forum-back {
    margin: 0 0 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.forum-back a {
    color: #2563eb;
    text-decoration: none;
}

.forum-back a:hover {
    text-decoration: underline;
}

.forum-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.forum-feed-item {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #333;
}

.forum-feed-item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.forum-feed-item-text {
    min-width: 0;
    flex: 1 1 auto;
}

.forum-purge-form {
    display: inline-flex;
    margin: 0 0 0 auto;
    flex: 0 0 auto;
}

.forum-purge-form .comment-delete-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.remarks-edit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.remarks-edit-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fffdf8;
    padding: 0.55rem 0.7rem;
}

.remarks-edit-summary {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #333;
}

.remarks-edit-summary-text {
    flex: 1 1 auto;
    min-width: 0;
}

.remarks-edit-purge-form {
    display: inline-flex;
    margin: 0 0 0 auto;
    flex: 0 0 auto;
}

.remarks-edit-purge-form .comment-delete-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
}

.remarks-edit-expand {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    color: #444;
    flex: 0 0 auto;
}

.remarks-edit-expand:hover {
    color: #111;
}

.remarks-edit-diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2d8c6;
}

.remarks-edit-diff.hidden {
    display: none;
}

.remarks-edit-diff-col {
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.remarks-edit-diff-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
    background: #f0e6d6;
    padding: 0.3rem 0.55rem;
    border-bottom: 1px solid #ddd;
}

.remarks-edit-diff-body {
    padding: 0.55rem 0.65rem;
    max-height: 22rem;
    overflow: auto;
}

@media (max-width: 800px) {
    .remarks-edit-diff {
        grid-template-columns: 1fr;
    }
}

.forum-feed-problem,
.forum-feed-author {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.forum-feed-problem:hover,
.forum-feed-author:hover {
    text-decoration: underline;
}

.forum-feed-time {
    color: #555;
}

.forum-empty {
    margin: 0;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.stats-summary {
    margin: 0 0 1rem;
    color: #333;
}

.stats-missing-note {
    color: #8a5a00;
    background: #fff4e5;
    border: 1px solid #f0dcb8;
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.stats-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

.stats-table th,
.stats-table td {
    border: 1px solid #ddd;
    padding: 0.45rem 0.6rem;
    text-align: center;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
}

.stats-table thead th {
    background: #f0e6d6;
    font-weight: 600;
}

.stats-table tfoot td {
    font-weight: 700;
    background: #f7f1e6;
}

.stats-table a {
    text-decoration: none;
}

.stats-table a:hover {
    text-decoration: underline;
}

.users-list-table th,
.users-list-table td {
    text-align: left;
}

.stats-overview-table {
    table-layout: fixed;
}

.stats-overview-table th:first-child,
.stats-overview-table td:first-child {
    width: 26%;
}

.stats-overview-table th:nth-child(2),
.stats-overview-table th:nth-child(3),
.stats-overview-table th:nth-child(4),
.stats-overview-table th:nth-child(5),
.stats-overview-table td:nth-child(2),
.stats-overview-table td:nth-child(3),
.stats-overview-table td:nth-child(4),
.stats-overview-table td:nth-child(5) {
    width: 18.5%;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.6rem;
    row-gap: 0.45rem;
    margin: 1rem 0 1.5rem;
}

.problem-cell {
    display: block;
    text-align: center;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.problem-cell:hover {
    outline: 1px solid #888;
}

.problem-cell.status-solved {
    background: #8FBC8F;
    color: #14331f;
}

.problem-cell.status-open {
    background: #E9967A;
    color: #4a1c12;
}

.problem-cell.status-partiallysolved {
    background: #facf42a1;
    color: #4a3a00;
}

.problem-cell.verification-verified {
    background: #8FBC8F;
    color: #14331f;
}

.problem-cell.verification-unverified {
    background: #f3d5cd;
    color: #4a1c12;
}

.problem-cell.missing {
    background: #eee;
    color: #888;
    font-style: italic;
    cursor: default;
}

.stats-show-all {
    margin-top: 1rem;
}

.stats-problem {
    border-top: 1px solid #e2d8c6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.stats-problem-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats-problem-header h2 {
    font-size: 1.15rem;
    font-weight: normal;
    margin: 0;
}

@media (max-width: 600px) {
    .topnav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0;
    }

    .topnav-left,
    .topnav-middle,
    .topnav-right {
        width: 100%;
    }

    .topnav-left {
        justify-content: center;
    }

    .topnav-links {
        display: none;
    }

    .topnav-middle {
        position: static;
        transform: none;
        padding: 0.4rem 0.75rem;
    }

    .topnav-search-form {
        width: 100%;
        justify-content: center;
    }

    .topnav-search-form input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .topnav-right {
        justify-content: center;
        height: auto;
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    .problem-nav {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .problem-nav-top {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .problem-nav-top .nav-prev,
    .problem-nav-top .nav-next,
    .problem-nav-top .proof-claim-actions {
        justify-self: center;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .editor-cols {
        flex-direction: column;
    }
}

.editable {
    position: relative;
}

.edit-btn {
    float: right;
    margin: 0 0 0.25rem 0.6rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.65);
    color: #333;
    cursor: pointer;
}

.editable-editor {
    clear: both;
}

.edit-btn:hover {
    background: #fff;
}

.editable-editor {
    margin-top: 0.5rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 96vw);
}

.editor-cols {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.editor-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.editor-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.25rem;
}

.editor-source {
    flex: 1 1 auto;
    width: 100%;
    min-height: 12rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.6rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    resize: vertical;
    background: #fff;
    color: #1a1a1a;
}

.editor-preview {
    flex: 1 1 auto;
    min-height: 12rem;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fffdf8;
    overflow-x: auto;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.save-btn,
.cancel-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #bbb;
}

.save-btn {
    background: #1e6b3a;
    border-color: #1e6b3a;
    color: #fff;
}

.save-btn:hover {
    background: #185a30;
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.cancel-btn {
    background: #f5f5f5;
    color: #333;
}

.cancel-btn:hover {
    background: #ebebeb;
}

.save-status {
    font-size: 0.85rem;
    color: #555;
}

.edit-kind-picker {
    margin-top: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    padding: 0.5rem 0.75rem 0.4rem;
    background: #fffdf8;
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.edit-kind-legend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
    padding: 0 0.2rem;
}

.edit-kind-option {
    display: block;
    margin-top: 0.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
}

.edit-kind-option .edit-kind-input {
    margin-right: 0.4rem;
    cursor: pointer;
}

.edit-kind-option .edit-kind-label {
    vertical-align: middle;
}

.remarks-edit-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    vertical-align: middle;
}

.remarks-edit-badge-major {
    background: #1e6b3a;
    color: #fff;
    border-color: #1e6b3a;
}

.remarks-edit-badge-minor {
    background: #f5f5f5;
    color: #333;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fffdf8;
    border: 1px solid #e2d8c6;
    border-radius: 6px;
    padding: 1rem 1.1rem;
}

.auth-register-card {
    margin-top: 1.1rem;
}

.auth-page {
    font-family: Arial, Helvetica, sans-serif;
}

.auth-columns {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.1rem;
    align-items: start;
}

.auth-columns .auth-card {
    max-width: none;
}

.auth-columns .auth-register-card {
    margin-top: 0;
}

.auth-signup-link {
    max-width: 420px;
    margin: 0.75rem auto 0;
    font-size: 0.92rem;
    color: #333;
    text-align: center;
}

.auth-signup-link a {
    color: #1f5fbf;
    text-decoration: none;
}

.auth-signup-link a:hover {
    color: #164a96;
    text-decoration: none;
}

.auth-notice {
    max-width: 420px;
    margin: 0 auto 0.75rem;
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.auth-notice-success {
    border: 1px solid #9bc9a4;
    background: #e8f6eb;
    color: #1e6b3a;
}

.auth-notice-error {
    border: 1px solid #e3a8a8;
    background: #fdeeee;
    color: #8f1d14;
}

.auth-title-center {
    text-align: center;
}

.auth-card .stats-title {
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 0.92rem;
    color: #444;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input[type="password"],
.auth-password-wrap input[type="text"] {
    padding-right: 3.8rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #1f5fbf;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: #164a96;
    text-decoration: none;
}

.auth-forgot-link {
    margin: -0.15rem 0 0.15rem;
    font-size: 0.88rem;
}

.auth-forgot-link a {
    color: #1f5fbf;
    text-decoration: none;
}

.auth-forgot-link a:hover {
    color: #164a96;
    text-decoration: none;
}

.auth-helper-text {
    margin: 0 0 0.85rem;
    color: #444;
    font-size: 0.92rem;
    text-align: center;
}

.profile-password-form {
    max-width: 420px;
}

.profile-moderator-copy {
    margin: 0 0 1rem;
    max-width: 42rem;
    line-height: 1.5;
    color: #333;
}

.profile-moderator-privileges-title {
    margin: 0;
}

.profile-moderator-privileges ul {
    margin: 0.35rem 0 0;
    padding-left: 0;
    list-style-position: inside;
}

.profile-moderator-privileges li {
    margin: 0.15rem 0;
}

.profile-moderator-notice-box {
    background-color: #e6facd;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1rem;
    text-align: center;
}

.profile-moderator-notice-box p {
    margin: 0;
}

.profile-moderator-form {
    max-width: 630px;
    margin: 0 auto;
    text-align: center;
}

.profile-moderator-form button[type="submit"] {
    display: inline-block;
    margin: 0 auto;
}

.profile-moderator-message-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-moderator-message {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.75rem;
    text-align: left;
    min-height: 11.25em;
}

.profile-moderator-message::placeholder {
    color: #888;
}

.auth-verification-card {
    max-width: 504px;
}

.auth-verification-title {
    font-weight: 700;
    font-size: 1.35rem;
}

.auth-verification-card p {
    margin: 0.45rem 0;
}

@media (max-width: 860px) {
    .auth-columns {
        grid-template-columns: 1fr;
    }
}

.auth-form button:not(.auth-password-toggle),
.auth-logout-btn {
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.auth-form button:not(.auth-password-toggle):hover,
.auth-logout-btn:hover {
    background: #ebebeb;
}

.faq-page {
    max-width: 100%;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: normal;
    margin: 0 0 1rem;
}

.faq-owner-box,
.faq-item {
    padding: 10px;
    margin: 0 auto 1rem;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.faq-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-owner-box {
    border-radius: 18px;
    border: 1px solid #000;
    background: #fff;
}

.faq-question {
    background: #dcdcdc;
    border-radius: 12px;
    border: 1px solid #000;
    padding: 12px 14px;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}

.faq-answer {
    padding: 10px 2px 2px;
    text-align: left;
    font-family: "Times New Roman", Times, serif;
}

.faq-divider {
    border: none;
    border-top: 1px solid #a9a9a9;
    margin: 0.7rem 0;
}

.faq-display p {
    margin: 0.25rem 0;
}

.faq-display.has-edit {
    position: relative;
}

.faq-question .faq-display.has-edit {
    padding-right: 0.5rem;
}

.faq-answer .faq-display.has-edit {
    padding-right: 0.5rem;
}

.faq-edit-link {
    position: absolute;
    top: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.faq-edit-link:hover {
    text-decoration: underline;
}

.faq-question .faq-edit-link {
    right: 4.3rem;
}

.faq-answer .faq-edit-link {
    right: 0;
}

.faq-delete-link {
    border: none;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.faq-delete-link:hover {
    text-decoration: underline;
}

.faq-move-link {
    border: none;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.faq-move-link:hover {
    text-decoration: underline;
}

.faq-item-controls {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    padding-top: 0.2rem;
    white-space: nowrap;
}

.faq-item-control-form {
    margin: 0;
}

.faq-side-edit-link {
    position: static;
    top: auto;
    right: auto;
}

.faq-answer-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.faq-answer-row .faq-answer {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-answer-controls {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-top: 0.2rem;
}

.faq-owner-half textarea,
.faq-bottom-editor textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.5rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    resize: vertical;
}

.faq-owner-label {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
}

.faq-owner-actions,
.faq-edit-actions {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.45rem;
}

.faq-owner-actions button,
.faq-edit-actions button {
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.32rem 0.7rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
}

.faq-owner-actions button:hover,
.faq-edit-actions button:hover {
    background: #e3e3e3;
}

.faq-bottom-editor {
    margin: 0 auto 1rem;
    border-radius: 18px;
    border: 1px solid #000;
    background: #fff;
    padding: 10px;
}

.faq-bottom-editor.hidden {
    display: none;
}

.faq-editor-title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: normal;
}

.faq-empty {
    color: #555;
}

.definitions-page {
    max-width: 100%;
}

.definitions-title-box {
    margin-bottom: 0.9rem;
    padding-top: 12px;
    padding-bottom: 12px;
}

.definitions-title-header {
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.definitions-title-header h1 {
    width: 100%;
    text-align: center;
}

.definitions-content-wrap {
    margin-top: 0.7rem;
}

.definitions-rendered {
    padding: 0.2rem 0;
    margin-bottom: 0.6rem;
}

.definitions-edit-btn {
    border: 1px solid #cfc6b7;
    border-radius: 6px;
    background: #f8f0e3;
    color: #2563eb;
    cursor: pointer;
    padding: 0.25rem 0.55rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.definitions-edit-btn:hover {
    text-decoration: underline;
}

.definitions-action-box {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    margin-bottom: 0.5rem;
}

.definitions-editor.hidden {
    display: none;
}

.definitions-editor {
    margin-top: 0.55rem;
}

.profile-card {
    max-width: 900px;
}

.profile-title-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.profile-title-row .stats-title {
    margin: 0;
}

.profile-send-message-btn {
    text-decoration: none;
}

.profile-favorites {
    margin-top: 1.3rem;
}

.profile-tabs {
    margin-top: 1.3rem;
}

.profile-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-tab-link {
    padding: 0.35rem 0.7rem;
    border: 1px solid #d6ccb9;
    border-radius: 4px;
    background: #f8f1e3;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.profile-tab-link.active {
    background: #eaddc7;
    border-color: #c6b89d;
    font-weight: 700;
}

.profile-tab-panel {
    border-top: 1px solid #e2d8c6;
    padding-top: 0.85rem;
}

.profile-details {
    margin-bottom: 1rem;
}

.profile-detail-row {
    margin: 0 0 0.65rem;
}

.profile-detail-view,
.profile-detail-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #333;
}

.profile-detail-view.hidden,
.profile-detail-edit-form.hidden {
    display: none;
}

.profile-detail-label {
    font-weight: 700;
    min-width: 5.5rem;
}

.profile-detail-value {
    min-width: 0;
    word-break: break-word;
}

.profile-detail-empty {
    color: #888;
}

.profile-detail-edit-btn,
.profile-detail-edit-form button {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.22rem 0.55rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.profile-detail-edit-btn:hover,
.profile-detail-edit-form button:hover {
    background: #e3e3e3;
}

.profile-detail-edit-form input[type="text"],
.profile-detail-edit-form input[type="url"] {
    flex: 1 1 14rem;
    min-width: 12rem;
    max-width: 28rem;
    padding: 0.28rem 0.45rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.92rem;
}

.profile-email-visibility-form {
    display: inline-flex;
    margin: 0;
}

.profile-detail-notice {
    font-size: 0.85rem;
}

.profile-detail-notice-error {
    color: #8a1f1f;
}

.profile-biography-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.profile-biography-text {
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fffdf8;
    padding: 0.65rem 0.75rem;
}

.profile-edit-bio-btn {
    margin-top: 0.55rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.35rem 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.profile-edit-bio-btn:hover {
    background: #e3e3e3;
}

.profile-bio-controls {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.profile-bio-inline-notice {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #1e6b3a;
}

.profile-bio-editor {
    margin-top: 0.7rem;
}

.profile-bio-editor.hidden {
    display: none;
}

.profile-biography-preview {
    min-height: 5.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fffdf8;
    padding: 0.55rem 0.65rem;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.45;
}

.profile-bio-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.profile-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-activity-item {
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #faf7f1;
    padding: 0.55rem 0.65rem;
}

.profile-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: #555;
}

.profile-activity-links {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.7rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.profile-notice {
    margin: 0 0 0.7rem;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.profile-notice-success {
    border: 1px solid #9bc9a4;
    background: #e8f6eb;
    color: #1e6b3a;
}

.profile-notice-error {
    border: 1px solid #e3a8a8;
    background: #fdeeee;
    color: #8f1d14;
}

.profile-message-card {
    max-width: none;
    width: 100%;
    margin: 0;
}

.profile-message-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: normal;
}

.profile-message-compose {
    width: 100%;
    margin-bottom: 0.7rem;
}

.profile-message-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-message-form label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #444;
}

.profile-message-warning {
    margin: 0.2rem 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #444;
}

.profile-message-form input,
.profile-message-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 0.45rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    background: #fff;
}

.profile-message-form button {
    align-self: flex-start;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    padding: 0.35rem 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.profile-message-form button:hover {
    background: #e3e3e3;
}

.profile-block-form {
    margin-bottom: 0.6rem;
}

.profile-blocks-toggle {
    margin-bottom: 0.85rem;
}

.profile-inline-link {
    color: #2563eb;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.profile-inline-link:hover {
    text-decoration: underline;
}

.profile-blocks-panel {
    margin-top: 0.55rem;
}

.profile-blocked-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-blocked-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 0.35rem 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.profile-blocked-list form {
    margin: 0;
}

.profile-messages-log {
    margin-top: 0.9rem;
}

.profile-thread-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0.85rem;
}

.profile-thread-sidebar h2,
.profile-thread-main h2 {
    margin-top: 0;
}

.profile-thread-sidebar,
.profile-thread-main {
    min-width: 0;
}

.profile-conversation-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.profile-conversation-link {
    display: block;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #faf7f1;
    padding: 0.42rem 0.5rem;
    color: #2c2c2c;
}

.profile-conversation-link.active {
    border-color: #98b6d8;
    background: #eef4ff;
}

.profile-conversation-name {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-right: 0.3rem;
}

.profile-unread-badge {
    display: inline-block;
    min-width: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    line-height: 1.45;
}

.profile-message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-message-item {
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    padding: 0.55rem 0.65rem;
    background: #faf7f1;
}

.profile-message-item.inbox {
    border-left: 4px solid #1e6b3a;
}

.profile-message-item.outbox {
    border-left: 4px solid #2563eb;
}

.profile-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #555;
}

.profile-message-actions {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
}

.profile-message-actions form {
    margin: 0;
}

.favorite-problem-box {
    margin-bottom: 0.85rem;
}

.favorite-problem-box .problem-header h1 a {
    text-decoration: none;
}

.favorite-problem-box .problem-header h1 a:hover {
    text-decoration: underline;
}

.moderation-queue h1 {
    font-size: 1.3rem;
    margin: 0 0 0.65rem;
    font-weight: normal;
}

.moderation-summary {
    margin: 0 0 0.8rem;
    color: #444;
}

.moderation-section-title {
    margin: 1.25rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
}

.moderation-claim-summary,
.moderation-claim-notes {
    margin-top: 0.45rem;
}

.moderation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.moderation-item {
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    background: #f8f8f8;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.7rem;
}

.moderation-item-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 0.45rem;
}

.moderation-item-body {
    margin-bottom: 0.45rem;
}

.moderation-approve-form {
    margin: 0;
}

.moderation-primary-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.moderation-approve-btn {
    border: 1px solid #1e6b3a;
    border-radius: 4px;
    background: #1e6b3a;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
}

.moderation-approve-btn:hover {
    background: #185a30;
}

.moderation-reject-toggle {
    border: 1px solid #b42318;
    border-radius: 4px;
    background: #fff;
    color: #b42318;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
    margin-left: 0;
}

.moderation-reject-toggle:hover {
    background: #fdf2f2;
}

.moderation-reject-form {
    margin-top: 0.45rem;
}

.moderation-reject-form.hidden {
    display: none;
}

.moderation-reject-label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
}

.moderation-reject-source {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 0.45rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    resize: vertical;
    background: #fff;
}

.moderation-reject-actions {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.45rem;
}

.moderation-reject-submit,
.moderation-reject-cancel {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
}

.moderation-reject-submit {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.moderation-reject-submit:hover {
    background: #8f1d14;
}

.moderation-reject-cancel:hover {
    background: #e3e3e3;
}

.site-notice-stack {
    position: fixed;
    top: 78px;
    right: 14px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: min(420px, 92vw);
}

.site-notice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #d9c086;
    border-radius: 6px;
    background: #fff5dd;
    color: #674600;
    padding: 0.5rem 0.55rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    line-height: 1.35;
}

.site-notice-text a {
    color: #5a3900;
    margin-left: 0.25rem;
}

.site-notice-close {
    border: none;
    background: transparent;
    color: #674600;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 760px) {
    .profile-thread-layout {
        grid-template-columns: 1fr;
    }
}
