/* Student wins dashboard (#/wins) and the student summary card */
.wn-head-actions { display: flex; gap: 8px; }
.wn-kpis b small { font-size: 15px; color: var(--lab-dim); font-weight: 600; }
.wn-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.wn-sec { padding: 20px 22px !important; margin-bottom: 16px; }
.wn-grid .wn-sec { margin-bottom: 0; }
.wn-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.wn-sec-hd h2 { margin: 0; font-size: 16px; font-weight: 700; }
.wn-sec-hd h2 small { margin-left: 6px; color: var(--lab-faint); font-size: 13px; }
.wn-sec-hd > small { color: var(--lab-dim); font-size: 12.5px; }
.wn-sec h3 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--lab-dim); }
.wn-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.wn-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wn-bar b { font-size: 11.5px; color: var(--lab-sub); white-space: nowrap; }
.wn-bar i { position: relative; width: 100%; max-width: 64px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--accent) 35%, transparent); overflow: hidden; display: block; }
.wn-bar i em { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); }
.wn-bar span { font-size: 12px; color: var(--lab-dim); }
.wn-legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; color: var(--lab-dim); }
.wn-legend i { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.wn-legend i.base { background: var(--accent); }
.wn-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wn-status button { display: flex; align-items: center; gap: 10px; padding: 10px 12px !important; min-height: 0 !important; justify-content: flex-start !important; text-align: left; }
.wn-status button b { font-size: 20px; }
.wn-status button.on { border-color: var(--accent) !important; }
.wn-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border); color: var(--lab-sub); }
.wn-pill.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 12%, transparent); }
.wn-pill.warn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wn-pill.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }
.wn-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; background: var(--lab-inner); border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--lab-sub); }
.wn-top { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--lab-row); color: inherit; text-decoration: none; font-size: 13.5px; }
.wn-top > span { width: 16px; color: var(--lab-faint); font-weight: 700; }
.wn-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-attn a { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--lab-row); color: inherit; text-decoration: none; }
.wn-attn a:first-child { border-top: 0; }
.wn-attn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wn-attn small { color: var(--red); font-size: 12.5px; }
.wn-attn em { font-style: normal; font-size: 12.5px; color: var(--lab-dim); }
.wn-tools { display: flex; gap: 8px; }
.wn-tools input, .wn-tools select { margin: 0 !important; padding: 8px 10px !important; font-size: 13px !important; }
.wn-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wn-filters button { font-size: 12.5px !important; padding: 6px 12px !important; min-height: 0 !important; border-radius: 999px !important; }
.wn-filters button.on { border-color: var(--accent) !important; color: var(--text) !important; }
.wn-table { display: flex; flex-direction: column; font-size: 13px; }
.wn-table > a, .wn-table > .th { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.1fr .9fr .9fr .9fr .8fr .8fr; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--lab-row); color: inherit; text-decoration: none; }
.wn-table > .th { border-top: 0; font-size: 11.5px; font-weight: 700; color: var(--lab-dim); text-transform: uppercase; letter-spacing: .05em; }
.wn-table > a:hover { background: var(--lab-hover, var(--lab-inner)); }
.wn-table > a > span { display: flex; flex-direction: column; gap: 1px; }
.wn-table small { color: var(--lab-faint); font-size: 11.5px; }
.wn-who { flex-direction: row !important; align-items: center; gap: 10px !important; min-width: 0; }
.wn-who > span { display: flex; flex-direction: column; min-width: 0; }
.wn-who b, .wn-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-summary { padding: 20px 22px !important; margin: 0 0 16px; }
.wn-headline { margin: -4px 0 12px; font-size: 14.5px; color: var(--text); }
.wn-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wn-cols h3 { margin-top: 4px; }
.wn-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; color: var(--lab-sub); }
.wn-item span { display: flex; flex-direction: column; gap: 2px; }
.wn-item b { font-weight: 600; color: var(--text); }
.wn-item small { color: var(--lab-dim); font-size: 12.5px; }
.wn-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--lab-faint); }
.wn-dot.bad { background: var(--red); } .wn-dot.warn { background: var(--accent); } .wn-dot.ok { background: var(--green); }
.wn-help { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--lab-sub); line-height: 1.45; }
@media (max-width: 1000px) {
  .wn-grid, .wn-cols { grid-template-columns: minmax(0, 1fr); }
  .wn-table > a, .wn-table > .th { grid-template-columns: minmax(0, 2fr) 1fr 1fr; }
  .wn-table > a > span:nth-child(n+4), .wn-table > .th > span:nth-child(n+4) { display: none; }
  .wn-attn a { grid-template-columns: auto minmax(0, 1fr); } .wn-attn em { grid-column: 2; }
}
.wn-table .wn-pill { align-self: flex-start; }

/* The earnings hero uses Studio's existing yellow, dark panels and type. */
.wn-earnings { padding: clamp(22px, 4vw, 42px) !important; margin-bottom: 20px; background: var(--panel); border-top: 3px solid var(--accent) !important; }
.wn-earnings-context { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wn-estimate { color: var(--lab-dim); font-size: 12px; }
.wn-earnings h2 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
.wn-earnings-total { display: block; font-size: clamp(36px, 6vw, 76px); line-height: 1.12; letter-spacing: -.045em; color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wn-earnings-note { font-size: 13px; line-height: 1.5; color: var(--lab-dim); margin: 12px 0 0; }
.wn-earnings-breakdown { display: flex; gap: 16px 32px; flex-wrap: wrap; margin: 24px 0 30px; color: var(--lab-dim); font-size: 13px; }
.wn-earnings-breakdown b { display: block; margin-top: 5px; color: var(--text); font-size: 20px; }
.wn-milestone-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--lab-sub); margin-bottom: 10px; }
.wn-milestone-label b { color: var(--text); margin-left: 6px; }
.wn-milestone-label > strong { color: var(--accent); }
.wn-progress { height: 12px; border-radius: 999px; background: var(--lab-inner); border: 1px solid var(--border); overflow: hidden; }
.wn-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.wn-milestone-status { margin: 10px 0 26px; font-size: 13px; color: var(--lab-dim); line-height: 1.5; }
.wn-earnings-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); padding-top: 22px; gap: 22px; }
.wn-earnings-stats b { display: block; font-size: 24px; color: var(--text); overflow-wrap: anywhere; }
.wn-earnings-stats span { display: block; font-size: 12px; color: var(--lab-dim); margin-top: 4px; }
@media (max-width: 600px) { .wn-earnings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wn-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wn-picker label { color: var(--lab-dim); font-size: 13px; }
.wn-picker select { flex: 1; min-width: 0; max-width: 480px; margin: 0; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.wn-picker button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.wn-picker select:focus-visible, .wn-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .wn-picker select { flex-basis: 100%; max-width: none; } }
