/* ════════════════════════════════════════════════════════════════════
   Cartel Information Toolkit — Global Stylesheet
   assets/css/styles.css
════════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables ─────────────────────────────────────────────── */
:root {
    --navy:      #09152a;
    --dark-blue: #0d2145;
    --mid-blue:  #163566;
    --acc-blue:  #1e5fa8;
    --lt-blue:   #2e7fd4;
    --gold:      #c89c2c;
    --gold-lt:   #e8b84b;
    --bg:        #f0f3f8;
    --bg2:       #e6eaf2;
    --body-txt:  #3d4a5c;
    --dark-txt:  #111827;
    --border:    #d4dbe8;
}

/* ── 2. Base Reset / Body ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--body-txt);
    font-size: .9rem;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   SHARED CHROME — Top Notice, Header, Navbar, Footer
══════════════════════════════════════════════════════════════════ */

/* ── Top Notice Bar ───────────────────────────────────────────────── */
.top-notice {
    background-color: var(--gold);
    color: var(--navy);
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 0;
}

/* ── Site Header ──────────────────────────────────────────────────── */
.site-header {
    background-color: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 12px 0;
}
.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}
.brand-sub {
    font-size: .7rem;
    color: var(--gold-lt);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.gov-label {
    font-size: .7rem;
    color: #8fa3bb;
    line-height: 1.6;
    text-align: right;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.main-nav { background-color: var(--dark-blue) !important; }
.main-nav .nav-link {
    color: #9aafc4 !important;
    font-size: .83rem;
    font-weight: 500;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--gold-lt) !important; }
.btn-signin {
    background-color: var(--gold);
    color: var(--navy) !important;
    font-size: .77rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 4px;
}
.btn-signin:hover { background-color: var(--gold-lt); }

/* ── Page Sub-Header (search, AI assistant, etc.) ─────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-blue) 60%, var(--mid-blue) 100%);
    padding: 26px 0 22px;
    border-bottom: 3px solid var(--gold);
}
.page-header .breadcrumb-item a {
    color: var(--gold-lt);
    text-decoration: none;
    font-size: .78rem;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item.active {
    color: #8fa3bb;
    font-size: .78rem;
}
.page-header h1 {
    font-family: 'Merriweather', serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 6px 0 4px;
}
.page-header p { color: #92b4d4; font-size: .85rem; margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    background-color: #060d1a;
    color: #697a8d;
    font-size: .83rem;
    padding: 36px 0 22px;
    border-top: 3px solid var(--gold);
}
.footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: .95rem;
}
.footer-brand i { color: var(--gold-lt); }
.footer-desc {
    font-size: .82rem;
    line-height: 1.65;
    color: #566070;
    max-width: 300px;
}
.footer-heading {
    color: #b0c0d0;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #697a8d; text-decoration: none; }
.footer-links a:hover { color: var(--gold-lt); }
.footer-divider { border-color: #1a2535; margin: 24px 0 18px; }
.footer-bottom { font-size: .78rem; color: #4a5a6a; }
.fouo-badge {
    background: rgba(200,156,44,.15);
    border: 1px solid rgba(200,156,44,.4);
    color: var(--gold-lt);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: .06em;
}

/* ══════════════════════════════════════════════════════════════════
   LANDING PAGE  (index.php)
══════════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-blue) 55%, var(--mid-blue) 100%);
    padding: 80px 0 65px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
}
.hero-badge {
    display: inline-block;
    border: 1px solid rgba(200,156,44,.55);
    background: rgba(200,156,44,.12);
    color: var(--gold-lt);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}
.hero h1 span { color: var(--gold-lt); }
.hero .hero-sub { font-size: 1.05rem; color: #92b4d4; margin-bottom: 22px; }
.hero .hero-body { font-size: .95rem; color: #b8cfe6; line-height: 1.75; max-width: 680px; }
.desg-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.desg-pill {
    background: rgba(30,95,168,.3);
    border: 1px solid rgba(46,127,212,.45);
    color: #a8d4ff;
    font-size: .77rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 4px;
    letter-spacing: .04em;
}
.shield-bg {
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%);
    font-size: 18rem;
    color: rgba(255,255,255,.04);
    pointer-events: none;
}
.grad-divider {
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--lt-blue) 60%, transparent);
}

/* Stats Bar */
.stats-bar { background-color: var(--navy); padding: 26px 0; }
.stat-item { text-align: center; }
.stat-num  { display: block; font-size: 1.75rem; font-weight: 700; color: var(--gold-lt); }
.stat-lbl  { font-size: .72rem; color: #7a93aa; text-transform: uppercase; letter-spacing: .09em; }

/* Content Section */
.content-section { padding: 64px 0; }
.sec-kicker {
    text-transform: uppercase; font-size: .72rem; font-weight: 700;
    letter-spacing: .15em; color: var(--acc-blue); margin-bottom: 6px;
}
.sec-title {
    font-family: 'Merriweather', serif;
    font-size: 1.7rem; font-weight: 700;
    color: var(--navy); margin-bottom: 14px;
}
.sec-body { font-size: .92rem; line-height: 1.78; color: var(--body-txt); }

/* Check List */
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 15px; font-size: .9rem; color: var(--body-txt);
}
.chk-dot {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--acc-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.chk-dot i { font-size: .6rem; color: #fff; }
.check-list strong { color: var(--navy); }

/* Feature Cards */
.feature-card {
    display: block;
    background: #fff;
    border: 1px solid #dde4ef;
    border-top: 4px solid var(--acc-blue);
    border-radius: 8px;
    padding: 32px 26px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .28s ease, box-shadow .28s ease, border-top-color .28s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(9,21,42,.14);
    border-top-color: var(--gold);
    color: inherit;
    text-decoration: none;
}
.card-icon {
    width: 58px; height: 58px; border-radius: 12px;
    background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem; color: #fff; margin-bottom: 20px;
}
.card-num {
    font-size: .68rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 7px;
}
.card-title  { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-desc   { font-size: .86rem; color: #5a6a80; line-height: 1.65; margin-bottom: 22px; }
.card-cta    { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--acc-blue); }
.card-cta i  { font-size: .72rem; transition: transform .2s; }
.feature-card:hover .card-cta   { color: var(--gold); }
.feature-card:hover .card-cta i { transform: translateX(4px); }
.card-icon-ai { background: linear-gradient(135deg, #163566, #2e7fd4) !important; }
.card-icon-qa { background: linear-gradient(135deg, #163566, #9c7a1a) !important; }

/* Info Callout */
.info-callout {
    background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
    border-radius: 8px; padding: 28px 30px; margin-top: 40px;
}
.info-callout h6 { color: var(--gold-lt); font-weight: 700; margin-bottom: 8px; }
.info-callout p  { color: #b0c8e4; font-size: .87rem; line-height: 1.7; margin: 0; }


/* ══════════════════════════════════════════════════════════════════
   SEARCH PAGE  (search.php)
══════════════════════════════════════════════════════════════════ */

/* Search Bar */
.search-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    margin-bottom: 20px;
}
.search-wrap .input-group .form-control {
    border-color: var(--border);
    border-right: none;
    padding: .55rem 1rem;
    font-size: .92rem;
    background: #f8fafc;
    border-radius: 6px 0 0 6px;
}
.search-wrap .input-group .form-control:focus {
    border-color: var(--acc-blue);
    box-shadow: 0 0 0 3px rgba(30,95,168,.12);
    background: #fff;
}
.btn-search {
    background: var(--acc-blue);
    color: #fff;
    border: none;
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .88rem;
    border-radius: 0 6px 6px 0;
    transition: background .2s;
}
.btn-search:hover { background: var(--mid-blue); }
.search-hint { font-size: .77rem; color: #7a8fa5; margin-top: 8px; }
.btn-clear-all { font-size: .78rem; color: #c0392b; text-decoration: none; }
.btn-clear-all:hover { color: #a93226; text-decoration: underline; }

/* Active Filter Chips */
.filter-chips {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin-bottom: 14px; align-items: center;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e8eef8; border: 1px solid #c5d0e4;
    color: var(--dark-blue); font-size: .75rem; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.filter-chip .chip-x { color: #8a9bb0; text-decoration: none; margin-left: 2px; font-size: .72rem; }
.filter-chip .chip-x:hover { color: #c0392b; }
.chips-label { font-size: .77rem; color: #7a8fa5; font-weight: 600; }

/* Sidebar */
.sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.sidebar-hdr {
    background: var(--dark-blue); color: #fff;
    padding: 12px 16px; font-size: .82rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: space-between;
}
.filter-section { padding: 14px 16px; border-bottom: 1px solid var(--bg2); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--acc-blue); margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.filter-section-title i.toggle-icon {
    color: #8fa3bb; font-size: .65rem;
    transition: transform .2s; margin-left: auto;
}
.filter-section-title.collapsed i.toggle-icon { transform: rotate(-90deg); }
.filter-check {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 7px;
}
.filter-check label {
    font-size: .83rem; color: var(--body-txt);
    cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.filter-check input[type=checkbox] {
    cursor: pointer; accent-color: var(--acc-blue); width: 14px; height: 14px;
}
.facet-count {
    font-size: .7rem; background: var(--bg2); color: #5a6a80;
    padding: 1px 7px; border-radius: 10px; font-weight: 600;
}

/* Org Name Scrollable List */
.org-list { max-height: 160px; overflow-y: auto; padding-right: 4px; }
.org-list::-webkit-scrollbar { width: 4px; }
.org-list::-webkit-scrollbar-track { background: var(--bg2); }
.org-list::-webkit-scrollbar-thumb { background: #c5d0e4; border-radius: 4px; }

/* Topic Tag Cloud */
.topic-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-tag {
    display: inline-block; padding: 3px 9px; border-radius: 20px;
    cursor: pointer; font-size: .73rem; font-weight: 600;
    text-decoration: none; border: 1px solid var(--border);
    background: #f4f6fb; color: #4a5a70; transition: all .18s;
}
.topic-tag:hover {
    background: var(--dark-blue); color: var(--gold-lt);
    border-color: var(--dark-blue); text-decoration: none;
}
.topic-tag.active { background: var(--acc-blue); color: #fff; border-color: var(--acc-blue); }
.topic-tag.freq-hi { font-size: .8rem; background: #e8eef8; }

/* Results Toolbar */
.results-toolbar {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 16px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.result-count         { font-size: .83rem; color: #5a6a80; }
.result-count strong  { color: var(--navy); }
.sort-select {
    font-size: .81rem; border: 1px solid var(--border); border-radius: 5px;
    padding: 4px 10px; color: var(--body-txt); background: #f8fafc;
}
.sort-select:focus { border-color: var(--acc-blue); outline: none; }
.view-btns .btn-view {
    background: transparent; border: 1px solid var(--border);
    color: #7a8fa5; padding: 5px 10px; border-radius: 4px;
    font-size: .8rem; cursor: pointer; transition: all .18s;
}
.view-btns .btn-view.active,
.view-btns .btn-view:hover {
    background: var(--dark-blue); color: #fff; border-color: var(--dark-blue);
}
.view-btns .btn-view:first-child { border-radius: 4px 0 0 4px; }
.view-btns .btn-view:last-child  { border-radius: 0 4px 4px 0; margin-left: -1px; }
.btn-export {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    font-size: .78rem; font-weight: 600; padding: 5px 12px;
    border-radius: 4px; text-decoration: none; transition: all .18s;
}
.btn-export:hover { background: var(--gold); color: var(--navy); }

/* Results Table */
.results-table-wrap {
    background: #fff; border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
}
.results-table { margin: 0; font-size: .83rem; }
.results-table thead th {
    background: var(--dark-blue); color: #9aafc4;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; padding: 10px 12px; border: none;
    white-space: nowrap; cursor: pointer;
}
.results-table thead th a { color: #9aafc4; text-decoration: none; }
.results-table thead th a:hover { color: var(--gold-lt); }
.results-table thead th .sort-icon { font-size: .6rem; margin-left: 4px; color: #4a6a8a; }
.results-table tbody tr { border-bottom: 1px solid var(--bg2); transition: background .15s; }
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: #f4f7fb; }
.results-table td { padding: 10px 12px; vertical-align: middle; color: var(--body-txt); }
.title-cell a {
    color: var(--acc-blue); text-decoration: none;
    font-weight: 500; font-size: .84rem; line-height: 1.4;
}
.title-cell a:hover { color: var(--mid-blue); text-decoration: underline; }
.title-cell .local-note { font-size: .72rem; color: #a0aab8; display: block; }
.org-cell              { font-size: .8rem; }
.org-cell .org-name    { font-weight: 600; color: var(--dark-txt); }

/* Badges */
.badge-src {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .7rem; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; white-space: nowrap;
}
.badge-website { background: #e3f0fd; color: #1565c0; }
.badge-doc     { background: #fce8e6; color: #b71c1c; }
.org-badge {
    display: inline-block; font-size: .65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 3px; margin-top: 3px;
}
.org-gov   { background: #e8f5e9; color: #2e7d32; }
.org-acad  { background: #e3f2fd; color: #1565c0; }
.org-think { background: #fff8e1; color: #f57f17; }
.org-np    { background: #f3e5f5; color: #6a1b9a; }
.org-def   { background: #fce4ec; color: #880e4f; }
.org-other { background: #eeeeee; color: #424242; }
.lang-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.lang-en { background: #e8f5e9; color: #2e7d32; }
.lang-es { background: #fff8e1; color: #e65100; }
.topic-badge {
    display: inline-block; background: #edf2ff; color: #3a5ba0;
    font-size: .68rem; font-weight: 600; padding: 2px 7px;
    border-radius: 3px; margin: 2px 2px 2px 0; text-decoration: none;
    transition: background .15s, color .15s;
}
.topic-badge:hover       { background: var(--acc-blue); color: #fff; }
.topic-badge:last-child  { margin-right: 0; }
.btn-open-link {
    background: var(--acc-blue); color: #fff; border: none;
    padding: 4px 10px; border-radius: 4px; font-size: .73rem;
    font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .18s; display: inline-block;
}
.btn-open-link:hover            { background: var(--mid-blue); color: #fff; }
.btn-open-link.disabled         { background: #c5d0e4; color: #8a9bb0; pointer-events: none; }

/* Card View */
.result-card {
    background: #fff; border: 1px solid var(--border);
    border-left: 4px solid var(--acc-blue);
    border-radius: 0 8px 8px 0;
    padding: 16px 18px; margin-bottom: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.result-card:hover          { border-left-color: var(--gold); box-shadow: 0 4px 16px rgba(9,21,42,.1); }
.result-card .card-title-lnk {
    color: var(--acc-blue); font-weight: 600; font-size: .9rem;
    text-decoration: none; line-height: 1.4;
}
.result-card .card-title-lnk:hover { color: var(--mid-blue); text-decoration: underline; }
.result-card .card-meta {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 7px; margin-top: 8px;
}
.result-card .card-footer-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bg2);
}

/* Empty State */
.empty-state {
    text-align: center; padding: 50px 20px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.empty-state i  { font-size: 2.5rem; color: #c5d0e4; margin-bottom: 14px; }
.empty-state h5 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.empty-state p  { color: #8a9bb0; font-size: .85rem; }

/* Pagination */
.pagination .page-link {
    border-color: var(--border); color: var(--acc-blue);
    font-size: .82rem; padding: 5px 12px;
}
.pagination .page-item.active .page-link { background: var(--acc-blue); border-color: var(--acc-blue); color: #fff; }
.pagination .page-link:hover             { background: var(--bg2); color: var(--mid-blue); }
.pagination .page-item.disabled .page-link { color: #c5d0e4; }
.pg-info { font-size: .78rem; color: #7a8fa5; }


/* ══════════════════════════════════════════════════════════════════
   AI ASSISTANT PAGE  (ai-assistant.php)
   UPDATED: Improved contrast throughout dark chat window
══════════════════════════════════════════════════════════════════ */

/* Page header badge */
.ai-badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(46,127,212,.18); border: 1px solid rgba(46,127,212,.4);
    color: #7ab4f5; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}

/* Sidebar Cards */
.sidebar-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; margin-bottom: 14px;
}
.sc-hdr {
    background: var(--dark-blue); color: #fff;
    padding: 9px 14px; font-size: .73rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    display: flex; align-items: center; gap: 7px;
}
.sc-hdr i { color: var(--gold-lt); }
.sc-body  { padding: 12px 14px; }

/* Model Status */
.status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: .82rem; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
    animation: pulse-g 2s infinite;
}
@keyframes pulse-g {
    0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.07); }
}
.status-label { font-weight: 600; color: #166534; }
.status-meta  { font-size: .75rem; color: #8fa3bb; margin-top: 2px; }
.model-detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0; border-bottom: 1px solid var(--bg2); font-size: .79rem;
}
.model-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.mdr-lbl { color: #6a7a8a; }
.mdr-val { font-weight: 600; color: var(--navy); }

/* KB Stats */
.kb-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0; border-bottom: 1px solid var(--bg2); font-size: .8rem;
}
.kb-row:last-child { border-bottom: none; }
.kb-lbl   { color: #6a7a8a; display: flex; align-items: center; gap: 6px; }
.kb-lbl i { width: 14px; text-align: center; font-size: .72rem; color: var(--acc-blue); }
.kb-val   { font-weight: 700; color: var(--navy); }

/* Suggested Prompts */
.prompt-cat {
    font-size: .67rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--acc-blue);
    margin: 11px 0 5px; display: block;
}
.prompt-cat:first-child { margin-top: 0; }
.prompt-btn {
    display: flex; align-items: flex-start; gap: 7px; width: 100%;
    text-align: left; background: #f5f7fc; border: 1px solid var(--border);
    border-radius: 6px; padding: 7px 9px; margin-bottom: 5px;
    cursor: pointer; font-size: .78rem; color: var(--body-txt);
    line-height: 1.4; transition: all .18s; text-decoration: none;
}
.prompt-btn:hover {
    background: var(--dark-blue); color: #fff;
    border-color: var(--dark-blue); text-decoration: none;
}
.prompt-btn:hover .pb-icon { color: var(--gold-lt); }
.pb-icon { color: var(--acc-blue); font-size: .68rem; margin-top: 2px; flex-shrink: 0; }
.pb-text { flex: 1; }

/* Tips */
.tip-row {
    display: flex; gap: 8px; align-items: flex-start;
    margin-bottom: 9px; font-size: .79rem; color: var(--body-txt);
}
.tip-row:last-child { margin-bottom: 0; }
.tip-icon { color: var(--gold); flex-shrink: 0; font-size: .7rem; margin-top: 2px; }

/* Disclaimer */
.disclaimer-box {
    background: rgba(200,156,44,.07); border: 1px solid rgba(200,156,44,.3);
    border-radius: 6px; padding: 10px 12px; font-size: .74rem;
    color: #6b5c20; line-height: 1.55;
}
.disclaimer-box strong { color: #5a4a10; }

/* Chat Frame Wrapper */
.chat-frame-wrapper {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; box-shadow: 0 6px 28px rgba(9,21,42,.15);
}

/* Toolkit Bar (above iframe) */
.chat-toolkit-bar {
    background: var(--dark-blue); padding: 9px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--gold);
}
.ctb-left  { display: flex; align-items: center; gap: 10px; }
.ctb-title { font-size: .85rem; font-weight: 700; color: #fff; }
.ctb-badge {
    background: rgba(200,156,44,.2); border: 1px solid rgba(200,156,44,.4);
    color: var(--gold-lt); font-size: .62rem; font-weight: 700;
    padding: 2px 8px; border-radius: 3px; letter-spacing: .04em;
}
.ctb-kb-tag {
    background: rgba(46,127,212,.2); border: 1px solid rgba(46,127,212,.35);
    color: #7ab4f5; font-size: .62rem; font-weight: 600;
    padding: 2px 8px; border-radius: 3px;
    display: flex; align-items: center; gap: 4px;
}
.ctb-online { display: flex; align-items: center; gap: 5px; font-size: .73rem; color: #7ab44a; }
.ctb-online .cdot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; display: inline-block;
}
.ctb-btns { display: flex; gap: 6px; }
.ctb-btn {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    color: #8fa3bb; border-radius: 5px; padding: 4px 10px;
    font-size: .72rem; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    transition: all .18s; white-space: nowrap;
}
.ctb-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* iframe Banner */
.iframe-banner {
    background: #eef3fb; border-bottom: 1px dashed #b8ccdf;
    padding: 5px 14px; font-size: .7rem; color: #5a7295;
    display: flex; align-items: center; gap: 7px;
}
.iframe-banner code {
    background: #dce8f5; color: #2a4870;
    padding: 1px 5px; border-radius: 3px;
    font-size: .67rem; font-family: monospace;
}
.iframe-banner .ib-right { margin-left: auto; font-size: .66rem; color: #9aafc4; }

/* Mock Chat Window */
.mock-chat {
    background: #1a1b26; height: 620px;
    display: flex; flex-direction: column; overflow: hidden;
}
.owui-bar {
    background: #13141f; padding: 8px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.05); flex-shrink: 0;
}
.owui-model-pill {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: #b0c0d8; border-radius: 7px; padding: 5px 12px; font-size: .78rem;
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    transition: background .18s;
}
.owui-model-pill:hover { background: rgba(255,255,255,.1); }
.owui-model-pill i  { font-size: .65rem; color: #4a5a6a; }
.owui-model-dot     { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.owui-right { display: flex; align-items: center; gap: 4px; }

/* Internal OpenUI-style top bar buttons — was #2a3a4a */
.oib {
    background: transparent; border: none; color: #5a7a9a;
    font-size: .88rem; cursor: pointer; padding: 5px 7px;
    border-radius: 5px; transition: all .15s;
}
.oib:hover { color: #a0c0d8; background: rgba(255,255,255,.08); }

/* Chat Messages Scroll Area */
.chat-msgs {
    flex: 1; overflow-y: auto; padding: 18px 16px 8px;
    display: flex; flex-direction: column;
    scrollbar-width: thin; scrollbar-color: #252636 #1a1b26;
}
.chat-msgs::-webkit-scrollbar       { width: 5px; }
.chat-msgs::-webkit-scrollbar-track { background: #1a1b26; }
.chat-msgs::-webkit-scrollbar-thumb { background: #252636; border-radius: 3px; }

/* System Notice */
.sys-notice {
    align-self: center; font-size: .68rem; color: #6a8aaa;
    background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04);
    border-radius: 20px; padding: 5px 16px; margin-bottom: 18px;
    display: flex; align-items: center; gap: 6px;
}
.sys-notice .sys-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* User Message */
.msg-u { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.msg-u-bubble {
    background: #2a3050; border: 1px solid rgba(255,255,255,.1);
    color: #e0eafc; border-radius: 16px 16px 4px 16px;
    padding: 10px 14px; max-width: 72%; font-size: .85rem; line-height: 1.55;
}

/* AI Message */
.msg-a { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.msg-a-av {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #1e5fa8, #2e7fd4);
    display: flex; align-items: center; justify-content: center;
    font-size: .58rem; font-weight: 700; color: #fff;
    flex-shrink: 0; margin-top: 2px; letter-spacing: .02em;
    border: 1px solid rgba(255,255,255,.1);
}
.msg-a-content { flex: 1; max-width: 90%; }
.msg-a-label {
    font-size: .68rem; font-weight: 700; color: #7ab0d8;
    margin-bottom: 5px; display: flex; align-items: center; gap: 6px;
}
.msg-a-label .rag-tag {
    font-size: .6rem; background: rgba(46,127,212,.12); color: #7ab4f5;
    border: 1px solid rgba(46,127,212,.2); padding: 1px 6px;
    border-radius: 3px; font-weight: 600;
}

/* AI message text — brightened throughout */
.msg-a-text { color: #d0dff0; font-size: .83rem; line-height: 1.65; }
.msg-a-text strong   { color: #e8f0fc; }
.msg-a-text p        { margin: 0 0 8px; }
.msg-a-text p:last-child { margin-bottom: 0; }
.msg-a-text ul, .msg-a-text ol { padding-left: 18px; margin: 5px 0 8px; }
.msg-a-text li       { margin-bottom: 5px; color: #b8cce0; }
.msg-a-text li strong { color: #d0dff0; }
.msg-a-text hr       { border-color: rgba(255,255,255,.1); margin: 10px 0; }

/* Section headers inside responses — was #6a9fd8 */
.at-sec {
    color: #7ec8ff; font-weight: 700; font-size: .8rem;
    display: block; margin: 10px 0 4px;
}

/* Source citation box — was #4a6a8a (too dark) */
.src-box {
    margin-top: 10px; padding: 8px 12px;
    background: rgba(46,127,212,.1); border-left: 2px solid #2e7fd4;
    border-radius: 0 5px 5px 0; font-size: .75rem;
    color: #7aaac8; line-height: 1.55;
}
.src-box i      { color: #4a9fd4; }
.src-box strong { color: #8abcd8; }


/* Message action buttons — was #2e3e50 (nearly invisible) */
.msg-actions { display: flex; gap: 5px; margin: 7px 0 16px 38px; flex-wrap: wrap; }
.m-btn {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: #8a9eb8;
    border-radius: 4px; padding: 4px 10px;
    font-size: .67rem; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    transition: all .15s;
}
.m-btn:hover {
    background: rgba(255,255,255,.12);
    color: #c0d4e8;
    border-color: rgba(255,255,255,.22);
}

/* Typing Indicator */
.typing-wrap { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.typing-bubble {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px; padding: 10px 14px;
    display: flex; align-items: center; gap: 6px;
}
.td { width: 6px; height: 6px; border-radius: 50%; background: #4a7aaa; animation: tbounce 1.3s infinite ease-in-out; }
.td:nth-child(2) { animation-delay: .15s; }
.td:nth-child(3) { animation-delay: .30s; }
@keyframes tbounce {
    0%,80%,100% { transform: translateY(0); opacity: .3; }
    40%          { transform: translateY(-6px); opacity: 1; }
}
.typing-note { font-size: .7rem; color: #7a9ab8; }

/* Chat Input */
.chat-input-wrap {
    background: #101118; padding: 10px 14px 12px;
    border-top: 1px solid rgba(255,255,255,.04); flex-shrink: 0;
}
.chat-input-box {
    background: #1c1e2e; border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 9px 10px;
    display: flex; align-items: flex-end; gap: 8px; transition: border-color .18s;
}
.chat-input-box:focus-within {
    border-color: rgba(46,127,212,.45);
    box-shadow: 0 0 0 3px rgba(46,127,212,.08);
}
.chat-ta {
    flex: 1; background: transparent; border: none; outline: none;
    color: #c0d0e4; font-size: .83rem; font-family: 'Inter', sans-serif;
    resize: none; line-height: 1.5; min-height: 22px; max-height: 80px;
}
.chat-ta::placeholder { color: #5a7a9a; }
.ci-icon-btn {
    background: transparent; border: none; color: #253040;
    font-size: .85rem; cursor: pointer; padding: 3px; transition: color .15s;
}
.ci-icon-btn:hover { color: #5a6a80; }
.chat-send-btn {
    background: var(--acc-blue); border: none; color: #fff; border-radius: 7px;
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; flex-shrink: 0;
    font-size: .78rem; transition: background .18s;
}
.chat-send-btn:hover { background: var(--mid-blue); }
.input-hint {
    font-size: .67rem; color: #5a7a9a;
    text-align: center; margin-top: 6px;
}
/* ── Real Chat — Markdown Content Styles (dark chat bubble) ──────── */
.msg-a-text > *:first-child { margin-top: 0; }
.msg-a-text > *:last-child  { margin-bottom: 0; }
.msg-a-text p               { margin: 0 0 8px; }
.msg-a-text p:last-child    { margin-bottom: 0; }

.msg-a-text h1,.msg-a-text h2,
.msg-a-text h3,.msg-a-text h4 {
    color: #d8e4f5; font-weight: 700; font-size: .92em;
    margin: 14px 0 5px; padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.msg-a-text ul,.msg-a-text ol {
    padding-left: 18px; margin: 5px 0 8px;
}
.msg-a-text li          { color: #9aaabf; margin-bottom: 4px; }
.msg-a-text li strong   { color: #b8c8de; }
.msg-a-text blockquote  {
    border-left: 3px solid #2e5a8a; padding: 4px 12px;
    margin: 8px 0; color: #7a8fa5; font-style: italic;
}
.msg-a-text code {
    background: rgba(255,255,255,.08); color: #a8d4ff;
    padding: 1px 5px; border-radius: 3px;
    font-family: 'Consolas','Monaco',monospace; font-size: .82em;
}
.msg-a-text pre {
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px; padding: 10px 14px; overflow-x: auto; margin: 8px 0;
}
.msg-a-text pre code { background: none; padding: 0; color: #b0d0f0; }
.msg-a-text a           { color: #4a9fd4; text-decoration: none; }
.msg-a-text a:hover     { text-decoration: underline; color: var(--gold-lt); }
.msg-a-text table       { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .8rem; }
.msg-a-text th          { background: rgba(30,95,168,.25); color: #8ab4d4; padding: 5px 8px; }
.msg-a-text td          { border-bottom: 1px solid rgba(255,255,255,.05); padding: 5px 8px; color: #9aaabf; }
.msg-a-text hr          { border-color: rgba(255,255,255,.07); margin: 12px 0; }

/* ── Streaming cursor ─────────────────────────────────────────────── */
.stream-cursor {
    display: inline-block; color: var(--gold-lt);
    animation: blink .8s step-end infinite;
    font-weight: 400; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Stop button ──────────────────────────────────────────────────── */
.chat-stop-btn {
    background: rgba(183,28,28,.25); border: 1px solid rgba(239,68,68,.4);
    color: #fca5a5; border-radius: 7px; padding: 0 12px;
    font-size: .72rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    height: 32px; flex-shrink: 0; transition: all .18s;
}
.chat-stop-btn:hover { background: rgba(183,28,28,.45); color: #fff; }

/* ── Error bubble ─────────────────────────────────────────────────── */
.error-bubble {
    align-self: stretch; background: rgba(183,28,28,.15);
    border: 1px solid rgba(239,68,68,.35); border-radius: 8px;
    color: #fca5a5; padding: 9px 14px; font-size: .82rem;
    margin: 6px 0; display: flex; align-items: center; gap: 8px;
}

/* ── Real Chat — Markdown Content Styles (dark chat bubble) ──────── */
.msg-a-text > *:first-child { margin-top: 0; }
.msg-a-text > *:last-child  { margin-bottom: 0; }
.msg-a-text p               { margin: 0 0 8px; }
.msg-a-text p:last-child    { margin-bottom: 0; }

.msg-a-text h1,.msg-a-text h2,
.msg-a-text h3,.msg-a-text h4 {
    color: #e0eafc; font-weight: 700; font-size: .95em;
    margin: 14px 0 5px; padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.msg-a-text ul,.msg-a-text ol {
    padding-left: 18px; margin: 5px 0 8px;
}
.msg-a-text li          { color: #9aaabf; margin-bottom: 4px; }
.msg-a-text li strong   { color: #b8c8de; }
.msg-a-text blockquote  {
    border-left: 3px solid #2e5a8a; padding: 4px 12px;
    margin: 8px 0; color: #8aaac0; font-style: italic;
}
.msg-a-text code {
    background: rgba(255,255,255,.08); color: #a8d4ff;
    padding: 1px 5px; border-radius: 3px;
    font-family: 'Consolas','Monaco',monospace; font-size: .82em;
}
.msg-a-text pre {
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px; padding: 10px 14px; overflow-x: auto; margin: 8px 0;
}
.msg-a-text pre code { background: none; padding: 0; color: #b0d0f0; }
.msg-a-text a         { color: #60b0e8; text-decoration: none; }
.msg-a-text a:hover   { text-decoration: underline; color: var(--gold-lt); }
.msg-a-text table     { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .8rem; }
.msg-a-text th        { background: rgba(30,95,168,.3); color: #a0c4d8; padding: 5px 8px; }
.msg-a-text td        { border-bottom: 1px solid rgba(255,255,255,.07); padding: 5px 8px; color: #b0c8de; }
.msg-a-text hr          { border-color: rgba(255,255,255,.07); margin: 12px 0; }


/* History panel items (localStorage history) */
.hist-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06);
    cursor: pointer; transition: background .15s; gap: 8px;
}
.hist-item:last-child { border-bottom: none; }
.hist-item:hover { background: rgba(255,255,255,.06); }
.hist-item.active { background: rgba(46,127,212,.15); border-left: 2px solid #2e7fd4; }
.hist-title {
    font-size: .78rem; color: #b0c8e4; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.hist-meta { font-size: .65rem; color: #5a7a9a; white-space: nowrap; }
.hist-del {
    background: transparent; border: none; color: #4a5a6a;
    cursor: pointer; padding: 2px 5px; border-radius: 3px;
    font-size: .7rem; transition: color .15s; flex-shrink: 0;
}
.hist-del:hover { color: #ef4444; }
.hist-empty {
    text-align: center; padding: 20px; color: #4a6a8a;
    font-size: .78rem; font-style: italic;
}
.hist-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.2);
}
.hist-panel-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #6a8aaa;
}
.hist-clear-btn {
    background: transparent; border: 1px solid rgba(239,68,68,.3);
    color: #ef9a9a; font-size: .65rem; padding: 2px 8px;
    border-radius: 3px; cursor: pointer; transition: all .15s;
}
.hist-clear-btn:hover { background: rgba(239,68,68,.2); color: #fca5a5; }

/* ── Streaming cursor ─────────────────────────────────────────────── */
.stream-cursor {
    display: inline-block; color: var(--gold-lt);
    animation: blink .8s step-end infinite;
    font-weight: 400; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Stop button ──────────────────────────────────────────────────── */
.chat-stop-btn {
    background: rgba(183,28,28,.2); border: 1px solid rgba(183,28,28,.4);
    color: #ef9a9a; border-radius: 7px; padding: 0 12px;
    font-size: .72rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    height: 32px; flex-shrink: 0; transition: all .18s;
}
.chat-stop-btn:hover { background: rgba(183,28,28,.38); }

/* ── Error bubble ─────────────────────────────────────────────────── */
.error-bubble {
    align-self: stretch; background: rgba(183,28,28,.1);
    border: 1px solid rgba(183,28,28,.3); border-radius: 8px;
    color: #ef9a9a; padding: 9px 14px; font-size: .8rem;
    margin: 6px 0; display: flex; align-items: center; gap: 8px;
}
/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
══════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    /* Search */
    .sidebar { margin-bottom: 18px; }
    /* AI */
    .mock-chat { height: 420px; }
    .ctb-btns .ctb-btn span { display: none; }
}
@media (max-width: 767px) {
    /* Landing */
    .hero h1  { font-size: 1.75rem; }
    .shield-bg { display: none; }
}
@media (max-width: 575px) {
    /* Search */
    .results-toolbar { flex-direction: column; align-items: flex-start; }
    .view-btns { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   EXAMPLE QUERIES PAGE  (query-answers.php)
══════════════════════════════════════════════════════════════════ */

.query-page {
    padding: 58px 0 70px;
}

.query-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 15px 17px;
    margin: 25px 0 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.query-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--dark-blue);
    color: var(--gold-lt);
    font-size: 1rem;
}

.query-stat-num {
    display: block;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.query-stat-label {
    display: block;
    color: #718096;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 3px;
}

.query-page-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eaf1fa;
    border: 1px solid #cddced;
    border-radius: 8px;
    padding: 15px;
    color: #445975;
    font-size: .82rem;
    line-height: 1.65;
}

.query-page-note > i {
    color: var(--acc-blue);
    font-size: 1rem;
    margin-top: 3px;
}

.query-page-note strong {
    display: block;
    color: var(--dark-blue);
    font-size: .83rem;
    margin-bottom: 3px;
}

.query-page-note p {
    margin: 0;
}

/* Accordion */
.query-accordion .accordion-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(9,21,42,.05);
}

.query-accordion .accordion-button {
    background: #fff;
    color: var(--navy);
    box-shadow: none;
    font-size: .96rem;
    font-weight: 700;
    padding: 17px 19px;
}

.query-accordion .accordion-button:not(.collapsed) {
    background: var(--dark-blue);
    color: #fff;
}

.query-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(30,95,168,.16);
}

.query-accordion .accordion-button::after {
    background-size: .9rem;
}

.query-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.query-category-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 7px;
    background: #e6eef9;
    color: var(--acc-blue);
    font-size: .85rem;
}

.query-accordion .accordion-button:not(.collapsed) .query-category-icon {
    background: rgba(200,156,44,.18);
    color: var(--gold-lt);
}

.query-accordion .accordion-button small {
    display: block;
    color: #7c8da1;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: 2px;
    text-transform: uppercase;
}

.query-accordion .accordion-button:not(.collapsed) small {
    color: #9db7d3;
}

.query-accordion .accordion-body {
    padding: 19px;
    background: #f9fbfe;
}

.query-category-description {
    color: #65758a;
    font-size: .84rem;
    margin: 0 0 14px;
}

/* Individual query cards */
.query-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.query-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #fff;
    border: 1px solid #dce4ef;
    border-left: 3px solid var(--acc-blue);
    border-radius: 0 6px 6px 0;
    padding: 13px 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.query-item:hover {
    border-left-color: var(--gold);
    box-shadow: 0 4px 13px rgba(9,21,42,.08);
}

.query-item-number {
    color: var(--acc-blue);
    font-size: .88rem;
    padding-top: 2px;
}

.query-item-content {
    flex: 1;
    min-width: 0;
}

.query-text {
    color: var(--dark-txt);
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

.query-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-copy-query {
    background: transparent;
    border: 1px solid #b9c9dd;
    border-radius: 4px;
    color: #58708d;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 9px;
    transition: all .18s ease;
}

.btn-copy-query:hover,
.btn-copy-query.copied {
    background: #e9f4ed;
    border-color: #8fc6a0;
    color: #23723b;
}

.btn-ask-ai {
    color: var(--acc-blue);
    font-size: .74rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-ask-ai:hover {
    color: var(--gold);
    text-decoration: none;
}

.btn-ask-ai i {
    font-size: .65rem;
    margin-left: 3px;
    transition: transform .18s ease;
}

.btn-ask-ai:hover i {
    transform: translateX(3px);
}

@media (max-width: 575px) {
    .query-item-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .query-accordion .accordion-button {
        padding: 14px;
    }

    .query-accordion .accordion-body {
        padding: 14px;
    }
}
