/* Plan 013: closed-cycle report (R1 phase 1). */
.cycle-report .reports-card{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:clamp(12px,1.5vw,22px);margin:0 0 16px;min-width:0}
.cycle-report h2{font-size:1rem;margin:0 0 10px}.cycle-report h2 small{font-weight:400;color:var(--muted);font-size:.78rem;margin-inline-start:6px}
.cycle-report h3{font-size:.85rem;margin:14px 0 6px;color:var(--muted)}
.cr-controls{flex-wrap:wrap}.cr-controls>*{min-width:180px}
.cr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.cr-head h2{margin:2px 0 6px;font-size:1.15rem}.cr-head p{margin:2px 0;color:var(--muted);font-size:.88rem}.cr-head small{color:var(--muted)}
.cr-badge-ok{background:var(--ok-bg);color:var(--ok)}.cr-badge-bad{background:var(--bad-bg);color:var(--bad)}
.cr-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px}
.cr-kpi{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.cr-kpi>span{color:var(--muted);font-size:.82rem}.cr-kpi b{font-size:1.45rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cr-kpi small{color:var(--muted);font-size:.78rem}
.cr-cmp{margin:4px 0 0;font-size:.78rem;font-weight:600}.cr-good{color:var(--ok)}.cr-bad{color:var(--bad)}.cr-same{color:var(--muted)}.cr-warn{color:var(--warn)}.cr-ok{color:var(--ok)}
.cr-grid-2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
.cr-growth{margin:0}.cr-growth svg{width:100%;height:auto;display:block}
.cr-grid{stroke:var(--line);stroke-width:1}.cr-axis{fill:var(--muted);font-size:11px}.cr-axis-title{font-weight:600}.cr-axis-sub{font-size:10px;opacity:.85}.cr-tick{stroke:var(--line);stroke-width:1}
.cr-line{fill:none;stroke:var(--accent);stroke-width:2.5}.cr-dot{fill:var(--accent)}
.cr-peer-line{fill:none;stroke:var(--muted);stroke-width:2;stroke-dasharray:6 5}
.cr-growth figcaption{font-size:.78rem;color:var(--muted);margin-top:6px}
.cr-hit{fill:transparent;pointer-events:all;cursor:pointer}.cr-guide{stroke:var(--accent);stroke-width:1;stroke-dasharray:3 3;opacity:0}
.cr-point{outline:none}.cr-point[data-active] .cr-hit{fill:var(--accent);fill-opacity:.06}.cr-point[data-active] .cr-guide{opacity:.7}.cr-point[data-active] .cr-dot{r:6;stroke:var(--paper);stroke-width:2}
.cr-point:focus-visible .cr-hit{stroke:var(--accent);stroke-width:1}
.cr-plot{position:relative}
.cr-growth-tip{position:absolute;z-index:1;display:grid;gap:1px;width:max-content;max-width:min(260px,calc(48% - 16px));padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:.72rem;line-height:1.45;box-shadow:0 2px 8px #0002;pointer-events:none}
.cr-tip-rd{transform:translate(14px,-10px)}.cr-tip-ru{transform:translate(14px,calc(-100% + 10px))}.cr-tip-ld{transform:translate(calc(-100% - 14px),-10px)}.cr-tip-lu{transform:translate(calc(-100% - 14px),calc(-100% + 10px))}
.cr-px-0{left:0%}.cr-px-1{left:2%}.cr-px-2{left:4%}.cr-px-3{left:6%}.cr-px-4{left:8%}.cr-px-5{left:10%}.cr-px-6{left:12%}.cr-px-7{left:14%}.cr-px-8{left:16%}.cr-px-9{left:18%}.cr-px-10{left:20%}.cr-px-11{left:22%}.cr-px-12{left:24%}.cr-px-13{left:26%}.cr-px-14{left:28%}.cr-px-15{left:30%}.cr-px-16{left:32%}.cr-px-17{left:34%}.cr-px-18{left:36%}.cr-px-19{left:38%}.cr-px-20{left:40%}.cr-px-21{left:42%}.cr-px-22{left:44%}.cr-px-23{left:46%}.cr-px-24{left:48%}.cr-px-25{left:50%}.cr-px-26{left:52%}.cr-px-27{left:54%}.cr-px-28{left:56%}.cr-px-29{left:58%}.cr-px-30{left:60%}.cr-px-31{left:62%}.cr-px-32{left:64%}.cr-px-33{left:66%}.cr-px-34{left:68%}.cr-px-35{left:70%}.cr-px-36{left:72%}.cr-px-37{left:74%}.cr-px-38{left:76%}.cr-px-39{left:78%}.cr-px-40{left:80%}.cr-px-41{left:82%}.cr-px-42{left:84%}.cr-px-43{left:86%}.cr-px-44{left:88%}.cr-px-45{left:90%}.cr-px-46{left:92%}.cr-px-47{left:94%}.cr-px-48{left:96%}.cr-px-49{left:98%}.cr-px-50{left:100%}
.cr-py-0{top:0%}.cr-py-1{top:2%}.cr-py-2{top:4%}.cr-py-3{top:6%}.cr-py-4{top:8%}.cr-py-5{top:10%}.cr-py-6{top:12%}.cr-py-7{top:14%}.cr-py-8{top:16%}.cr-py-9{top:18%}.cr-py-10{top:20%}.cr-py-11{top:22%}.cr-py-12{top:24%}.cr-py-13{top:26%}.cr-py-14{top:28%}.cr-py-15{top:30%}.cr-py-16{top:32%}.cr-py-17{top:34%}.cr-py-18{top:36%}.cr-py-19{top:38%}.cr-py-20{top:40%}.cr-py-21{top:42%}.cr-py-22{top:44%}.cr-py-23{top:46%}.cr-py-24{top:48%}.cr-py-25{top:50%}.cr-py-26{top:52%}.cr-py-27{top:54%}.cr-py-28{top:56%}.cr-py-29{top:58%}.cr-py-30{top:60%}.cr-py-31{top:62%}.cr-py-32{top:64%}.cr-py-33{top:66%}.cr-py-34{top:68%}.cr-py-35{top:70%}.cr-py-36{top:72%}.cr-py-37{top:74%}.cr-py-38{top:76%}.cr-py-39{top:78%}.cr-py-40{top:80%}.cr-py-41{top:82%}.cr-py-42{top:84%}.cr-py-43{top:86%}.cr-py-44{top:88%}.cr-py-45{top:90%}.cr-py-46{top:92%}.cr-py-47{top:94%}.cr-py-48{top:96%}.cr-py-49{top:98%}.cr-py-50{top:100%}
.cr-growth-tip>strong{font-size:.74rem}.cr-growth-tip b{font-variant-numeric:tabular-nums}.cr-growth-tip em{font-style:normal;font-weight:600}
.cr-legend-line,.cr-legend-peer{display:inline-block;width:18px;height:0;vertical-align:middle;margin:0 4px 0 8px;border-top:3px solid var(--accent)}.cr-legend-peer{border-top:2px dashed var(--muted)}
.cr-usage-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cr-usage-totals>div{background:var(--field);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.cr-usage-totals span,.cr-usage-totals small{color:var(--muted);font-size:.78rem}.cr-usage-totals b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.cr-feed-bar{width:100%;height:12px;display:block;border-radius:6px;overflow:hidden}
.cr-feed-list{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.8rem}.cr-feed-list li{display:flex;align-items:center;gap:6px}.cr-feed-list svg{width:10px;height:10px}
.cr-feed-0{fill:#CFE3D8}.cr-feed-1{fill:#A9CDB9}.cr-feed-2{fill:#7FB497}.cr-feed-3{fill:#559A77}.cr-feed-4{fill:#2E7558}.cr-feed-5{fill:#1F5640}.cr-feed-6{fill:#143A2B}
.cr-table{width:100%;border-collapse:collapse;font-size:.82rem;font-variant-numeric:tabular-nums}
.cr-table :is(th,td){padding:7px 6px;border-bottom:1px solid var(--line);text-align:right}.cr-table tr>:first-child{text-align:left;font-weight:500}
.cr-table thead th{color:var(--muted);font-weight:600;background:var(--table-surface,var(--field))}.cr-table tfoot{font-weight:700}.cr-table small{display:block;font-weight:400;color:var(--muted)}
.cr-harvests{white-space:nowrap}.cr-muted :is(th,td){color:var(--muted)}
.cr-score{margin:4px 0 10px}.cr-score b{font-size:1.6rem;margin-inline-start:6px}
.cr-events{list-style:none;padding:0;margin:0}.cr-events li{display:grid;grid-template-columns:12px 80px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.84rem}
.cr-events small{color:var(--muted)}.cr-event-doc{color:var(--muted);font-variant-numeric:tabular-nums}
.cr-event-dot{width:10px;height:10px;border-radius:50%;background:var(--muted)}.cr-tone-good{background:var(--ok)}.cr-tone-warn{background:var(--warn)}.cr-tone-bad{background:var(--bad)}
.cr-footnote{font-size:.76rem;color:var(--muted);margin:8px 0 0}
@media(max-width:1100px){.cr-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.cr-grid-2{grid-template-columns:minmax(0,1fr)}.cr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-controls,.cr-controls>*{width:100%}}
@media(max-width:480px){.cr-kpis,.cr-usage-totals{grid-template-columns:minmax(0,1fr)}.cr-events li{grid-template-columns:12px 64px minmax(0,1fr)}.cr-events li small{grid-column:3}}
@page cycle-report{size:A4 portrait;margin:10mm}
