/* Last Dawg Standing: shared controls and compact, discoverable tool navigation. */
#gwLegacy{--gx-radius:16px;padding-bottom:90px}
.gx-breadcrumb{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2);margin:18px 0 12px}.gx-breadcrumb a{color:var(--accent);text-decoration:none;font-weight:700}
#gwLegacy>h1{font-size:clamp(28px,4vw,38px)!important;letter-spacing:-.035em!important;line-height:1.15;margin:0!important}
#gwLegacy>.lab-sub{font-size:16px;line-height:1.5;max-width:760px;margin:8px 0!important}#gwLegacy>.lab-sub:first-of-type{font-size:14px;font-weight:600!important;color:var(--ink-2)!important}
.gx-model-note{font-size:14px;color:var(--ink-2);margin:10px 0 20px;line-height:1.5}
.gx-control-card{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--gx-radius);padding:20px;margin:0 0 14px;box-shadow:0 4px 18px #00000004}
.gx-control-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:14px;align-items:end}.gx-control-grid label{display:grid;gap:7px;font-size:13px;font-weight:750;color:var(--ink-2)}
.gx-control-card select,.gx-control-card input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;border:1px solid var(--border);border-radius:10px;background:var(--page);color:var(--ink-1);font-family:inherit;font-weight:500;font-size:16px;line-height:1.4;padding:11px 12px}
.gx-control-card .btn{min-height:48px;border-radius:10px;font-size:14px;font-weight:700;padding:10px 16px}.gx-control-card #gxRefresh{background:var(--accent);color:#fff;border-color:var(--accent)}
.gx-status{font-size:13px;line-height:1.5;color:var(--ink-2);margin:12px 0 0;font-variant-numeric:tabular-nums}
#gxSetup{margin:14px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--border);background:transparent;border-radius:0}#gxSetup>summary{color:var(--accent);font-size:14px;font-weight:650;letter-spacing:0;text-transform:none;min-height:32px;cursor:pointer}#gxSetup .controls{display:flex;flex-wrap:wrap;gap:8px}#gxId{flex:1 1 250px}#gxSetup .legend{font-size:14px}#gxSetup .gx-shelf{background:var(--page);border-color:var(--border)}#gxSetup .gx-shelf h3{font-size:14px}#gxSetup .gx-league-chip{font-size:14px;min-height:40px;border-radius:8px}
.gx-risk-summary{border:1px solid var(--border);border-radius:12px;margin:0 0 16px;background:var(--surface-1);overflow:hidden}.gx-risk-summary>summary{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;font-size:14px;font-weight:750;cursor:pointer;color:var(--ink-1)}.gx-risk-summary>summary:after{content:'+';color:var(--accent)}.gx-risk-summary[open]>summary:after{content:'−'}.gx-risk-summary>summary span{margin-left:auto;font-weight:400;color:var(--ink-2)}.gx-risk-summary .gx-stage{margin:0;border-radius:0;border:0!important;padding:18px}
#gwLegacy .gx-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;background:none;border:0;box-shadow:none;overflow:visible;border-radius:0}
#gwLegacy .gx-tabs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;white-space:normal;text-align:left;min-height:76px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);color:var(--ink-1);font-family:inherit;font-weight:700;font-size:15px;line-height:1.25;text-transform:none;letter-spacing:0;box-shadow:none}
#gwLegacy .gx-tabs button small{font-size:12px;line-height:1.35;font-weight:450;color:var(--ink-2)}#gwLegacy .gx-tabs button.on{background:var(--accent);border-color:var(--accent);color:#fff}#gwLegacy .gx-tabs button.on small{color:#fff;opacity:.9}
.gx-nav-hint{font-size:14px;color:var(--ink-2);line-height:1.5;margin:12px 2px 18px}
#gwLegacy button:focus-visible,#gwLegacy select:focus-visible,#gwLegacy summary:focus-visible,#gwLegacy a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#gwLegacy .hero-card,#gwLegacy .gw-card{padding:22px;border:1px solid var(--border);border-radius:var(--gx-radius);box-shadow:0 4px 18px #00000003;background:var(--surface-1)}#gwLegacy .hero-card h2,#gwLegacy .gw-card h2{font-family:inherit;font-weight:750;font-size:20px;line-height:1.35;text-transform:none;letter-spacing:-.015em;color:var(--ink-1)}#gwLegacy .legend,#gwLegacy .gw-note{font-size:14px;line-height:1.6;color:var(--ink-2)}#gwLegacy .samp{font-size:11px;letter-spacing:.035em;vertical-align:middle}
#gwLegacy .pt-wheelgrid{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center}#gwLegacy .pt-felt{box-sizing:border-box;width:100%;max-width:640px;border-radius:14px;padding:22px}#gwLegacy .gx-wheelbox canvas{width:min(100%,450px);max-width:450px}.gx-tally{overflow-wrap:anywhere}
#gwLegacy .statrow{gap:10px}#gwLegacy .statrow .s{padding:14px;border-radius:10px}#gwLegacy .statrow .sv{font-size:24px;font-variant-numeric:tabular-nums}#gwLegacy .statrow .sl{font-size:12px;line-height:1.4;text-transform:none;letter-spacing:0}
#gwLegacy table{font-variant-numeric:tabular-nums}#gwLegacy table th{font-size:12px;text-transform:none;letter-spacing:0;padding:12px 10px}#gwLegacy table td{font-size:14px;padding:12px 10px}#gwLegacy .tscroll,#gwLegacy .gw-scroll{border:1px solid var(--border);border-radius:10px;overflow-x:auto}
#gwLegacy .gw-controls{gap:10px;margin:12px 0}#gwLegacy .gw-controls .btn{font-size:14px;border-radius:9px;padding:10px 14px}.gw-tabs{display:flex;flex-wrap:wrap;gap:8px!important}.gw-tabs button{font-size:14px;min-height:44px;border-radius:9px!important;padding:10px 13px!important}.gw-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.gw-metric{border-left-width:3px}.gw-metric b{font-size:25px;font-variant-numeric:tabular-nums}.gw-metric span{font-size:12px}.gw small{font-size:12px}.gw #gwStatus{margin:8px 0 16px}.gw .sub{font-size:15px;line-height:1.5}.gw [data-view=waivers]>.gw-card:first-child>.gw-note{max-width:760px}.gw input[type=range]{width:min(260px,100%);accent-color:var(--accent)}
.gx-value-notice:empty{display:none}.gx-value-notice{border:1px solid var(--border);background:var(--surface-1);padding:16px;border-radius:12px;font-size:14px;color:var(--ink-2)}.gx-loading{display:none!important}
@media(max-width:700px){.gx-control-card{padding:16px}.gx-control-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.gx-control-grid label:first-child{grid-column:1/-1}.gx-control-grid #gxRefresh{padding:10px}.gx-status{font-size:12px}.gx-risk-summary>summary span{display:none}#gwLegacy .gx-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#gwLegacy .gx-tabs button{min-height:68px;padding:12px;font-size:15px}#gwLegacy .gx-tabs button:last-child{grid-column:1/-1;min-height:58px;flex-direction:row;align-items:center;justify-content:space-between}#gwLegacy .gx-tabs button small{font-size:12px}#gwLegacy .hero-card,#gwLegacy .gw-card{padding:16px}#gwLegacy .hero-card h2,#gwLegacy .gw-card h2{font-size:19px}#gwLegacy .pt-felt{padding:14px}#gwLegacy .statrow{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-metric b{font-size:23px}.gw-tabs button{flex:1 1 120px}.gw-controls label{display:block;line-height:1.7}.gw-controls input[type=range]{display:block;margin:12px 0}.gx-nav-hint{margin-bottom:14px}#gwLegacy .pt-ladderwrap{max-height:340px;overflow:auto}}
@media(prefers-reduced-motion:reduce){#gwLegacy *{scroll-behavior:auto!important;transition:none!important}}
:root[data-theme="dark"] #gwLegacy .gx-tabs button.on,:root[data-theme="dark"] #gwLegacy .gx-tabs button.on small,:root[data-theme="dark"] .gx-control-card #gxRefresh{color:#201407}
