/* =====================================================================
   سامانه‌ی هوشمند بیمه — سیستم طراحی تمیز و حرفه‌ای (ShAI.D)
   تم تیره‌ی رسمی + اکسنت آبی (اعتماد)، داده‌محور و خوانا.
   ===================================================================== */

:root {
  --bg:        #0b0e14;
  --bg-2:      #0f131c;
  --panel:     #141925;
  --panel-2:   #19202e;
  --raised:    #1f2738;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.13);
  --ink:       #eef1f6;
  --muted:     #9aa3b4;
  --dim:       #69748a;

  --blue:      #5a86e6;
  --blue-soft: #87aaf2;
  --blue-deep: #3a5fc4;
  --blue-glow: rgba(90,134,230,0.20);

  --ok:        #4fc58a;
  --ok-bg:     rgba(79,197,138,0.13);
  --warn:      #e3a64b;
  --warn-bg:   rgba(227,166,75,0.13);
  --bad:       #e8675f;
  --bad-bg:    rgba(232,103,95,0.12);
  --steel:     #7f93b3;
  --steel-bg:  rgba(127,147,179,0.14);

  --radius:    16px;
  --radius-sm: 11px;
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.34);
  --font:      'Vazirmatn', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(90,134,230,0.10), transparent 60%),
    radial-gradient(800px 420px at 0% 4%, rgba(58,95,196,0.06), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.7;
}
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue-glow); }

.eyebrow { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-soft); font-weight: 600; margin: 0 0 8px; }

.h-shell { max-width: 1260px; margin: 0 auto; padding: 0 22px 64px; }
.h-main { padding-top: 24px; }

/* ---------- Topbar ---------- */
.ins-topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  max-width: 1260px; margin: 0 auto; padding: 13px 22px;
  background: rgba(11,14,20,0.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.ins-brand { display: flex; align-items: center; gap: 12px; }
.ins-brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 18px var(--blue-glow); overflow: hidden;
}
.ins-brand-mark svg { width: 22px; height: 22px; }
.ins-brand-mark img { width: 42px; height: 42px; display: block; border-radius: 12px; }
.ins-brand-text b { display: block; font-size: 16px; line-height: 1.2; }
.ins-brand-text span { font-size: 11px; color: var(--dim); }

.ins-nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.ins-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); border: 1px solid transparent; transition: .18s;
}
.ins-nav a svg { width: 16px; height: 16px; }
.ins-nav a:hover { color: var(--ink); background: var(--panel); }
.ins-nav a.is-active { color: #07101f; background: linear-gradient(145deg, var(--blue-soft), var(--blue)); font-weight: 600; }
.ins-menu-toggle {
  display:none; width:42px; height:42px; margin-inline-start:auto; flex:none; place-items:center;
  color:var(--ink); background:var(--panel); border:1px solid var(--line-2); border-radius:11px;
}
.ins-menu-toggle svg { width:21px; height:21px; }

.ins-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px 7px 9px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ins-chip .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--blue-soft); }
.ins-chip .av svg { width: 17px; height: 17px; }
.ins-chip b { font-size: 13px; }
.ins-chip span { display: block; font-size: 10.5px; color: var(--dim); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px;
  border-radius: 12px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); transition: .18s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: var(--blue); color: var(--blue-soft); }
.btn-blue { background: linear-gradient(145deg, var(--blue-soft), var(--blue)); color: #07101f; border-color: transparent; }
.btn-blue:hover { filter: brightness(1.06); color: #07101f; }
.btn-ghost { background: transparent; }

/* ---------- Card ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Dots / pills ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.dot.steel { background: var(--steel); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.steel { background: var(--steel-bg); color: var(--steel); }

/* ---------- Section head ---------- */
.section-head { margin-bottom: 20px; }
.section-head h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; max-width: 64ch; }

/* ---------- Hero ---------- */
.ins-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  padding: 28px 32px; margin-bottom: 22px; border-radius: 20px;
  background: radial-gradient(500px 260px at 88% 0%, var(--blue-glow), transparent 62%), linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
}
.ins-hero h1 { font-size: clamp(23px, 3.2vw, 32px); margin-bottom: 8px; }
.ins-hero p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; max-width: 56ch; }
.ins-hero-side { display: flex; gap: 10px; }

/* ---------- Connected role experiences ---------- */
.role-heading, .assistant-heading, .risk-heading { margin-top: 42px; }
.role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 20px; }
.role-card {
  position: relative; overflow: hidden; min-height: 255px; padding: 24px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.role-card::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,var(--blue-soft),transparent); }
.role-card:hover { transform: translateY(-3px); border-color: rgba(90,134,230,.38); }
.role-icon { width: 46px; height: 46px; border-radius: 13px; display:grid; place-items:center; background:var(--raised); color:var(--blue-soft); margin-bottom:18px; }
.role-icon svg { width:22px; height:22px; }
.role-no { color:var(--blue-soft); font-size:11.5px; font-weight:700; margin-bottom:8px; }
.role-card h3 { font-size:18px; line-height:1.65; margin-bottom:9px; }
.role-card p { color:var(--muted); font-size:13.5px; }
.role-out { display:flex; align-items:center; gap:7px; margin-top:auto; padding-top:18px; color:var(--blue-soft); font-size:12px; font-weight:700; }
.role-out svg { width:14px; height:14px; }
.role-card.employee::before { background:linear-gradient(90deg,transparent,var(--ok),transparent); }
.role-card.employee .role-icon, .role-card.employee .role-no, .role-card.employee .role-out { color:var(--ok); }
.role-card.manager::before { background:linear-gradient(90deg,transparent,var(--warn),transparent); }
.role-card.manager .role-icon, .role-card.manager .role-no, .role-card.manager .role-out { color:var(--warn); }

.action-grid { margin-top:18px; }
.flow-step { position:relative; display:flex; gap:12px; padding:10px 0; color:var(--dim); }
.flow-step:not(:last-child)::after { content:""; position:absolute; right:14px; top:38px; width:1px; height:20px; background:var(--line-2); }
.flow-step > span { width:29px; height:29px; border-radius:9px; display:grid; place-items:center; flex:none; background:var(--raised); border:1px solid var(--line); font-size:11px; }
.flow-step b { display:block; color:var(--ink); font-size:13.5px; }
.flow-step small { display:block; font-size:11.5px; color:var(--dim); line-height:1.7; margin-top:2px; }
.flow-step.done > span { background:var(--ok-bg); color:var(--ok); border-color:rgba(79,197,138,.24); }
.flow-step.active > span { background:var(--warn-bg); color:var(--warn); border-color:rgba(227,166,75,.26); box-shadow:0 0 14px rgba(227,166,75,.12); }

.assistant-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.assistant-card { padding:17px; display:flex; align-items:center; gap:12px; }
.assistant-card > svg { width:21px; height:21px; color:var(--blue-soft); flex:none; }
.assistant-card b { display:block; font-size:14px; }
.assistant-card span { display:block; color:var(--dim); font-size:11px; line-height:1.55; margin-top:2px; }

/* ---------- Customer portal ---------- */
.customer-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-bottom:18px; }
.summary-card { padding:17px; display:flex; align-items:center; gap:13px; min-width:0; }
.summary-card > svg { width:23px; height:23px; color:var(--blue-soft); flex:none; }
.summary-card > div { min-width:0; flex:1; }
.summary-card span:not(.pill), .summary-card small { display:block; color:var(--dim); font-size:11.5px; }
.summary-card b { display:block; color:var(--ink); font-size:13.5px; margin:3px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.summary-card .pill { flex:none; }

.customer-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:16px; margin-bottom:26px; align-items:start; }
.customer-panel { padding:20px; }
.customer-panel .rail-head .pill { margin-inline-start:auto; font-weight:500; }
.customer-timeline { padding-top:7px; }
.ct { position:relative; display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:12px; padding:12px 0; align-items:start; }
.ct:not(:last-child)::after { content:""; position:absolute; inset-inline-start:15px; top:43px; bottom:-8px; width:2px; background:var(--line-2); }
.ct > span { width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:var(--panel-2); border:1px solid var(--line-2); color:var(--dim); font-size:12px; font-weight:700; z-index:1; }
.ct > span svg { width:16px; height:16px; }
.ct b { display:block; font-size:13.5px; }
.ct small { display:block; color:var(--dim); font-size:11.5px; line-height:1.75; margin-top:3px; }
.ct time { color:var(--dim); font-size:11px; white-space:nowrap; padding-top:7px; }
.ct.done > span { background:var(--ok-bg); border-color:rgba(79,197,138,.25); color:var(--ok); }
.ct.done:not(:last-child)::after { background:rgba(79,197,138,.27); }
.ct.active > span { background:var(--warn-bg); border-color:rgba(227,166,75,.28); color:var(--warn); box-shadow:0 0 14px rgba(227,166,75,.12); }
.ct.active b { color:var(--warn); }

.missing-doc { display:flex; gap:12px; padding:14px; margin:12px 0; border-radius:12px; background:var(--warn-bg); border:1px solid rgba(227,166,75,.2); }
.missing-doc > svg { width:21px; height:21px; color:var(--warn); flex:none; margin-top:2px; }
.missing-doc b { display:block; color:var(--ink); font-size:13px; }
.missing-doc p { color:var(--muted); font-size:11.5px; line-height:1.8; margin-top:5px; }
.upload-demo { width:100%; justify-content:center; }
.demo-note { color:var(--dim); font-size:10.5px; line-height:1.7; margin-top:9px; text-align:center; }

.coverage-heading { margin-top:4px; }
.coverage-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-bottom:22px; }
.coverage-card { display:flex; gap:12px; padding:17px; min-height:112px; }
.coverage-card > svg { width:21px; height:21px; flex:none; }
.coverage-card.yes > svg { color:var(--ok); }
.coverage-card.no > svg { color:var(--bad); }
.coverage-card b { display:block; font-size:13.5px; }
.coverage-card span { display:block; color:var(--dim); font-size:11px; line-height:1.7; margin-top:5px; }

/* ---------- KPI row ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; margin-bottom: 18px; }
.kpi { padding: 16px; }
.kpi svg { width: 21px; height: 21px; color: var(--blue-soft); }
.kpi.warn svg { color: var(--warn); }
.kpi.bad svg { color: var(--bad); }
.kpi.ok svg { color: var(--ok); }
.kpi .t { font-size: 12px; color: var(--muted); margin: 9px 0 4px; }
.kpi strong { font-size: 24px; line-height: 1; display: block; }
.kpi em { font-size: 11px; color: var(--dim); font-style: normal; display: block; margin-top: 6px; }

/* ---------- Service strip ---------- */
.svc-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.svc-strip .sc { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.svc-strip .sc svg { width: 16px; height: 16px; color: var(--muted); }
.svc-strip .sc em { font-style: normal; color: var(--dim); font-size: 12px; }

/* ---------- Stage cards (claims funnel) ---------- */
.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.stage { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.stage .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--steel); }
.stage.ok .bar { background: var(--ok); } .stage.warn .bar { background: var(--warn); } .stage.bad .bar { background: var(--bad); } .stage.steel .bar { background: var(--steel); }
.stage .lab { font-size: 12.5px; color: var(--muted); }
.stage strong { font-size: 24px; display: block; }

/* ---------- Dashboard grid ---------- */
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.rail { padding: 20px; }
.rail-head { display: flex; align-items: center; gap: 9px; padding-bottom: 13px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.rail-head svg { width: 18px; height: 18px; color: var(--blue-soft); }
.rail-head span { font-size: 14px; font-weight: 600; }
.rail-head .more { margin-inline-start: auto; font-size: 12px; color: var(--blue-soft); }

.feed-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item > svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.feed-item.ok > svg { color: var(--ok); } .feed-item.warn > svg { color: var(--warn); } .feed-item.bad > svg { color: var(--bad); } .feed-item.steel > svg { color: var(--steel); }
.feed-item b { font-size: 13.5px; display: block; }
.feed-item span { font-size: 12px; color: var(--dim); }
.feed-item .dot { margin-inline-start: auto; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
table.tbl th { text-align: start; font-size: 11.5px; color: var(--dim); font-weight: 600; padding: 13px 16px; background: var(--panel-2); white-space: nowrap; }
table.tbl td { padding: 14px 16px; font-size: 13.5px; border-top: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
table.tbl td.strong { color: var(--ink); font-weight: 600; }
table.tbl tr:hover td { background: rgba(255,255,255,0.02); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* line/type chip */
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: 12px; background: var(--raised); color: var(--blue-soft); }

/* ---------- Claim cards (mobile-friendly + dashboard) ---------- */
.claim-list { display: grid; gap: 12px; }
.claim-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; }
.claim-card .cid { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.claim-card .ctitle { font-size: 14.5px; font-weight: 600; }
.claim-card .cmeta { font-size: 12.5px; color: var(--muted); }
.claim-card .camt { font-size: 16px; font-weight: 700; color: var(--blue-soft); white-space: nowrap; }
.claim-card .cside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Agency cards ---------- */
.agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
.agency-card { padding: 20px; }
.agency-card .ahead { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.agency-card .ahead .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--raised); color: var(--blue-soft); flex: none; }
.agency-card .ahead b { display: block; font-size: 14.5px; }
.agency-card .ahead span { font-size: 12px; color: var(--dim); }
.agency-card .ahead .pill { margin-inline-start: auto; }
.agency-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.agency-metrics div { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.agency-metrics span { font-size: 11px; color: var(--dim); display: block; }
.agency-metrics b { font-size: 15px; }

/* ---------- Assistant page ---------- */
.assist-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.assist-chat { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.assist-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.assist-head .orb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--blue-soft), var(--blue-deep)); color: #07101f; box-shadow: 0 0 18px var(--blue-glow); }
.assist-head .orb svg { width: 21px; height: 21px; }
.assist-head b { display: block; font-size: 15px; }
.assist-head span { font-size: 12px; color: var(--dim); }
.assist-head .pill { margin-inline-start: auto; }
.assist-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.a-msg { max-width: 84%; }
.a-msg .who { font-size: 11px; color: var(--dim); margin-bottom: 4px; display: block; }
.a-msg p { padding: 11px 15px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; }
.a-msg.bot { align-self: flex-start; }
.a-msg.bot p { background: var(--raised); border: 1px solid var(--line); border-end-start-radius: 5px; }
.a-msg.user { align-self: flex-end; }
.a-msg.user p { background: linear-gradient(145deg, var(--blue-soft), var(--blue)); color: #07101f; border-end-end-radius: 5px; }
.a-msg.typing p { color: var(--muted); }
.assist-foot { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.assist-foot input { flex: 1; min-width: 0; padding: 12px 15px; border-radius: 12px; font: inherit; font-size: 16px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); outline: none; }
.assist-foot input:focus { border-color: var(--blue); }
.assist-foot button { width: 46px; border: 0; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue-soft), var(--blue)); color: #07101f; }
.assist-foot button svg { width: 20px; height: 20px; }
.assist-side { padding: 20px; }
.assist-side h3 { font-size: 14px; margin-bottom: 12px; }
.topic-btn { display: block; width: 100%; text-align: start; padding: 11px 13px; margin-bottom: 9px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; transition: .16s; }
.topic-btn:hover { border-color: var(--blue); color: var(--blue-soft); }

/* ---------- Floating chatbot widget ---------- */
.fab { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line-2); background: linear-gradient(145deg, var(--blue-soft), var(--blue-deep)); color: #07101f;
  display: grid; place-items: center; box-shadow: 0 12px 32px var(--blue-glow); transition: transform .2s; }
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
.fab-panel { position: fixed; inset-block-end: 92px; inset-inline-end: 22px; z-index: 81; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px));
  display: none; flex-direction: column; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.fab-panel.open { display: flex; }
.fab-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.fab-head .orb { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--blue-soft); }
.fab-head .orb svg { width: 18px; height: 18px; }
.fab-head b { font-size: 14px; } .fab-head small { display: block; font-size: 10.5px; color: var(--dim); }
.fab-head .x { margin-inline-start: auto; background: none; border: 0; color: var(--dim); font-size: 20px; line-height: 1; }
.fab-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fab-quick { display:flex; gap:7px; overflow-x:auto; padding:0 12px 10px; scrollbar-width:none; }
.fab-quick::-webkit-scrollbar { display:none; }
.fab-quick button {
  flex:none; padding:7px 10px; border-radius:999px; border:1px solid var(--line-2);
  background:var(--panel-2); color:var(--blue-soft); font:500 11px var(--font); white-space:nowrap;
}
.fab-quick button:hover { border-color:var(--blue); }
.fab-foot { padding: 10px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.fab-foot input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; font: inherit; font-size: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); outline: none; }
.fab-foot input:focus { border-color: var(--blue); }
.fab-foot button { border: 0; border-radius: 11px; padding: 0 15px; background: var(--blue); color: #07101f; font-weight: 700; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .ins-chip { display:none; }
  .ins-nav { flex-wrap:nowrap; }
  .ins-nav a { padding-inline:11px; }
}
@media (max-width: 1040px) {
  .kpi-row { grid-template-columns: repeat(3,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .assist-wrap { grid-template-columns: 1fr; }
  .ins-hero { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 220px; }
  .assistant-grid { grid-template-columns: repeat(2,1fr); }
  .customer-summary { grid-template-columns:1fr; }
  .customer-grid { grid-template-columns:1fr; }
  .coverage-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px) {
  .ins-topbar { flex-wrap:nowrap; }
  .ins-menu-toggle { display:grid; }
  .ins-nav {
    display:none; position:absolute; inset-inline:14px; top:calc(100% + 1px); width:auto; margin:0;
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:11px; max-height:calc(100vh - 90px);
    overflow-y:auto; background:rgba(15,19,28,.98); border:1px solid var(--line-2);
    border-radius:0 0 16px 16px; box-shadow:0 24px 46px rgba(0,0,0,.48); backdrop-filter:blur(18px);
  }
  .ins-topbar.menu-open .ins-nav { display:grid; }
  .ins-nav a { width:100%; padding:10px 12px; white-space:normal; background:var(--panel); border-color:var(--line); }
}
@media (max-width: 620px) {
  .h-shell { padding: 0 14px 48px; }
  .ins-topbar { padding: 11px 14px; gap: 10px; }
  .ins-chip { display: none; }
  .ins-brand-text span { display:none; }
  .ins-brand-text b { font-size:14px; }
  .ins-nav { grid-template-columns:1fr; }
  .ins-nav a { font-size:12.5px; }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
  .stage-row { grid-template-columns: repeat(2,1fr); }
  .claim-card { grid-template-columns: 1fr; }
  .claim-card .cside { align-items: flex-start; flex-direction: row; }
  .assistant-grid { grid-template-columns: 1fr; }
  .ins-hero-side { flex-direction:column; align-items:stretch; }
  .coverage-grid { grid-template-columns:1fr; }
  .ct { grid-template-columns:32px minmax(0,1fr); }
  .ct time { grid-column:2; padding-top:0; }
  .customer-panel { padding:16px; }
  .customer-panel .rail-head { align-items:flex-start; flex-wrap:wrap; }
  .customer-panel .rail-head .pill { margin-inline-start:0; }
  .fab { inset-inline-end:14px; inset-block-end:14px; }
  .fab-panel { inset-inline:14px; width:auto; inset-block-end:82px; height:min(560px,calc(100vh - 105px)); }
}
