/* CRM Infoclip — design system (navy #1A365F + orange #EF8114), épuré type Attio/folk. WinWin GROUP. */
:root {
  --navy: #1A365F; --navy-2: #24497d; --navy-050: #eef2f8; --navy-100: #dde5f0;
  --orange: #EF8114; --orange-600: #d46f0b; --orange-050: #fff4e8;
  --ink: #17202e; --ink-2: #4a5568; --ink-3: #8592a6;
  --line: #e7eaf0; --line-2: #f0f2f6; --bg: #f7f8fa; --card: #fff;
  --ok: #1f9d63; --ok-bg: #e7f6ee; --warn: #b7791f; --warn-bg: #fdf3e1; --bad: #d64545; --bad-bg: #fdecec;
  --info: #2f6fca; --info-bg: #e9f1fc;
  --r: 10px; --r-sm: 7px;
  --sh: 0 1px 2px rgba(16,24,40,.05); --sh-lg: 0 12px 32px rgba(16,24,40,.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; font-weight: 550;
  cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { background: var(--line-2); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { color: var(--bad); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; height: 40px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 10px; min-height: 36px; width: 100%; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { border-color: #d3d8e2; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(239,129,20,.15); }
textarea { resize: vertical; min-height: 72px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 0 0 8px; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(239,129,20,.10), transparent 60%),
              radial-gradient(900px 600px at 110% 110%, rgba(26,54,95,.14), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: var(--sh-lg); }
.login-card h1 { margin-top: 26px; }
.login-card .sub { color: var(--ink-3); margin: 4px 0 22px; }
.login-card .foot { margin: 20px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 15px; color: var(--navy); }
.brand div span { display: block; font-size: 12px; color: var(--ink-3); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #c9d4e5; display: flex; flex-direction: column; padding: 16px 12px; }
.sidebar .brand { padding: 4px 8px 20px; }
.sidebar .brand b { color: #fff; }
.sidebar .brand div span { color: #8ea2c0; }
.sidebar .brand-mark { background: #fff; color: var(--navy); }
.sidebar .brand-mark::after { border-color: var(--navy); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: #c9d4e5; font-weight: 500; }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 8px; }
.sidebar .side-foot { margin-top: auto; padding: 12px 10px 0; font-size: 11.5px; color: #7f93b2; }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(247,248,250,.88); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar .crumb { font-weight: 600; color: var(--ink); }
.topbar .spacer { flex: 1; }
.burger { display: none; }
.who { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; }
.who .who-txt { line-height: 1.2; }
.who .who-txt b { display: block; font-size: 13px; }
.who .who-txt span { font-size: 11.5px; color: var(--ink-3); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-100); color: var(--navy); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.content { padding: 24px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 3px 0 0; color: var(--ink-3); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cartes / KPIs ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-body { padding: 16px 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi .val { font-size: 24px; font-weight: 680; letter-spacing: -.02em; margin-top: 4px; color: var(--navy); }
.kpi .hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi.accent .val { color: var(--orange-600); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.cols > *, .detail > *, .main, .content { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* pipeline par étape (barres) */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 120px; align-items: center; gap: 12px; font-size: 13px; }
.bar-row .track { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--navy); border-radius: 999px; min-width: 2px; }
.bar-row:nth-child(3) .fill, .bar-row:nth-child(4) .fill { background: var(--orange); }
.bar-row .amt { text-align: right; color: var(--ink-2); }

/* fil d'activité */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-100); margin-top: 6px; flex: none; }
.feed .dot.o { background: var(--orange); }
.feed .meta { color: var(--ink-3); font-size: 12px; }
.feed .body { white-space: pre-wrap; word-break: break-word; }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 550; font-size: 12px; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfcfd; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #fafbfc; }
.tbl .r { text-align: right; }
.cell-name { display: flex; align-items: center; gap: 10px; font-weight: 560; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--navy-050); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.toolbar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.empty { padding: 36px 16px; text-align: center; color: var(--ink-3); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 550;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip.navy { background: var(--navy-050); color: var(--navy); }
.chip.orange { background: var(--orange-050); color: var(--orange-600); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #f0f2f6; border-radius: var(--r); padding: 10px; min-height: 160px; transition: background .12s, box-shadow .12s; }
.col.over { background: var(--orange-050); box-shadow: inset 0 0 0 2px var(--orange); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-weight: 600; font-size: 13px; }
.col-head .count { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.col-head .sum { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.col-head .lbl::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--stage, var(--ink-3)); }
.opp { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--sh); transition: box-shadow .12s, transform .12s; }
.opp:hover { box-shadow: 0 4px 12px rgba(16,24,40,.08); }
.opp.dragging { opacity: .5; transform: rotate(1deg); }
.opp .t { font-weight: 580; font-size: 13.5px; line-height: 1.35; }
.opp .a { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.opp .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.opp .amt { font-weight: 650; color: var(--navy); font-size: 13px; }
.opp select { display: none; margin-top: 8px; min-height: 30px; padding: 4px 8px; font-size: 12.5px; }

/* ---------- détail compte ---------- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 9px 10px; font-size: 13px; }
.props dt { color: var(--ink-3); }
.props dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 550; color: var(--ink-3); padding: 12px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--navy); border-bottom-color: var(--orange); }
.tabs .n { font-size: 11.5px; color: var(--ink-3); margin-left: 4px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .sub { font-size: 12.5px; color: var(--ink-3); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; margin-bottom: 10px; }

/* score cyber */
.score { --v: 0; --c: var(--bad); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line-2) 0); }
.score span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--ink); }
.score.sm { width: 40px; height: 40px; }
.score.sm span { width: 30px; height: 30px; font-size: 11.5px; }
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.q .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.q .seg button { border: 0; background: #fff; font: inherit; font-size: 12.5px; padding: 5px 10px; cursor: pointer; color: var(--ink-2); }
.q .seg button + button { border-left: 1px solid var(--line); }
.q .seg button.on.y { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.q .seg button.on.p { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.q .seg button.on.n { background: var(--bad-bg); color: var(--bad); font-weight: 600; }

/* intégrations */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.int { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.int .top { display: flex; align-items: center; gap: 10px; }
.int .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--navy-050); color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none; }
.int .use { color: var(--ink-3); font-size: 13px; }
.int .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ---------- modale / panneau ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(16,24,40,.38); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: var(--sh-lg); animation: pop .14s ease-out; }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-body { padding: 10px 20px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px; }
.x:hover { color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.siren-results { border: 1px solid var(--line); border-radius: var(--r-sm); margin: -6px 0 14px; max-height: 240px; overflow: auto; }
.siren-results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; padding: 9px 12px; font: inherit; cursor: pointer; }
.siren-results button:last-child { border-bottom: 0; }
.siren-results button:hover { background: var(--orange-050); }
.siren-results small { display: block; color: var(--ink-3); font-size: 12px; }
.secret-box { background: var(--navy-050); border-radius: var(--r-sm); padding: 12px; word-break: break-all; margin: 8px 0 14px; }
.note { background: var(--orange-050); border: 1px solid #fbd9b5; color: #7a4308; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13.5px; box-shadow: var(--sh-lg); animation: pop .15s; }
.toast.bad { background: var(--bad); }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cols, .detail { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 90; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--sh-lg); }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.35); }
  .burger { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .who .who-txt { display: none; }
  #btnProfile { display: none; }
  .topbar { gap: 8px; }
  .topbar .crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .col { min-height: 0; }
  .list-item { flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .val { font-size: 19px; }
  .content { padding: 16px; }
  h1 { font-size: 19px; }
  .grid2 { grid-template-columns: 1fr; }
  .kanban { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; }
  .opp { cursor: default; }
  .opp select { display: block; }
  .bar-row { grid-template-columns: 90px 1fr 90px; }
  .tbl .hide-sm { display: none; }
  .q { flex-direction: column; align-items: stretch; }
  .modal { max-height: calc(100vh - 16px); }
  .overlay { padding: 8px; align-items: end; }
}

/* ---------- assistant IA ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(26,54,95,.35); transition: transform .12s, background .12s; }
.ai-fab:hover { background: var(--navy-2); transform: translateY(-1px); }
.ai-fab svg { width: 18px; height: 18px; color: var(--orange); }
.ai-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: 420px; max-width: 100vw; background: #fff; border-left: 1px solid var(--line);
  box-shadow: var(--sh-lg); display: flex; flex-direction: column; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ai-head b { display: block; color: var(--navy); }
.ai-head span { font-size: 12px; color: var(--ink-3); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; word-wrap: break-word; }
.ai-msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msg.bot.err { background: var(--bad-bg); border-color: #f5c9c9; color: var(--bad); }
.ai-msg.bot ul { margin: 4px 0; padding-left: 18px; }
.ai-msg.bot p { margin: 0 0 6px; } .ai-msg.bot p:last-child { margin: 0; }
.ai-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ai-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-hello { color: var(--ink-2); font-size: 13.5px; }
.ai-hello h3 { margin: 4px 0 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--navy); }
.ai-sugg { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ai-sugg button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.ai-sugg button:hover { border-color: var(--orange); background: var(--orange-050); }
.ai-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-input textarea { min-height: 40px; max-height: 160px; resize: none; }
.ai-input .btn { height: 40px; width: 40px; padding: 0; font-size: 17px; flex: none; }
body.ai-open .content { padding-right: 444px; }
body.ai-open .ai-fab { display: none; }
@media (max-width: 1180px) { body.ai-open .content { padding-right: 24px; } }
@media (max-width: 820px) {
  .ai-panel { width: 100vw; border-left: 0; }
  .ai-fab { right: 14px; bottom: 14px; }
  .ai-fab span { display: none; }
  .ai-fab { width: 48px; height: 48px; padding: 0; justify-content: center; }
  body.ai-open .content { padding-right: 16px; }
}
