.fp-shell { --fp-border: #dfe9dd; --fp-muted: #50675a; --fp-green: #1f5938; --fp-surface: #f7faf4; display: grid; gap: 16px; min-width: 0; color: #14291c; }
.fp-results { display: grid; gap: 16px; }
.fp-panel { min-width: 0; padding: 20px; border: 1px solid var(--fp-border); border-radius: 15px; background: #fff; }
.fp-panel h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.025em; }
.fp-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fp-heading p { color: var(--fp-muted); font-size: .81rem; margin: 4px 0 0; }
.fp-note { margin: 10px 0 0; color: var(--fp-muted); font-size: .76rem; line-height: 1.65; }
.fp-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.fp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 12px; border: 1px solid #c9daca; border-radius: 8px; color: #28583b; background: #f9fcf6; font-size: .76rem; line-height: 1.25; font-weight: 760; }
.fp-button:hover { background: #eaf5e4; }
.fp-button[aria-pressed="true"] { background: #183c29; border-color: #183c29; color: #fff; }
.fp-primary-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; width: 100%; }
.fp-group { border: 1px solid var(--fp-border); border-radius: 9px; background: var(--fp-surface); padding: 10px; min-width: 0; margin: 0; }
.fp-group legend { display: inline-block; padding-inline: 4px; font-size: .77rem; color: #244a32; font-weight: 820; }
.fp-inputs { display: grid; align-items: start; gap: 7px; }
.fp-inputs label, .fp-month { display: grid; gap: 4px; color: #365541; font-size: .71rem; line-height: 1.3; }
.fp-inputs input, .fp-month select { min-width: 0; width: 100%; height: 36px; padding: 5px 8px; border: 1px solid #cedccd; border-radius: 7px; background: #fff; color: #162d20; font-size: .88rem; }
.fp-inputs input:user-invalid { border-color: #9e493e; }
.fp-details { margin-top: 12px; padding: 8px 0 0; border-top: 1px solid var(--fp-border); }
.fp-details summary { cursor: pointer; min-height: 36px; align-content: center; color: #245236; font-size: .79rem; font-weight: 760; }
.fp-details .fp-primary-inputs { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 8px; }
.fp-check { display: inline-flex; gap: 7px; align-items: center; margin-top: 10px; font-size: .8rem; font-weight: 650; }
.fp-check input { accent-color: var(--fp-green); }
.fp-validation { color: #883e28; font-size: .76rem; margin: 7px 0 0; }
.fp-validation:empty { display: none; }
.fp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.fp-metric { min-width: 0; border: 1px solid var(--fp-border); background: var(--fp-surface); border-radius: 9px; padding: 10px; }
.fp-metric dt { font-size: .72rem; line-height: 1.35; font-weight: 710; color: #365541; }
.fp-metric dd { font-size: clamp(.91rem,1.5vw,1.23rem); margin: 4px 0; line-height: 1.22; letter-spacing: -.035em; font-weight: 820; overflow-wrap: anywhere; }
.fp-metric > span { display: block; color: var(--fp-muted); font-size: .67rem; line-height: 1.4; }
.fp-breakdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 11px 0; }
.fp-breakdown > div { border-bottom: 2px solid #74a872; padding: 5px 7px 8px; }
.fp-breakdown dt { color: var(--fp-muted); font-size: .68rem; font-weight: 680; line-height: 1.4; }
.fp-breakdown dd { margin: 2px 0 0; font-size: .88rem; line-height: 1.4; font-weight: 820; }
.fp-submetrics .fp-metric { background: #fff; }
.fp-badge { max-width: 230px; font-size: .7rem; font-weight: 760; line-height: 1.4; padding: 5px 8px; border-radius: 6px; }
.fp-good { color: #1d522b; background: #e2f1df; }
.fp-watch { color: #634814; background: #f8efd8; }
.fp-attention { color: #762d25; background: #f9e9e5; }
.fp-cash-chart { background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: 9px; padding: 9px; margin-top: 10px; }
.fp-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--fp-muted); font-size: .70rem; }
.fp-chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.fp-chart-legend span > i { display: inline-block; width: 14px; border-top: 2px solid #367747; }
.fp-chart-legend span:nth-child(2) > i { border-color: #955c22; }
.fp-chart { display: block; width: 100%; height: clamp(90px, 15vw, 151px); overflow: visible; }
.fp-chart path, .fp-chart polyline { fill: none; vector-effect: non-scaling-stroke; }
.fp-chart-axis { stroke: #bccdbd; stroke-width: 1; }
.fp-chart-marker { stroke: #8b9c8c; stroke-width: 1; stroke-dasharray: 4 4; }
.fp-chart-network { stroke: #367747; stroke-width: 2; }
.fp-chart-retained { stroke: #955c22; stroke-width: 2; }
.fp-chart-caption { display: flex; justify-content: space-between; color: var(--fp-muted); font-size: .67rem; }
.fp-month { flex: 0 0 140px; }
.fp-month select { font-size: .76rem; }
.fp-scroll { overflow-x: auto; margin-top: 11px; }
.fp-table { border-collapse: collapse; border-spacing: 0; width: 100%; min-width: 470px; font-size: .76rem; text-align: right; }
.fp-table th, .fp-table td { border-bottom: 1px solid var(--fp-border); padding: 7px 8px; white-space: nowrap; }
.fp-table th { color: #274d33; font-weight: 770; }
.fp-table th:first-child { text-align: left; }
.fp-table thead th { background: var(--fp-surface); }
.fp-matrix-cell { padding: 3px 6px; border-radius: 4px; font-weight: 750; }
@media (max-width: 900px) {
  .fp-primary-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fp-details .fp-primary-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .fp-panel { padding: 13px; }
  .fp-heading { flex-wrap: wrap; }
  .fp-metrics, .fp-breakdown { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fp-details .fp-primary-inputs { grid-template-columns: minmax(0,1fr); }
}
