/* Canvas Insights — styles for modules/canvas-insights.js and canvas-insights-charts.js.
   Everything is scoped under #canvas-insights-root (or the ci-* classes of its modals) so none of it leaks
   into the rest of the app. */
#canvas-insights-root, #dashboard-home-root { --ci-teal: #3897B6; --ci-teal-dark: #2d7d94; --ci-teal-light: #e8f4f8; --ci-ink: #1a1a2e; --ci-muted: #6a6862;
  --ci-line: #ece9e2; --ci-bg: #faf9f6; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ci-ink);
  background: var(--ci-bg); min-height: 100%; }
#canvas-insights-root *, #dashboard-home-root * { box-sizing: border-box; }
.ci-page { padding: 18px 32px 80px; width: 100%; max-width: none; }
.ci-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ci-line); margin: 0 0 22px; }
.ci-tab { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--ci-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; }
.ci-tab:hover { color: var(--ci-ink); }
.ci-tab.active { color: var(--ci-teal); border-bottom-color: var(--ci-teal); }
.ci-crumbs { font-size: 12px; color: #8a8a95; margin-bottom: 8px; }
.ci-crumbs a { color: var(--ci-teal); cursor: pointer; text-decoration: none; }
.ci-crumbs a:hover { text-decoration: underline; }
.ci-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ci-top h1 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; margin: 0; }
.ci-top h1 svg { width: 24px; height: 24px; }
.ci-sub { font-size: 14px; color: var(--ci-muted); margin-top: 4px; }
.ci-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; background: var(--ci-teal); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ci-btn:hover { background: var(--ci-teal-dark); }
.ci-btn:disabled { opacity: .5; cursor: not-allowed; }
.ci-btn.secondary { background: #fff; color: var(--ci-ink); border: 1px solid #ddd9cf; }
.ci-btn.secondary:hover { border-color: var(--ci-teal); color: var(--ci-teal); }
.ci-btn.danger { background: #d64545; }
.ci-btn svg { width: 15px; height: 15px; }
.ci-notice { background: #fff8e6; border: 1px solid #f3dca2; color: #7a5b0e; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; }

/* sections */
.ci-section { margin-bottom: 40px; }
.ci-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ci-sec-head h2 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.ci-sec-head .sub { font-size: 12.5px; color: #8a8a95; font-weight: 400; }
.ci-nav { display: inline-flex; gap: 4px; }
.ci-nav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ci-line); background: #fff; cursor: pointer; color: #555; font-size: 14px; }
.ci-nav button:hover:not(:disabled) { border-color: var(--ci-teal); color: var(--ci-teal); }
.ci-nav button:disabled { opacity: .35; cursor: not-allowed; }

/* composer */
.ci-free { background: linear-gradient(135deg, #fff 0%, #fbfaf6 100%); border: 1px solid var(--ci-line); border-radius: 16px; padding: 20px; }
.ci-composer { background: #fff; border: 1px solid #e8e5de; border-radius: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: box-shadow .2s, border-color .2s; position: relative; }
.ci-composer:focus-within { border-color: var(--ci-teal); box-shadow: 0 4px 20px rgba(56,151,182,.12); }
.ci-input { width: 100%; outline: none; padding: 18px 24px 8px; font-size: 14px; line-height: 1.7; min-height: 56px; max-height: 320px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; cursor: text; }
.ci-input:empty::before { content: attr(data-placeholder); color: #a8a6a0; pointer-events: none; }
.ci-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--ci-teal-light); color: #27697f; border: 1px solid #c8e5ef; border-radius: 8px; padding: 0 8px; margin: 0 2px; font-size: 12.5px; font-weight: 600; line-height: 22px; user-select: none; }
.ci-chip .k { opacity: .65; font-weight: 500; }
.ci-chip .x { cursor: pointer; opacity: .55; margin-left: 2px; font-size: 14px; line-height: 1; }
.ci-chip .x:hover { opacity: 1; }
.ci-comp-bottom { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 12px 14px; gap: 8px; flex-wrap: wrap; }
.ci-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; position: relative; }
.ci-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: transparent; border: 1px solid transparent; color: #666; font-size: 13px; font-weight: 500; border-radius: 10px; cursor: pointer; font-family: inherit; }
.ci-tool:hover { background: #f5f3ee; color: var(--ci-ink); }
.ci-tool.active { background: var(--ci-teal-light); color: var(--ci-teal); border-color: #c8e5ef; }
.ci-tool svg { width: 15px; height: 15px; }
.ci-dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.ci-dots span { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.1); }
.ci-run { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 18px; background: #1a1a2e; color: #fff; border: none; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; opacity: .55; }
.ci-run.ready { background: var(--ci-teal); opacity: 1; }
.ci-run.ready:hover { background: var(--ci-teal-dark); }
.ci-run svg { width: 16px; height: 16px; }
.ci-hint { margin-top: 12px; font-size: 12.5px; color: #6b6b75; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ci-hint kbd { background: #f1efe9; border: 1px solid #e4e0d6; border-radius: 5px; padding: 0 6px; font-size: 11.5px; font-family: inherit; }
.ci-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ci-sugg button { padding: 7px 13px; background: #fff; border: 1px solid #e8e5de; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #444; cursor: pointer; font-family: inherit; }
.ci-sugg button:hover { border-color: var(--ci-teal); color: var(--ci-teal); background: #f5fafd; }

/* popovers */
.ci-pop { position: absolute; z-index: 400; background: #fff; border: 1px solid #e2dfd6; border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,.14); min-width: 240px; max-width: 340px; max-height: 340px; overflow-y: auto; padding: 6px; }
.ci-pop.fixed { position: fixed; }
.ci-pop-title { font-size: 11px; font-weight: 700; color: #9a9891; text-transform: uppercase; letter-spacing: .4px; padding: 6px 10px 4px; }
.ci-pop-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.ci-pop-item:hover, .ci-pop-item.hl { background: var(--ci-teal-light); }
.ci-pop-item.sel { color: var(--ci-teal); font-weight: 600; }
.ci-pop-item .meta { font-size: 11.5px; color: #8a8a95; }
.ci-pop-empty { padding: 12px; font-size: 12.5px; color: #8a8a95; }
.ci-pop-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--ci-line); margin-top: 4px; }
.ci-pop input[type=text], .ci-pop input[type=search] { width: 100%; padding: 8px 10px; border: 1px solid #ddd9cf; border-radius: 8px; font-size: 13px; font-family: inherit; margin-bottom: 6px; outline: none; }
.ci-pop input:focus { border-color: var(--ci-teal); }

/* template cards */
.ci-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.ci-carousel::-webkit-scrollbar { display: none; }
.ci-tcard { flex: 0 0 calc((100% - 48px) / 4); min-width: 230px; scroll-snap-align: start; background: #fff; border: 1px solid var(--ci-line); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; position: relative; transition: border-color .15s, box-shadow .2s, transform .15s; }
.ci-tcard:hover { border-color: var(--ci-teal); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.ci-tcard.disabled { opacity: .55; cursor: not-allowed; }
.ci-tcard.disabled:hover { transform: none; border-color: var(--ci-line); box-shadow: none; }
.ci-ticon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ci-ticon svg { width: 20px; height: 20px; color: #fff; }
.ti-blue { background: linear-gradient(135deg, #3897B6, #5cb3d0); } .ti-green { background: linear-gradient(135deg, #5ca24a, #73BC44); }
.ti-amber { background: linear-gradient(135deg, #d97706, #f59e0b); } .ti-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.ti-pink { background: linear-gradient(135deg, #db2777, #ec4899); } .ti-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.ci-tmeta { font-size: 11px; color: #9a9891; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.ci-ttitle { font-size: 14.5px; font-weight: 600; }
.ci-tdesc { font-size: 12.5px; color: var(--ci-muted); line-height: 1.5; }
.ci-kebab { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; cursor: pointer; color: #777; display: flex; align-items: center; justify-content: center; }
.ci-kebab:hover { background: #f1efe9; color: var(--ci-ink); }
.ci-kebab svg { width: 16px; height: 16px; }

/* recent cards */
.ci-recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1280px) { .ci-recent { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .ci-recent { grid-template-columns: repeat(2, 1fr); } }
.ci-rcard { background: #fff; border: 1px solid var(--ci-line); border-radius: 14px; cursor: pointer; position: relative; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s, transform .15s; }
.ci-rcard:hover { border-color: var(--ci-teal); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.ci-rthumb { height: 112px; background: #f7f5f0; border-radius: 13px 13px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; overflow: hidden; }
.ci-rthumb i { background: #e3eef3; border-radius: 4px; display: block; }
.ci-rthumb i.w2 { grid-column: span 2; } .ci-rthumb i.w4 { grid-column: span 4; } .ci-rthumb i.c1 { background: #cfe6ee; } .ci-rthumb i.c2 { background: #d9ecd0; }
.ci-rbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.ci-rname { font-size: 14px; font-weight: 600; padding-right: 22px; }
.ci-rmeta { font-size: 12px; color: #8a8a95; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ci-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.ci-badge.draft { background: #f1efe9; color: #6a6862; } .ci-badge.pub { background: #e3f3e0; color: #2c7a1f; } .ci-badge.mod { background: #fff1d6; color: #8a5a00; }
.ci-empty { border: 1px dashed #d9d5c9; border-radius: 14px; padding: 30px; text-align: center; color: #8a8a95; font-size: 13.5px; background: #fff; }

/* build view */
.ci-build { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 56px); background: var(--ci-bg); }
.ci-left { border-right: 1px solid var(--ci-line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.ci-left-head { padding: 14px 18px; border-bottom: 1px solid var(--ci-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-left-head button.back { background: none; border: none; color: var(--ci-teal); font-weight: 600; cursor: pointer; font-size: 13px; font-family: inherit; display: inline-flex; gap: 6px; align-items: center; }
.ci-turns { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ci-turn-user { align-self: flex-end; background: var(--ci-teal-light); color: #1c4c5c; border-radius: 14px 14px 3px 14px; padding: 10px 14px; max-width: 92%; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.ci-turn-ai { align-self: flex-start; background: #f7f5f0; border-radius: 14px 14px 14px 3px; padding: 12px 14px; max-width: 96%; font-size: 13.5px; line-height: 1.5; }
.ci-turn-ai ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: #4a4842; }
.ci-turn-ai li { margin-bottom: 3px; }
.ci-turn-ai .note { margin-top: 8px; font-size: 12.5px; color: #8a5a00; background: #fff8e6; border-radius: 8px; padding: 6px 10px; }
.ci-turn-ai .revert { margin-top: 8px; background: none; border: none; color: var(--ci-teal); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.ci-turn-ai.pending { color: #8a8a95; font-style: italic; }
.ci-left-foot { padding: 12px 14px 14px; border-top: 1px solid var(--ci-line); }
.ci-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ci-right-head { padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--ci-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ci-name { font-size: 17px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; outline: none; font-family: inherit; min-width: 220px; background: transparent; color: var(--ci-ink); }
.ci-name:hover { border-color: #e2dfd6; } .ci-name:focus { border-color: var(--ci-teal); background: #fff; }
.ci-name.err { border-color: #d64545; }
.ci-err { color: #d64545; font-size: 12px; }
.ci-saved { font-size: 12px; color: #8a8a95; }
.ci-spacer { flex: 1; }
.ci-filterbar { display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--ci-line); flex-wrap: wrap; position: relative; }
.ci-flabel { font-size: 12px; font-weight: 600; color: #8a8a95; }
.ci-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #e2dfd6; border-radius: 999px; font-size: 12.5px; background: #fff; color: #444; cursor: pointer; font-family: inherit; }
.ci-fchip:hover { border-color: var(--ci-teal); color: var(--ci-teal); }
.ci-fchip.on { background: var(--ci-teal-light); border-color: #c8e5ef; color: #27697f; font-weight: 600; }
.ci-fchip .x { opacity: .6; font-size: 14px; line-height: 1; } .ci-fchip .x:hover { opacity: 1; }
.ci-canvas { flex: 1; overflow-y: auto; padding: 20px 24px 60px; }

/* widgets */
.ci-grid-rows { display: flex; flex-direction: column; gap: 16px; }
.ci-row { display: grid; gap: 16px; }
.ci-row.k4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .ci-row.k4 { grid-template-columns: repeat(2, 1fr); } }
.ci-row.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .ci-row.c2 { grid-template-columns: 1fr; } }
.ci-row.c1 { grid-template-columns: 1fr; }
.ci-kpi { background: #fff; border: 1px solid var(--ci-line); border-radius: 14px; padding: 16px 18px; min-height: 108px; display: flex; flex-direction: column; gap: 6px; }
.ci-kpi-label { font-size: 12.5px; font-weight: 600; color: var(--ci-muted); }
.ci-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ci-kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.ci-kpi-delta { font-size: 12px; color: #8a8a95; } .ci-kpi-delta.up { color: #2c7a1f; } .ci-kpi-delta.down { color: #c0392b; }
.ci-kpi-note { font-size: 12px; color: #8a8a95; line-height: 1.4; }
.ci-muted { color: #b0ada5; }
.ci-widget { background: #fff; border: 1px solid var(--ci-line); border-radius: 14px; padding: 16px 18px 14px; min-width: 0; position: relative; }
.ci-w-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ci-w-title { font-size: 14.5px; font-weight: 700; } .ci-w-sub { font-size: 12px; color: #8a8a95; margin-top: 2px; }
.ci-w-tools { display: inline-flex; gap: 2px; align-items: center; flex-shrink: 0; }
.ci-w-tools button { width: 28px; height: 28px; border: none; background: none; border-radius: 7px; cursor: pointer; color: #777; display: inline-flex; align-items: center; justify-content: center; }
.ci-w-tools button:hover { background: #f1efe9; color: var(--ci-ink); }
.ci-w-tools button.on { background: var(--ci-teal-light); color: var(--ci-teal); }
.ci-w-tools svg { width: 16px; height: 16px; }
.ci-chart-wrap { position: relative; width: 100%; }
.ci-chart-wrap svg { display: block; }
.ci-grid { stroke: #eceae3; stroke-width: 1; } .ci-axis { font-size: 11px; fill: #8a8a95; } .ci-axis-strong { fill: #555; }
.ci-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 4px 0; font-size: 12px; color: #555; }
.ci-legend-item { display: inline-flex; align-items: center; gap: 6px; } .ci-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ci-tip { position: absolute; pointer-events: none; background: #1a1a2e; color: #fff; border-radius: 9px; padding: 8px 10px; font-size: 12px; z-index: 20; min-width: 150px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ci-tip-title { font-weight: 700; margin-bottom: 4px; } .ci-tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.ci-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .ci-tip-name { flex: 1; opacity: .85; } .ci-tip-val { font-weight: 700; }
.ci-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.ci-donut-big { font-size: 19px; font-weight: 700; fill: #1a1a2e; }
.ci-donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.ci-donut-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 4px; border-radius: 6px; } .ci-donut-row:hover { background: #f7f5f0; }
.ci-donut-name { flex: 1; } .ci-donut-val { color: #6a6862; font-variant-numeric: tabular-nums; }
.ci-table-wrap { overflow-x: auto; }
.ci-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ci-table th { text-align: left; font-size: 11.5px; color: #8a8a95; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; padding: 8px 10px; border-bottom: 1px solid var(--ci-line); white-space: nowrap; }
.ci-table td { padding: 8px 10px; border-bottom: 1px solid #f4f2ec; } .ci-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ci-table tr:hover td { background: #fafaf7; }
.ci-table-foot { font-size: 12px; color: #8a8a95; padding: 8px 10px 0; }
.ci-widget-msg { padding: 28px 12px; text-align: center; color: #8a8a95; font-size: 13px; line-height: 1.5; } .ci-widget-err { color: #b53a3a; }
.ci-skel { background: linear-gradient(90deg, #f1efe9 25%, #f8f6f1 37%, #f1efe9 63%); background-size: 400% 100%; animation: ciShim 1.4s ease infinite; border-radius: 10px; }
@keyframes ciShim { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.ci-window { font-size: 12px; color: #8a8a95; margin-bottom: 12px; }

/* modals */
.ci-overlay { position: fixed; inset: 0; background: rgba(20,20,35,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ci-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25); font-family: 'Inter', sans-serif; color: #1a1a2e; }
.ci-modal.wide { max-width: 640px; } .ci-modal.xl { max-width: 1100px; }
.ci-m-head { padding: 18px 22px 8px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ci-m-body { padding: 8px 22px 6px; font-size: 13.5px; line-height: 1.55; color: #4a4842; }
.ci-m-foot { padding: 14px 22px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.ci-m-body label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 5px; color: #333; }
.ci-m-body input[type=text], .ci-m-body textarea { width: 100%; padding: 9px 12px; border: 1px solid #ddd9cf; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; }
.ci-m-body textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.ci-m-body input:focus, .ci-m-body textarea:focus { border-color: var(--ci-teal); }
.ci-x { background: none; border: none; cursor: pointer; font-size: 20px; color: #888; line-height: 1; }
.ci-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e2dfd6; border-radius: 10px; margin-top: 8px; cursor: pointer; }
.ci-radio.on { border-color: var(--ci-teal); background: #f5fafd; } .ci-radio b { display: block; font-size: 13.5px; } .ci-radio span { font-size: 12.5px; color: #6a6862; }
.ci-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ci-pchip { display: inline-flex; align-items: center; gap: 6px; background: var(--ci-teal-light); color: #27697f; border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12.5px; font-weight: 600; }
.ci-pchip button { background: none; border: none; cursor: pointer; color: #27697f; font-size: 14px; padding: 0 3px; }
.ci-pick-list { border: 1px solid #e2dfd6; border-radius: 10px; max-height: 170px; overflow-y: auto; margin-top: 6px; }
.ci-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; } .ci-pick-row:hover { background: #f5fafd; } .ci-pick-row small { color: #8a8a95; margin-left: auto; }
.ci-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #1a1a2e; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 1200; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ci-banner { background: var(--ci-teal-light); border: 1px solid #c8e5ef; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; color: #1c4c5c; }
.ci-dash-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; position: relative; }
.ci-select { padding: 9px 12px; border: 1px solid #ddd9cf; border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; font-family: inherit; min-width: 260px; color: var(--ci-ink); }
.ci-meta-line { font-size: 12.5px; color: #8a8a95; }

/* the Insights view fills the app's main column so the Build view can use the full height */
#view-insights.active { height: 100%; }
#canvas-insights-root, #dashboard-home-root { height: 100%; overflow-y: auto; }
.ci-build { height: 100%; min-height: 560px; }

/* home "Dashboard" page: white, with the dashboard picker under a Home breadcrumb */
#view-dashboard.active { background: #fff; min-height: 100%; }
#dashboard-home-root { background: #fff; min-height: 100%; }
.ci-home-dash { background: #fff; padding-top: 22px; }
.ci-hd-crumb { font-size: 14px; color: #1a1a2e; margin-bottom: 10px; }
.ci-hd-select { position: relative; display: inline-block; min-width: 230px; margin-bottom: 18px; }
.ci-hd-label { position: absolute; top: -8px; left: 10px; background: #fff; padding: 0 4px; font-size: 12px; color: #666; z-index: 1; }
.ci-hd-select select, .ci-hd-static { width: 100%; min-width: 230px; padding: 11px 36px 11px 14px; border: 1px solid #c4c4c4; border-radius: 4px; font-size: 16px; font-family: inherit; color: #1a1a2e; background: #fff; }
.ci-hd-select select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ci-hd-select select:hover { border-color: #1a1a2e; } .ci-hd-select select:focus { outline: none; border-color: var(--ci-teal); }
.ci-hd-rule { border-top: 1px solid #e0e0e0; margin: 0 0 18px; }
