/* V6.8 Block 7: scoped presentation for Insights and Pending Central. */
.v68-insights,.v68-pending{min-width:0;display:grid;gap:17px}.v68-insights>*,.v68-pending>*{min-width:0}.v68-insights .content-heading,.v68-pending .content-heading{margin:0}.v68-insights .content-heading h1,.v68-pending .content-heading h1{font-size:clamp(24px,2.1vw,31px)}
.v68-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 2px}.v68-section-head h2{font-size:16px;margin:0}.v68-section-head small{font-size:11px;color:var(--muted)}
.v68-insight-health{display:flex;align-items:center;gap:25px;min-height:176px;background:linear-gradient(115deg,#e8f8ef,var(--surface) 78%);border-left:4px solid #16a36a}.v68-insight-health.warning{background:linear-gradient(115deg,#fff4df,var(--surface) 78%);border-left-color:#d79223}.v68-insight-health.negative{background:linear-gradient(115deg,#ffede9,var(--surface) 78%);border-left-color:#d55a52}.v68-insight-health.neutral{background:linear-gradient(115deg,#eef2f5,var(--surface) 78%);border-left-color:#8b9ca7}.v68-insight-health .health-gauge{background:conic-gradient(var(--green-500) calc(var(--score)*1%),#dce9e2 0)}.v68-insight-health.warning .health-gauge{background:conic-gradient(#d79223 calc(var(--score)*1%),#eee4d0 0)}.v68-insight-health.negative .health-gauge{background:conic-gradient(#d55a52 calc(var(--score)*1%),#f0dad8 0)}.v68-insight-health.neutral .health-gauge{background:conic-gradient(#8b9ca7 calc(var(--score)*1%),#e1e6e9 0)}.v68-insight-health h2{font-size:clamp(19px,2vw,27px);margin:5px 0}.v68-insight-health p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.v68-score-details{margin-top:10px;font-size:11px}.v68-score-details summary{font-weight:800;cursor:pointer;color:var(--green-700);width:max-content}.v68-score-details>p{max-width:680px;margin-top:9px}.v68-score-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin-top:11px}.v68-score-details summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.v68-attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.v68-attention-card{display:grid;text-align:left;align-content:space-between;gap:7px;min-width:0;min-height:105px;padding:13px 15px;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-sm);cursor:pointer;transition:transform .15s,border-color .15s}.v68-attention-card:hover{transform:translateY(-2px);border-color:var(--accent)}.v68-attention-card>span{font-size:11px;font-weight:800}.v68-attention-card>strong{font-size:clamp(19px,1.8vw,27px);letter-spacing:-.5px;overflow-wrap:anywhere}.v68-attention-card>small{font-size:10px;line-height:1.35;opacity:.83}.v68-attention-card.danger{background:#fdece9;color:#a83832}.v68-attention-card.warning{background:#fff3dd;color:#805512}.v68-attention-card.info{background:#e9f2fa;color:#255d88}.v68-attention-card.positive{background:#e6f7ed;color:#146845}
.v68-insight-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v68-insight-charts>.panel{min-width:0;min-height:280px;padding:16px}.v68-insight-charts .panel-head h2{font-size:14px}.v68-insight-charts .category-chart{grid-template-columns:100px minmax(0,1fr);gap:9px}.v68-insight-charts .donut{width:96px;height:96px}.v68-insight-charts .legend{max-height:122px;overflow-y:auto}.v68-insight-charts .bar-chart{height:165px}.v68-insight-charts .bar-pair{height:127px}.v68-trend-chart{display:flex;align-items:end;justify-content:space-around;gap:8px;min-height:165px;padding-top:16px;border-bottom:1px solid var(--line)}.v68-trend-chart>div{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:4px;width:31%;min-width:0;height:160px}.v68-trend-bar{display:block;width:28px;max-height:88px;min-height:4px;border-radius:7px 7px 0 0;background:#27b67b}.v68-trend-bar.negative{background:#e47268}.v68-trend-chart strong{font-size:10px}.v68-trend-chart b{font-size:11px;white-space:nowrap}.v68-trend-chart small{font-size:9px;text-align:center;color:var(--muted);line-height:1.3}.v68-chart-note{font-size:10px;color:var(--muted);line-height:1.4;margin:10px 0 0}.v68-insights .insights-page-grid{gap:10px}.v68-insights .insight-card{min-height:110px;background:var(--surface)}.v68-insight-actions>div:last-of-type{display:flex;flex-wrap:wrap;gap:9px}.v68-insight-actions :is(button,a){min-height:36px;display:inline-flex;align-items:center;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font-weight:750;font-size:11px;text-decoration:none;cursor:pointer}
.v68-pending-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v68-pending-summary-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 9px;text-align:left;min-width:0;min-height:83px;padding:12px 15px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:13px;background:var(--surface);cursor:pointer}.v68-pending-summary-card.danger{border-left-color:#da554c}.v68-pending-summary-card.warning{border-left-color:#d99530}.v68-pending-summary-card.info{border-left-color:#418ccb}.v68-pending-summary-card span{font-size:11px;font-weight:800;color:var(--muted)}.v68-pending-summary-card strong{font-size:25px;grid-column:2;grid-row:1/3}.v68-pending-summary-card b{font-size:15px;overflow-wrap:anywhere}.v68-pending-list{padding:16px}.v68-pending-toolbar{display:flex;align-items:start;justify-content:space-between;gap:12px;min-width:0}.v68-pending-filters{display:flex;gap:5px;flex-wrap:wrap;min-width:0}.v68-pending-filters button{min-height:32px;white-space:nowrap;padding:5px 9px;font-size:10px}.v68-pending-toolbar label{display:flex;align-items:center;gap:6px;flex:none;font-size:10px;color:var(--muted)}.v68-pending-toolbar select{width:auto;min-width:142px;min-height:33px;padding:5px 8px;font-size:11px}.v68-pending-count{margin:10px 0;font-size:11px;color:var(--muted)}.v68-pending-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v68-pending-card{min-width:0;padding:10px 12px 10px 14px;border:1px solid var(--line);border-left:4px solid #9eafb0;border-radius:11px;background:var(--surface)}.v68-pending-card.danger{border-left-color:#d9534f}.v68-pending-card.warning{border-left-color:#dc9b33}.v68-pending-card.info{border-left-color:#4a94ce}.v68-pending-top,.v68-pending-meta,.v68-pending-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.v68-pending-top strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.v68-pending-top b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.v68-pending-meta{margin-top:5px;font-size:10px;color:var(--muted)}.v68-pending-meta>span:first-child{min-width:0}.v68-pending-tag{font-size:9px;font-weight:800;color:var(--ink);white-space:nowrap}.v68-pending-bottom{margin-top:6px;min-height:31px}.v68-pending-bottom>span{font-size:9px;color:var(--muted);min-width:0}.v68-pending-actions{display:flex;align-items:center;gap:6px;flex:none}.v68-pending-actions>.primary{font-size:10px;min-height:29px;padding:5px 8px}.v68-pending-actions details{position:relative}.v68-pending-actions summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:6px 8px;font-size:10px;font-weight:750;white-space:nowrap}.v68-pending-actions summary::-webkit-details-marker{display:none}.v68-pending-actions details[open] .v68-pending-detail{position:absolute;z-index:10;right:0;top:32px;width:min(310px,calc(100vw - 70px));max-height:300px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm)}.v68-pending-detail span{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:10px}.v68-pending-detail span b{text-align:right;overflow-wrap:anywhere}.v68-pending-detail button{margin-top:6px}.v68-pending :is(button,summary,select):focus-visible,.v68-insights :is(button,a,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-theme=dark] .v68-insight-health,html[data-theme=dark] .v68-attention-card,html[data-theme=dark] .v68-pending-summary-card,html[data-theme=dark] .v68-pending-card{background:var(--surface);color:var(--ink)}html[data-theme=dark] .v68-insight-health.negative,html[data-theme=dark] .v68-attention-card.danger{background:linear-gradient(120deg,#402928,var(--surface) 85%)}html[data-theme=dark] .v68-insight-health.warning,html[data-theme=dark] .v68-attention-card.warning{background:linear-gradient(120deg,#3d3425,var(--surface) 85%)}html[data-theme=dark] .v68-attention-card.info{background:linear-gradient(120deg,#243c4a,var(--surface) 85%)}html[data-theme=dark] .v68-attention-card.positive{background:linear-gradient(120deg,#1a4136,var(--surface) 85%)}
@media(max-width:1100px){.v68-insight-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.v68-trend-panel{grid-column:1/-1}.v68-pending-toolbar{flex-wrap:wrap}.v68-pending-filters{width:100%}}
@media(max-width:760px){.v68-insights,.v68-pending{gap:13px}.v68-insight-health{min-height:0;gap:14px;padding:14px}.v68-insight-health .health-gauge.large{width:92px;height:92px}.v68-insight-health .health-gauge.large strong{font-size:27px}.v68-insight-health h2{font-size:17px}.v68-insight-health p{font-size:10px}.v68-score-reasons{grid-template-columns:1fr}.v68-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v68-attention-card{min-height:95px;padding:10px}.v68-attention-card>strong{font-size:19px}.v68-insight-charts{grid-template-columns:1fr}.v68-trend-panel{grid-column:auto}.v68-insight-charts>.panel{min-height:0}.v68-insights .insights-page-grid{grid-template-columns:1fr}.v68-section-head small{display:none}.v68-pending-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.v68-pending-summary-card{min-height:72px;padding:8px;display:block}.v68-pending-summary-card span{display:block;font-size:9px;line-height:1.2}.v68-pending-summary-card strong{display:block;font-size:19px;margin:3px 0}.v68-pending-summary-card b{display:block;font-size:10px}.v68-pending-list{padding:12px}.v68-pending-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:2px 1px 6px}.v68-pending-filters button{flex:none}.v68-pending-toolbar label{width:100%;justify-content:space-between}.v68-pending-cards{grid-template-columns:1fr}.v68-pending-card{padding:10px}.v68-pending-actions>.primary,.v68-pending-actions summary{font-size:10px}}
@media(max-width:390px){.v68-insight-health{align-items:flex-start}.v68-insight-health .health-gauge.large{width:76px;height:76px}.v68-insight-health .health-gauge.large strong{font-size:23px}.v68-insight-health h2{font-size:16px}.v68-pending-top b{font-size:12px}.v68-pending-bottom{align-items:flex-start}.v68-pending-bottom>span{max-width:34%}.v68-pending-actions{gap:3px}}
@media(min-width:1001px){.v68-insights .content-heading h1,.v68-pending .content-heading h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
.v68-insights button.insight-action{border:0;background:none;padding:0;cursor:pointer;text-align:left}
