/* Win-path analysis lives inside the daily dashboard and reuses the same
   typography, cards, tabs and market accent colours as the other daily views. */
#view-winpaths{min-width:0;max-width:100%;overflow-x:clip}
#view-winpaths .winpaths-home-intro{padding:0 2px 12px;margin:0 0 14px;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#view-winpaths .winpaths-home-intro h3{margin:0 0 7px;font-size:var(--fs-xl);font-weight:var(--fw-black);letter-spacing:-.035em}
#view-winpaths .winpaths-home-intro p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.65}
#view-winpaths .winpaths-home-status{margin-top:9px;color:var(--muted);font-size:var(--fs-2xs);line-height:1.5}
#view-winpaths .winpaths-period-card{padding:11px 12px;margin-bottom:14px}
#view-winpaths .winpaths-period-card .control-label{margin-bottom:7px}
#view-winpaths .winpaths-period-card .period-tabs{width:100%;min-width:0}
#view-winpaths .winpaths-period-card .period-button{padding:8px 4px;font-size:var(--fs-2xs);white-space:nowrap}
#view-winpaths .winpaths-period-card .period-button.active{color:var(--accent-dark)}

#view-winpaths .win-yearly-content{display:none}
#view-winpaths.is-yearly-mode .win-current-content{display:none}
#view-winpaths.is-yearly-mode .win-yearly-content{display:block}

#view-winpaths .stage-svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#view-winpaths .stage-legend{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 12px}
#view-winpaths .stage-legend-item{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 9px;border:1px solid rgba(255,255,255,.85);border-radius:12px;background:rgba(255,255,255,.46);color:var(--muted);font-size:var(--fs-nano);font-weight:var(--fw-bold)}
#view-winpaths .stage-legend-icon,#view-winpaths .deep-flow-icon,#view-winpaths .deep-beat-icon{display:grid;place-items:center;background:var(--accent-pale);color:var(--accent-dark)}
#view-winpaths .stage-legend-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px}
#view-winpaths .stage-legend-icon .stage-svg{width:17px;height:17px}

/* .win-command already carries the shared .card class; keep only layout here. */
#view-winpaths .win-command{position:relative;overflow:hidden;margin:0 0 10px;padding:16px}
#view-winpaths .win-command-label{color:var(--accent-dark);font-size:var(--fs-2xs);font-weight:var(--fw-black)}
#view-winpaths .win-command-title{margin-top:6px;font-size:var(--fs-xl);line-height:1.32;font-weight:var(--fw-black);letter-spacing:-.035em}
#view-winpaths .win-command-sub{margin-top:8px;color:var(--muted);font-size:var(--fs-xs);line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

#view-winpaths .win-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
#view-winpaths .win-kpi{min-width:0;padding:14px}
#view-winpaths .win-kpi span{display:block;color:var(--muted);font-size:var(--fs-2xs);font-weight:var(--fw-bold)}
#view-winpaths .win-kpi strong{display:block;margin-top:8px;color:var(--ink);font-size:var(--fs-xl);line-height:1.05;font-weight:var(--fw-black);letter-spacing:-.04em}
#view-winpaths .win-kpi small{display:block;margin-top:5px;color:var(--muted);font-size:var(--fs-2xs);line-height:1.45}
#view-winpaths .deep-baseline-note{margin:0 2px 2px;color:var(--muted);font-size:var(--fs-2xs);line-height:1.5}

#view-winpaths .section-block{margin-top:22px}
#view-winpaths .section-heading{margin-bottom:9px}
#view-winpaths .section-heading h3{margin:0;font-size:var(--fs-xl)}
#view-winpaths .section-note{display:none}
#view-winpaths .deep-pattern-grid,#view-winpaths .deep-work-list,#view-winpaths .yearly-grid{min-width:0;max-width:100%;display:grid;gap:10px}
#view-winpaths .deep-pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Generated analysis cards also carry .card: do not paint a second, slightly
   different winpaths-only surface on top of the shared daily card. */
#view-winpaths .deep-pattern-card,#view-winpaths .deep-work-card,#view-winpaths .yearly-card{min-width:0;max-width:100%;overflow:hidden}
#view-winpaths .deep-pattern-card{padding:15px}
#view-winpaths .deep-pattern-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
#view-winpaths .deep-pattern-head>div{display:flex;align-items:center;gap:7px;min-width:0}
#view-winpaths .deep-rank{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:var(--fs-nano);font-weight:var(--fw-black)}
#view-winpaths .deep-pattern-type{min-width:0;color:var(--muted);font-size:var(--fs-2xs);font-weight:var(--fw-black);overflow-wrap:anywhere}
#view-winpaths .deep-diff{flex:0 1 auto;max-width:48%;padding:5px 8px;border-radius:999px;background:var(--accent-pale);color:var(--accent-dark);font-size:var(--fs-nano);font-weight:var(--fw-black);text-align:right;overflow-wrap:anywhere}

#view-winpaths .deep-flow{box-sizing:border-box;display:flex;align-items:stretch;gap:6px;width:100%;max-width:100%;min-width:0;margin-top:11px;padding:1px 1px 5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;touch-action:pan-x pan-y;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#view-winpaths .deep-flow::-webkit-scrollbar{display:none}
#view-winpaths .deep-flow-node{display:flex;align-items:center;gap:8px;min-width:136px;flex:1 0 136px;padding:9px 10px;border:1px solid rgba(255,255,255,.85);border-radius:13px;background:rgba(255,255,255,.46)}
#view-winpaths .deep-flow-icon{width:34px;height:34px;flex:0 0 34px;border-radius:11px}
#view-winpaths .deep-flow-icon .stage-svg{width:18px;height:18px}
#view-winpaths .deep-flow-copy{min-width:0}
#view-winpaths .deep-flow-copy small{display:block;margin-bottom:2px;color:var(--muted);font-size:var(--fs-nano);font-weight:var(--fw-bold);line-height:1.2}
#view-winpaths .deep-flow-copy strong{display:block;min-width:0;color:var(--ink);font-size:var(--fs-xs);font-weight:var(--fw-semibold);line-height:1.4;overflow-wrap:anywhere}
#view-winpaths .deep-flow-arrow{display:grid;place-items:center;width:20px;flex:0 0 20px;color:var(--accent-dark)}
#view-winpaths .deep-flow-arrow .stage-svg{width:18px;height:18px}
#view-winpaths .deep-flow.is-compact{margin-top:9px;gap:4px}
#view-winpaths .deep-flow.is-compact .deep-flow-node{min-width:116px;flex-basis:116px;padding:7px 8px}
#view-winpaths .deep-flow.is-compact .deep-flow-icon{width:29px;height:29px;flex-basis:29px;border-radius:9px}
#view-winpaths .deep-flow.is-compact .deep-flow-copy strong{font-size:var(--fs-nano)}
#view-winpaths .deep-flow.is-compact .deep-flow-arrow{width:14px;flex-basis:14px}

#view-winpaths .deep-bars{display:grid;gap:8px;margin-top:10px;padding:9px 10px;border-radius:13px;background:rgba(255,255,255,.32)}
#view-winpaths .deep-bar-row{display:grid;gap:5px}
#view-winpaths .deep-bar-label{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:7px;font-size:var(--fs-2xs)}
#view-winpaths .deep-bar-label span{color:var(--muted);font-weight:var(--fw-bold)}
#view-winpaths .deep-bar-label b{color:var(--ink);font-weight:var(--fw-semibold)}
#view-winpaths .deep-bar-label strong{min-width:34px;text-align:right;color:var(--accent-dark);font-size:var(--fs-xs);font-weight:var(--fw-black)}
#view-winpaths .deep-bar-track{position:relative;height:9px;padding:1px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.68);box-shadow:inset 0 1px 4px rgba(151,67,104,.08)}
body[data-market="bl"] #view-winpaths .deep-bar-track{box-shadow:inset 0 1px 4px rgba(70,164,210,.08)}
#view-winpaths .deep-bar-fill{display:block;height:100%;min-width:2px;border-radius:inherit}
#view-winpaths .deep-bar-fill.is-top{background:linear-gradient(90deg,var(--accent-2),var(--accent-dark));box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
#view-winpaths .deep-bar-fill.is-comparison{background:rgba(143,124,135,.28)}
body[data-market="bl"] #view-winpaths .deep-bar-fill.is-comparison{background:rgba(113,136,147,.30)}
#view-winpaths .deep-bars.is-compact{padding:8px 9px;gap:6px;margin-top:9px}
#view-winpaths .deep-bars.is-compact .deep-bar-track{height:7px}

#view-winpaths .win-card-details,#view-winpaths .win-beat-details{margin-top:9px;border-top:1px solid rgba(255,255,255,.72);padding-top:8px}
#view-winpaths .win-card-details>summary,#view-winpaths .win-beat-details>summary,#view-winpaths .win-method>summary{list-style:none;cursor:pointer;color:var(--accent-dark);font-size:var(--fs-2xs);font-weight:var(--fw-black)}
#view-winpaths .win-card-details>summary::-webkit-details-marker,#view-winpaths .win-beat-details>summary::-webkit-details-marker,#view-winpaths .win-method>summary::-webkit-details-marker{display:none}
#view-winpaths .win-card-details>summary::after,#view-winpaths .win-beat-details>summary::after{content:' ＋';font-weight:var(--fw-black)}
#view-winpaths .win-card-details[open]>summary::after,#view-winpaths .win-beat-details[open]>summary::after{content:' −'}
#view-winpaths .deep-interpretation{margin:9px 0 0;color:var(--ink);font-size:var(--fs-xs);line-height:1.65}
#view-winpaths .deep-support{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.72);color:var(--muted);font-size:var(--fs-2xs);line-height:1.55}

#view-winpaths .deep-work-card{padding:14px}
#view-winpaths .deep-work-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;min-width:0}
#view-winpaths .deep-work-head>div:first-child{min-width:0}
#view-winpaths .deep-work-head strong{display:block;font-size:var(--fs-base);line-height:1.45;font-weight:var(--fw-black);overflow-wrap:anywhere}
#view-winpaths .deep-work-head>div:first-child>span{display:block;margin-top:4px;color:var(--muted);font-size:var(--fs-2xs)}
#view-winpaths .deep-work-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;flex:0 0 auto;max-width:42%}
#view-winpaths .deep-work-meta>*{padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.46);color:var(--muted);font-size:var(--fs-nano);font-weight:var(--fw-bold)}
#view-winpaths .deep-work-meta b{background:var(--accent-pale);color:var(--accent-dark)}
#view-winpaths .deep-beats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px;min-width:0}
#view-winpaths .deep-beat{min-width:0;padding:10px;border-radius:13px;background:rgba(255,255,255,.38);border:1px solid rgba(255,255,255,.78)}
#view-winpaths .deep-beat-head{display:flex;align-items:flex-start;gap:8px}
#view-winpaths .deep-beat-icon{width:31px;height:31px;flex:0 0 31px;border-radius:10px}
#view-winpaths .deep-beat-icon .stage-svg{width:17px;height:17px}
#view-winpaths .deep-beat-head>span:last-child{min-width:0}
#view-winpaths .deep-beat-head small{display:block;color:var(--accent-dark);font-size:var(--fs-nano);font-weight:var(--fw-black)}
#view-winpaths .deep-beat-head strong{display:block;margin-top:3px;font-size:var(--fs-2xs);line-height:1.45;font-weight:var(--fw-semibold);overflow-wrap:anywhere}
#view-winpaths .deep-beat-evidence{margin:8px 0 0;color:var(--muted);font-size:var(--fs-2xs);line-height:1.55;overflow-wrap:anywhere}

#view-winpaths .yearly-grid{grid-template-columns:1fr}
#view-winpaths .yearly-card{padding:14px}
#view-winpaths .yearly-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.72)}
#view-winpaths .yearly-head strong{display:block;color:var(--ink);font-size:var(--fs-xl);line-height:1;font-weight:var(--fw-black);letter-spacing:-.03em}
#view-winpaths .yearly-head span{display:block;margin-top:4px;color:var(--muted);font-size:var(--fs-nano);font-weight:var(--fw-bold)}
#view-winpaths .yearly-sample{max-width:58%;padding:5px 7px;border-radius:9px;background:rgba(255,255,255,.46);color:var(--muted);font-size:var(--fs-nano);line-height:1.45;text-align:right}
#view-winpaths .yearly-patterns{display:grid;gap:10px;margin-top:10px}
#view-winpaths .yearly-pattern{min-width:0;padding:10px;border:1px solid rgba(255,255,255,.78);border-radius:13px;background:rgba(255,255,255,.34);overflow:hidden}
#view-winpaths .yearly-pattern-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
#view-winpaths .yearly-pattern-top span{color:var(--muted);font-size:var(--fs-nano);font-weight:var(--fw-black)}
#view-winpaths .yearly-pattern-top b{color:var(--accent-dark);font-size:var(--fs-nano);font-weight:var(--fw-black)}
#view-winpaths .yearly-empty{padding:12px;color:var(--muted);font-size:var(--fs-2xs);line-height:1.6;text-align:center}

/* These three are analysis sections, not optional details. Keep them visibly
   open at all times; only card-level evidence/details remain collapsible. */
#view-winpaths .win-collapsible-section{margin-top:22px;border:0;padding:0}
#view-winpaths .win-collapsible-section:not([open])>:not(summary){display:block}
#view-winpaths .win-collapsible-section>summary{pointer-events:none;cursor:default;list-style:none;display:block;margin:0 0 9px}
#view-winpaths .win-collapsible-section>summary::-webkit-details-marker{display:none}
#view-winpaths .win-collapsible-section>summary::after{content:none}
#view-winpaths .win-collapsible-section>summary .eyebrow{display:none}
#view-winpaths .win-collapsible-section>summary strong{display:block;color:var(--ink);font-size:var(--fs-xl);font-weight:var(--fw-black);line-height:1.25}
#view-winpaths .win-collapsible-section .section-note{display:none}
#view-winpaths .win-method{margin-top:22px;padding:14px 16px}
#view-winpaths .win-method p{margin:8px 0 0;color:var(--muted);font-size:var(--fs-2xs);line-height:1.65}
#view-winpaths .empty{padding:18px;color:var(--muted);font-size:var(--fs-xs);text-align:center}

@media(max-width:900px){#view-winpaths .stage-legend{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#view-winpaths .win-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#view-winpaths .deep-pattern-grid{grid-template-columns:1fr}#view-winpaths .deep-beats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  #view-winpaths .winpaths-home-intro{padding:0 2px 10px}
  #view-winpaths .winpaths-home-intro p{display:none}
  #view-winpaths .stage-legend{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-winpaths .stage-legend-item{padding:7px 8px}
  #view-winpaths .deep-pattern-card{padding:13px}
  #view-winpaths .deep-bars{padding:8px}
  #view-winpaths .deep-work-card{padding:13px}
  #view-winpaths .deep-work-head{display:block}
  #view-winpaths .deep-work-meta{justify-content:flex-start;max-width:none;margin-top:8px}
  #view-winpaths .deep-beats{grid-template-columns:1fr}
  #view-winpaths .deep-flow-node{min-width:min(136px,calc(100vw - 92px));flex-basis:min(136px,calc(100vw - 92px))}
  #view-winpaths .deep-flow.is-compact .deep-flow-node{min-width:min(116px,calc(100vw - 104px));flex-basis:min(116px,calc(100vw - 104px))}
  #view-winpaths .yearly-head{display:block}
  #view-winpaths .yearly-sample{max-width:none;margin-top:8px;text-align:left}
}