.input{width:100%;padding:10px 12px;border-radius:var(--radius-md);border:1px solid rgba(255,255,255,.12);background:#ffffff0a;color:inherit;outline:none}.input:focus{border-color:#3b82f6a6}.code-block--compact .qs-hl{color:var(--color-warning);font-family:var(--font-sans);font-weight:800!important;font-style:italic;font-size:1.1em}#manager-leagues-sheet .top-sheet__subtitle strong{color:var(--color-warning);font-weight:800}.card--compact{margin-bottom:var(--space-2)}.card-body--compact{padding:var(--space-2) var(--space-3)}.card-title--small{font-size:var(--text-sm);margin-bottom:var(--space-2)}.help-list--compact{padding-left:var(--space-4);display:flex;flex-direction:column;gap:2px;font-size:var(--text-xs);color:var(--color-text-secondary);margin-bottom:var(--space-1)}.tip--compact{font-size:var(--text-xs);margin-top:0;margin-bottom:2px}.code-block--compact{display:block;padding:var(--space-1) var(--space-2);font-family:var(--font-mono);font-size:var(--text-xs);background:var(--color-surface-alt);border-radius:var(--radius-sm);word-break:break-all;overflow-wrap:break-word;line-height:1.4}.ids-layout{display:flex;flex-direction:row;gap:var(--space-4);margin-top:0;align-items:flex-start}.ids-textarea-wrapper{width:clamp(165px,42vw,220px);flex-shrink:0}.ids-textarea-wrapper .textarea{width:100%;font-size:var(--text-sm);min-height:380px}.ids-actions{display:flex;flex-direction:column;gap:var(--space-2);width:140px}.ids-header{margin-bottom:var(--space-2)}.btn-icon-info{border:none;background:transparent;font-size:.85rem;cursor:pointer;padding:2px 6px;margin-left:4px;color:#60a5fa;opacity:.95;transition:opacity .15s ease,color .15s ease;vertical-align:middle;line-height:1;border-radius:8px}.btn-icon-info:hover{color:#93c5fd;opacity:1}.btn-icon-info:focus-visible{outline:2px solid rgba(96,165,250,.55);outline-offset:2px}.manager-sources-list{display:flex;flex-direction:column;gap:8px}input[type=checkbox]:checked{accent-color:var(--color-primary)}.loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin .6s linear infinite;vertical-align:middle;margin-right:6px}@keyframes spin{to{transform:rotate(360deg)}}.manager-source-item{padding:10px 12px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg);line-height:1.4}.manager-source-item__header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.manager-source-item__name{font-size:.95rem;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manager-source-item__id{font-family:monospace;font-size:.85rem;color:var(--color-primary);font-weight:600;flex-shrink:0}.manager-source-item__source{margin-top:4px;font-size:.85rem;color:var(--color-text-muted)}.manager-source-item__footer{display:flex;justify-content:space-between;align-items:center;margin-top:4px;gap:8px}.manager-source-item__delete{border:none;background:transparent;font-size:.95rem;cursor:pointer;padding:4px;opacity:.5;transition:opacity .15s ease;flex-shrink:0}.manager-source-item__delete:hover{opacity:1}#manager-sources-sheet.top-sheet{max-width:500px}@media(max-width:640px){#manager-sources-sheet.top-sheet{inset:0;max-width:100%;height:100vh;height:100dvh;max-height:100dvh;border-bottom-left-radius:0;border-bottom-right-radius:0}#manager-sources-sheet .top-sheet__header{padding-top:calc(var(--space-3) + env(safe-area-inset-top))}}.ids-count-inline{font-size:inherit;font-weight:inherit;color:var(--color-text-secondary);margin-left:var(--space-1)}.ids-count-inline strong{color:var(--color-success);font-weight:inherit}.btn--full-width{width:100%}@media(min-width:640px){.ids-actions .btn{min-height:44px;padding-top:12px;padding-bottom:12px}}#edit-btn{white-space:normal;overflow-wrap:anywhere;line-height:1.15;font-size:.9rem;background:#020617;color:#e5e7eb;border:1px solid #1f2937}#edit-btn:hover{border-color:#374151}#edit-btn:focus-visible{outline:2px solid rgba(148,163,184,.55);outline-offset:2px}#save-btn{background:#10b981;color:#ecfdf5;border:1px solid #065f46}#save-btn:hover{background:#059669}#save-btn:focus-visible{outline:2px solid rgba(16,185,129,.55);outline-offset:2px}#featured-open{background:#312e81;color:#e0e7ff;border:1px solid #4338ca}#featured-open:hover{background:#3730a3}#featured-open:focus-visible{outline:2px solid rgba(99,102,241,.55);outline-offset:2px}#manager-leagues-open{background:#9a3412;border-color:#7c2d12}#manager-leagues-open:hover{background:#c2410c}#manager-leagues-open:focus-visible{outline:2px solid rgba(234,88,12,.65);outline-offset:2px}.textarea:disabled{background:var(--color-surface-alt);opacity:.7;cursor:not-allowed}.btn--featured{white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;line-height:1.15;padding-top:10px;padding-bottom:10px}.btn--league{background:#ea580c;color:#f9fafb;border:1px solid rgba(0,0,0,.35);white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;line-height:1.15;padding-top:10px;padding-bottom:10px}.btn--league:hover{background:#f97316}.btn--league:active{background:#c2410c}.btn--league:focus-visible{outline:2px solid rgba(249,115,22,.7);outline-offset:2px}.top-sheet{position:fixed;top:0;left:0;right:0;height:62vh;max-height:62vh;background:var(--color-surface, #111827);border-bottom:1px solid rgba(255,255,255,.12);z-index:1000;transform:translateY(-105%);transition:transform .22s ease;display:grid;grid-template-rows:auto 1fr auto;box-shadow:0 12px 28px #00000080}.top-sheet.is-open{transform:translateY(0)}.top-sheet__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);padding:var(--space-3)}.top-sheet__title{font-weight:700}.top-sheet__subtitle{color:var(--color-text-muted);font-size:var(--text-sm);margin-top:2px}.top-sheet__close{background:transparent;border:1px solid rgba(255,255,255,.18);color:inherit;border-radius:10px;width:40px;height:40px;cursor:pointer}#featured-sheet .top-sheet__close,#manager-leagues-sheet .top-sheet__close,#league-sheet .top-sheet__close,#league-standings-sheet .top-sheet__close{width:56px;height:40px;min-width:56px;flex:0 0 56px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:1.3rem;background:#ffffff14}.top-sheet__body{overflow:auto;padding:0 var(--space-3) var(--space-3);-webkit-overflow-scrolling:touch}.featured-list{display:grid;gap:var(--space-2)}.featured-item{display:flex;flex-wrap:wrap;gap:4px 8px;padding:6px var(--space-2);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);background:#ffffff08;font-size:.92em;line-height:1.2;align-items:center}.featured-item__name{font-weight:700;font-size:.9em;min-width:0;overflow-wrap:anywhere}.featured-item__note{color:var(--color-text-muted);font-size:.95em;min-width:0;overflow-wrap:anywhere}.featured-item__id{margin-left:auto;flex-shrink:0;overflow-wrap:anywhere}.featured-item__id code{font-family:var(--font-mono);font-size:.95em;white-space:nowrap}.featured-item__name-button{background:transparent;border:none;padding:0;margin:0;color:var(--color-primary);font:inherit;cursor:pointer;text-align:left}.featured-item__name-button:hover{color:#93c5fd;text-decoration:underline}.featured-item__name-button:hover{text-decoration:underline}.manager-history-list{display:grid;gap:var(--space-2)}.manager-history-row{display:grid;grid-template-columns:1fr 1.05fr 1.15fr;column-gap:6px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-md);background:#ffffff08}.manager-history-col{padding:0 6px;border-right:1px solid rgba(255,255,255,.12);font-size:var(--text-sm)}.manager-history-col--season{font-weight:700;padding-left:0}.manager-history-col--points{color:var(--color-text-muted);padding-right:12px;white-space:nowrap}.manager-history-col--rank{border-right:none;font-weight:600}.manager-history-summary{display:grid;gap:2px}#league-sheet #league-list .saved-league-card{flex-direction:column;align-items:stretch}#league-sheet #league-list .saved-league-title{display:block;min-width:0}#league-sheet #league-list .saved-league-actions{display:flex;justify-content:space-between;gap:var(--space-2);margin-top:var(--space-1);align-items:center}#league-sheet #league-list .saved-league-actions .btn:last-child{margin-left:auto}.featured-item .featured-check,.featured-item .league-check{flex-shrink:0;transform:scale(.95)}#manager-leagues-sheet input[type=checkbox]{accent-color:var(--color-primary)}.top-sheet__footer{border-top:1px solid rgba(255,255,255,.1);padding:var(--space-2) var(--space-3);background:#00000026}.top-sheet__status{min-height:1.2em;color:var(--color-text-muted);font-size:var(--text-sm);margin-bottom:var(--space-2)}.top-sheet__actions{display:flex;gap:var(--space-2);justify-content:flex-end}#featured-apply{white-space:nowrap;min-width:0}@media(max-width:639px){.card-body>#manager-form{display:flex;flex-direction:column}.ids-layout{display:flex;flex-direction:row;align-items:stretch;gap:var(--space-3)}.ids-textarea-wrapper,.ids-actions{display:flex;flex-direction:column}.ids-textarea-wrapper .textarea{width:100%;font-size:var(--text-sm);height:min(44dvh,380px);min-height:260px;max-height:520px;resize:none}.ids-actions{gap:var(--space-2)}.ids-actions .btn{flex:1 1 0;display:flex;align-items:center;justify-content:center;min-height:0}.ids-header{margin-top:clamp(-8px,-1.6vw,-4px);margin-bottom:clamp(4px,1.2vw,8px)}.ids-layout{gap:clamp(8px,2.2vw,14px)}.ids-actions{gap:clamp(8px,2.2vw,12px)}#status:empty{display:none}#status{margin-top:clamp(6px,1.6vw,12px)!important}.ids-actions .btn{min-height:38px;padding:8px 12px;font-size:.85rem}#edit-btn,#save-btn,#featured-open{min-height:32px;padding-top:6px;padding-bottom:6px}#league-open,#manager-leagues-open{min-height:clamp(42px,10vw,50px);padding-top:clamp(9px,2.2vw,12px);padding-bottom:clamp(9px,2.2vw,12px)}#edit-btn{font-size:.85rem}.ids-actions .btn--featured,.ids-actions .btn--league{line-height:1.1;padding-top:8px;padding-bottom:8px}#league-sheet .text-muted code{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}#league-sheet #league-id-input::placeholder{font-size:.75em}#featured-sheet.top-sheet{inset:0;height:100vh;height:100dvh;max-height:100dvh;border-bottom-left-radius:0;border-bottom-right-radius:0}#featured-sheet .top-sheetheader{padding-top:calc(var(--space-3) + env(safe-area-inset-top))}#featured-sheet .top-sheetfooter{padding-bottom:calc(var(--space-2) + env(safe-area-inset-bottom))}#league-sheet .featured-item,#manager-leagues-sheet .featured-item,#league-standings-sheet .featured-item{padding-top:6px;padding-bottom:6px}#league-sheet .btn,#league-standings-sheet .btn,#featured-sheet .btn,#manager-leagues-sheet .btn{min-height:34px!important;padding:6px 10px!important;font-size:.85rem!important}#manager-leagues-sheet code{display:inline-block;max-width:100%;overflow-wrap:anywhere;word-break:break-all}#league-sheet .control{gap:var(--space-1);margin-bottom:var(--space-1)}#league-sheet .input{min-height:36px;padding:6px 10px}#league-sheet .text-muted{margin-top:4px!important;margin-bottom:0!important}#league-sheet #league-status:empty{display:none}#league-sheet #league-status{min-height:0!important;margin:0 0 var(--space-1) 0!important}#league-sheet.top-sheet,#league-standings-sheet.top-sheet,#manager-leagues-sheet.top-sheet,#manager-history-sheet.top-sheet{inset:0;height:100vh;height:100dvh;max-height:100dvh;border-bottom-left-radius:0;border-bottom-right-radius:0}#league-sheet .top-sheet__header,#league-standings-sheet .top-sheet__header,#manager-leagues-sheet .top-sheet__header{padding-top:calc(var(--space-3) + env(safe-area-inset-top))}#league-sheet .top-sheet__footer,#league-standings-sheet .top-sheet__footer,#manager-leagues-sheet .top-sheet__footer{padding-bottom:calc(var(--space-2) + env(safe-area-inset-bottom))}#league-sheet #league-list .featured-item__name{font-size:.85rem;line-height:1.15}#league-sheet #league-list .featured-item__note{font-size:.8rem}}@media(min-width:640px){.page{align-items:stretch}#league-sheet .btn,#league-standings-sheet .btn{min-height:32px!important;padding:6px 10px!important;font-size:.85rem!important}#auth-check{display:flex;flex-direction:column;align-items:stretch;width:100%}#auth-check .card{width:min(820px,100%);margin-inline:auto}.ids-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(170px,220px);gap:var(--space-4);align-items:stretch}.ids-textarea-wrapper{width:auto;flex-shrink:initial}.ids-actions{width:auto;height:100%;display:grid;grid-auto-rows:1fr;gap:8px;align-content:stretch}.ids-actions .btn{height:100%;width:100%;justify-content:center}.top-sheet{height:88vh;max-height:88vh;left:50%;right:auto;width:min(820px,96vw);transform:translate(-50%,-105%);border-left:1px solid rgba(255,255,255,.12);border-right:1px solid rgba(255,255,255,.12);border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.top-sheet.is-open{transform:translate(-50%)}#featured-sheet .featured-item,#league-sheet .featured-item,#league-standings-sheet .featured-item,#manager-leagues-sheet .featured-item{padding-top:6px;padding-bottom:6px;gap:4px 8px;font-size:.9em}}.remove-league-modal{position:fixed;inset:0;z-index:2000;background:#000000a6;display:flex;align-items:center;justify-content:center;padding:var(--space-3)}.remove-league-modal[aria-hidden=true]{display:none}.remove-league-modal__box{background:var(--color-surface, #111827);border:1px solid rgba(255,255,255,.15);border-radius:var(--radius-lg);width:min(480px,100%);max-height:80dvh;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;box-shadow:0 20px 40px #0009}.remove-league-modal__header{padding:var(--space-3);border-bottom:1px solid rgba(255,255,255,.1)}.remove-league-modal__title{font-weight:700;font-size:1.05rem}.remove-league-modal__subtitle{color:var(--color-text-muted);font-size:var(--text-sm);margin-top:2px;overflow-wrap:anywhere}.remove-league-modal__body{overflow-y:auto;padding:var(--space-3);-webkit-overflow-scrolling:touch}.remove-league-modal__status{color:var(--color-text-muted);font-size:var(--text-sm);margin-bottom:var(--space-2);min-height:1.2em}.remove-league-modal__footer{padding:var(--space-2) var(--space-3);border-top:1px solid rgba(255,255,255,.1);display:flex;gap:var(--space-2);flex-wrap:wrap;justify-content:flex-end;background:#00000026}.remove-league-manager-note--shared{display:block;font-size:var(--text-xs);color:var(--color-text-muted);font-style:italic}@media(max-width:360px){.ids-layout{flex-direction:column}.ids-textarea-wrapper{width:100%}.ids-actions{flex-direction:row;flex-wrap:wrap;width:100%;gap:var(--space-2)}.ids-actions .btn--full-width{flex:1;min-width:80px}}
