@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: #f3ead8;
  --paper-deep: #e8dcc5;
  --ink: #17211e;
  --muted: #68716a;
  --blue: #365dcc;
  --blue-dark: #28459b;
  --red: #ef654e;
  --line: #cfc4ae;
  --white: #fffaf0;
  --green: #22c55e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; color: var(--ink); background: var(--paper); font-family: "IBM Plex Sans", system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(#635b4b 0.55px, transparent .55px); background-size: 7px 7px; mix-blend-mode: multiply; }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }

/* TOPBAR */
.topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding: 14px clamp(20px, 4vw, 40px); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 14px; text-transform: uppercase; }
.brand-badge { display: grid; place-items: center; width: 28px; height: 28px; background: var(--blue); color: var(--white); border: 2px solid var(--ink); font-size: 16px; font-weight: 800; transform: rotate(-3deg); }
.topbar-status { display: flex; align-items: center; gap: 8px; font-family: "DM Mono", monospace; font-size: 11px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 6px var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.route-link, .btn-history, .btn-auth, .nav-btn { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .06em; padding: 8px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; box-shadow: 3px 3px 0 var(--ink); transition: .12s ease; cursor: pointer; }
.route-link:hover, .btn-history:hover, .btn-auth:hover, .nav-btn:hover { background: var(--paper-deep); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-enter { background: var(--blue); color: var(--white); }
.btn-enter:hover { background: var(--blue-dark); color: var(--white); }
.btn-auth.is-logged-in { background: #dcfce7; border-color: #166534; color: #166534; font-weight: 700; }

/* VIEWPORT */
.viewport { max-width: 1440px; margin: auto; padding: 24px clamp(16px, 3vw, 40px); }

/* LANDING HERO */
.landing-hero { max-width: 860px; margin: 40px auto 60px; text-align: center; }
.hero-tag { display: inline-block; background: var(--paper-deep); border: 1.5px solid var(--ink); padding: 6px 12px; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .1em; margin-bottom: 20px; }
.hero-title { font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -.05em; margin: 0 0 24px; font-weight: 800; }
.hero-subtitle { font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: #475569; max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--blue); color: var(--white); border: 2px solid var(--ink); padding: 14px 24px; font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .08em; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 700; transition: .15s ease; }
.btn-primary:hover { background: var(--blue-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); border: 2px solid var(--ink); padding: 14px 22px; font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .08em; box-shadow: 4px 4px 0 var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: .15s ease; cursor: pointer; }
.btn-secondary:hover { background: var(--paper-deep); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* PERSONA CARDS */
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 60px; }
.persona-card { background: var(--white); border: 2px solid var(--ink); padding: 24px; box-shadow: 4px 4px 0 var(--blue); }
.persona-icon { font-size: 32px; margin-bottom: 12px; }
.persona-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.persona-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.45; }

/* CATALOG */
.catalog-strip { border-top: 2px solid var(--ink); padding-top: 30px; margin-bottom: 40px; }
.catalog-header { font-family: "DM Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: .12em; margin-bottom: 16px; text-align: center; }
.catalog-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag { border: 1.5px solid var(--ink); background: var(--paper-deep); padding: 6px 12px; font-family: "DM Mono", monospace; font-size: 11px; }

/* ── NEWS FEED VIEW ── */
.feed-header { text-align: center; max-width: 960px; margin: 30px auto 40px; }
.feed-badge { display: inline-block; background: var(--blue); color: var(--white); padding: 6px 14px; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .08em; font-weight: 700; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); margin-bottom: 14px; }
.feed-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; margin: 0 0 12px; }
.feed-subtitle { color: #475569; font-size: 15px; line-height: 1.5; margin: 0 auto 20px; max-width: 720px; }

/* SEARCH BAR */
.feed-search-container { max-width: 680px; margin: 0 auto 18px; }
.feed-search-row { display: flex; align-items: center; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 4px 12px; gap: 8px; }
.feed-search-icon { font-size: 18px; line-height: 1; }
.feed-search-input { flex: 1; border: 0; outline: none; padding: 10px 4px; font-size: 14px; background: transparent; font-family: "IBM Plex Sans", sans-serif; color: var(--ink); }
.feed-search-clear { border: 0; background: var(--paper-deep); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; display: grid; place-items: center; cursor: pointer; }
.feed-search-clear:hover { background: #cbd5e1; }

/* STATS COUNTERS */
.feed-stats-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.feed-stats-pill { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; background: var(--paper-deep); border: 1.5px solid var(--ink); padding: 5px 12px; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
#feed-stats-total { background: #dbeafe; color: var(--blue-dark); border-color: var(--blue); }

.feed-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.feed-filter { border: 1.5px solid var(--ink); background: var(--white); font-family: "DM Mono", monospace; font-size: 11px; padding: 7px 14px; font-weight: 700; transition: .12s; }
.feed-filter:hover { background: var(--paper-deep); }
.feed-filter.is-active { background: var(--ink); color: var(--white); box-shadow: 2px 2px 0 var(--blue); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-bottom: 40px; }
.news-card { background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; overflow: hidden; transition: .15s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 7px 7px 0 var(--blue); }

.news-card-publisher { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--paper-deep); border-bottom: 1.5px solid var(--ink); }
.publisher-info { display: flex; align-items: center; gap: 8px; }
.publisher-logo { font-size: 18px; line-height: 1; }
.publisher-name { font-weight: 700; font-size: 12px; letter-spacing: -.02em; }
.publisher-domain { font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }

.news-card-media { position: relative; width: 100%; height: 180px; overflow: hidden; background: #e2e8f0; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-tag-pill { position: absolute; bottom: 10px; left: 10px; background: rgba(15, 23, 42, 0.9); color: var(--white); border: 1px solid rgba(255,255,255,0.3); padding: 3px 8px; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .06em; }

.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; margin: 0 0 10px; cursor: pointer; transition: color .12s; }
.news-card-title:hover { color: var(--blue); }
.news-card-media { position: relative; width: 100%; height: 180px; overflow: hidden; background: #e2e8f0; cursor: pointer; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.news-card:hover .news-card-media img { transform: scale(1.03); }

.news-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: auto; }
.news-meta-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.news-game-tag { font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; background: var(--paper-deep); border: 1px solid var(--ink); padding: 2px 7px; }
.news-date { font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }
.news-rating-tag { font-family: "DM Mono", monospace; font-size: 9px; color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; padding: 2px 5px; }

.news-card-buttons { display: flex; align-items: center; gap: 6px; }
.btn-read-story { font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; color: var(--ink); background: var(--paper-deep); border: 1.5px solid var(--ink); padding: 6px 10px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; transition: .12s; }
.btn-read-story:hover { background: var(--paper); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-read-source { font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; color: var(--white); background: var(--blue); border: 1.5px solid var(--ink); padding: 6px 12px; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); transition: .12s; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.btn-read-source:hover { background: var(--blue-dark); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* FEED FOOTER CONTROLS */
.feed-footer-controls { display: flex; justify-content: center; gap: 14px; margin-bottom: 70px; flex-wrap: wrap; }
.btn-load-more { background: var(--blue); color: var(--white); border: 2px solid var(--ink); padding: 14px 28px; font-family: "DM Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; box-shadow: 4px 4px 0 var(--ink); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: .15s ease; }
.btn-load-more:hover { background: var(--blue-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-random-page, .btn-top-page { background: var(--white); color: var(--ink); border: 2px solid var(--ink); padding: 14px 22px; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .06em; box-shadow: 4px 4px 0 var(--ink); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: .15s ease; }
.btn-random-page:hover, .btn-top-page:hover { background: var(--paper-deep); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* CHAT VIEW */
.chat-view { display: grid; grid-template-columns: 320px 1fr; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--blue); min-height: 720px; }
.sidebar { background: var(--paper-deep); border-right: 2px solid var(--ink); padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.sidebar-block { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.select-field { width: 100%; border: 2px solid var(--ink); padding: 10px 12px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink); }
.player-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.player-option input { position: absolute; opacity: 0; }
.player-option span { display: grid; place-items: center; min-width: 38px; height: 36px; border: 1.5px solid var(--ink); font-family: "DM Mono", monospace; font-size: 12px; background: var(--white); padding: 0 8px; transition: .12s; }
.player-option input:checked + span { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 2px 2px 0 var(--ink); }
.field-hint { font-size: 11px; color: var(--muted); font-family: "DM Mono", monospace; margin-top: 4px; }
.toggle-control { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.toggle-control input { accent-color: var(--blue); width: 16px; height: 16px; }
.session-info { border-top: 1.5px solid var(--line); padding-top: 14px; }
.session-label { font-family: "DM Mono", monospace; font-size: 9px; color: var(--muted); letter-spacing: .1em; }
.session-val { font-size: 12px; font-weight: 700; margin-top: 4px; }

/* HISTORY PANEL IN SIDEBAR */
.history-block { border-top: 1.5px solid var(--line); padding-top: 14px; flex: 1; }
.history-panel-header { font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.history-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.history-item { border: 1.5px solid var(--ink); background: var(--white); padding: 8px 10px; font-size: 11px; text-align: left; cursor: pointer; transition: .12s ease; }
.history-item:hover { background: var(--paper); transform: translate(1px, 1px); }
.history-item-game { font-weight: 700; }
.history-item-meta { font-family: "DM Mono", monospace; font-size: 9px; color: var(--muted); margin-top: 2px; }
.history-empty { font-size: 11px; color: var(--muted); font-style: italic; padding: 4px 0; }

/* CHAT STAGE */
.chat-stage { display: flex; flex-direction: column; height: 100%; min-height: 720px; }
.chat-stage-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-bottom: 1.5px solid var(--line); }
.stage-title { display: flex; align-items: center; gap: 12px; }
.section-num { font-family: "DM Mono", monospace; color: var(--red); font-size: 12px; font-weight: 700; }
.stage-title h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.chat-stats { font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }

.message-stream { flex: 1; padding: 24px 28px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 18px; }
.message { max-width: 80%; animation: rise .25s ease-out; }
.message-user { align-self: flex-end; }
.message-assistant { align-self: flex-start; }
.message-meta { display: flex; align-items: center; gap: 8px; font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.avatar { display: grid; place-items: center; width: 22px; height: 22px; background: var(--blue); color: var(--white); font-weight: 700; font-size: 11px; border: 1px solid var(--ink); }
.message-user .avatar { background: var(--red); }
.message p { margin: 0; border: 1.5px solid var(--ink); padding: 14px 18px; line-height: 1.5; font-size: 14px; background: var(--paper); }
.message-assistant p { background: #eef1fb; }
.message-user p { background: var(--blue); color: var(--white); border-color: var(--blue); }
.message-evidence { padding: 6px 2px 0; font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }
.message-images { display: flex; gap: 8px; margin-top: 8px; }
.message-images img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--ink); }

/* COMPOSER */
.composer { border-top: 2px solid var(--ink); padding: 18px 28px; background: #fbf6ea; }
.composer-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.attachment-chip { display: flex; align-items: center; gap: 6px; background: var(--paper-deep); border: 1px solid var(--ink); padding: 4px 6px; font-size: 11px; }
.attachment-chip img { width: 24px; height: 24px; object-fit: cover; }
.attachment-chip button { border: 0; background: transparent; font-size: 16px; cursor: pointer; padding: 0 2px; }
.composer-row { display: flex; gap: 10px; }
.composer-input { flex: 1; border: 2px solid var(--ink); padding: 12px 16px; font-size: 14px; background: var(--white); }
.btn-icon { width: 48px; border: 2px solid var(--ink); background: var(--white); font-size: 20px; display: grid; place-items: center; }
.send-button { background: var(--blue); color: var(--white); border: 2px solid var(--ink); padding: 0 24px; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; box-shadow: 3px 3px 0 var(--ink); }
.send-button:disabled { opacity: .6; cursor: wait; }
.composer-footer { margin-top: 8px; font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }

/* AUTH MODAL */
.auth-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-card { background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); width: 100%; max-width: 480px; padding: 30px; position: relative; }
.auth-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.auth-header-title { display: flex; align-items: center; gap: 12px; }
.auth-icon { font-size: 26px; }
.auth-header-title h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.auth-header-title p { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-family: "DM Mono", monospace; }
.auth-close-btn { border: 1.5px solid var(--ink); background: var(--paper-deep); width: 32px; height: 32px; font-size: 14px; font-weight: 700; }

.auth-alert { background: #fee2e2; border: 1.5px solid #ef4444; color: #991b1b; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px; border-radius: 4px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1.5px solid var(--line); padding-bottom: 10px; }
.auth-tab { flex: 1; border: 1.5px solid var(--ink); background: var(--paper-deep); padding: 9px; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; transition: .12s; }
.auth-tab.is-active { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 2px 2px 0 var(--ink); }

/* ISOLATED TAB PANELS */
.auth-tab-panel { display: flex; flex-direction: column; width: 100%; }

.auth-description { font-size: 13px; line-height: 1.5; color: #475569; margin: 0 0 22px; }
.btn-google-oauth { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 2px solid var(--ink); padding: 14px 16px; font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: .12s; }
.btn-google-oauth:hover { background: #f8fafc; transform: translate(1px, 1px); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.auth-input { border: 2px solid var(--ink); padding: 11px 13px; font-size: 14px; background: #fff; width: 100%; }
.btn-auth-submit { background: var(--blue); color: var(--white); border: 2px solid var(--ink); padding: 13px; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; box-shadow: 3px 3px 0 var(--ink); margin-top: 6px; cursor: pointer; }
.btn-auth-submit:hover { background: var(--blue-dark); }

.profile-card { background: var(--paper-deep); border: 1.5px solid var(--ink); padding: 18px; display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.profile-avatar { width: 48px; height: 48px; background: var(--blue); color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.profile-info h3 { margin: 0; font-size: 17px; }
.profile-info p { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.profile-badge { font-family: "DM Mono", monospace; font-size: 10px; background: #dcfce7; color: #166534; padding: 3px 7px; border: 1px solid #86efac; }
.profile-actions { display: flex; gap: 10px; }
.btn-signout { flex: 1; border: 1.5px solid var(--red); background: #fee2e2; color: #991b1b; padding: 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-return { flex: 1; border: 1.5px solid var(--ink); background: var(--blue); color: #fff; padding: 11px; font-weight: 700; font-size: 12px; cursor: pointer; }

/* ARTICLE DISPATCH READER MODAL */
.article-modal-card { max-width: 680px; max-height: 90vh; overflow-y: auto; padding: 28px; }
.article-modal-publisher-logo { font-size: 28px; line-height: 1; }
.article-modal-media { position: relative; width: 100%; height: 240px; overflow: hidden; background: #e2e8f0; margin-bottom: 20px; border: 1.5px solid var(--ink); }
.article-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.article-modal-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.article-modal-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 12px; }
.article-modal-summary { font-size: 15px; font-weight: 500; color: #334155; line-height: 1.55; margin: 0 0 16px; background: var(--paper-deep); border-left: 3px solid var(--blue); padding: 10px 14px; }
.article-modal-body { font-size: 14px; line-height: 1.6; color: #475569; margin-bottom: 24px; }
.article-modal-body p { margin: 0 0 12px; }
.article-modal-body a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.article-quote-box { background: #f8fafc; border: 1.5px dashed var(--line); padding: 12px 16px; margin: 16px 0; font-style: italic; color: #1e293b; }
.article-quote-box p { margin: 0; }
.article-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; border-top: 1.5px solid var(--line); padding-top: 18px; }
.btn-article-visit { flex: 1; min-width: 220px; justify-content: center; text-decoration: none; }
#article-modal-ask-btn { flex: 1; min-width: 220px; justify-content: center; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 840px) {
  .chat-view { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 2px solid var(--ink); }
  .article-modal-media { height: 180px; }
}
