.ai-cost-shell{display:grid;gap:18px;min-width:0;color:var(--fc-text)}
.ai-cost-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ai-cost-head h2{margin:4px 0 8px}.ai-cost-kicker{color:var(--fc-accent);font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.ai-cost-head p{margin:0;max-width:780px}
.ai-cost-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.ai-cost-field{display:flex;flex-direction:column;gap:5px;position:relative;min-width:155px;flex:1}.ai-cost-field label,.ai-cost-field>span{font-size:11px;font-weight:700;color:var(--fc-muted)}.ai-cost-field input{box-sizing:border-box;width:100%;border:1px solid var(--fc-input-border);border-radius:9px;background:var(--fc-input-bg);color:var(--fc-text);padding:11px 12px}
.ai-cost-shell button,.ai-cost-picker summary{border:1px solid var(--fc-input-border);border-radius:9px;background:var(--fc-card-bg-strong);color:var(--fc-text);padding:10px 13px;cursor:pointer;font:inherit;font-size:13px;min-height:40px}.ai-cost-shell button:disabled{opacity:.5;cursor:default}.ai-cost-shell button:focus-visible,.ai-cost-picker summary:focus-visible,.ai-cost-shell input:focus-visible{outline:2px solid var(--fc-accent);outline-offset:3px}.ai-cost-shell .ai-cost-primary{background:var(--fc-accent);color:#fff;border-color:transparent;font-weight:700}
.ai-cost-picker summary{list-style:none;display:flex;justify-content:space-between;gap:8px}.ai-cost-picker summary::after{content:'⌄';color:var(--fc-muted)}.ai-cost-menu{position:absolute;z-index:30;top:100%;left:0;min-width:100%;box-sizing:border-box;padding:8px;border:1px solid var(--fc-card-border);background:var(--fc-card-bg-strong);border-radius:10px;box-shadow:var(--fc-card-shadow);max-height:280px;overflow:auto}.ai-cost-menu button{display:block;width:100%;text-align:left;border:0;margin:2px 0;white-space:normal}.ai-cost-menu button:hover{background:var(--fc-accent-soft)}
.ai-cost-note{border:1px solid var(--fc-card-border);border-left:3px solid var(--fc-warning);padding:12px 15px;border-radius:9px;background:var(--fc-card-bg);font-size:13px;line-height:1.6}.ai-cost-note[data-tone=error]{border-left-color:var(--fc-danger)}.ai-cost-muted{color:var(--fc-muted);font-size:12px;line-height:1.6}.ai-cost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ai-cost-card{border:1px solid var(--fc-card-border);border-radius:12px;background:var(--fc-card-bg);padding:18px;min-width:0;box-shadow:var(--fc-card-shadow)}.ai-cost-card h3{font-size:12px;color:var(--fc-muted);margin:0 0 10px;font-weight:600}.ai-cost-value{font-size:23px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.ai-cost-card p{margin:9px 0 0}.ai-cost-panel{padding:18px;border:1px solid var(--fc-card-border);border-radius:12px;background:var(--fc-card-bg);min-width:0}.ai-cost-panel h3{margin:0 0 7px;font-size:16px}.ai-cost-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ai-cost-table-wrap{overflow:auto;border:1px solid var(--fc-card-border);border-radius:9px;margin-top:12px}.ai-cost-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}.ai-cost-table th,.ai-cost-table td{padding:11px 12px;border-bottom:1px solid var(--fc-card-border)}.ai-cost-table th{background:var(--fc-table-head);color:var(--fc-muted);font-weight:600}.ai-cost-table td{font-variant-numeric:tabular-nums}.ai-cost-table tbody tr:nth-child(even){background:var(--fc-table-row-alt)}.ai-cost-table caption{padding:10px;text-align:left;color:var(--fc-muted);white-space:normal}.ai-cost-table .ai-cost-empty{padding:24px;text-align:center;color:var(--fc-muted)}
.ai-cost-chart{display:flex;align-items:flex-end;gap:3px;height:95px;margin-top:16px;border-bottom:1px solid var(--fc-card-border)}.ai-cost-day{position:relative;flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center}.ai-cost-bar{width:100%;max-width:24px;background:var(--fc-accent);border-radius:3px 3px 0 0;min-height:2px}.ai-cost-bar.meter{background:var(--fc-info)}.ai-cost-bar.negative{background:var(--fc-warning)}.ai-cost-missing{width:100%;height:4px;background:var(--fc-subtle);opacity:.45}.ai-cost-axis{display:flex;justify-content:space-between;margin-top:6px}.ai-cost-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:12px}.ai-cost-shell details>summary{cursor:pointer}.ai-cost-shell [aria-busy=true]{opacity:.6}.ai-cost-exceptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.ai-cost-exceptions>div{border:1px solid var(--fc-card-border);border-radius:8px;padding:12px}.ai-cost-exceptions strong{display:block;font-size:21px;margin-bottom:5px}.ai-cost-badge{display:inline-block;padding:3px 7px;border-radius:6px;background:var(--fc-accent-soft);font-size:11px;color:var(--fc-warning)}
@media(max-width:1000px){.ai-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-cost-panels{grid-template-columns:1fr}.ai-cost-exceptions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ai-cost-head{flex-direction:column}.ai-cost-grid{grid-template-columns:1fr}.ai-cost-field{min-width:140px}.ai-cost-panel{padding:13px}.ai-cost-exceptions{grid-template-columns:1fr}.ai-cost-value{font-size:21px}.ai-cost-pagination{justify-content:flex-start;flex-wrap:wrap}}
/* Contain intrinsic table widths inside the report grid on narrow viewports. */
.ai-cost-shell{grid-template-columns:minmax(0,1fr)}.ai-cost-shell>*{min-width:0}.ai-cost-shell *{box-sizing:border-box}.ai-cost-head>div{min-width:0}#aiCostResults{min-width:0;display:grid;gap:18px}.ai-cost-table-wrap{max-width:100%;min-width:0}.ai-cost-note,.ai-cost-muted{overflow-wrap:anywhere}.ai-cost-picker summary{height:40px}.ai-cost-table td:last-child{padding-right:14px}
