/* ══════════════════════════════════════════════════════════
   V2 - RESEARCHER NETWORK COMPONENTS
   ══════════════════════════════════════════════════════════ */

:root {
    --serif: 'Newsreader', Georgia, serif;
    --paper:   #6b5ca5;
    --update:  #2f7d5c;
    --conf:    #a5602f;
}
@media (prefers-color-scheme: dark) {
    :root { --paper: #a99ae0; --update: #6fc39e; --conf: #e0a274; }
}

.brand-h { font-family: var(--serif); font-weight: 600; font-size: 1.25rem !important; letter-spacing: -.5px; }

/* Login principles */
.login-principles {
    list-style: none;
    margin: 0 auto 36px;
    max-width: 340px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-principles li {
    font-size: .82rem;
    color: var(--text-2);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}
.login-principles li::before { content: '-'; position: absolute; left: 0; color: var(--text-3); }

/* ─── Home layout ─── */
.feed-scroll { flex: 1; overflow-y: auto; padding: 16px 0 40px; }
.section-label {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    padding: 8px 20px;
}

/* Circle strip (statuses) */
.circle-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px 14px;
    scroll-snap-type: x proximity;
}
.circle-strip::-webkit-scrollbar { display: none; }
.circle-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin: 0 16px 4px;
    width: 100%;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--r);
}
.circle-empty p { font-size: .82rem; color: var(--text-2); line-height: 1.5; margin: 0; }
.status-chip {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 230px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 12px 10px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--ease), box-shadow var(--ease);
}
.status-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip-pfp { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; }
.chip-body { flex: 1; min-width: 0; }
.chip-name { font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-text { font-size: .82rem; color: var(--text-2); line-height: 1.45; margin: 2px 0; word-break: break-word; }
.chip-meta { font-size: .65rem; color: var(--text-3); }

/* ─── Posts ─── */
.posts-container { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px; max-width: 640px; margin: 0 auto; width: 100%; }
.posts-container.in-explore { padding: 8px 4px; }

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 18px 12px;
    box-shadow: var(--shadow-sm);
}
.post-head { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 10px; }
.post-pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; }
.post-head-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-author { font-size: .87rem; font-weight: 700; letter-spacing: -.2px; }
.post-sub { font-size: .7rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-type { font-size: .66rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.post-update .post-type { color: var(--update); }
.post-paper .post-type { color: var(--paper); }
.post-conference .post-type { color: var(--conf); }

.post-text {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 10px;
    word-break: break-word;
    white-space: pre-wrap;
}

.attach-card {
    border: 1px solid var(--border);
    border-left: 3px solid var(--paper);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--bg);
}
.post-conference .attach-card { border-left-color: var(--conf); }
.attach-kicker { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.attach-title { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.attach-sub { font-size: .78rem; color: var(--text-2); margin-top: 3px; }
.attach-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.mini-btn {
    font-size: .72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font);
}
.mini-btn:hover { color: var(--text); border-color: var(--text-3); }
.mini-btn:disabled { opacity: .6; cursor: default; }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.post-tags.center { justify-content: center; margin-bottom: 16px; }
.tag-chip {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px 10px;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font);
}
.tag-chip:hover { color: var(--text); border-color: var(--text-3); }

.post-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.post-time { font-size: .68rem; color: var(--text-3); }
.foot-spacer { flex: 1; }
.own-count { font-size: .65rem; color: var(--text-3); font-style: italic; }
.foot-btn {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: .74rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: var(--r-pill);
    transition: all var(--ease);
    font-family: var(--font);
}
.foot-btn:hover { color: var(--text); background: var(--bg); }
.foot-btn.on { color: var(--paper); }

.caught-up {
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-3);
    padding: 28px 0 8px;
    font-size: .95rem;
}

/* Comments */
.comments-wrap { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.comment-item { display: flex; gap: 8px; }
.comment-pfp { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; margin-top: 2px; }
.comment-body { font-size: .82rem; line-height: 1.5; }
.comment-author { font-weight: 700; margin-right: 6px; }
.comment-text { color: var(--text-2); word-break: break-word; }
.comment-time { font-size: .64rem; color: var(--text-3); margin-left: 6px; }
.comment-input-row { display: flex; gap: 6px; }
.comment-input-row input {
    flex: 1; padding: 8px 12px; font-size: .82rem; font-family: var(--font);
    border: 1px solid var(--border); border-radius: var(--r-pill);
    background: var(--bg); color: var(--text); outline: none;
}
.comment-input-row input:focus { border-color: var(--text); }
.comment-input-row button {
    background: var(--accent); color: var(--accent-fg); border: none;
    border-radius: 50%; width: 34px; height: 34px; font-size: .8rem;
}
.empty-state.small { padding: 14px; font-size: .78rem; }

/* ─── Segmented toggles ─── */
.explore-toggle { display: flex; gap: 6px; padding: 10px 16px 0; flex-shrink: 0; }
.seg-btn {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: .76rem;
    font-weight: 600;
    padding: 8px 4px;
    border-radius: var(--r-pill);
    transition: all var(--ease);
    font-family: var(--font);
}
.seg-btn.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ─── Compose modal ─── */
.compose-types { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chip {
    font-size: .74rem; font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-2);
    transition: all var(--ease);
    font-family: var(--font);
}
.type-chip.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.compose-hint { font-size: .74rem; color: var(--text-3); line-height: 1.5; }
.compose-extra { display: flex; flex-direction: column; gap: 8px; }
.modal-card { max-height: 86vh; overflow-y: auto; }

/* ─── Library ─── */
.local-note { font-size: .64rem; color: var(--text-3); font-weight: 600; }
.lib-pane { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.lib-pane.active { display: flex; }
.lib-search-row { display: flex; gap: 8px; }
.lib-search-row input { flex: 1; }
.source-select {
    border: 1px solid var(--border); border-radius: var(--r-pill);
    background: var(--surface); color: var(--text-2);
    font-size: .76rem; font-weight: 600; padding: 0 10px; font-family: var(--font); outline: none;
}
.paper-results { flex: 1; overflow-y: auto; padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 12px; }
.paper-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
}
.paper-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.paper-meta { font-size: .72rem; color: var(--text-3); margin-top: 4px; }
.paper-abstract { font-size: .8rem; color: var(--text-2); line-height: 1.55; margin-top: 8px; }
.notes-inline { margin-top: 10px; }
.notes-inline textarea {
    width: 100%; height: 90px; resize: vertical;
    border: 1px solid var(--border); border-radius: var(--r-sm);
    background: var(--bg); color: var(--text);
    padding: 10px 12px; font-size: .8rem; font-family: var(--font); outline: none;
}
.local-file-row { display: flex; gap: 8px; padding: 12px 16px 0; }
.small-btn { font-size: .72rem !important; padding: 7px 14px !important; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* Scholar (quick search + own-profile link - no embed, Google blocks framing) */
.scholar-note {
    font-size: .74rem; color: var(--text-3); line-height: 1.5;
    padding: 12px 16px 0; flex-shrink: 0;
}
#scholar-profile-card { padding: 12px 16px 30px; flex-shrink: 0; }

/* ─── PDF Reader ─── */
.reader-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: var(--bg);
    display: flex; flex-direction: column;
}
.reader-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
    background: var(--surface);
}
.reader-title {
    font-family: var(--serif); font-weight: 600; font-size: .92rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-actions { display: flex; gap: 6px; flex-shrink: 0; }
.reader-body { flex: 1; display: flex; overflow: hidden; }
#reader-frame { flex: 1; border: none; background: #525659; }
.reader-notes {
    width: min(340px, 42vw);
    border-left: 1px solid var(--border);
    background: var(--surface);
    display: flex; flex-direction: column;
}
.notes-head { padding: 12px 14px; font-size: .78rem; font-weight: 700; border-bottom: 1px solid var(--border); }
#notes-textarea {
    flex: 1; resize: none; border: none; outline: none;
    background: var(--surface); color: var(--text);
    padding: 14px; font-size: .84rem; line-height: 1.6; font-family: var(--font);
}
@media (max-width: 640px) {
    .reader-notes { position: absolute; right: 0; top: 0; bottom: 0; width: 85vw; box-shadow: var(--shadow-md); z-index: 2; }
    .reader-body { position: relative; }
}

/* ─── Chats ─── */
.chats-list { flex: 1; overflow-y: auto; padding: 8px; }
.new-chat-row { padding: 6px 8px 10px; }
.convo-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: var(--r-sm);
    cursor: pointer; transition: background var(--ease);
}
.convo-row:hover { background: var(--surface); }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-size: .87rem; font-weight: 700; }
.convo-last { font-size: .76rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { font-size: .66rem; color: var(--text-3); flex-shrink: 0; }

.chat-thread { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble {
    max-width: 76%;
    padding: 9px 14px;
    border-radius: 18px;
    font-size: .87rem;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
}
.msg-bubble.mine {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-fg);
    border-bottom-right-radius: 6px;
}
.msg-bubble.theirs {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
}
.msg-time { display: block; font-size: .6rem; opacity: .55; margin-top: 3px; text-align: right; }
.chat-input-row {
    display: flex; gap: 8px; padding: 10px 14px;
    border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface);
}
.chat-input-row input {
    flex: 1; padding: 11px 16px; font-size: .88rem; font-family: var(--font);
    border: 1px solid var(--border); border-radius: var(--r-pill);
    background: var(--bg); color: var(--text); outline: none;
}
.chat-input-row input:focus { border-color: var(--text); }
.chat-input-row button {
    background: var(--accent); color: var(--accent-fg); border: none;
    border-radius: 50%; width: 42px; height: 42px; font-size: .9rem; flex-shrink: 0;
}

/* ─── Profile v2 ─── */
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--update); color: #fff;
    font-size: .6rem; font-weight: 800;
    vertical-align: middle; margin-left: 4px;
}
.verified-badge.small { width: 13px; height: 13px; font-size: .52rem; }
.profile-affil { font-size: .8rem; color: var(--text-2); text-align: center; }
.links-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.link-pill {
    font-size: .74rem; font-weight: 600;
    padding: 7px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2);
    text-decoration: none; transition: all var(--ease);
}
.link-pill:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.profile-actions-row { display: flex; gap: 8px; margin-bottom: 12px; }
.profile-actions-row > * { flex: 1; }
.profile-actions-row .profile-action-btn { margin-bottom: 0; }
.edit-details { margin-bottom: 24px; }
.edit-details summary { list-style: none; text-align: center; }
.edit-details summary::-webkit-details-marker { display: none; }
.edit-toggle { display: block; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.edit-details[open] .edit-toggle { margin-bottom: 18px; }

/* ─── Time nudge ─── */
.time-nudge {
    position: fixed;
    bottom: calc(var(--nav-h) + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--r-pill);
    padding: 10px 8px 10px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 150;
    font-size: .8rem;
    color: var(--text-2);
    max-width: min(92vw, 480px);
    font-family: var(--serif);
    font-style: italic;
}

/* ============ V2.1 - Daily digest + Seeking ============ */
:root { --seek: #2f6ea5; }
@media (prefers-color-scheme: dark) { :root { --seek: #7ab8e8; } }
.post-seeking .post-type { color: var(--seek); }
.seek-row { margin-bottom: 10px; }

.daily-digest {
    max-width: 640px; margin: 0 auto; width: 100%;
    padding: 0 16px 18px;
    display: flex; flex-direction: column; gap: 8px;
}
.digest-hint {
    font-family: var(--serif); font-style: italic;
    font-size: .88rem; color: var(--text-2); line-height: 1.6;
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--r); padding: 14px 18px;
}
.digest-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 10px 14px;
}
.digest-n {
    font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
    color: var(--text-3); flex-shrink: 0; width: 18px; text-align: center;
}
.digest-info { flex: 1; min-width: 0; }
.digest-title { font-size: .84rem; font-weight: 600; line-height: 1.4; }
.digest-authors { font-size: .7rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.digest-actions { display: flex; gap: 5px; flex-shrink: 0; }
.digest-done-btn {
    align-self: center;
    background: none; border: 1px solid var(--border);
    color: var(--text-2); font-size: .74rem; font-weight: 600;
    padding: 7px 18px; border-radius: var(--r-pill);
    font-family: var(--font); transition: all var(--ease); margin-top: 4px;
}
.digest-done-btn:hover { color: var(--text); border-color: var(--text-3); }

/* ═════ Icons ═════ */
.icon { width: 1em; height: 1em; vertical-align: -2px; display: inline-block; }
.icon-sm { width: .75em; height: .75em; }

/* ══════════════════════════════════════════════════════════
   V3 - VISUAL POLISH + FULL RESPONSIVENESS
   ══════════════════════════════════════════════════════════ */

/* ─── Boot splash ─── */
.auth-splash {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px;
}
.splash-logo {
    font-family: var(--serif); font-size: 2.2rem; font-weight: 600;
    letter-spacing: -1.5px; color: var(--text);
}
.splash-spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--border); border-top-color: var(--text);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Compose visibility toggle ─── */
.visibility-row { display: flex; gap: 6px; }
.vis-chip {
    font-size: .74rem; font-weight: 600;
    padding: 7px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg); color: var(--text-2);
    transition: all var(--ease); font-family: var(--font);
}
.vis-chip.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* Friends-only pill on posts */
.vis-pill {
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--conf); border: 1px solid currentColor;
    padding: 2px 8px; border-radius: var(--r-pill);
    margin-right: 8px; flex-shrink: 0;
}

/* Pinned people */
.pin-flag {
    font-size: .52rem; font-weight: 800;
    letter-spacing: .08em; color: var(--conf);
    border: 1px solid currentColor;
    padding: 1px 6px; border-radius: var(--r-pill);
    margin-left: 6px; vertical-align: 1px;
}
.status-chip.is-pinned { border-color: var(--conf); }
.chip-text-empty { font-style: italic; color: var(--text-3); }
.btn-pin {
    background: var(--surface); color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-pin.pinned { color: var(--conf); border-color: var(--conf); }

/* ─── Sleeker post cards (X/Insta-flavoured) ─── */
.post-card {
    border-radius: 18px;
    border-left: 3px solid var(--border);
    box-shadow: none;
    padding: 18px 20px 12px;
    transition: border-color var(--ease), transform var(--ease);
}
.post-card:hover { border-color: var(--text-3); }
.post-update     { border-left-color: var(--update); }
.post-paper      { border-left-color: var(--paper); }
.post-conference { border-left-color: var(--conf); }
.post-seeking    { border-left-color: var(--seek); }

.post-type { display: inline-flex; align-items: center; gap: 6px; }
.post-type::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
}

.post-pfp { width: 42px; height: 42px; }
.post-author:hover { text-decoration: underline; }

.tag-chip {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 12px;
}
.tag-chip:hover { background: var(--bg); border-color: var(--text-2); transform: translateY(-1px); }

.foot-btn { padding: 7px 12px; }
.mini-btn { padding: 6px 14px; }

/* ─── Modal: bottom sheet on mobile, centered dialog on desktop ─── */
@media (min-width: 600px) {
    .modal-overlay { align-items: center; }
    .modal-card    { border-radius: var(--r); box-shadow: var(--shadow-md); }
}

/* ─── Mobile ergonomics ─── */
@media (max-width: 640px) {
    /* 16px stops iOS Safari from auto-zooming into focused inputs */
    input, textarea, select { font-size: 16px !important; }
    .post-card { padding: 15px 15px 10px; border-radius: 14px; }
    .posts-container { padding: 4px 10px; }
    .status-chip { width: 200px; }
    .reader-actions .small-btn { padding: 7px 10px !important; }
}

/* Bottom nav respects the iPhone home-indicator inset */
#bottom-nav {
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Desktop: left side-rail nav (X-style) ─── */
@media (min-width: 900px) {
    #bottom-nav {
        top: 0; bottom: 0; right: auto; left: 0;
        width: 230px; height: 100vh;
        flex-direction: column; justify-content: flex-start;
        gap: 6px; padding: 26px 12px;
        border-top: none; border-right: 1px solid var(--border);
    }
    #bottom-nav::before {
        content: 'Minimal.';
        font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
        letter-spacing: -.5px; color: var(--text);
        padding: 0 14px 24px; display: block;
    }
    .nav-btn {
        flex: 0 0 auto; width: 100%;
        flex-direction: row; justify-content: flex-start; gap: 16px;
        padding: 13px 16px;
        font-size: .92rem; font-weight: 600;
        text-transform: none; letter-spacing: 0;
        border-radius: var(--r-pill);
        transition: background var(--ease), color var(--ease);
    }
    .nav-btn:hover  { background: var(--bg); }
    .nav-btn.active { background: var(--bg); }
    .nav-icon { width: 22px; height: 22px; }

    .app-screen { left: 230px; bottom: 0; }
    .fab { right: 40px; bottom: 40px; }
    .time-nudge { left: calc(50% + 115px); }

    /* Center content columns */
    .search-wrapper, .explore-toggle, .paper-results, .local-file-row,
    .explore-results, .chats-list, .chat-thread, .scholar-note,
    #scholar-profile-card {
        max-width: 720px; margin-left: auto; margin-right: auto; width: 100%;
    }
    .app-header { padding: 0 28px; }
    .profile-body { max-width: 640px; margin: 0 auto; width: 100%; }
}

/* ─── Moderation UI ─── */
.suspend-banner {
    background: #c0392b; color: #fff;
    font-size: .82rem; font-weight: 600; line-height: 1.4;
    text-align: center; padding: 12px 16px; flex-shrink: 0;
    position: relative; z-index: 50;
}
@media (prefers-color-scheme: dark) { .suspend-banner { background: #a5342a; } }

.act-report:hover { color: #c0392b !important; }
.btn-report {
    background: transparent; color: var(--text-3);
    border: 1px solid var(--border); font-size: .78rem;
}
.btn-report:hover { color: #c0392b; border-color: #c0392b; }
.btn-report:disabled { opacity: .6; cursor: default; }
