/* Static ombre emphasis, readable labels, and a visible keyboard focus ring. */
.insight-hero,.insight-card,.prompt-people-panel{color:#153748;border:1px solid #8cb9c8;border-radius:20px;padding:clamp(16px,2vw,28px);margin:18px 0;background:linear-gradient(120deg,#edf9fb 0%,#f2effc 65%,#fff5ed 100%);box-shadow:0 0 0 2px #8df5ed55,0 7px 22px #0f445014}
.insight-hero,.prompt-people-panel{border:2px solid #277c85;box-shadow:0 0 0 3px #67efdc77,0 0 18px #9e8ef333}
.insight-eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.12em;color:#315c72}.insight-hero h2{font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.2;margin:.4em 0}.insight-note,.insight-filter-summary{padding:14px 18px;background:#f2f8fc;border-left:4px solid #67549a;border-radius:8px;color:#264658}.insight-filter-summary{overflow-wrap:anywhere;font-weight:650}
.insight-controls{display:flex;gap:16px;flex-wrap:wrap;align-items:end}.insight-controls>label{flex:1 1 180px;min-width:0}.insight-controls>button{align-self:end}.insight-presets,.insight-actions,.insight-heading{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.insight-heading{justify-content:space-between}.insight-heading h3{margin:0}
#data-explorer label,.insight-dialog label{display:flex;flex-direction:column;gap:6px;font-weight:650;min-width:0}#data-explorer select,#data-explorer input,.insight-dialog select,.insight-dialog input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;font:inherit;color:#18394a;border:1px solid #7799ad;border-radius:10px;padding:10px;background:#fff}
#data-explorer button,.insight-dialog button,.prompt-people-panel button{font:inherit;color:#153748;border:1px solid #6b98aa;border-radius:12px;padding:10px 14px;background:#f9fcff;cursor:pointer;min-height:44px;max-width:100%;white-space:normal}#data-explorer button:hover,.insight-dialog button:hover,.prompt-people-panel button:hover{background:#e3f5f6;border-color:#126978}#data-explorer button:disabled,.insight-dialog button:disabled{cursor:default;opacity:.5}
#insight-advanced,#filter-apply,#people-apply{background:linear-gradient(110deg,#144b65,#51387b);color:#fff;border:2px solid #69dacd;box-shadow:0 0 0 2px #87d8f755;font-weight:750}#data-explorer :focus-visible,.insight-dialog :focus-visible,.prompt-people-panel :focus-visible{outline:3px solid #522da5;outline-offset:3px}
.insight-stat{display:flex;gap:18px;align-items:center;padding:18px 24px;border:2px solid #23828e;border-radius:18px;background:linear-gradient(100deg,#d7f8f1,#e8e6ff);box-shadow:0 0 0 3px #7ff1df55;color:#153748}.insight-stat strong{font-size:2.5rem;line-height:1.2}.insight-stat span{font-weight:650}.insight-chart-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px}.insight-chart-layout>.insight-card{min-width:0}
.insight-trend-scroll,.insight-scroll{overflow:auto;max-width:100%;padding:6px}.insight-trend-scroll svg{display:block;width:100%;min-width:560px}.insight-trend-scroll svg text{font-size:12px;fill:#193b4d}.insight-bars{display:flex;gap:10px;align-items:end;min-height:210px}.insight-bar{display:flex!important;flex:1 0 64px;flex-direction:column;justify-content:end;align-items:center;background:transparent!important;border-color:transparent!important;gap:8px;padding:6px!important}.insight-bar span{display:block;width:100%;max-width:48px;background:linear-gradient(0deg,#206e80,#9c80c9);border:1px solid #275b70;border-radius:8px 8px 0 0}.insight-bar small{font-size:.75rem;white-space:nowrap}.insight-bar:hover{border-color:#298d9b!important}.insight-point-links{display:flex;gap:6px;flex-wrap:wrap}.insight-empty{padding:24px;text-align:center;background:#f6f8fc;border-radius:12px}
.insight-donut{display:block;width:min(100%,220px);margin:10px auto}.insight-legend{list-style:none;padding:0}.insight-legend li{display:flex;gap:10px;align-items:center;margin:7px 0}.insight-legend li>span{width:14px;height:14px;flex:none;border-radius:50%}.insight-legend button{text-align:left;width:100%}.insight-scroll table{border-collapse:collapse;width:100%;font-size:.9rem}.insight-scroll th,.insight-scroll td{padding:10px;text-align:left;border-bottom:1px solid #bdd0df;vertical-align:top}.insight-scroll th{background:#e9f1fa;color:#19394b}.insight-scroll caption{text-align:left;font-weight:700;margin:10px 0}
.insight-dialog{color:#18394a;width:min(920px,94vw);max-height:88vh;overflow:auto;box-sizing:border-box;padding:clamp(16px,3vw,30px);border:2px solid #5b83a1;border-radius:22px;background:linear-gradient(135deg,#f1fbfd,#f5f0fc 70%,#fff7ee);box-shadow:0 0 0 3px #79eedd88,0 10px 70px #092c4966}.insight-dialog::backdrop{background:#0c2f48a6}.insight-dialog header,.insight-dialog footer{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.insight-dialog h2{margin:5px 0}.insight-dialog small,.prompt-people-panel small{font-size:.8em;color:#475971}.insight-dialog footer{position:sticky;bottom:-30px;background:#f0f6fced;padding:16px 0;border-top:1px solid #b8c7d9;justify-content:flex-start;margin-top:20px}.insight-filter-group{border:1px solid #789fb6;border-radius:16px;padding:18px;margin:20px 0;background:#ffffff8c}.insight-filter-group legend{font-weight:800;padding:0 8px}.insight-goal-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.insight-goal-checks label{display:flex;flex-direction:row;align-items:start;font-size:.9rem}.insight-goal-checks input{width:auto;flex:none}.insight-condition{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;padding:14px 0;border-top:1px solid #cbd9e5}.insight-condition small{grid-column:1/-1;overflow-wrap:anywhere}.prompt-person-slot{padding:16px;margin:12px 0;border:1px solid #819fb4;border-radius:14px;background:linear-gradient(110deg,#e1f6f2,#ebe5fa)}.prompt-person-slot>[hidden]{display:none!important}#people-error,#filter-error,#insight-error{color:#9f3026;font-weight:700}.insight-card>summary{font-size:1.05rem;font-weight:750;cursor:pointer}
@media(max-width:900px){.insight-chart-layout{grid-template-columns:1fr}.insight-condition{grid-template-columns:1fr 1fr}.insight-goal-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.insight-condition{grid-template-columns:1fr}.insight-goal-checks{grid-template-columns:1fr}.insight-stat{align-items:start}.insight-stat strong{font-size:2rem}.insight-dialog{width:96vw;padding:16px}.insight-dialog footer{bottom:-16px}.insight-controls{gap:12px}.insight-controls>label{flex-basis:100%}.insight-presets>button{width:100%}}
@media(prefers-reduced-motion:reduce){#data-explorer *,.insight-dialog *,.prompt-people-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(forced-colors:active){.insight-hero,.insight-card,.insight-stat,.prompt-people-panel,.insight-dialog{border:2px solid CanvasText;box-shadow:none}.insight-bar span{background:Highlight}.insight-donut{display:none}}

.insight-dialog .insight-identifier-toggle{display:flex;flex-direction:row;align-items:center;font-size:.9rem;margin:14px 0}.insight-dialog .insight-identifier-toggle input{width:auto;flex:none}

/* Running entries share the current visual language. */
.running-entry-help{border:1px solid #687cd2;border-radius:16px;padding:1rem;margin:1rem 0;background:linear-gradient(120deg,#edf7ff,#f8efff);color:#192b45}.running-entry-help p{margin:.5rem 0}.running-entry-list{display:grid;gap:.5rem;margin-top:.75rem}.running-entry-list button{text-align:left;white-space:normal}.running-entry-dialog{max-width:38rem;width:calc(100% - 2rem);max-height:85dvh;overflow:auto;border:2px solid #7774dc;border-radius:18px;padding:1.25rem;box-sizing:border-box}.running-entry-dialog label{display:grid;gap:.35rem;margin:.75rem 0}.running-entry-dialog select,.running-entry-dialog textarea{width:100%;box-sizing:border-box}.running-entry-dialog button{margin:.35rem .35rem .35rem 0}.running-entry-dialog [role=alert]{color:#9c2020}
