/* VimAI Ecom OS — kiểu riêng từng trang (phần 2): vận hành, catalogs, kho mẫu, studio, khám phá, đơn hàng, ví,
   mission control, chat, rooms, war room, hive mind, settings. */

/* ---------- vận hành (commerce kernel) ---------- */
.cm-h { padding: 10px 14px 8px; font-size: 10px; letter-spacing: .12em; color: var(--orange); font-weight: 600; }
.cm-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.cm-row .chip { flex: none; }
.cm-acc-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 10px; letter-spacing: .12em; color: var(--muted); cursor: pointer; font-weight: 600; }
.cm-acc-h .ic { transition: transform .15s; } .cm-acc-h.open .ic { transform: rotate(90deg); }
.cm-acc-h .ml { margin-left: auto; letter-spacing: 0; font-weight: 400; font-size: 11px; }
.cm-acc-b { border-top: 1px solid var(--line-2); }
.cm-acc-b .as { max-height: 380px; }
.ap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.ap-grid small, .ap-l { display: block; font-size: 9.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }
.ap-grid b { font-size: 13px; word-break: break-all; }
.ap-imgs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ap-imgs .art { aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.ap-ul { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.6; } .ap-ul li { margin-bottom: 6px; }
.ap-raw { background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); border-radius: 7px; padding: 10px 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: auto; max-height: 220px; margin: 0; }

/* ---------- catalogs ---------- */
.cat-title { font-size: 15px; margin-bottom: 12px; } .cat-title .muted { font-size: 12.5px; margin-left: 8px; }
.cat-circles { display: flex; gap: 26px; overflow-x: auto; padding: 2px 2px 6px; }
.cat-c { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; flex: none; text-align: center; }
.cat-img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; display: block; margin-bottom: 5px; }
.cat-c.on .cat-img, .cat-c:hover .cat-img { border-color: var(--accent); }
.cat-c b { font-size: 12.5px; } .cat-c small { font-size: 10.5px; color: var(--dim); }
.cat-filters { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.cat-filters .select { font-size: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.cat-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.cat-card:hover { border-color: var(--accent-line); }
.cat-pic { aspect-ratio: 1.05; overflow: hidden; } .cat-pic .art { width: 100%; height: 100%; }
.cat-b { padding: 9px 11px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cat-n { font-size: 13px; }
.cat-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 3px; font-size: 12px; }
.cat-kv small { display: block; font-size: 8.5px; letter-spacing: .1em; color: var(--dim); }
.cat-f { display: flex; justify-content: space-between; font-size: 10.5px; margin-top: auto; padding-top: 4px; }
.cat-big { width: 150px; height: 150px; border-radius: 9px; overflow: hidden; flex: none; } .cat-big .art { width: 100%; height: 100%; }
.cat-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cat-calc > div { background: rgba(var(--ov), .04); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; }
.cat-calc small { display: block; font-size: 10px; color: var(--dim); } .cat-calc b { font-size: 14px; }

/* ---------- kho mẫu / studio / khám phá ---------- */
.tp-f { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 4px 11px; border-radius: 6px; font-size: 12px; }
.tp-f.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.tp-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.tp-card:hover { border-color: var(--accent-line); }
.tp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; } .tp-strip .art { aspect-ratio: 1; }
.tp-strip.big { gap: 8px; } .tp-strip.big .art { border-radius: 8px; overflow: hidden; }
.tp-b { padding: 10px 13px 12px; display: flex; flex-direction: column; gap: 7px; }
.tp-t { font-size: 14.5px; }
.tp-q, .tp-quote { font-style: italic; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tp-quote { font-size: 13.5px; padding: 4px 0 4px 12px; border-left: 2px solid var(--accent-line); }
.tp-m { font-size: 11.5px; color: var(--muted); } .tp-m b { color: var(--text); }
.tp-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tp-kit { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.tp-kpic { aspect-ratio: 1.3; border-radius: 6px; overflow: hidden; } .tp-kpic .art { width: 100%; height: 100%; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sd-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.sd-card:hover { border-color: var(--accent-line); }
.sd-pic { aspect-ratio: 1; } .sd-pic .art { width: 100%; height: 100%; }
.sd-b { padding: 9px 11px 11px; font-size: 12.5px; }
.sd-mocks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.sd-mocks .art { aspect-ratio: 1; border-radius: 6px; overflow: hidden; } .sd-mocks small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 4px; text-align: center; }
.sd-prog { margin-top: 12px; } .sd-prog small { display: block; margin-top: 6px; font-size: 11px; }
.ds-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.ds-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.ds-card { display: flex; gap: 14px; padding: 12px 14px; cursor: pointer; align-items: flex-start; }
.ds-card:hover, .ds-card.on { border-color: var(--accent-line); } .ds-card.on { background: var(--card-hi); }
.ds-score { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; color: var(--muted); }
.ds-score.hot { border-color: var(--green); color: var(--green); } .ds-score.warm { border-color: var(--yellow); color: var(--yellow); }
.ds-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.ds-m { display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; align-items: center; gap: 7px; font-size: 10.5px; } .ds-m small { color: var(--dim); } .ds-m b { font-size: 11px; }
.ds-top { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 11.5px; flex: none; width: 138px; }
.ds-top small { font-size: 8.5px; letter-spacing: .1em; color: var(--dim); }

/* ---------- đơn hàng / ví / tích hợp ---------- */
.od-flow { display: flex; gap: 0; margin-top: 4px; }
.od-step { flex: 1; text-align: center; font-size: 10.5px; color: var(--dim); position: relative; padding-top: 18px; }
.od-step i { position: absolute; top: 2px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--track); z-index: 1; }
.od-step::before { content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--track); }
.od-step:first-child::before { display: none; }
.od-step.done { color: var(--text-2); } .od-step.done i, .od-step.done::before { background: var(--green); }
.od-step.now { color: var(--accent); font-weight: 600; } .od-step.now i, .od-step.now::before { background: var(--accent); } .od-step.now i { box-shadow: 0 0 0 4px var(--accent-soft); }
.od-step.stuck { color: var(--red); font-weight: 600; } .od-step.stuck i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); } .od-step.stuck::before { background: var(--green); }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wl-ic { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--ov), .06); color: var(--muted); flex: none; }
.wl-ic.accent { background: var(--accent-soft); color: var(--accent); } .wl-ic.green { background: var(--green-soft); color: var(--green); } .wl-ic.yellow { background: var(--yellow-soft); color: var(--yellow); } .wl-ic.purple { background: var(--purple-soft); color: var(--purple); }
.kpi.wl .kpi-v { margin-top: 9px; }
.in-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 16px; }
.in-card { padding: 12px 13px; }
.hb-row.wide4 { grid-template-columns: 96px minmax(0, 1fr) 62px 34px; }

/* ---------- mission control ---------- */
.mc-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mc-board { flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 16px; align-items: stretch; }
.mc-col { flex: none; width: 262px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.mc-col.compact { width: 200px; }
.mc-col.over { border-color: var(--accent); background: var(--accent-soft); }
.mc-colh { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-bottom: 1px solid var(--line-2); }
.mc-colh b { display: block; font-size: 13px; } .mc-colh small { font-size: 8.5px; letter-spacing: .12em; color: var(--dim); } .mc-colh small.live { color: var(--green); }
.mc-av { border-radius: 50%; padding: 2px; border: 2px solid transparent; line-height: 0; } .mc-av.live { border-color: var(--green); }
.mc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.mc-empty { text-align: center; color: var(--dim); font-size: 11.5px; padding: 26px 0; }
.mc-task { background: var(--card-hi); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.mc-task:hover { border-color: var(--accent-line); } .mc-task.drag { opacity: .4; }
.mc-task.running { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-soft); }
.mc-desc { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-spin { width: 12px; height: 12px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chat ---------- */
.ch-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 16px 6px; border-bottom: 1px solid var(--line-2); }
.ch-tabs .tab.two { max-width: 104px; white-space: normal; text-align: center; line-height: 1.25; }
.ch-strip { flex: none; display: flex; gap: 16px; padding: 6px 16px; font-size: 9.5px; letter-spacing: .1em; color: var(--dim); border-bottom: 1px solid var(--line-2); font-family: var(--mono); }
.ch-strip b { color: var(--text-2); font-weight: 500; }
.ch-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ch-m { max-width: min(980px, 82%); padding: 9px 13px; border-radius: 9px; font-size: 13px; line-height: 1.55; }
.ch-m.bot { background: var(--bubble); align-self: flex-start; }
.ch-m.me { background: #7ac6ff; color: #0f2233; align-self: flex-end; white-space: pre-wrap; }
html[data-theme="graphite"] .ch-m.me { background: #b9a4ff; } html[data-theme="crimson"] .ch-m.me { background: #ff9aa8; }
.ch-who { display: flex; align-items: center; gap: 7px; font-size: 11px; margin-bottom: 5px; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 4px; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ch-foot { flex: none; border-top: 1px solid var(--line-2); padding: 9px 16px 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ch-chips { display: flex; gap: 6px; } .ch-chips .chip { cursor: pointer; padding: 3px 9px; } .ch-chips .chip:hover { color: var(--text); border-color: var(--accent-line); }
.ch-row { display: flex; gap: 8px; width: min(880px, 100%); }
.ch-in { flex: 1; resize: none; background: rgba(var(--ov), .05); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; color: var(--text); min-height: 38px; max-height: 140px; }
.ch-in:focus { border-color: var(--accent-line); }

/* ---------- rooms ---------- */
.rm-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.rm-list { border-right: 1px solid var(--line-2); overflow-y: auto; padding: 8px; }
.rm-it { display: flex; gap: 10px; align-items: center; padding: 8px 9px; border-radius: 8px; cursor: pointer; font-size: 12.5px; min-width: 0; }
.rm-it .grow { min-width: 0; } .rm-it:hover { background: rgba(var(--ov), .04); } .rm-it.on { background: var(--card-hi); }
.rm-ex { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-sec { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); padding: 12px 9px 5px; font-weight: 600; }
.rm-new { display: flex; align-items: center; gap: 8px; padding: 9px; color: var(--muted); cursor: pointer; font-size: 12.5px; } .rm-new:hover { color: var(--text); }
.rm-pane { display: flex; flex-direction: column; min-height: 0; }
.rm-h { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.rm-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rm-sys { align-self: flex-end; font-size: 11px; color: var(--dim); } .rm-sys.err { color: var(--red); }
.rm-who { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--orange); margin-bottom: 5px; } .rm-who .dim { font-weight: 400; }
.rm-b { background: var(--bubble-2); border-radius: 9px; padding: 10px 14px; font-size: 13px; line-height: 1.6; max-width: 900px; }
.rm-me { align-self: flex-end; background: rgba(var(--ov), .08); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; max-width: 70%; }
.rm-f { padding: 10px 18px 12px; border-top: 1px solid var(--line-2); }
.rm-in { display: flex; align-items: center; gap: 9px; background: rgba(var(--ov), .05); border: 1px solid var(--line); border-radius: 9px; padding: 6px 7px 6px 12px; }
.rm-in input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); min-width: 0; }

/* ---------- war room ---------- */
.wr-pick { max-width: 860px; margin: 26px auto 0; } .wr-pick p { line-height: 1.6; margin: 0 0 16px; }
.wr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wr-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; }
.wr-card:hover { border-color: var(--accent-line); background: var(--card-hi); }
.wr-card b { font-size: 15px; margin-top: 6px; } .wr-card span:last-child { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.wr-recent { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); margin: 16px 0 8px; font-weight: 600; }
.wr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 7px; cursor: pointer; font-size: 11.5px; }
.wr-row:hover { border-color: var(--accent-line); } .wr-t { font-size: 13px; margin-top: 5px; color: var(--text); }
.wr-voice { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 11px; }
.wr-voice .select { min-width: 210px; }

.wm { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #070407; color: #e9e6f2; }
.wm-top { flex: none; display: flex; align-items: center; gap: 13px; padding: 9px 16px; border-bottom: 1px solid #241f2b; }
.wm-top b { display: block; font-size: 13.5px; } .wm-top small { font-size: 8.5px; letter-spacing: .18em; color: #7d778a; font-family: var(--mono); }
.wm-back { color: #b9b3c8; display: inline-flex; }
.wm-clock { font-family: var(--mono); font-size: 11px; background: #1c1821; border-radius: 12px; padding: 3px 10px; color: #c9c3d8; }
.wm-chip { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 4px 11px; border-radius: 14px; display: inline-flex; align-items: center; gap: 7px; }
.wm-chip.fresh { background: rgba(61, 220, 151, .13); color: #5fe0a8; border: 1px solid rgba(61, 220, 151, .4); }
.wm-chip.pin { background: rgba(140, 120, 255, .18); color: #cfc5ff; letter-spacing: 0; font-family: var(--font); font-size: 11.5px; } .wm-chip.pin i { width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; }
.wm-chip.ended { background: rgba(var(--ov), .07); color: #9a94a8; }
.wm-btn { border: 1px solid #2c2633; background: #151118; color: #d6d0e4; border-radius: 7px; padding: 5px 11px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.wm-btn:hover { border-color: #4a4257; } .wm-btn.on { border-color: #a78bfa; color: #e3dcff; }
.wm-btn.end, .wm-btn.stop { color: #ff9aa5; } .wm-btn.send { background: #6d5bd6; border-color: #6d5bd6; color: #fff; }
.wm-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.wm-side { border-right: 1px solid #241f2b; display: flex; flex-direction: column; min-height: 0; }
.wm-side-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: #7d778a; }
.wm-size { display: inline-flex; gap: 2px; background: #151118; border-radius: 6px; padding: 2px; }
.wm-size button { border: 0; background: transparent; color: #7d778a; font-family: var(--mono); font-size: 9.5px; width: 20px; height: 18px; border-radius: 4px; } .wm-size button.on { background: #8b7cf6; color: #fff; }
.wm-team { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.wm-mem { background: #131016; border: 1px solid #241f2b; border-radius: 10px; padding: 12px 9px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; cursor: pointer; }
.wm-mem.S { flex-direction: row; padding: 6px 9px; text-align: left; gap: 9px; }
.wm-mem b { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; } .wm-mem b i { width: 6px; height: 6px; border-radius: 50%; background: #6d6779; }
.wm-mem.busy { border-color: #e0a34a; } .wm-mem.busy b i { background: #ffc15c; box-shadow: 0 0 8px #ffc15c; } .wm-mem.pinned { border-color: #8b7cf6; }
.wm-mem em { font-size: 10.5px; color: #9a94a8; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wm-mem small { font-family: var(--mono); font-size: 9px; color: #6d6779; }
.wm-mem .av { border: 2px solid #2c2633; }
.wm-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.wm-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 11px; }
.wm-start { margin: auto; text-align: center; color: #9a94a8; } .wm-start b { display: block; color: #e9e6f2; font-size: 14.5px; margin-bottom: 6px; }
.wm-sys { text-align: center; font-style: italic; font-size: 11.5px; color: #8a8497; padding: 0 30px; line-height: 1.5; }
.wm-me { align-self: flex-end; text-align: right; } .wm-me > div { background: #4b3fb5; color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13px; display: inline-block; text-align: left; } .wm-me small { display: block; font-size: 9.5px; color: #7d778a; margin-top: 3px; }
.wm-msg { display: flex; gap: 10px; max-width: 880px; }
.wm-who { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 4px; } .wm-who small { color: #7d778a; font-size: 10px; }
.wm-b { background: #17131b; border: 1px solid #2a2431; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.wm-tools { font-family: var(--mono); font-size: 10px; color: #7d778a; margin-top: 5px; }
.wm-foot { flex: none; padding: 10px 22px 14px; position: relative; } .wm-foot.ended { display: flex; align-items: center; justify-content: center; gap: 12px; color: #9a94a8; border-top: 1px solid #241f2b; }
.wm-in { display: flex; gap: 8px; align-items: center; background: #131016; border: 1px solid #3a3350; border-radius: 10px; padding: 7px 8px 7px 14px; }
.wm-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #f1eefa; font-size: 13.5px; }
.wm-pop { position: absolute; left: 22px; bottom: 62px; width: min(560px, calc(100% - 44px)); background: #17131d; border: 1px solid #332c40; border-radius: 10px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 5; }
.wm-pop-h { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: #7d778a; padding: 6px 9px; }
.wm-cmd { display: grid; grid-template-columns: 82px 150px minmax(0, 1fr); gap: 8px; padding: 8px 9px; border-radius: 7px; cursor: pointer; font-size: 12px; align-items: baseline; }
.wm-cmd b { font-family: var(--mono); } .wm-cmd code { font-family: var(--mono); font-size: 11px; color: #9a94a8; } .wm-cmd span { color: #a9a3b8; }
.wm-cmd:hover, .wm-cmd.on { background: #2c2748; }
.wm-intro { position: absolute; inset: 0; background: #070407; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity .45s; }
.wm-intro.out { opacity: 0; pointer-events: none; }
.wm-intro h1 { margin: 0; font-size: 54px; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(180deg, #fff 30%, #a59fb6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wmrise .7s ease-out both; }
.wm-intro .sub { font-family: var(--mono); font-size: 11px; letter-spacing: .5em; color: #8a8497; animation: wmrise .7s .15s ease-out both; }
.wm-intro .sub.ready { margin-top: 2px; animation-delay: 2.1s; }
.wm-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 26px; max-width: 900px; margin: 34px 0 30px; }
.wm-face { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: wmpop .5s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.wm-face b { font-size: 13px; } .wm-face small { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: #4fd89a; display: inline-flex; align-items: center; gap: 6px; } .wm-face small i { width: 5px; height: 5px; border-radius: 50%; background: #4fd89a; box-shadow: 0 0 7px #4fd89a; }
.wm-line { width: 270px; height: 2px; background: #1c1821; border-radius: 2px; overflow: hidden; } .wm-line i { display: block; height: 100%; background: linear-gradient(90deg, #7c6cf0, #4fd89a); animation: wmfill 2.1s ease-out both; }
@keyframes wmrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wmpop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes wmfill { from { width: 0; } to { width: 100%; } }

/* ---------- hive mind ---------- */
.pg.hv { background: #171a27; }
.hv-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 16px 8px; border-bottom: 1px solid var(--line-2); align-items: center; }
.hv-stage { position: relative; flex: 1 1 auto; min-height: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, #221b46 0%, #171a27 70%); overflow: hidden; }
.hv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hv-scroll { position: absolute; inset: 0; overflow: auto; padding: 16px; }
.hv-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 10.5px; color: var(--dim); pointer-events: none; }
.hv-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hv-views { display: inline-flex; background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; gap: 2px; }
.hv-views button { border: 0; background: transparent; color: var(--muted); width: 26px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; } .hv-views button.on { background: var(--accent); color: var(--accent-ink); }
.hv-tip { position: absolute; z-index: 6; width: 280px; background: rgba(28, 32, 50, .97); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font-size: 12.5px; pointer-events: none; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.hv-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 340px; background: rgba(34, 38, 58, .96); border-left: 1px solid var(--line); z-index: 7; display: flex; flex-direction: column; }
.hv-ph { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.hv-ph .x { background: transparent; border: 0; color: var(--muted); padding: 3px; }
.hv-pb { padding: 12px 14px; overflow: auto; } .hv-pb small { display: block; font-size: 9.5px; letter-spacing: .12em; color: var(--dim); margin: 12px 0 6px; } .hv-pb small:first-child { margin-top: 0; }
.hv-pb code { font-family: var(--mono); font-size: 12.5px; } .hv-pb p { margin: 0; line-height: 1.6; font-size: 13px; }
.blurred .hv-sum { filter: blur(5px); user-select: none; }
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, 22px); gap: 5px; }
.hv-cell { width: 22px; height: 22px; border-radius: 5px; border: 0; opacity: .9; } .hv-cell:hover, .hv-cell.on { outline: 2px solid #fff; opacity: 1; }
.mm-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; } .mm-row.click { cursor: pointer; } .mm-row.click:hover { border-color: var(--accent-line); }
.mm-t { font-size: 13px; line-height: 1.5; }
.mm-w { width: 92px; flex: none; } .mm-w small { display: block; font-size: 9px; color: var(--dim); margin-bottom: 4px; }

/* ---------- settings ---------- */
.se { max-width: 760px; }
.se h3 { margin: 22px 0 3px; font-size: 14.5px; } .se h3:first-child { margin-top: 4px; }
.se-d { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.se-card { padding: 4px 16px; }
.se-row { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.se-row:last-child { border-bottom: 0; }
.se-row b { display: block; font-size: 13px; font-weight: 600; } .se-row b code { font-family: var(--mono); font-size: 9.5px; color: var(--dim); font-weight: 400; margin-left: 9px; letter-spacing: .04em; }
.se-row small { color: var(--dim); font-size: 11.5px; line-height: 1.45; display: block; margin-top: 2px; }
.se-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 62%; }
.se-pills button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 7px; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.se-pills button i { width: 9px; height: 9px; border-radius: 3px; }
.se-pills button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; }

@media (max-width: 1100px) { .rp-wrap { flex-direction: column; overflow: auto; } .as.side { width: auto; border-left: 0; border-top: 1px solid var(--line-2); min-height: 320px; } .rp-grid, .ds-wrap { grid-template-columns: minmax(0, 1fr); } .tp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .rm-wrap, .wm-body { grid-template-columns: minmax(0, 1fr); } .rm-list, .wm-side { display: none; } .ap-grid { grid-template-columns: repeat(2, 1fr); } .ap-imgs { grid-template-columns: repeat(4, 1fr); } .sd-mocks { grid-template-columns: repeat(4, 1fr); } .wr-cards { grid-template-columns: 1fr; } .hv-panel { width: 100%; } .wm-intro h1 { font-size: 36px; } }

/* ---------- điện thoại: gọn bảng P&L và quả cầu nổi ---------- */
@media (max-width: 760px) {
	.pl-row { grid-template-columns: minmax(0, 1fr) 44px 86px; }
	.pl-row .pl-v { display: none; }
	.jw-orb { width: 78px; height: 78px; }
	.jw-orb .ic svg { width: 16px; height: 16px; }
	.hm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ch-tabs .tab.two { max-width: none; }
	.ag-grid, .ag-grid.bots { grid-template-columns: minmax(0, 1fr); }
	.se-row { flex-direction: column; align-items: stretch; gap: 8px; }
	.se-pills { justify-content: flex-start; max-width: none; }
}
