/* Sample Insights report (/demo/insights/): the views on top of demo-app.css. */

.spark { width: 100%; height: 28px; display: block; }
.spark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark polygon { stroke: none; opacity: .14; }
.spark.c-blue polyline { stroke: var(--blue); } .spark.c-blue polygon { fill: var(--blue); }
.spark.c-orange polyline { stroke: var(--orange); } .spark.c-orange polygon { fill: var(--orange); }
.spark.c-grape polyline { stroke: var(--grape); } .spark.c-grape polygon { fill: var(--grape); }
.spark.c-yellow polyline { stroke: var(--yellow); } .spark.c-yellow polygon { fill: var(--yellow); }

/* Theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1250px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .theme-grid { grid-template-columns: minmax(0, 1fr); } }
.theme { padding: 12px; display: flex; flex-direction: column; gap: 5px; box-shadow: none; transition: border-color .15s; }
.theme:hover { border-color: #c5d3e8; }
.theme-top { display: flex; gap: 8px; align-items: flex-start; }
.theme-open { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 5px; }
.theme-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.theme-open:hover .theme-name { color: var(--blue-ink); text-decoration: underline; }
.pinmark { color: var(--dim); vertical-align: -2px; }
.theme-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.imp { font-size: 18px; font-weight: 700; line-height: 1; color: var(--ink); }
.acts { display: flex; gap: 2px; }

/* AI card */
.ai { padding: 18px; display: flex; flex-direction: column; gap: 12px; border-color: #d9d0fb; }
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ai-title { display: flex; gap: 10px; align-items: center; }
.ai-title h2 { font-size: 17px; font-family: var(--font); font-weight: 600; }
.ai-actions { display: flex; gap: 6px; align-items: center; }
.ti-box { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.ti-box.sm { width: 22px; height: 22px; font-size: 12px; }
.ti-box.c-violet { background: var(--violet-soft); color: var(--violet); }
.ti-box.c-yellow { background: var(--yellow-soft); }
.ai-summary { font-size: 14px; line-height: 1.6; max-width: 80ch; }
.ai h3 { font-size: 13.5px; font-family: var(--font); font-weight: 600; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }
.mini { text-align: left; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; box-shadow: none; }
.mini:hover { border-color: #c5d3e8; background: #fbfcfe; }
.mini-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini-top b { font-weight: 500; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-top > span { flex: none; display: inline-flex; gap: 4px; }
.find-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 6px; }
@media (max-width: 760px) { .find-grid { grid-template-columns: minmax(0, 1fr); } }
.findings h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ti { font-size: 10px; width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; }
.ti.c-teal { background: var(--teal-soft); color: var(--teal); } .ti.c-red { background: var(--red-soft); color: var(--red); }
.ti.c-blue { background: var(--blue-soft); color: var(--blue); } .ti.c-orange { background: var(--orange-soft); color: var(--orange); }
.findings ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ev { color: var(--dim); font-size: 12px; }
.ai-foot { font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 10px; }

/* Charts */
.legend { display: flex; justify-content: flex-end; gap: 14px; font-size: 12px; margin-bottom: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend i.c-blue { background: var(--blue-ink); } .legend i.c-teal { background: #20c997; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: #edf0f4; stroke-dasharray: 4 4; }
.chart text { font-size: 11px; fill: #868e96; font-family: var(--font); }
.chart .l1, .chart .l2 { fill: none; stroke-width: 2; }
.chart .l1 { stroke: var(--blue-ink); } .chart .l2 { stroke: #20c997; }
.chart .s1 { fill: var(--blue-ink); } .chart .s2 { fill: #20c997; }
.bars { display: flex; align-items: stretch; gap: 10px; height: 230px; padding-top: 6px; }
.bar { flex: 1; min-width: 0; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; border-radius: 6px; }
.bar:disabled { cursor: default; }
.bar-v { font-size: 12px; font-weight: 600; text-align: center; color: var(--ink); min-height: 18px; }
.bar-col { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.bar-col i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; transition: filter .15s; min-height: 2px; }
.bar:not(:disabled):hover .bar-col i { filter: brightness(1.12); }
.bar:not(:disabled):hover .bar-l { color: var(--blue-ink); }
.bar-l { font-size: 11.5px; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars.dist { gap: 5px; height: 200px; }
.bar-col i.c-teal { background: #20c997; } .bar-col i.c-red { background: #fa5252; } .bar-col i.c-yellow { background: #fcc419; }
@media (max-width: 520px) { .bars { gap: 5px; } .bar-l { font-size: 10px; } }
.cloud { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; padding: 6px 4px; }
.word { border: 0; background: none; padding: 2px 4px; border-radius: 4px; font-weight: 500; line-height: 1.2; }
.word:hover { background: var(--gray-soft); text-decoration: underline; }
.word.t-teal { color: #099268; } .word.t-red { color: #e03131; } .word.t-gray { color: #495057; }

.heat th { font-size: 11.5px; color: var(--dim); font-weight: 600; padding: 6px; text-align: center; }
.heat tbody th { text-align: left; color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; padding-right: 14px; }
.heat td { padding: 3px; text-align: center; }
.heat td button { width: 100%; min-width: 34px; height: 30px; border: 0; border-radius: 5px; background: rgba(34,139,230,var(--a)); color: var(--ink); font-size: 12px; font-weight: 600; }
.heat td button:hover { outline: 2px solid var(--blue-ink); }

/* Coaching, objections, customers, reports */
.coach-list { display: flex; flex-direction: column; gap: 10px; }
.coach { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: none; }
.coach-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.coach-top .who { display: flex; align-items: center; gap: 7px; }
.coach-acts { display: flex; gap: 6px; align-items: center; }
.obj-list { display: flex; flex-direction: column; }
.obj { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f5; flex-wrap: wrap; }
.obj-name { font-weight: 500; }
.obj-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.risk-list { display: flex; flex-direction: column; gap: 8px; }
.risk { display: flex; gap: 12px; align-items: center; padding: 10px 12px; text-align: left; box-shadow: none; }
.risk:hover { border-color: #f1b0b0; background: #fffafa; }
.risk-score { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.risk-score.c-red { background: var(--red-soft); color: #c92a2a; }
.risk-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.saved { display: flex; flex-direction: column; gap: 8px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; text-align: left; box-shadow: none; }
.saved-row:hover { border-color: #c5d3e8; }
.digest { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.digest-row { display: flex; gap: 12px; }
.digest-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 500; }
.digest-row select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fff; }

.dr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-tools .select select { min-width: 0; }
.range-in { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.range-in input { width: 90px; accent-color: var(--blue); }
.conv { text-align: left; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: none; }
.conv:hover { border-color: #c5d3e8; background: #fbfcfe; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.pager button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 12.5px; }
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.conv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--dim); font-size: 12.5px; }
.lbl { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-family: var(--font); margin-top: 6px; }
.dims { display: flex; flex-direction: column; gap: 6px; }
.dimrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 10px; align-items: center; font-size: 13px; }
.meter { height: 7px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; }
.meter i.c-teal { background: #20c997; } .meter i.c-red { background: #fa5252; } .meter i.c-yellow { background: #fcc419; }
.transcript { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 8px; padding: 12px; }
.line { display: flex; flex-direction: column; max-width: 88%; }
.line .who { font-size: 11px; color: var(--dim); font-weight: 500; margin-bottom: 2px; }
.line p { padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.line.agent { align-self: flex-end; align-items: flex-end; }
.line.agent p { background: var(--blue-soft); border-color: #cfe6fb; }

.email { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.email h3 { font-size: 18px; font-family: var(--font); }
.email h4 { font-size: 14px; font-family: var(--font); margin-top: 6px; }
.email ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Conversation actions that lead to the demo gate */
.conv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
