/* ============================================================
   Lubri POC — light theme (white + yellow/gold accents)
   Fonts: Inter (body) · Space Grotesk (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg:        #ffffff;
  --bg-2:      #fbfbfc;
  --panel:     #f7f8fa;
  --panel-2:   #f1f3f6;
  --line:      #e5e7ec;
  --line-soft: #eef0f3;

  --ink:       #16181d;
  --ink-dim:   #5b616b;
  --ink-faint: #9aa0aa;

  --yellow:    #fef100;   /* brand yellow — fills / highlights */
  --yellow-dk: #f2d900;
  --gold:      #c79a1e;   /* legible gold — text accents on white */
  --gold-hi:   #e7b64b;
  --gold-deep: #a9781f;
  --steel:     #3d6d94;
  --green:     #2f9e63;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 14px 40px -18px rgba(20,25,40,.28);
  --shadow-sm: 0 4px 14px -8px rgba(20,25,40,.20);
  --shadow-gold: 0 10px 30px -10px rgba(242,217,0,.55);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Grotesk', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(254,241,0,.5); color: #16181d; }

/* ---------- App shell ---------- */
.app {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 26px 16px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand .drop { width: 30px; height: auto; }
.brand h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -.5px; line-height: 1;
}
.brand h1 span { color: var(--gold); }
.brand small {
  display: block; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 3px; color: var(--ink-faint); margin-top: 3px; text-transform: uppercase;
}

.topbar .spacer { flex: 1; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 4px;
  padding: 6px 20px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 71px; z-index: 39;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
}
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-faint); padding: 14px 16px; position: relative;
  transition: color .2s;
}
.tab:hover { color: var(--ink-dim); }
.tab.active { color: var(--ink); }
.tab.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}

/* ---------- Content ---------- */
main { padding: 28px 26px 80px; flex: 1; }

.view-enter { animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 10px; margin: 4px 0 16px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; margin-bottom: 26px;
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(254,241,0,.22), transparent 62%),
    linear-gradient(180deg, #ffffff, var(--panel));
  box-shadow: var(--shadow-sm);
}
.hero h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  letter-spacing: -.8px; line-height: 1.05; max-width: 20ch; color: var(--ink);
}
.hero h2 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--ink-dim); margin-top: 12px; max-width: 46ch; font-size: 14.5px; }
.hero .drop-bg {
  position: absolute; right: 18px; top: 16px; width: 128px; height: auto; opacity: .95;
}

/* Agent access — Siri / AI assistant look */
.agent-shell { position: relative; margin-top: 26px; border-radius: 100px; }
/* soft rotating conic glow — blurred so it reads as an aura, not an outline */
.agent-shell::before {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from 0deg,
    var(--yellow), #ffd36b, var(--gold-hi), #fff6c0, var(--yellow-dk), var(--yellow));
  filter: blur(14px); opacity: .5;
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* soft breathing aura behind the bar */
.agent-aura {
  position: absolute; inset: -12px; border-radius: 120px; z-index: -1;
  background: radial-gradient(60% 90% at 22% 50%, rgba(254,241,0,.4), transparent 70%),
             radial-gradient(60% 90% at 82% 50%, rgba(231,182,75,.3), transparent 70%);
  filter: blur(18px); animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.02); } }

.agent-bar {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 100px; padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow-sm);
}

/* animated assistant orb */
.agent-orb {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; position: relative;
  display: grid; place-items: center;
  background: conic-gradient(from 0deg, var(--yellow), #ffcf5a, var(--gold-hi), #fff3b0, var(--yellow));
  box-shadow: 0 0 0 3px rgba(254,241,0,.18), 0 4px 12px -4px rgba(199,154,30,.6);
  animation: orbFloat 3.6s ease-in-out infinite;
}
.agent-orb .orb-core {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff, rgba(255,255,255,.35) 55%, transparent 70%);
  animation: orbPulse 2.2s ease-in-out infinite;
}
@keyframes orbFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1px) scale(1.05); } }
@keyframes orbPulse { 0%,100% { opacity: .8; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

.agent-input {
  flex: 1; background: none; border: 0; outline: none; color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; letter-spacing: -.1px;
}
.agent-input::placeholder { color: var(--ink-faint); }
.mic-btn, .send-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-dim); cursor: pointer;
  display: grid; place-items: center; transition: all .2s; flex-shrink: 0;
}
.mic-btn:hover, .send-btn:hover { color: var(--ink); border-color: var(--gold); }
.send-btn { background: var(--yellow); color: #16181d; border-color: var(--yellow-dk); }
.send-btn:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); color: #16181d; }

/* listening state — orb + aura light up */
.agent-shell.listening .agent-aura { animation-duration: 1.2s; opacity: 1; }
.agent-shell.listening .agent-orb { animation: orbListen 1s ease-in-out infinite; }
@keyframes orbListen {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(254,241,0,.25), 0 0 0 0 rgba(254,241,0,.5); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(254,241,0,.3), 0 0 0 12px rgba(254,241,0,0); }
}
.mic-btn.listening { color: var(--gold-deep); border-color: var(--yellow-dk); background: rgba(254,241,0,.18); }

/* Home top-of-catalog columns */
.home-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-col {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 16px 14px;
}
.home-col h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .3px; color: var(--ink); margin: 0 4px 10px;
  display: flex; align-items: center; gap: 7px;
}
.home-col h4::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); box-shadow: 0 0 0 3px rgba(254,241,0,.2); }
.mini-list { display: flex; flex-direction: column; }
.mini-item {
  display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;
  background: none; border: 0; border-radius: 8px; padding: 9px 8px; text-align: left;
  font-family: var(--font-body); color: var(--ink); transition: all .15s;
}
.mini-item + .mini-item { border-top: 1px solid var(--line-soft); }
.mini-item:hover { background: var(--panel); }
.mini-item .mini-rank { font-family: var(--font-mono); font-size: 11px; color: var(--gold); width: 20px; flex-shrink: 0; }
.mini-item .mini-name { flex: 1; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .mini-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); flex-shrink: 0; }

/* News grid */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 16px 18px; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.news-card:first-child { grid-column: 1 / -1; padding: 22px; background: var(--panel); }
.news-card:hover { border-color: var(--gold-hi); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.news-card .ntag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.2px;
  padding: 3px 8px; border-radius: 100px; text-transform: uppercase; border: 1px solid var(--line);
}
.ntag.amber { color: var(--gold-deep); border-color: rgba(199,154,30,.4); background: rgba(254,241,0,.12); }
.ntag.steel { color: var(--steel); border-color: rgba(61,109,148,.35); background: rgba(61,109,148,.06); }
.ntag.green { color: var(--green); border-color: rgba(47,158,99,.35); background: rgba(47,158,99,.06); }
.news-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  line-height: 1.25; margin: 12px 0 10px; letter-spacing: -.2px; color: var(--ink);
}
.news-card:first-child h3 { font-size: 22px; font-weight: 700; max-width: 24ch; }
.news-card .meta { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ============================================================
   LIST VIEWS
   ============================================================ */
.list-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.list-toolbar h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -.6px; flex: 1; color: var(--ink);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-dim); cursor: pointer;
  display: grid; place-items: center; transition: all .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--gold); background: var(--panel); }
.icon-btn.active { color: var(--gold-deep); border-color: var(--yellow-dk); background: rgba(254,241,0,.14); }

.search-wrap { overflow: hidden; height: 0; transition: height .25s ease, margin .25s ease; margin: 0; }
.search-wrap.open { height: 48px; margin-bottom: 18px; }
.search-wrap input {
  width: 100%; height: 48px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 0 18px; color: var(--ink); font-size: 15px;
  font-family: var(--font-body); outline: none;
}
.search-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(254,241,0,.18); }

.filter-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--yellow-dk); background: rgba(254,241,0,.14);
  font-size: 13px; color: #7a6a00;
}
.filter-note button {
  margin-left: auto; background: #fff; border: 1px solid var(--line);
  color: var(--ink-dim); border-radius: 8px; padding: 4px 10px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
}
.filter-note button:hover { color: var(--ink); border-color: var(--gold); }

.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; transition: all .16s;
}
.row:hover { border-color: var(--gold-hi); background: var(--bg-2); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.row .thumb {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: #4a3c00;
  background: linear-gradient(135deg, #fff7a8, var(--yellow));
  box-shadow: inset 0 -2px 6px rgba(180,150,0,.25);
}
.row .thumb.steel { background: linear-gradient(135deg, #dcebf6, #7fa9c9); color: #12303f; }
.row .body { flex: 1; min-width: 0; }
.row .body .title { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.row .body .sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.row .body .sub .mono { font-family: var(--font-mono); }
.row .rank {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; background: var(--panel);
}
.star {
  width: 34px; height: 34px; flex-shrink: 0; cursor: pointer; border: 0; background: none;
  color: var(--ink-faint); display: grid; place-items: center; transition: all .18s;
}
.star:hover { color: var(--gold); transform: scale(1.15); }
.star.on { color: var(--gold-hi); filter: drop-shadow(0 1px 2px rgba(199,154,30,.4)); }

.group-head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 22px 0 10px; display: flex; align-items: center; gap: 8px;
}
.group-head:first-child { margin-top: 0; }
.group-head .fav-ico { color: var(--gold-hi); display: grid; place-items: center; }

.empty { text-align: center; color: var(--ink-faint); padding: 40px; font-size: 14px; }

/* ============================================================
   SINGLE VIEW
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 22px;
}
.back-link:hover { color: var(--gold-deep); }

.detail-head { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 26px; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 28%, #fffbc7, var(--yellow) 55%, var(--yellow-dk) 100%);
  box-shadow: 0 16px 36px -14px rgba(242,217,0,.6), inset 0 -8px 20px rgba(180,150,0,.25);
}
.avatar::after {
  content: ''; position: absolute; top: 18px; left: 24px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(4px);
}
.avatar span { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #4a3c00; }
.avatar.steel { background: radial-gradient(circle at 32% 28%, #eaf3fa, #7fa9c9 55%, #4d7999 100%); }
.avatar.steel span { color: #12303f; }

.detail-head .info { flex: 1; padding-top: 6px; }
.detail-head .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-deep);
}
.detail-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  letter-spacing: -.8px; line-height: 1.05; margin: 8px 0 10px; color: var(--ink);
}
.detail-head .desc { color: var(--ink-dim); font-size: 14.5px; max-width: 54ch; line-height: 1.5; }
.detail-head .head-star { margin-left: auto; }

.brand-link {
  color: var(--gold-deep); cursor: pointer; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(199,154,30,.35); transition: all .15s;
}
.brand-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* brand card (brand detail view) */
.brand-card {
  display: flex; gap: 24px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--panel));
  padding: 24px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.brand-card .avatar { width: 92px; height: 92px; }
.brand-card .avatar span { font-size: 24px; }
.brand-card-body { flex: 1; min-width: 0; }
.brand-card-top { display: flex; align-items: flex-start; gap: 12px; }
.brand-card-top > div:first-child { flex: 1; }
.brand-card .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-deep);
}
.brand-card h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -.6px; line-height: 1.05; margin: 6px 0 0; color: var(--ink);
}
.brand-card .desc { color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 12px 0 16px; max-width: 60ch; }
.brand-card .head-star { flex-shrink: 0; }
.brand-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 22px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.brand-meta .bm { display: flex; flex-direction: column; gap: 3px; }
.brand-meta .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-faint);
}
.brand-meta .v { font-size: 14px; font-weight: 500; color: var(--ink); }

/* metadata strip */
.meta-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.meta-cell {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px;
  background: #fff; min-width: 120px;
}
.meta-cell .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-faint);
}
.meta-cell .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 4px; color: var(--ink); }
.meta-cell .v.gold { color: var(--gold-deep); }

.offer-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  border: 1px solid var(--yellow-dk); border-radius: 12px;
  background: linear-gradient(90deg, rgba(254,241,0,.22), rgba(254,241,0,.04));
  padding: 14px 18px;
}
.offer-banner .pct { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold-deep); }
.offer-banner .otext { font-size: 13.5px; color: var(--ink-dim); }
.offer-banner .otext b { color: var(--ink); font-weight: 600; }
.offer-banner .details-link {
  margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--gold-deep);
  cursor: pointer; border: 1px solid var(--yellow-dk); padding: 7px 12px; border-radius: 8px; background: #fff;
}
.offer-banner .details-link:hover { background: rgba(254,241,0,.16); }

/* actions */
.actions-block { margin-bottom: 14px; }
.actions-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: #fff; transition: all .18s; text-align: left;
  font-family: var(--font-body); color: var(--ink); width: 100%;
}
.action:hover { border-color: var(--gold); background: var(--bg-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.action .a-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--gold-deep); flex-shrink: 0;
}
.action .a-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.action .a-sub { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.action.hero-action {
  background: linear-gradient(180deg, rgba(254,241,0,.2), rgba(254,241,0,.05));
  border-color: var(--yellow-dk);
}
.action.hero-action .a-ico { background: var(--yellow); color: #4a3c00; border: 0; }

.actions-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.action.sm { padding: 13px 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
.action.sm .a-ico { width: 32px; height: 32px; }
.action.sm .a-label { font-size: 13.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; background: var(--panel);
}

/* ============================================================
   Drawer — simulated chat + history
   ============================================================ */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(20,25,40,.32); backdrop-filter: blur(2px);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  background: var(--bg); border-left: 1px solid var(--line); z-index: 101;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(20,25,40,.5);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 12px; padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; flex: 1; color: var(--ink); }
.drawer-head .close { cursor: pointer; color: var(--ink-faint); background: none; border: 0; }
.drawer-head .close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; background: var(--panel); }

.chat-msg { display: flex; gap: 10px; margin-bottom: 16px; animation: fadeUp .35s both; }
.chat-msg .bubble { border-radius: 14px; padding: 12px 15px; font-size: 14px; line-height: 1.5; max-width: 82%; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg.user .bubble { background: var(--yellow); color: #16181d; }
.chat-msg.bot .bubble { background: #fff; border: 1px solid var(--line); color: var(--ink-dim); }
.chat-msg .av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); background: #fff;
}
.typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint);
  margin: 0 2px; animation: blink 1.2s infinite;
}
.typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,80%,100%{opacity:.2;} 40%{opacity:1;} }

.hist-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  margin-bottom: 8px; cursor: pointer; transition: all .16s; background: #fff;
}
.hist-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.hist-item .q { font-size: 14px; color: var(--ink); }
.hist-item .when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 5px; }

.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--bg); }
.drawer-foot input {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 16px; color: var(--ink); outline: none; font-family: var(--font-body); font-size: 14px;
}
.drawer-foot input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(254,241,0,.18); }
.drawer-foot button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yellow); color: #16181d; display: grid; place-items: center;
}

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #16181d; border: 1px solid #2a2d34; border-radius: 100px;
  padding: 11px 20px; font-size: 13px; color: #fff; z-index: 200;
  opacity: 0; transition: all .3s; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
  .actions-primary { grid-template-columns: 1fr; }
  .actions-secondary { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; align-items: center; text-align: center; }
  .detail-head .desc { margin: 0 auto; }
  .detail-head .head-star { margin: 0; }
  .hero h2 { font-size: 24px; }
}

/* footer */
.app-footer {
  padding: 24px 26px 32px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
  color: var(--ink-faint); text-align: center; margin-top: auto;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #d3d6dc; }
::-webkit-scrollbar-track { background: transparent; }
