/* GIÁ THẬT AI butler — shared conversation surface (vehicles finder, property finder, goods pages).
   GT-20260914-CLAUDE1-INVENTORY-AI-BUTLER-R1. Mobile-first; no hover-only information. */
.gtb{--gtb-ink:var(--ink,#1F2933);--gtb-muted:var(--muted,#4B5563);--gtb-line:var(--line,#E5E7EB);--gtb-accent:var(--accent,#047857);--gtb-panel:var(--panel,#fff);--gtb-panel2:var(--panel2,#F3F4F6);
  display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px;color:var(--gtb-ink);font-size:15px;line-height:1.45;min-height:0;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}
.gtb-hide{display:none!important}
.gtb [hidden]{display:none!important}
.gtb-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}
.gtb-chips:empty{display:none}
.gtb-chips-label{color:var(--gtb-muted);margin-right:2px}
.gtb-chip{display:inline-block;border:1px solid var(--gtb-line);background:var(--gtb-panel2);border-radius:999px;padding:3px 10px;color:var(--gtb-ink);font:inherit;font-size:13px}
.gtb-chip-reset{background:transparent;border-style:dashed;cursor:pointer}
.gtb-messages{display:flex;flex-direction:column;gap:8px}
.gtb-msg{max-width:92%;padding:9px 12px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
.gtb-msg p{margin:0 0 6px}.gtb-msg p:last-child{margin-bottom:0}.gtb-msg ul{margin:4px 0 4px 18px;padding:0}.gtb-msg li{margin:2px 0}
.gtb-user{align-self:flex-end;background:var(--gtb-accent);color:#fff;border-bottom-right-radius:4px}
.gtb-assistant{align-self:flex-start;background:var(--gtb-panel2);border-bottom-left-radius:4px}
.gtb-progress{display:flex;align-items:center;gap:8px;color:var(--gtb-muted);font-size:13px;padding:4px 2px}
.gtb-spin{width:14px;height:14px;border:2px solid var(--gtb-line);border-top-color:var(--gtb-accent);border-radius:50%;display:inline-block;animation:gtbspin .9s linear infinite;flex:0 0 auto}
@keyframes gtbspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.gtb-spin{animation:none}}
.gtb-section-title{font-weight:700;font-size:14px;margin-top:4px}
.gtb-section-title.gtb-alt{color:var(--amber,#92400E)}
.gtb-muted{color:var(--gtb-muted);font-weight:400}
.gtb-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:720px){.gtb-grid{grid-template-columns:1fr 1fr}}
.gtb-card{position:relative;border:1px solid var(--gtb-line);border-radius:12px;background:var(--gtb-panel);overflow:hidden;display:flex;flex-direction:column;gap:6px;padding-bottom:8px}
.gtb-card-alt{border-style:dashed}
.gtb-rank{position:absolute;top:8px;left:8px;background:rgba(31,41,51,.85);color:#fff;font-size:12px;font-weight:700;border-radius:999px;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;padding:0 6px;z-index:1}
.gtb-card-img{aspect-ratio:4/3;max-height:190px;background:var(--gtb-panel2);overflow:hidden}
.gtb-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.gtb-noimg{height:100%;display:flex;align-items:center;justify-content:center;color:var(--gtb-muted);font-size:13px;min-height:90px}
.gtb-card-body{padding:8px 10px 0}
.gtb-title{font-weight:600;font-size:14px;line-height:1.3}
.gtb-price{color:var(--gtb-accent);font-weight:700;font-size:16px;margin-top:2px}
.gtb-meta-line,.gtb-seen{color:var(--gtb-muted);font-size:12.5px;margin-top:2px}
.gtb-why{padding:0 10px;font-size:13.5px}
.gtb-trade{padding:0 10px;font-size:13px;color:var(--gtb-muted)}
.gtb-needs{padding:0 10px;font-size:12.5px;color:var(--amber,#92400E)}
.gtb-relaxed{padding:0 10px;font-size:12.5px;color:var(--red,#B91C1C)}
.gtb-actions{display:flex;flex-wrap:wrap;gap:6px;padding:4px 10px 0}
.gtb-btn{font:inherit;font-size:13px;border:1px solid var(--gtb-line);background:var(--gtb-panel);color:var(--gtb-ink);border-radius:10px;padding:8px 12px;min-height:38px;cursor:pointer}
.gtb-btn.gtb-primary{background:var(--gtb-accent);border-color:var(--gtb-accent);color:#fff}
.gtb-btn.gtb-on{background:var(--gtb-panel2);border-color:var(--gtb-accent);color:var(--gtb-accent);font-weight:600}
.gtb-btn:focus-visible,.gtb-input:focus-visible,.gtb-sugg-chip:focus-visible,.gtb-chip-reset:focus-visible{outline:3px solid #A7F3D0;outline-offset:1px}
.gtb-evidence{margin:4px 10px 0;padding:8px 10px;border-radius:8px;background:var(--gtb-panel2);font-size:12.5px;display:flex;flex-direction:column;gap:4px}
.gtb-question{font-weight:600;font-size:14px;padding:6px 0 0}
.gtb-sugg{display:flex;flex-wrap:wrap;gap:6px}
.gtb-sugg-chip{font:inherit;font-size:13px;border:1px solid var(--gtb-accent);background:#fff;color:var(--gtb-accent);border-radius:999px;padding:7px 12px;cursor:pointer;text-align:left}
.gtb-form{display:flex;gap:6px;position:sticky;bottom:0;background:var(--gtb-panel);padding-top:6px;margin-top:auto}
.gtb-input{flex:1 1 auto;min-width:0;font:inherit;font-size:16px;border:1px solid var(--gtb-line);border-radius:12px;padding:10px 12px;background:#fff}
.gtb-send{flex:0 0 auto}
.gtb-foot{font-size:12px;color:var(--gtb-muted)}
.gtb-meta{font-size:12px}
.gtb-empty{color:var(--gtb-muted);font-size:14px}
/* embedded inside the vehicles finder modal: the panel already scrolls, keep the composer visible */
.finder-modal .gtb{flex:1 1 auto;overflow-y:auto;min-height:0}
/* property page / goods page standalone card */
.gtb-standalone{border:1px solid var(--gtb-line);border-radius:14px;background:var(--gtb-panel);margin:10px 0 14px;max-height:none;overflow:visible}
.gtb-standalone .gtb-form{position:static}
.gtb-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:700;font-size:15px}
.gtb-head .gtb-muted{font-size:12.5px;font-weight:400}

/* property page: the deterministic finder section stays in the DOM as the fallback engine, hidden while the butler is mounted */
body.gtb-property-mounted #fs-finder{display:none}
#gtb-property{padding:10px 12px}
#gtb-property .gtb{padding:8px 0 0;overflow:visible}
