/* Malak Agent Research: màn làm việc sau khi đăng nhập. Cùng tông tím với trang đăng nhập. */
:root {
  --ink: #e9e4ff; --ink-2: #b9a8f5; --ink-3: #8d80c2;
  --glass: #ffffff0d; --glass-2: #ffffff14; --edge: #b98cff2e; --edge-2: #b98cff55;
  --violet: #8b5cf6; --cyan: #7fe3ff; --ok: #34e5a0; --warn: #ffc65c; --bad: #ff9d9d;
}
textarea { font: inherit; color: inherit; }
.fatal { padding: 40px; color: var(--bad); text-align: center; }
.lg-demo { margin-top: 12px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: #cfe9ff; background: #3cbeff1a; border: 1px dashed #5ad2ff66; }
.lg-demo b { color: #fff; font-weight: 600; }

.app { position: fixed; inset: 0; display: flex; flex-direction: column; color: var(--ink);
  background: radial-gradient(1100px 700px at 12% 0%, #3a1a8f44, transparent 60%), radial-gradient(900px 700px at 95% 100%, #1b4fd844, transparent 60%), linear-gradient(160deg, #070419 0%, #0d0630 55%, #10073d 100%); }
.app button { cursor: pointer; }
.app :focus-visible { outline: 2px solid #c4a2ff; outline-offset: 2px; }

.top { flex: none; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--edge); background: #0a052699; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 16px; }
.brand b { font-weight: 700; color: #fff; }
.brand b span { color: #b98cff; }
.brand .btag { margin-left: 0; font-size: 9px; padding: 3px 6px; }
.spacer { flex: 1; }
.pill { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--glass); border: 1px solid var(--edge); white-space: nowrap; font-variant-numeric: tabular-nums; }
.who { font-size: 13px; color: var(--ink-2); }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.nav button:hover { background: var(--glass); color: #fff; }
.nav button[aria-current="page"] { background: var(--glass-2); color: #fff; box-shadow: inset 0 -2px 0 #b98cff; }
button.pill:hover { border-color: var(--edge-2); color: #fff; }
.ghost { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: transparent; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.ghost:hover { background: var(--glass-2); color: #fff; }
.tag-sample { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; margin-left: 6px; border-radius: 5px; color: #2a1a00; background: var(--warn); vertical-align: middle; }
.tag-sample.big { margin-left: 4px; padding: 4px 8px; font-size: 10.5px; white-space: nowrap; }

.tabs { display: none; }
.view { flex: 1; min-height: 0; display: none; }
.app[data-view="research"] .v-research { display: flex; flex-direction: column; }
.app:not([data-view="research"]) .v-page { display: block; overflow-y: auto; }

/* Thanh cuộn: một đường mảnh làm ray, con trượt nhỏ; phần nào đang cuộn thì con trượt sáng lên */
@supports not selector(::-webkit-scrollbar) { .app * { scrollbar-width: thin; scrollbar-color: #8b6cff88 transparent; } }
.app ::-webkit-scrollbar { width: 12px; height: 12px; }
.app ::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 5px, #8b6cff33 5px, #8b6cff33 7px, transparent 7px); }
.app ::-webkit-scrollbar-track:horizontal { background: linear-gradient(0deg, transparent 5px, #8b6cff33 5px, #8b6cff33 7px, transparent 7px); }
.app ::-webkit-scrollbar-thumb { min-height: 36px; border: 4px solid transparent; border-radius: 6px; background: linear-gradient(180deg, #b98cff, #7a6cff) padding-box; }
.app ::-webkit-scrollbar-thumb:hover { border-width: 3px; background: linear-gradient(180deg, #d9c5ff, #9b8cff) padding-box; }
.app .scrolling::-webkit-scrollbar-thumb { border-width: 3px; background: linear-gradient(180deg, #7fe3ff, #34e5a0) padding-box; }
.app .scrolling::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 5px, #7fe3ff55 5px, #7fe3ff55 7px, transparent 7px); }
.app .scrolling::-webkit-scrollbar-track:horizontal { background: linear-gradient(0deg, transparent 5px, #7fe3ff55 5px, #7fe3ff55 7px, transparent 7px); }
.app ::-webkit-scrollbar-button { display: none; }
.app ::-webkit-scrollbar-corner { background: transparent; }

/* Trang Chi phí và Cài đặt */
.page-in { max-width: 1040px; margin: 0 auto; padding: 22px 20px 40px; }
.page-in h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: #fff; }
.panel { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); }
.panel h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #fff; }
.lead { margin: 0 0 12px; max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.saved { margin-left: 8px; font-size: 12px; font-weight: 600; color: #9dffd6; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.row .sep { width: 1px; height: 20px; background: var(--edge); margin: 0 4px; }
.btn { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #4f46e5); white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghostbtn { background: transparent; border: 1px solid var(--edge-2); color: var(--ink); }
.btn.ghostbtn:hover { background: var(--glass-2); }
.btn.ghostbtn.on { background: var(--glass-2); border-color: #b98cff; color: #fff; }
.prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.prod { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--edge); background: #0a052666; cursor: pointer; }
.prod:has(input:checked) { border-color: #b98cff; background: #b98cff1a; }
.prod input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #8b5cf6; }
.prod b { display: block; font-weight: 600; color: #fff; }
.prod em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.mode { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); background: #0a052680; border: 1px solid var(--edge); }
.mode b { color: #fff; font-weight: 600; }
.checks { margin-top: 12px; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; background: #0a052680; border: 1px solid var(--edge); }
.check > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 13px; }
.check.ok > i { color: #06281b; background: var(--ok); }
.check.bad > i { color: #3a0d0d; background: var(--bad); }
.check b { color: #fff; font-weight: 600; }
.check .covers { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.check p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.check time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.pager .btn { padding: 5px 12px; font-size: 12px; }
.pager .btn:disabled { opacity: .35; cursor: default; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.tbl th { font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tbl td { color: var(--ink); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .wide { min-width: 240px; }
.tbl .none { text-align: center; color: var(--ink-3); padding: 18px; }
.tbl.small { font-size: 12px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.range label { font-size: 12.5px; color: var(--ink-2); }
.range input[type="date"] { height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--edge-2); background: #0a0526cc; color: #fff; color-scheme: dark; font: inherit; font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); }
.tile.total { grid-column: 1 / -1; background: linear-gradient(135deg, #8b5cf633, #4f46e522); border-color: #b98cff66; }
.tile.total b { font-size: 30px; }
.tile span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tile b { display: block; margin: 4px 0; font-size: 24px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tile em { display: block; font-style: normal; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.lv { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.lv.exact { color: #9dffd6; background: #34e5a01f; }
.lv.computed { color: #bfeaff; background: #3cbeff22; }
.lv.estimate { color: #ffe0a3; background: #ffc65c1f; }
.foot { margin-top: 16px; max-width: 760px; }

/* Màn Thương hiệu: bảng so sánh, mỗi cột một thương hiệu, cột nhãn đứng yên khi cuộn ngang */
.brands .row input[type="text"], .brands .row select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--edge-2); background: #0a0526cc; color: #fff; font: inherit; font-size: 13px; }
.brands .row input[type="text"] { flex: 1; min-width: 200px; max-width: 360px; }
.brands .row select { color-scheme: dark; }
.cmp { table-layout: fixed; min-width: calc(150px + var(--cols, 2) * 260px); }
.cmp th, .cmp td { width: 260px; line-height: 1.55; }
.cmp tbody th, .cmp thead th:first-child { width: 150px; position: sticky; left: 0; z-index: 1; background: #170b45; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: normal; }
.cmp thead th { white-space: normal; vertical-align: bottom; }
.cmp thead th.own { box-shadow: inset 0 3px 0 #b98cff; }
.bimg { display: block; width: 132px; height: 132px; margin-bottom: 10px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--edge-2); }
.bimg.none { display: grid; place-items: center; background: var(--glass); color: var(--ink-3); font-size: 44px; font-weight: 700; }
.bh { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.bh b { font-size: 15px; font-weight: 700; color: #fff; }
.bh .oc-del { opacity: 1; margin: 0; }
.btags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.btags .tag-sample { margin-left: 0; }
.tg { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.tg.own { color: #d9ccff; background: #b98cff2e; }
.tg.thin { color: #ffe0a3; background: #ffc65c1f; }
.cmp ul { margin: 0; padding-left: 16px; }
.cmp li { margin: 2px 0; }
.cmp a { color: var(--cyan); text-decoration: underline; text-decoration-color: #7fe3ff66; text-underline-offset: 2px; }
.nodata { color: var(--ink-3); }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; }
.side { min-height: 0; overflow-y: auto; padding: 16px 14px; }
.side.left { border-right: 1px solid var(--edge); }
.side.right { border-left: 1px solid var(--edge); }
.side h4 { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.side.right h4 { margin-top: 2px; }
.hint { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

.new { width: 100%; height: 40px; border: 0; border-radius: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8b5cf6, #4f46e5); box-shadow: 0 6px 18px #6d3df055; }
.new:hover { filter: brightness(1.1); }
.threads { display: flex; flex-direction: column; gap: 2px; }
.thread { text-align: left; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread:hover { background: var(--glass); color: #fff; }
.thread.active { background: var(--glass-2); color: #fff; box-shadow: inset 2px 0 0 #b98cff; }
.thread.live i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7fe3ff; box-shadow: 0 0 8px #7fe3ff; animation: livedot 1.2s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .thread.live i { animation: none; } }
.source { display: flex; gap: 9px; padding: 7px 2px; font-size: 12.5px; }
.source > i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #5a4f8a; }
.source.on > i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.source b { display: block; font-weight: 600; color: var(--ink); }
.source span { display: block; color: var(--ink-3); }
.source em { font-style: normal; font-size: 11.5px; color: #a48cff; }
.source.on em { color: var(--ok); }
.source b { display: flex; align-items: center; gap: 8px; }
.api { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.api.ok { color: #9dffd6; background: #34e5a01f; border: 1px solid #34e5a066; }
.api.bad { color: #ffc4c4; background: #ff9d9d1c; border: 1px solid #ff9d9d66; }
.api.wait { color: var(--ink-3); background: #ffffff10; border: 1px solid #ffffff22; }

.chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 22px max(18px, calc((100% - 780px) / 2)); display: flex; flex-direction: column; gap: 16px; }
.empty { margin: auto; max-width: 560px; text-align: center; padding: 20px 0; }
.empty h2 { margin: 14px 0 6px; font-size: 22px; font-weight: 700; color: #fff; text-wrap: balance; }
.empty p { margin: 0 0 18px; color: var(--ink-2); }
.suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggest button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink); font-size: 13px; line-height: 1.45; }
.suggest button:hover { border-color: var(--edge-2); background: var(--glass-2); }

.msg { display: flex; gap: 10px; max-width: 100%; }
.msg.user { justify-content: flex-end; }
.msg .rlogo { margin-top: 2px; }
.msg-b { min-width: 0; padding: 10px 14px; border-radius: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.msg.user .msg-b { max-width: 80%; background: linear-gradient(135deg, #7c4df0, #4f46e5); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.assistant .msg-b { flex: 1; background: var(--glass); border: 1px solid var(--edge); border-top-left-radius: 4px; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol { margin: 0 0 10px; }
.md ul, .md ol { padding-left: 20px; }
.md li { margin: 3px 0; }
.md h3, .md h4, .md h5 { margin: 16px 0 6px; color: #fff; font-weight: 700; line-height: 1.3; }
.md h3 { font-size: 17px; } .md h4 { font-size: 15px; } .md h5 { font-size: 14px; }
.md strong { color: #fff; font-weight: 600; }
.md a, .ev a { color: var(--cyan); text-decoration: underline; text-decoration-color: #7fe3ff66; text-underline-offset: 2px; }
.md code { padding: 1px 5px; border-radius: 5px; background: #00000040; font: 12.5px ui-monospace, Consolas, monospace; }
.md pre { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #00000040; overflow-x: auto; font: 12.5px/1.5 ui-monospace, Consolas, monospace; }
.tablewrap { overflow-x: auto; margin: 0 0 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; }
.md th, .md td { padding: 6px 10px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.md th { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.status:first-child { margin-top: 0; }
.status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: lg-blink 1.2s ease-in-out infinite; }

/* Sân khấu: quả địa cầu và tín hiệu nghiên cứu. To khi chưa có cuộc nghiên cứu, vừa khi đang chạy, nhỏ khi đang đọc câu trả lời. */
.stage { flex: none; position: relative; height: 170px; border-bottom: 1px solid var(--edge); overflow: hidden; transition: height .55s cubic-bezier(.2, .7, .2, 1);
  background: radial-gradient(60% 90% at 50% 45%, #3a1a8f33, transparent 70%); }
.stage.hero { height: clamp(250px, 42vh, 420px); border-bottom-color: transparent; }
.stage.live { height: clamp(250px, 40vh, 380px); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage.hero + .msgs .empty { margin-top: 0; padding-top: 4px; }
.filterchip { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--edge-2); background: var(--glass-2); color: #fff; font-size: 12px; font-weight: 600; }
.filterchip:hover { background: #ffffff22; }

/* Dấu vết nghiên cứu: từng bước thật Agent đã làm */
.trail { margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: #0a052680; border: 1px solid var(--edge); font-size: 12px; }
.trail.live { margin: 0 0 10px; display: none; }
.trail.live.has { display: block; }
.trail summary { cursor: pointer; color: var(--ink-2); line-height: 1.5; }
.trail summary b { color: #fff; font-weight: 600; }
.trail[open] summary { margin-bottom: 6px; }
.tr-head { margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tr-row { display: grid; grid-template-columns: 8px 62px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-2); }
.tr-row > i { width: 8px; height: 8px; border-radius: 50%; }
.tr-row > b { font-weight: 600; color: var(--ink); }
.tr-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-ok { color: #9dffd6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-bad { color: var(--bad); white-space: nowrap; }
.tr-wait { color: var(--cyan); white-space: nowrap; animation: lg-blink 1.2s ease-in-out infinite; }

.askbox { flex: none; padding: 8px max(18px, calc((100% - 780px) / 2)) 16px; }
.scopebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 22px; margin-bottom: 8px; font-size: 12px; color: var(--ink-3); }
.sc-l { font-weight: 600; }
.sc-chip { font-style: normal; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: #d9ccff; background: #b98cff22; border: 1px solid #b98cff44; }
.sc-chip.new { color: #9dffd6; background: #34e5a01a; border-color: #34e5a055; }
.sc-edit { padding: 2px 6px; border: 0; background: transparent; color: var(--cyan); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.sc-edit.under { margin-top: 6px; padding-left: 17px; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; display: block; height: 48px; min-height: 48px; max-height: 180px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--edge-2); background: #0a0526cc; color: #fff; line-height: 1.5; font-size: 14px; }
.composer textarea::placeholder { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer textarea:focus { outline: none; border-color: #b98cff; box-shadow: 0 0 0 3px #8b5cf633; }
.send { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8b5cf6, #4f46e5); box-shadow: 0 6px 18px #6d3df055; white-space: nowrap; }
.send:hover:not(:disabled) { filter: brightness(1.1); }
.send:disabled, .composer textarea:disabled { opacity: .6; cursor: default; }

.cards { display: flex; flex-direction: column; gap: 12px; }
.oc { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); }
.oc header { display: flex; align-items: flex-start; gap: 10px; }
.oc-score { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; background: #ffffff14; border: 1px solid var(--edge); }
.oc-score.hi { background: #34e5a022; border-color: #34e5a077; color: #9dffd6; }
.oc-score.mid { background: #ffc65c1f; border-color: #ffc65c77; color: #ffe0a3; }
.oc-score.lo { background: #ff9d9d1c; border-color: #ff9d9d66; color: #ffc4c4; }
.oc-title { flex: 1; min-width: 0; }
.oc-market { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.oc h3 { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: #fff; }
.oc-product { font-size: 12px; color: #b98cff; }
.verdict { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.verdict.go { color: #9dffd6; background: #34e5a01f; border: 1px solid #34e5a066; }
.verdict.watch { color: #ffe0a3; background: #ffc65c1a; border: 1px solid #ffc65c66; }
.verdict.skip { color: #c9c2e6; background: #ffffff12; border: 1px solid #ffffff33; }
.oc-del { flex: none; width: 22px; height: 22px; margin: -2px -4px 0 -4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font-size: 16px; line-height: 1; opacity: 0; }
.oc:hover .oc-del, .oc-del:focus-visible { opacity: 1; }
.oc-del:hover { background: #ff9d9d22; color: var(--bad); }
.oc-dims { display: grid; gap: 5px; margin: 12px 0 10px; }
.oc-dim { display: grid; grid-template-columns: 74px 1fr 20px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.oc-dim .bar { height: 5px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.oc-dim .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8b5cf6, #7fe3ff); }
.oc-dim.worse .bar i { background: linear-gradient(90deg, #a78bfa, #ff9d9d); }
.oc-dim b { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.oc-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.oc-points li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.oc-points li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: #b98cff; transform: rotate(45deg); }
.oc-sum { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.oc-note { margin: 8px 0 0; padding: 6px 8px; border-radius: 8px; font-size: 11.5px; line-height: 1.5; color: #ffe0a3; background: #ffc65c14; }
.oc-ev { margin-top: 10px; font-size: 12px; }
.oc-ev summary { cursor: pointer; color: #b98cff; font-weight: 600; }
.ev { padding: 8px 0 0; margin-top: 8px; border-top: 1px solid var(--edge); }
.ev-claim { color: var(--ink); line-height: 1.5; }
.ev-claim b { color: #fff; font-weight: 600; }
.ev-meta { margin-top: 3px; color: var(--ink-3); overflow-wrap: anywhere; }
.rely { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; margin-right: 6px; border-radius: 4px; }
.rely.exact { color: #9dffd6; background: #34e5a01f; }
.rely.rounded { color: #bfeaff; background: #3cbeff22; }
.rely.inferred { color: #ffe0a3; background: #ffc65c1f; }
.rely.qualitative { color: #d9ccff; background: #b98cff22; }

@media (max-width: 1100px) { .cols { grid-template-columns: 220px minmax(0, 1fr) 300px; } }
/* Điện thoại và máy tính bảng dọc: mỗi lúc một khung, đổi bằng thanh tab */
@media (max-width: 860px) {
  .top { padding: 0 12px; gap: 8px; }
  .who, .tag-sample.big, .brand b, .brand .btag { display: none; }
  .nav { margin-left: 0; } .nav button { padding: 0 9px; font-size: 13px; }
  .page-in { padding: 16px 12px 32px; }
  .app ::-webkit-scrollbar { width: 8px; height: 8px; }
  .app ::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 3px, #8b6cff33 3px, #8b6cff33 5px, transparent 5px); }
  .app ::-webkit-scrollbar-thumb, .app .scrolling::-webkit-scrollbar-thumb { border-width: 2px; }
  .tabs { flex: none; display: flex; padding: 6px 12px; gap: 6px; border-bottom: 1px solid var(--edge); }
  .tabs button { flex: 1; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13px; }
  .tabs button[aria-pressed="true"] { background: var(--glass-2); border-color: var(--edge); color: #fff; }
  .tabs i { font-style: normal; margin-left: 6px; color: var(--cyan); }
  .cols { display: block; position: relative; }
  .cols > * { position: absolute; inset: 0; display: none; border: 0; }
  .app[data-pane="left"] .side.left, .app[data-pane="right"] .side.right { display: block; }
  .app[data-pane="chat"] .chat { display: flex; }
  .suggest { grid-template-columns: 1fr; }
  .stage { height: 120px; } .stage.hero { height: 230px; } .stage.live { height: 240px; }
  .tr-row { grid-template-columns: 8px 52px minmax(0, 1fr) auto; gap: 6px; }
  .composer textarea, .lg-card input { font-size: 16px; }
  .oc-del { opacity: 1; }
}
@media (max-width: 480px) { .pill { display: none; } }
@media (prefers-reduced-motion: reduce) { .status i, .tr-wait { animation: none; } .stage { transition: none; } }
