/* ============================================================
   INK MASTER STYLESHEET v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap');

body {
    --ink: #0a0a0a;
    --ink-mid: #111111;
    --ink-soft: #1a1a1a;
    --paper: #e8e0d0;
    --paper-mid: #c8c0b0;
    --accent: #c8a96e;
    --accent-dim: rgba(200,169,110,0.12);
    --accent-glow: rgba(200,169,110,0.06);
    --rule: #2a2a2a;
    --dim: #a89880;
    --muted: #6b5f4f;
    --warning-bg: #fef3c7;
    --warning-fg: #92400e;
    --signal: #e8b84b;
    --green: #2ecc71;
    --red: #c0392b;
    --radius: 4px;
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'DM Serif Display', serif;
    --font-mono: 'DM Mono', monospace;

}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- TOPBAR --- */
.topbar {
    height: 52px;
    background: var(--ink-mid);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-wordmark {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--paper);
    letter-spacing: 0.04em;
    margin-right: 40px;
    flex-shrink: 0;
    overflow: hidden;
}
.topbar-wordmark span { color: var(--accent); }
.topbar-nav { display: flex; gap: 2px; flex: 1; }
.nav-btn {
    padding: 6px 16px;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.nav-btn:hover { color: var(--paper); background: var(--ink-soft); }
.nav-btn.active { color: var(--accent); background: var(--accent-dim); }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.sector-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(200,169,110,0.3);
    padding: 3px 8px;
    border-radius: 2px;
}
.user-label { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.logout-btn {
    background: none;
    border: 1px solid var(--rule);
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.logout-btn:hover { border-color: var(--muted); color: var(--paper); }

/* --- APP SHELL --- */
#app { display: none; flex-direction: column; min-height: 100vh; }
#app.visible { display: flex; }
.app-screen { background: var(--ink); min-height: 100vh; }
.main { flex: 1; display: flex; flex-direction: column; }
.view { display: none; flex: 1; flex-direction: column; }
.view.active { display: flex; }

/* --- LOGIN --- */
#login-screen, #pwchange-screen {
    position: fixed; inset: 0;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}
    .login-screen { background: var(--ink); min-height: 100vh; }
    .pwchange-screen { display: none; }
    #pwchange-screen.pwchange-screen { display: none; }
.login-box {
    width: 380px; padding: 48px;
    border: 1px solid var(--rule);
    background: var(--ink-mid);
    position: relative;
    border-radius: var(--radius);
}
.login-box::before {
    content: ''; position: absolute;
    top: -1px; left: 0; width: 60px; height: 2px;
    background: var(--accent);
}
.login-wordmark {
    font-family: var(--font-display);
    font-size: 28px; letter-spacing: 0.05em;
    color: var(--paper); margin-bottom: 6px;
}
.login-tagline {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--dim); letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 40px;
}
.login-field { margin-bottom: 16px; }
.login-field label {
    display: block; font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.login-field input {
    width: 100%; background: var(--ink);
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--paper); font-family: var(--font-mono);
    font-size: 13px; padding: 10px 14px;
    outline: none; transition: border-color 0.2s;
}
.login-field input:focus { border-color: var(--accent); }
.login-btn {
    width: 100%; margin-top: 24px; padding: 12px;
    background: var(--accent); color: var(--ink);
    border: none; border-radius: var(--radius);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; font-weight: 500; transition: opacity 0.2s;
}
.login-btn:hover { opacity: 0.85; }
.login-error {
    margin-top: 12px; font-family: var(--font-mono);
    font-size: 11px; color: var(--red);
    text-align: center; min-height: 16px;
}

/* --- VIEW HEADERS --- */
.view-header { margin-bottom: 8px; }
.view-title {
    font-family: var(--font-display);
    font-size: 26px; color: var(--paper); margin-bottom: 4px;
}
.view-subtitle {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--dim); letter-spacing: 0.06em;
}

/* --- QUERY VIEW --- */
.query-view {
    max-width: 860px; width: 100%;
    margin: 0 auto; padding: 40px 24px;
    flex-direction: column; gap: 24px;
}
.query-input-wrap {
    position: relative; display: flex;
    gap: 10px; align-items: flex-end;
}
.query-textarea {
    flex: 1; background: var(--ink-mid);
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--paper); font-family: var(--font-body);
    font-size: 14px; line-height: 1.6; padding: 14px 16px;
    resize: none; outline: none; min-height: 80px; max-height: 200px;
    transition: border-color 0.2s;
}
.query-textarea:focus { border-color: var(--accent); }
.query-textarea::placeholder { color: var(--muted); }
.query-submit {
    flex-shrink: 0; padding: 14px 22px;
    background: var(--accent); color: var(--ink);
    border: none; border-radius: var(--radius);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; font-weight: 500; transition: opacity 0.2s;
    align-self: flex-end; height: 48px;
}
.query-submit:hover { opacity: 0.85; }
.query-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.result-block {
    background: var(--ink-mid); border: 1px solid var(--rule);
    border-radius: var(--radius); overflow: hidden;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--rule);
    background: var(--ink-soft);
}
.result-meta { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.result-actions { display: flex; gap: 8px; align-items: center; }
.translate-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: none;
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--dim); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; cursor: pointer; transition: all 0.15s;
}
.translate-btn:hover { border-color: var(--accent); color: var(--accent); }
.translate-btn.translating { opacity: 0.5; cursor: wait; }
.translate-icon { font-size: 13px; }
.lang-indicator {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--accent); letter-spacing: 0.1em;
    background: var(--accent-dim); padding: 2px 6px; border-radius: 2px;
}
.result-body { padding: 20px; font-size: 14px; line-height: 1.75; color: var(--paper-mid); }
.result-body p { margin-bottom: 12px; }
.result-body p:last-child { margin-bottom: 0; }
.query-history { display: flex; flex-direction: column; gap: 16px; }
.query-bubble { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.query-bubble-text {
    background: var(--ink-soft); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 10px 14px;
    font-size: 13px; color: var(--paper); max-width: 80%; line-height: 1.5;
}
.loading-bar { height: 2px; background: var(--rule); border-radius: 1px; overflow: hidden; }
.loading-bar-inner {
    height: 100%; background: var(--accent); border-radius: 1px;
    animation: loadingPulse 1.2s ease-in-out infinite; width: 40%;
}
@keyframes loadingPulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state-icon { font-size: 32px; margin-bottom: 16px; opacity: 0.4; }
.empty-state-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.example-queries { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.example-chip {
    padding: 6px 14px; background: var(--ink-mid);
    border: 1px solid var(--rule); border-radius: 20px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--dim); cursor: pointer; transition: all 0.15s;
}
.example-chip:hover { border-color: var(--accent); color: var(--accent); }

/* --- MONITOR VIEW --- */
.monitor-view {
    padding: 40px 24px; max-width: 1100px;
    width: 100%; margin: 0 auto; flex-direction: column; gap: 24px;
}
.monitor-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.monitor-search {
    flex: 1; min-width: 200px; background: var(--ink-mid);
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--paper); font-family: var(--font-body);
    font-size: 13px; padding: 9px 14px; outline: none; transition: border-color 0.2s;
}
.monitor-search:focus { border-color: var(--accent); }
.monitor-search::placeholder { color: var(--muted); }
.filter-btn {
    padding: 8px 14px; background: var(--ink-mid);
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--dim); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* --- STATS --- */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); }
.stat-box { background: var(--ink); padding: 24px 32px; }
.stat-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 36px; color: var(--paper); line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: 11px; color: var(--dim); }

/* --- SENTIMENT --- */
.sentiment-bar-wrap {
    background: var(--ink-mid); border: 1px solid var(--rule);
    border-radius: 8px; padding: 16px 20px;
    display: flex; align-items: center; gap: 20px;
    flex-wrap: wrap; width: 100%; box-sizing: border-box; margin-bottom: 16px;
}
.sentiment-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); flex-shrink: 0; }
.sentiment-track { flex: 1; min-width: 200px; height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; display: flex; }
.sentiment-seg { height: 100%; transition: width 0.5s ease; }
.seg-positive { background: var(--green); }
.seg-neutral { background: var(--signal); }
.seg-negative { background: var(--red); }
.sentiment-legend { display: flex; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* --- ARTICLES --- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.article-card {
    background: var(--ink-mid); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 18px;
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color 0.2s; position: relative; overflow: hidden;
}
.article-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--rule); transition: background 0.2s;
}
.article-card:hover { border-color: var(--ink-soft); }
.article-card:hover::before { background: var(--accent); }
.article-source-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.article-source { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.article-date { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.article-title { font-size: 14px; font-weight: 500; color: var(--paper); line-height: 1.45; }
.article-summary { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; background: var(--ink-soft); color: var(--dim); border: 1px solid var(--rule); }
.tag.high { background: rgba(192,57,43,0.1); color: #e74c3c; border-color: rgba(192,57,43,0.3); }
.tag.medium { background: rgba(232,184,75,0.1); color: var(--signal); border-color: rgba(232,184,75,0.3); }
.article-link { font-family: var(--font-mono); font-size: 10px; color: var(--dim); text-decoration: none; letter-spacing: 0.06em; transition: color 0.15s; flex-shrink: 0; }
.article-link:hover { color: var(--accent); }
.article-translate-btn { background: none; border: none; color: var(--dim); font-family: var(--font-mono); font-size: 10px; cursor: pointer; letter-spacing: 0.06em; transition: color 0.15s; padding: 0; }
.article-translate-btn:hover { color: var(--accent); }

/* --- BRIEF --- */
.brief-card { margin: 0 0 16px; background: var(--ink-mid); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.brief-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.brief-text { font-size: 13px; line-height: 1.7; color: var(--paper); }
.brief-footer { margin-top: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--dim); }

/* --- STAKEHOLDER VIEW --- */
.stakeholder-view { padding: 40px 24px; max-width: 1100px; width: 100%; margin: 0 auto; flex-direction: column; gap: 24px; }
.stakeholder-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stakeholder-search { flex: 1; min-width: 200px; background: var(--ink-mid); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--paper); font-family: var(--font-body); font-size: 13px; padding: 9px 14px; outline: none; transition: border-color 0.2s; }
.stakeholder-search:focus { border-color: var(--accent); }
.stakeholder-search::placeholder { color: var(--muted); }
.stakeholder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.stakeholder-card { background: var(--ink-mid); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s; position: relative; }
.stakeholder-card:hover { border-color: var(--ink-soft); }
.stakeholder-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stakeholder-name { font-family: var(--font-display); font-size: 17px; color: var(--paper); line-height: 1.3; }
.stakeholder-name-zh { font-size: 13px; color: var(--dim); margin-top: 2px; font-family: var(--font-body); }
.stakeholder-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.stakeholder-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.stakeholder-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- CONFIDENCE BADGES --- */
.confidence-badge { flex-shrink: 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.confidence-HIGH, .conf-high { background: rgba(192,57,43,0.15); color: #e74c3c; border: 1px solid rgba(192,57,43,0.3); }
.confidence-MEDIUM, .conf-medium { background: rgba(232,184,75,0.12); color: var(--signal); border: 1px solid rgba(232,184,75,0.3); }
.confidence-LOW, .conf-low { background: var(--ink-soft); color: var(--dim); border: 1px solid var(--rule); }
.conf-verified { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(200,169,110,0.3); }

/* --- RELATIONSHIPS --- */
.relationships { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 12px; }
.relationships-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.rel-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rel-arrow { font-family: var(--font-mono); font-size: 10px; color: var(--accent); flex-shrink: 0; }
.rel-target { color: var(--paper-mid); }
.rel-type { font-family: var(--font-mono); font-size: 9px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* --- MEMO COMPONENTS --- */
.memo-card { background: var(--ink-mid); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: border-color 0.2s; }
.memo-card:hover { border-color: rgba(200,169,110,0.3); }
.memo-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.memo-title { font-size: 14px; font-weight: 700; color: var(--paper); }
.memo-meta { font-size: 11px; color: var(--dim); margin-top: 4px; letter-spacing: 0.06em; }
.memo-body { padding: 0 20px 20px; display: none; }
.memo-body.open { display: block; }
.memo-section { margin-bottom: 16px; }
.memo-section-label { font-size: 10px; letter-spacing: 3px; color: #335566; margin-bottom: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; text-transform: uppercase; }
.memo-text { font-size: 13px; line-height: 1.8; color: var(--paper-mid); white-space: pre-wrap; }
.edit-btn { padding: 8px 20px; background: none; border: 1px solid rgba(200,169,110,0.3); color: var(--accent); cursor: pointer; font-size: 11px; letter-spacing: 0.1em; border-radius: var(--radius); margin-top: 8px; font-family: var(--font-mono); text-transform: uppercase; }
.edit-btn:hover { background: var(--accent-dim); }
.edit-title { width: 100%; font-size: 14px; font-weight: bold; color: var(--accent); background: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 8px; box-sizing: border-box; font-family: var(--font-body); }
.edit-conf-row { display: flex; }
.conf-edit-btn { flex: 1; padding: 7px 4px; border: 1px solid var(--rule); background: none; color: var(--dim); cursor: pointer; font-size: 10px; letter-spacing: 0.1em; border-radius: var(--radius); font-family: var(--font-mono); }
.conf-edit-btn:hover { background: var(--accent-dim); }
.conf-edit-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.edit-area { width: 100%; padding: 12px; background: var(--ink); border: 1px solid var(--rule); color: var(--paper); font-family: var(--font-body); font-size: 13px; border-radius: var(--radius); outline: none; resize: vertical; min-height: 120px; display: none; margin-top: 8px; }
.save-btn { padding: 8px 20px; background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); cursor: pointer; font-size: 11px; letter-spacing: 0.1em; border-radius: var(--radius); margin-top: 8px; display: none; font-family: var(--font-mono); text-transform: uppercase; }
.save-btn:hover { background: rgba(200,169,110,0.2); }
.cancel-btn { padding: 8px 16px; background: none; border: 1px solid #666; color: #aaa; cursor: pointer; font-size: 11px; letter-spacing: 0.1em; border-radius: var(--radius); margin-top: 8px; font-family: var(--font-mono); text-transform: uppercase; }
.cancel-btn:hover { border-color: var(--paper); color: var(--paper); }
.delete-btn { padding: 8px 16px; background: none; border: 1px solid var(--red); color: var(--red); cursor: pointer; font-size: 11px; letter-spacing: 0.1em; border-radius: var(--radius); margin-top: 8px; margin-left: 8px; font-family: var(--font-mono); text-transform: uppercase; }
.delete-btn:hover { background: rgba(192,57,43,0.1); }

/* --- INPUTS --- */
input, textarea, select {
    background: var(--ink-mid); border: 1px solid var(--rule);
    color: var(--paper); font-family: var(--font-body);
    font-size: 13px; border-radius: var(--radius);
    padding: 8px 12px; outline: none; transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* --- MISC --- */
.divider { height: 1px; background: var(--rule); width: 100%; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 6px rgba(46,204,113,0.6); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.no-results { grid-column: 1/-1; text-align: center; padding: 48px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink-mid); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 12px 18px; font-family: var(--font-mono); font-size: 11px; color: var(--paper); border-radius: var(--radius); z-index: 200; animation: toastIn 0.3s ease; letter-spacing: 0.04em; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.thdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: dotPulse 1.2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.5); opacity: 0.3; } }
@keyframes inkDot { 0%,80%,100% { opacity:.15; transform:scale(.8); } 40% { opacity:1; transform:scale(1); } }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .stakeholder-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
}
