/* Guild reports — scoped browser charts, no raster report images. */
#section-reports{--rep-line:#829db52a;--rep-muted:#a4b4c8;--rep-mint:#67dec4;--rep-gold:#f1c878;min-width:0}
.dash-main:has(#section-reports.active){min-width:0}
#section-reports [hidden]{display:none!important}
#section-reports>.dash-section-title{margin-bottom:8px}
#section-reports>.dash-section-subtitle{max-width:800px;line-height:1.7;color:var(--rep-muted)}
.rep-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 28px;border:1px solid var(--rep-line);border-radius:18px 18px 0 0;background:radial-gradient(ellipse at right top,#38776524,transparent 60%),#172330}
#rep-eyebrow{font-size:.62rem;font-weight:700;letter-spacing:.19em;color:var(--rep-mint)}
#rep-title{font-size:clamp(1.3rem,3vw,1.8rem);letter-spacing:-.025em;line-height:1.3;margin:8px 0}
#rep-status{font-size:.76rem;color:var(--rep-muted)}
.rep-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:14px 18px;background:#121d29;border:1px solid var(--rep-line);border-top:0;border-radius:0 0 18px 18px;margin-bottom:22px}
#section-reports .rep-view-btn{font:inherit;font-size:.76rem;padding:10px 13px;border:1px solid transparent;background:transparent;color:#bac8d8;border-radius:8px;cursor:pointer;min-height:42px;transition:background .15s,color .15s}
#section-reports .rep-view-btn:hover{background:#8fb4cf13;color:#fff}
#section-reports .rep-view-btn.active{background:#67dec416;border-color:#67dec44a;color:#99f3de}
#section-reports .rep-officer{color:var(--rep-gold)}
#rep-controls{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin:0 0 22px}
.rep-control{display:flex;flex-direction:column;gap:7px;font-size:.68rem;color:var(--rep-muted);font-weight:600;letter-spacing:.025em}
.rep-control :is(select,input){font:inherit;font-size:.83rem;font-weight:400;color:#e6eef9;padding:10px 12px;min-height:44px;background:#121d29;border:1px solid var(--rep-line);border-radius:8px;min-width:145px;max-width:100%}
.rep-search{flex:1;max-width:330px}.rep-search input{width:100%}
#section-reports :is(button,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--rep-mint);outline-offset:3px}
.rep-tool{font:inherit;font-size:.8rem;background:#243643;color:#e6f8f2;border:1px solid #7cbaa247;border-radius:9px;min-height:44px;padding:10px 16px;cursor:pointer;white-space:nowrap}.rep-tool:hover{background:#2d4551}.rep-tool:disabled{opacity:.5;cursor:wait}
#rep-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.rep-stat{padding:20px 22px;border:1px solid var(--rep-line);border-radius:13px;background:linear-gradient(115deg,#27433f30,transparent),#141e2c;min-width:0}
.rep-stat>span{display:block;color:var(--rep-muted);font-size:.7rem;margin-bottom:9px}.rep-stat>strong{display:block;font-size:clamp(1.15rem,2vw,1.55rem);font-weight:650;letter-spacing:-.025em;color:#e8f8f3;overflow-wrap:anywhere;line-height:1.4;font-variant-numeric:tabular-nums}.rep-stat>small{display:block;color:var(--rep-muted);font-size:.7rem;margin-top:7px;line-height:1.6}
.rep-card{border:1px solid var(--rep-line);border-radius:14px;padding:23px;background:#151f2d;min-width:0;margin-bottom:18px}.rep-card h3{font-size:.95rem;line-height:1.5;margin:0 0 18px;color:#e0eaf5;font-weight:600;overflow-wrap:anywhere}
.rep-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rep-panels>.rep-card{margin-bottom:0}.rep-panels{margin-bottom:18px}
.rep-chart{min-width:0}.rep-chart svg{display:block;width:100%;height:auto;touch-action:pan-y}.rep-readout{display:block;min-height:28px;color:#c3d7e4;font-size:.76rem;line-height:1.7;font-variant-numeric:tabular-nums;margin-top:8px}.rep-scrub{width:100%;accent-color:var(--rep-mint);min-height:32px;cursor:ew-resize}
.rep-bars{display:flex;flex-direction:column;gap:15px}.rep-bar-row{display:grid;grid-template-columns:minmax(90px,1.15fr) minmax(70px,2fr) minmax(60px,.9fr);gap:12px;align-items:center;font-size:.76rem;line-height:1.5}.rep-bar-name{overflow-wrap:anywhere;color:#d5dfed}.rep-bar-row>strong{text-align:right;font-size:.74rem;font-weight:550;font-variant-numeric:tabular-nums;color:#e0e9f8}.rep-bar-track{height:12px;position:relative;background:#7e91ad12;border-radius:3px}.rep-bar-track>i{position:absolute;top:0;bottom:0;border-radius:3px}.rep-bar-track>.positive{background:linear-gradient(90deg,#389e90,#67dec4)}.rep-bar-track>.negative{background:#e88f9f}.rep-bar-track>.rep-bar-zero{width:1px;background:#c3d7e460;top:-3px;bottom:-3px}
.rep-muted{font-size:.76rem;color:var(--rep-muted);line-height:1.7;margin:12px 0}.rep-positive{color:#81dcc4}.rep-negative{color:#f4a1b0}
.rep-player-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px;margin-bottom:20px}.rep-player-grid>.rep-card{margin-bottom:0;padding:18px}.rep-player-grid h3{margin-bottom:10px;font-size:.86rem}.rep-player-values{display:flex;justify-content:space-between;align-items:center;gap:10px;font-variant-numeric:tabular-nums}.rep-player-values>strong{font-size:1.3rem}.rep-player-values>span{font-size:.8rem}.rep-mini{margin-top:12px}.rep-mini .rep-readout{font-size:.65rem}
.rep-share{display:grid;grid-template-columns:minmax(210px,1fr) minmax(240px,1fr);gap:30px;align-items:center}.rep-share>svg{width:100%;max-width:380px;justify-self:center}.rep-share-legend{display:flex;flex-direction:column;gap:12px}.rep-share-item{display:grid;grid-template-columns:10px 1fr auto;gap:10px;align-items:center;font-size:.76rem;color:#cad8e7}.rep-share-item i{width:9px;height:9px;border-radius:3px}.rep-share-item strong{font-variant-numeric:tabular-nums;font-weight:500}
.rep-data{margin-top:18px;border:1px solid var(--rep-line);border-radius:12px;background:#121d29;overflow:hidden}.rep-data>summary{cursor:pointer;font-size:.82rem;padding:17px 20px;color:#cddaea}.rep-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--rep-line);border-radius:10px}.rep-data .rep-table-wrap{border:0;border-radius:0}.rep-table{width:100%;border-collapse:collapse;text-align:right;font-size:.77rem;font-variant-numeric:tabular-nums;background:#121d29}.rep-table th,.rep-table td{padding:12px 16px;border-bottom:1px solid #8aa6be18;white-space:nowrap}.rep-table thead th{font-size:.68rem;color:#a9c3d5;background:#1c2b3c;font-weight:600}.rep-table th:first-child{text-align:left}.rep-table tbody th{font-weight:500}.rep-table tbody tr:hover{background:#ffffff05}.rep-table tbody tr:last-child>*{border-bottom:0}
.rep-message{padding:48px 24px;background:#151f2d;border:1px solid var(--rep-line);border-radius:14px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center;min-height:220px;justify-content:center}.rep-message>strong{font-size:.94rem;font-weight:500;max-width:630px;line-height:1.8;color:#bfcddd}.rep-loading::before{content:'';width:32px;height:32px;border:2px solid #67dec425;border-top-color:var(--rep-mint);border-radius:50%;animation:rep-spin .9s linear infinite}.rep-warning{padding:14px 18px;margin-bottom:18px;border:1px solid #f1c87850;background:#f1c8780d;color:#efcf96;border-radius:10px;font-size:.82rem;line-height:1.6}.rep-error{border-color:#cf738d45}
#rep-footnote{margin:18px 0 0;font-size:.73rem;color:var(--rep-muted);line-height:1.8}
@keyframes rep-spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.rep-panels{grid-template-columns:1fr}.rep-share{gap:16px}}
@media(max-width:600px){.rep-header{padding:20px 16px;gap:12px}.rep-tool{padding:9px 12px;font-size:.74rem}.rep-tabs{padding:10px;gap:3px}#section-reports .rep-view-btn{padding:9px 10px;font-size:.71rem}#rep-summary{grid-template-columns:1fr;gap:10px}.rep-stat{padding:15px 18px}.rep-stat>span{margin-bottom:5px}.rep-stat>strong{font-size:1.3rem}.rep-stat>small{margin-top:3px}.rep-card{padding:17px 12px}.rep-bar-row{grid-template-columns:minmax(70px,1fr) minmax(50px,1fr) minmax(54px,.7fr);gap:8px}.rep-bar-row,.rep-bar-row>strong{font-size:.7rem}.rep-share{grid-template-columns:1fr}.rep-share>svg{max-width:270px}.rep-share-legend{padding:0 8px}.rep-control{flex:1;min-width:130px}.rep-search{max-width:none}.rep-control :is(select,input){min-width:0;width:100%}.rep-readout{font-size:.7rem}.rep-table th,.rep-table td{padding:11px 12px}}
@media(prefers-reduced-motion:reduce){.rep-loading::before{animation:none}#section-reports *{scroll-behavior:auto!important;transition:none!important}}

/* Growth rankings: blue for largest gains, red for smallest gains. */
.rep-growth-high{--rep-rank-accent:#86bfff;border-color:#609eed45;background:linear-gradient(125deg,#397ec012,transparent 65%),#151f2d}
.rep-growth-low{--rep-rank-accent:#ff9999;border-color:#ed707045;background:linear-gradient(125deg,#b9444412,transparent 65%),#151f2d}
.rep-card:is(.rep-growth-high,.rep-growth-low) h3,.rep-card:is(.rep-growth-high,.rep-growth-low) .rep-bar-row>strong{color:var(--rep-rank-accent)}
.rep-growth-high .rep-bar-track>.positive{background:linear-gradient(90deg,#387ac4,#86bfff)}
.rep-growth-low .rep-bar-track>:is(.positive,.negative){background:linear-gradient(90deg,#bf4848,#ff9999)}
