.mobile-comments {
    margin: 8px 8px 20px;
    color: var(--color-text, #1a1a1a);
    font-size: 14px;
    line-height: 1.5;
}
.mobile-comments * { box-sizing: border-box; }
.mobile-comments [hidden] { display: none !important; }
.mobile-comments a { text-decoration: none; }
.mc-heading, .mc-author-row, .mc-actions, .mc-rating, .mc-form-heading, .mc-pagination {
    display: flex;
    align-items: center;
}
.mc-heading { justify-content: space-between; gap: 12px; margin: 8px 4px 12px; }
.mc-heading h2 { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.mc-count { display: inline-block; margin-left: 4px; color: var(--color-text-muted, #6b6b6b); font-size: 14px; font-weight: 500; }
.mobile-comments .mc-write, .mobile-comments .mc-notice a { color: var(--color-accent, #0077cc); font-weight: 600; }
.mc-write { padding: 10px 0 10px 10px; }
.mc-notice, .mc-empty { margin: 0 4px 16px; color: var(--color-text-muted, #6b6b6b); font-size: 13px; }
.mc-list, .mc-branch { list-style: none; margin: 0; padding: 0; }
.mc-list > .mc-item { margin-bottom: 16px; }
.mc-branch { margin: 8px 0 0 5px; padding-left: 10px; border-left: 1px solid var(--color-border, #d9dfe5); }
.mc-branch > .mc-item + .mc-item { margin-top: 8px; }
/* Keep deep discussions readable on a 320px screen; parent links retain their exact ancestry. */
.mc-branch-deep { margin-left: 0; padding-left: 0; border-left: 0; }
.mc-card, .mc-form { padding: 14px; border: 1px solid var(--color-border, #e5e5ea); border-radius: 12px; background: var(--color-card-bg, #fff); }
.mc-card { scroll-margin-top: 60px; }
.mc-card:target { border-color: var(--color-accent, #0077cc); box-shadow: 0 0 0 2px rgba(0, 119, 204, .12); }
.mc-author-row { gap: 9px; margin-bottom: 10px; }
.mobile-comments .mc-avatar { display: flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: rgba(0, 119, 204, .1); color: var(--color-accent, #0077cc); font-weight: 700; text-transform: uppercase; }
.mc-avatar img { display: block; width: 32px; height: 32px; object-fit: cover; }
.mc-author-info { min-width: 0; }
.mobile-comments .mc-author { display: block; color: var(--color-text, #1a1a1a); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.mobile-comments .mc-date { display: block; color: var(--color-text-muted, #6b6b6b); font-size: 11px; line-height: 1.6; }
.mobile-comments .mc-parent { display: block; margin: 0 0 8px; color: var(--color-accent, #0077cc); font-size: 12px; overflow-wrap: anywhere; }
.mc-text { overflow-wrap: anywhere; word-wrap: break-word; }
.mc-text img, .mc-text iframe, .mc-text video { max-width: 100%; height: auto; }
.mc-text iframe { aspect-ratio: 16 / 9; }
.mc-text pre { white-space: pre-wrap; }
.mc-text a { color: var(--color-accent, #0077cc); text-decoration: underline; }
.mc-text p { margin: 0 0 8px; }
.mc-muted, .mc-hidden summary { color: var(--color-text-muted, #6b6b6b); font-size: 13px; }
.mc-hidden summary { cursor: pointer; padding: 4px 0; }
.mc-hidden[open] summary { margin-bottom: 8px; }
.mc-actions { justify-content: space-between; gap: 8px; margin: 8px -4px -6px; }
.mobile-comments button { font: inherit; cursor: pointer; }
.mc-reply, .mc-cancel { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--color-accent, #0077cc); font-size: 12px !important; font-weight: 600 !important; }
.mc-rating { margin-left: auto; gap: 0; }
.mobile-comments .mc-vote { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-text-muted, #6b6b6b); font-family: Arial, sans-serif; font-size: 26px; line-height: 1; }
.mc-vote:hover:not(:disabled) { background: rgba(0, 119, 204, .08); color: var(--color-accent, #0077cc); }
.mobile-comments .mc-voted { color: #de5266; }
.mc-vote:disabled { cursor: default; }
.mc-vote[aria-busy="true"] { opacity: .45; }
.mc-points { min-width: 16px; padding-right: 4px; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; }
.mc-positive { color: #27814a; }
.mc-negative { color: #bd3844; }
.mc-feedback { margin: 8px 0 0; color: var(--color-text-muted, #6b6b6b); font-size: 12px; }
.mc-form { margin-top: 12px; scroll-margin-top: 60px; }
.mc-form-heading { justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mc-form-heading label { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.mc-cancel { flex-shrink: 0; }
.mc-form textarea { display: block; width: 100%; min-height: 112px; padding: 12px; border: 1px solid var(--color-border, #d9dfe5); border-radius: 8px; background: var(--color-page-bg, #f5f7f9); color: var(--color-text, #1a1a1a); font: inherit; font-size: 16px; resize: vertical; }
.mc-form textarea::placeholder { color: var(--color-text-muted, #6b6b6b); }
.mc-submit { display: block; min-height: 44px; margin: 10px 0 0 auto; padding: 10px 20px; border: 0; border-radius: 8px; background: var(--color-accent, #0077cc); color: #fff; font-size: 14px !important; font-weight: 600 !important; }
.mc-submit:disabled { opacity: .6; cursor: wait; }
.mc-pagination { justify-content: center; flex-wrap: wrap; gap: 16px; margin: 20px 0; font-size: 13px; }
.mobile-comments .mc-pagination a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-accent, #0077cc); font-weight: 600; }
.mc-pagination span { color: var(--color-text-muted, #6b6b6b); }
.mobile-comments :focus-visible { outline: 2px solid var(--color-accent, #0077cc); outline-offset: 3px; }
@media (min-width: 600px) {
    .mobile-comments { margin: 16px auto 28px; width: calc(100% - 32px); max-width: 720px; font-size: 15px; }
    .mc-card, .mc-form { padding: 18px; }
    .mc-branch:not(.mc-branch-deep) { margin-left: 10px; padding-left: 16px; }
}
@media (prefers-color-scheme: dark) {
    .mc-positive { color: #63c98b; }
    .mc-negative { color: #ff7c87; }
}
