/* ============================================================
   Newsbrief — Combined stylesheet
   Shared base + Home + Account + Brief page styles
   ============================================================ */

/* ── Charter font (same as home page) ── */
@font-face {
    font-family: 'malawian';
    src: url('CharterRegular.ttf') format('truetype');
}

/* ── Reset & Root Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0c0c0f;
    --surface: #16161a;
    --surface-2: #1e1e24;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #e8e8ed;
    --text-2: #9898a0;
    --text-3: #5c5c66;
    --accent: #6c9fff;
    --accent-dim: rgba(108,159,255,0.12);
    --red: #ff6b6b;
    --green: #4ecdc4;
    --orange: #ffa94d;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Header (shared) ── */
.nb-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12,12,15,0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.nb-header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.nb-brand {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.nb-brand-logo { height: 44px; width: auto; cursor: pointer; transition: opacity 0.2s; }
.nb-brand-logo:hover { opacity: 0.8; }
.nb-brand-text {
    font-family: 'malawian', var(--font-serif);
    font-size: 20px; font-weight: 600;
    letter-spacing: -0.02em;
}
.nb-brand-col {
    display: flex; flex-direction: column;
}
.nb-brand-text span { color: var(--accent); }
.nb-header-right {
    display: flex; align-items: center; gap: 16px;
}
.nb-header-link {
    font-size: 13px; color: var(--text-2);
    transition: color 0.2s;
}
.nb-header-link:hover { color: var(--text); }
.nb-user-info {
    display: flex; flex-direction: column; align-items: flex-end;
    line-height: 1.3;
}
.nb-user-name {
    font-size: 13px; font-weight: 500; color: var(--text);
}
.nb-user-meta {
    font-size: 11px; color: var(--text-3);
}
.nb-user-meta a {
    color: var(--text-2); transition: color 0.2s;
}
.nb-user-meta a:hover { color: var(--accent); }
.nb-live {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--green);
}
.nb-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Apps Modal (shared) ── */
.mw-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.mw-modal-overlay.open { display: flex; }
.mw-modal {
    background: #1e1e2e; border-radius: 16px;
    padding: 28px; box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    max-width: 480px; width: 90%;
    animation: mw-modal-in 0.2s ease-out;
}
@keyframes mw-modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.mw-modal-apps {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.mw-modal-app {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 10px; border-radius: 12px;
    text-decoration: none; color: #e0e0e0; transition: background 0.2s;
}
.mw-modal-app:hover { background: #2a2a3a; }
.mw-modal-app-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.mw-modal-app-name { font-size: 13px; font-weight: 500; color: #e0e0e0; text-align: center; }
@media (max-width: 480px) {
    .mw-modal { padding: 20px; max-width: 320px; }
    .mw-modal-apps { gap: 8px; }
    .mw-modal-app { padding: 12px 8px; gap: 6px; }
    .mw-modal-app-icon { width: 40px; height: 40px; border-radius: 10px; }
    .mw-modal-app-icon svg { width: 20px; height: 20px; }
    .mw-modal-app-icon img { width: 22px !important; height: 22px !important; }
    .mw-modal-app-name { font-size: 11px; }
}

/* Pending badge (shared: home + brief) */
.nb-pending-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(255,169,77,0.15);
    color: var(--orange);
    border: 1px solid rgba(255,169,77,0.3);
}

/* ── Footer (shared) ── */
.nb-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
}
.nb-footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-3);
}
.nb-footer a { color: var(--text-2); transition: color 0.2s; }
.nb-footer a:hover { color: var(--text); }


/* ============================================================
   HOME PAGE
   ============================================================ */

/* ── Layout ── */
.nb-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ── Date strip ── */
.nb-date-strip {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.nb-today {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 600;
    letter-spacing: -0.03em;
}
.nb-date-meta {
    font-size: 13px; color: var(--text-3);
    margin-left: auto;
}
.nb-date-meta strong { color: var(--text-2); font-weight: 500; }

/* ── Category pills ── */
.nb-cats {
    grid-column: 1 / -1;
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nb-cats::-webkit-scrollbar { display: none; }
.nb-cat {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px; font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}
.nb-cat:hover { border-color: var(--border-hover); color: var(--text); }
.nb-cat.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Featured card ── */
.nb-featured {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
    margin-bottom: 24px;
}
.nb-featured:hover { border-color: var(--border-hover); }
.nb-featured-img {
    width: 100%; height: 280px;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.nb-featured-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.nb-featured-img-empty {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-3); font-size: 13px;
}
.nb-featured-img-empty svg { opacity: 0.3; }
.nb-featured-img .nb-img-caption {
    position: absolute; bottom: 0; right: 0;
    padding: 4px 12px;
    font-size: 11px; color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: var(--radius-sm) 0 0 0;
}
.nb-featured-body { padding: 24px; }
.nb-featured-topic {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--accent-dim);
    color: var(--accent);
    margin-bottom: 12px;
}
.nb-featured h2 {
    font-family: var(--font-serif);
    font-size: 26px; font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.nb-featured p {
    font-size: 15px; color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
}
.nb-featured-sources {
    display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-3);
}
.nb-featured-sources a {
    color: var(--accent); opacity: 0.7;
    transition: opacity 0.2s;
}
.nb-featured-sources a:hover { opacity: 1; }

/* ── Brief cards ── */
.nb-briefs { display: flex; flex-direction: column; gap: 12px; }
.nb-card {
    display: flex; gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}
.nb-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
.nb-card-body { flex: 1; min-width: 0; }
.nb-card-topic {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.nb-card-topic.politics { color: var(--red); }
.nb-card-topic.economy { color: var(--orange); }
.nb-card-topic.sports { color: var(--green); }
.nb-card-topic.health { color: #a78bfa; }
.nb-card-topic.technology { color: var(--accent); }
.nb-card-topic.culture { color: #f472b6; }
.nb-card h3 {
    font-size: 15px; font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nb-card p {
    font-size: 13px; color: var(--text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nb-card-date {
    font-size: 11px; color: var(--text-3);
    margin-top: 8px;
}
.nb-card-indicator {
    width: 3px; border-radius: 3px;
    flex-shrink: 0;
}
.nb-card-indicator.politics { background: var(--red); }
.nb-card-indicator.economy { background: var(--orange); }
.nb-card-indicator.sports { background: var(--green); }
.nb-card-indicator.health { background: #a78bfa; }
.nb-card-indicator.technology { background: var(--accent); }
.nb-card-indicator.culture { background: #f472b6; }

/* ── Sidebar ── */
.nb-sidebar { display: flex; flex-direction: column; gap: 24px; }
.nb-sidebar-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.nb-sidebar-title {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 16px;
}

/* Archive dates */
.nb-archive-list { display: flex; flex-direction: column; gap: 2px; }
.nb-archive-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: background 0.15s;
    cursor: pointer;
}
.nb-archive-item:hover { background: var(--surface-2); }
.nb-archive-item.active {
    background: var(--accent-dim);
    color: var(--accent);
}
.nb-archive-count {
    font-size: 12px; color: var(--text-3);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 100px;
}

/* AI badge */
.nb-ai-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.nb-ai-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}
.nb-ai-info p {
    font-size: 13px; color: var(--text-3);
    line-height: 1.6;
}

/* Source stats */
.nb-source-list { display: flex; flex-direction: column; gap: 10px; }
.nb-source-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
}
.nb-source-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.nb-source-name { flex: 1; color: var(--text-2); }
.nb-source-count { font-size: 12px; color: var(--text-3); }

/* ── Section divider ── */
.nb-section-label {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3);
    margin: 32px 0 16px;
}
.nb-section-label::after {
    content: ''; flex: 1;
    height: 1px; background: var(--border);
}

/* ── Hamburger menu ── */
.nb-hamburger {
    display: none;
    background: none; border: none;
    color: var(--text-2); cursor: pointer;
    padding: 4px;
}
.nb-hamburger:hover { color: var(--text); }

.nb-mobile-drawer {
    display: none;
    position: fixed; inset: 0; z-index: 200;
}
.nb-mobile-drawer.open { display: flex; }
.nb-drawer-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
}
.nb-drawer {
    position: absolute; top: 0; left: 0;
    width: 300px; max-width: 85vw; height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    animation: drawerIn 0.2s ease;
    padding: 20px;
}
@keyframes drawerIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.nb-drawer-close {
    background: none; border: none;
    color: var(--text-3); cursor: pointer;
    float: right; padding: 4px;
}
.nb-drawer-close:hover { color: var(--text); }

/* ── Home mobile ── */
@media (max-width: 900px) {
    .nb-layout {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
        gap: 24px;
    }
    .nb-date-strip, .nb-cats { grid-column: 1; }
    .nb-cats { flex-wrap: nowrap; }
    .nb-cat { flex-shrink: 0; }
    .nb-today { font-size: 22px; }
    .nb-featured h2 { font-size: 22px; }
    .nb-featured-img { height: 200px; }
    .nb-sidebar { display: none; }
    .nb-hamburger { display: block; }
    .nb-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .nb-header-inner { padding: 0 16px; }
    .nb-header-link { display: none; }
    .nb-user-name { display: none; }
    .nb-user-meta { font-size: 12px; }
    .nb-featured-body { padding: 16px; }
    .nb-card { padding: 12px; }
}


/* ============================================================
   ACCOUNT PAGE
   ============================================================ */

/* ── Layout ── */
.nb-content {
    max-width: 900px; margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ── Profile card ── */
.nb-profile {
    display: flex; gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.nb-avatar {
    width: 120px; height: 120px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    background-size: cover; background-position: center;
    flex-shrink: 0;
    position: relative;
}
.nb-avatar .nb-verified {
    position: absolute; bottom: -4px; right: -4px;
    width: 24px; height: 24px;
}
.nb-profile-info { flex: 1; min-width: 0; }
.nb-profile-name {
    font-size: 22px; font-weight: 600;
    margin-bottom: 2px;
}
.nb-profile-email {
    font-size: 13px; color: var(--text-2);
    margin-bottom: 8px;
}
.nb-profile-email .nb-admin-tag {
    color: var(--accent); font-weight: 500;
}
.nb-profile-links {
    font-size: 13px; margin-bottom: 12px;
}
.nb-profile-links a {
    color: var(--accent); margin-right: 12px;
    transition: opacity 0.2s;
}
.nb-profile-links a:hover { opacity: 0.8; }
.nb-stats {
    display: flex; gap: 20px;
    font-size: 12px; color: var(--text-3);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.nb-stats strong {
    color: var(--text-2); font-weight: 600;
}
.nb-profile-bio {
    font-size: 13px; color: var(--text-2);
    margin-top: 10px;
    max-height: 80px; overflow: auto;
}

/* ── Section card ── */
.nb-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.nb-section h3 {
    font-size: 16px; font-weight: 600;
    margin-bottom: 6px;
}
.nb-section p.nb-hint {
    font-size: 13px; color: var(--text-3);
    margin-bottom: 16px;
}

/* ── Buttons ── */
.nb-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.nb-btn:hover {
    border-color: var(--border-hover);
    background: var(--border-hover);
}
.nb-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.nb-btn-primary:hover {
    background: #5a8de6;
    border-color: #5a8de6;
}
.nb-btn-sm {
    padding: 5px 14px;
    font-size: 12px;
}
.nb-btn-green {
    background: var(--green);
    border-color: var(--green);
    color: #000;
    font-weight: 600;
}
.nb-btn-green:hover {
    background: #3dbcb3;
    border-color: #3dbcb3;
}
.nb-btn-danger {
    background: transparent;
    border-color: var(--red);
    color: var(--red);
}
.nb-btn-danger:hover {
    background: var(--red);
    color: #fff;
}

/* ── Generating Banner ── */
.nb-generating {
    background: rgba(108,159,255,0.10);
    border: 1px solid rgba(108,159,255,0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--accent);
}
.nb-generating-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(108,159,255,0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: nb-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes nb-spin { to { transform: rotate(360deg); } }

/* ── Table ── */
.nb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.nb-table th {
    text-align: left;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-3);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}
.nb-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}
.nb-table tr:last-child td { border-bottom: none; }
.nb-table tr:hover td { background: var(--surface-2); }

.nb-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.nb-badge-success { background: rgba(78,205,196,0.15); color: var(--green); }
.nb-badge-warning { background: rgba(255,169,77,0.15); color: var(--orange); }
.nb-badge-danger { background: rgba(255,107,107,0.15); color: var(--red); }
.nb-badge-secondary { background: var(--surface-2); color: var(--text-3); }

/* ── Accordion ── */
.nb-accordion-toggle {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none;
}
.nb-accordion-toggle svg {
    transition: transform 0.2s;
    color: var(--text-3);
}
.nb-accordion-toggle.open svg { transform: rotate(180deg); }
.nb-accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.nb-accordion-body.open {
    max-height: 2000px;
}

/* ── Edit Modal ── */
.nb-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    justify-content: center; align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}
.nb-modal-overlay.open { display: flex; }
.nb-modal {
    width: 100%; max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.nb-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.nb-modal-header h3 { font-size: 14px; font-weight: 600; }
.nb-modal-close {
    background: none; border: none; color: var(--text-3);
    cursor: pointer; padding: 4px;
}
.nb-modal-close:hover { color: var(--text); }
.nb-modal-body { padding: 24px; }
.nb-modal-image {
    width: 100%; height: 200px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.nb-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.nb-modal-topic {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--accent-dim);
    color: var(--accent);
    margin-bottom: 10px;
}
.nb-modal-field {
    margin-bottom: 14px;
}
.nb-modal-field label {
    display: block;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 4px;
}
.nb-modal-field input,
.nb-modal-field textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s;
}
.nb-modal-field input:focus,
.nb-modal-field textarea:focus {
    border-color: var(--accent);
}
.nb-modal-field textarea { resize: vertical; min-height: 80px; }
.nb-modal-brief {
    font-size: 14px; color: var(--text-2);
    line-height: 1.7;
    max-height: 300px; overflow-y: auto;
    cursor: text;
    padding: 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}
.nb-modal-brief p { margin-bottom: 10px; }
.nb-modal-sources {
    font-size: 12px; color: var(--text-3);
    margin-bottom: 16px;
}
.nb-modal-sources a {
    color: var(--accent); opacity: 0.8;
}
.nb-modal-sources a:hover { opacity: 1; }
.nb-modal-meta {
    font-size: 11px; color: var(--text-3);
    margin-bottom: 16px;
}
.nb-modal-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.nb-modal-footer .nb-spacer { flex: 1; }
.nb-modal-status {
    font-size: 12px; color: var(--text-3);
    margin-left: 8px;
}

/* Clickable rows */
.nb-table tr[data-id] { cursor: pointer; }

/* ── Account mobile ── */
@media (max-width: 600px) {
    .nb-profile { flex-direction: column; align-items: center; text-align: center; }
    .nb-avatar { width: 90px; height: 90px; }
    .nb-stats { justify-content: center; flex-wrap: wrap; }
    .nb-profile-links { text-align: center; }
    .nb-table th:nth-child(3), .nb-table td:nth-child(3) { display: none; }
    .nb-modal { margin: 20px 0; }
    .nb-modal-footer { flex-wrap: wrap; }
}


/* ============================================================
   BRIEF (ARTICLE) PAGE
   ============================================================ */

/* Brief page narrows the header */
.nb-article-page .nb-header-inner {
    max-width: 800px;
}

.nb-back { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.nb-back:hover { color: var(--text); }

.nb-article {
    max-width: 800px; margin: 0 auto;
    padding: 32px 24px 80px;
}
.nb-article-topic {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--accent-dim);
    color: var(--accent);
    margin-bottom: 16px;
}
.nb-article h1 {
    font-family: var(--font-serif);
    font-size: 32px; font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.nb-article-meta {
    font-size: 13px; color: var(--text-3);
    margin-bottom: 24px;
}
.nb-article-image {
    width: 100%; border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}
.nb-article-image img {
    width: 100%; display: block;
}
.nb-article-image .nb-img-caption {
    position: absolute; bottom: 0; right: 0;
    padding: 4px 12px;
    font-size: 11px; color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: var(--radius-sm) 0 0 0;
}
.nb-article-body {
    font-size: 16px; color: var(--text-2);
    line-height: 1.8;
}
.nb-article-body p { margin-bottom: 16px; }
.nb-article-body a { color: var(--accent); }
.nb-article-sources {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.nb-article-sources h4 {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 12px;
}
.nb-article-sources ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 6px;
}
.nb-article-sources li {
    font-size: 13px;
}
.nb-article-sources a {
    color: var(--accent); opacity: 0.8;
    transition: opacity 0.2s;
}
.nb-article-sources a:hover { opacity: 1; }
.nb-article-sources .nb-src-pub {
    color: var(--text-3); font-size: 11px; margin-left: 6px;
}
.nb-edit-bar {
    margin-top: 24px;
    display: flex; gap: 8px;
}
.nb-edit-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    transition: all 0.2s;
}
.nb-edit-btn:hover { background: var(--accent-dim); }

/* Brief page — pending badge extra margin */
.nb-article .nb-pending-badge {
    margin-left: 8px;
}

/* ── Brief mobile ── */
@media (max-width: 600px) {
    .nb-article h1 { font-size: 24px; }
    .nb-article-body { font-size: 15px; }
}
