:root {
  color-scheme: dark;
  --sbc-bg: #071427;
  --sbc-bg2: #0b1d35;
  --sbc-panel: #10243d;
  --sbc-panel2: #132b49;
  --sbc-line: #29496b;
  --sbc-blue: #55a8ff;
  --sbc-blue-bright: #8cc7ff;
  --sbc-text: #edf6ff;
  --sbc-muted: #a9bfd5;
  --sbc-white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--sbc-bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--sbc-text); background: radial-gradient(ellipse at 50% -22%, #174b7d 0, transparent 54%), linear-gradient(160deg, #0a1a30 0%, var(--sbc-bg) 50%, #0c1b30 100%); min-height: 100vh; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
.sbc-skip { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 9px; background: var(--sbc-white); color: #061326; }
.sbc-skip:focus { transform: translateY(0); }
.sbc-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1160px, calc(100% - 44px)); min-height: 74px; margin: auto; border-bottom: 1px solid #28425f9c; }
.sbc-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.sbc-brand strong { color: var(--sbc-blue-bright); }
.sbc-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #579fe9; border-radius: 11px; background: linear-gradient(145deg, #1b4d7d, #10243d); color: #d9eeff; font-size: 11px; letter-spacing: .01em; box-shadow: 0 0 20px #2076c522; }
.sbc-current-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #cde7ff; font-size: 13px; font-weight: 650; text-decoration: none; }
.sbc-current-link:hover, .sbc-footer a:hover { color: var(--sbc-white); }
.sbc-shell { width: min(1160px, calc(100% - 44px)); margin: auto; }
.sbc-hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 28px; }
.sbc-eyebrow { margin: 0 0 8px; color: var(--sbc-blue-bright); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.sbc-hero h1 { max-width: 780px; margin: 0; font-size: clamp(39px, 7vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.sbc-hero h1 span { display: block; color: var(--sbc-blue-bright); }
.sbc-lede { max-width: 650px; margin: 18px 0 22px; color: var(--sbc-muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.6; }
.sbc-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 0 18px; border: 1px solid #71b5f9; border-radius: 11px; background: linear-gradient(130deg, #4b9df2, #2669ba); color: #06172b; font-size: 14px; font-weight: 750; text-decoration: none; box-shadow: 0 10px 30px #176ab833; transition: transform .16s ease, filter .16s ease; }
.sbc-primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sbc-status, .sbc-substatus { color: var(--sbc-muted); font-size: 13px; line-height: 1.5; }
.sbc-status { min-height: 20px; margin: 14px 0 0; }
.sbc-day-summary span { display: block; color: var(--sbc-muted); font-size: 12px; }
.sbc-workspace { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.5fr); align-items: start; gap: 15px; }
.sbc-panel { min-width: 0; padding: clamp(18px, 2.8vw, 25px); border: 1px solid #29496b; border-radius: 17px; background: linear-gradient(160deg, #10243d, #0c1d33); box-shadow: 0 16px 38px #0107114a; }
.sbc-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.sbc-panel-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.sbc-panel-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #31608d; border-radius: 11px; background: #102c4b; color: var(--sbc-blue-bright); font-size: 23px; }
.sbc-search-form > label { display: block; margin-bottom: 8px; color: var(--sbc-muted); font-size: 12px; font-weight: 600; }
.sbc-search-line { display: flex; gap: 7px; padding: 5px; border: 1px solid #315376; border-radius: 11px; background: #091a2e; }
.sbc-search-line:focus-within { border-color: var(--sbc-blue); box-shadow: 0 0 0 3px #3d91e521; }
.sbc-search-line input { width: 100%; min-width: 0; min-height: 39px; padding: 0 9px; border: 0; outline: 0; background: transparent; color: var(--sbc-text); font-size: 15px; }
.sbc-search-line input::placeholder { color: #829bb4; }
.sbc-search-line button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid #4795e5; border-radius: 8px; background: #2c75c4; color: var(--sbc-white); font-size: 13px; font-weight: 700; cursor: pointer; }
.sbc-search-line button:hover { background: #3888dc; }
.sbc-substatus { min-height: 20px; margin: 12px 0; }
.sbc-search-results { display: grid; gap: 7px; }
.sbc-search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px; border: 1px solid #294565; border-radius: 10px; background: #10233a; color: var(--sbc-text); text-align: left; cursor: pointer; }
.sbc-search-result:hover { border-color: #5298dd; background: #15304e; }
.sbc-search-result strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbc-search-result span { flex: none; color: var(--sbc-muted); font-size: 12px; }
.sbc-day-picker { display: flex; align-items: center; gap: 8px; color: var(--sbc-muted); font-size: 12px; }
.sbc-day-picker select { min-height: 42px; max-width: 120px; padding: 0 10px; border: 1px solid #365b7d; border-radius: 9px; background: #0a1a2e; color: var(--sbc-text); font-size: 14px; }
.sbc-day-summary { display: grid; grid-template-columns: 1.5fr .75fr 1fr; gap: 12px; margin: -3px 0 18px; padding: 14px; border: 1px solid #306293; border-radius: 12px; background: radial-gradient(ellipse at 0% 0%, #1b4d7945, transparent 70%), #102843; }
.sbc-day-summary > div + div { padding-left: 12px; border-left: 1px solid #31516f; }
.sbc-day-summary strong, .sbc-name-button { display: block; margin-top: 5px; color: #f5faff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sbc-name-button { padding: 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.sbc-name-button:hover { color: var(--sbc-blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.sbc-table-wrap { max-height: 600px; overflow: auto; border: 1px solid #294565; border-radius: 11px; scrollbar-color: #52769b #10243d; }
.sbc-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.sbc-table th { position: sticky; z-index: 1; top: 0; padding: 11px 12px; background: #183452; color: #b9d3ec; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sbc-table td { padding: 10px 12px; border-top: 1px solid #203b58; color: #dceafa; font-variant-numeric: tabular-nums; }
.sbc-table tbody tr:hover { background: #15304c; }
.sbc-table td:first-child { width: 72px; color: var(--sbc-blue-bright); font-weight: 750; }
.sbc-table td:last-child { width: 115px; color: #c0d1e2; }
.sbc-table-player { padding: 0; border: 0; background: transparent; color: var(--sbc-text); text-align: left; font-weight: 650; overflow-wrap: anywhere; cursor: pointer; }
.sbc-table-player:hover { color: var(--sbc-blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.sbc-table-note { margin: 12px 0 0; color: #93abc3; font-size: 11px; line-height: 1.5; }
.sbc-footer { display: flex; justify-content: space-between; gap: 14px; padding: 26px 0 34px; color: #91aac3; font-size: 12px; }
.sbc-footer a { color: #bfddfa; text-decoration: none; }
.sbc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sbc-dialog { position: fixed; width: min(680px, calc(100% - 24px)); max-height: min(88vh, 860px); padding: clamp(20px, 4vw, 30px); overflow: auto; border: 1px solid #35628e; border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, #1a4b7833, transparent 43%), linear-gradient(150deg, #10243d, #09192c); color: var(--sbc-text); box-shadow: 0 24px 80px #000b; }
.sbc-dialog::backdrop { background: #020a14c9; backdrop-filter: blur(4px); }
.sbc-dialog-close { position: sticky; z-index: 2; top: 0; float: right; display: grid; place-items: center; width: 42px; height: 42px; margin: -7px -7px 4px 12px; border: 1px solid #375978; border-radius: 10px; background: #142c46; color: #d7e9f8; font-size: 25px; cursor: pointer; }
.sbc-dialog h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(24px, 5vw, 32px); letter-spacing: -.04em; }
.sbc-profile-subtitle { margin: 6px 0 19px; color: var(--sbc-muted); font-size: 13px; }
.sbc-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.sbc-profile-stat { min-width: 0; padding: 13px; border: 1px solid #2b4e70; border-radius: 11px; background: #112741; }
.sbc-profile-stat strong { display: block; color: var(--sbc-blue-bright); font-size: clamp(19px, 4vw, 24px); font-variant-numeric: tabular-nums; }
.sbc-profile-stat span { display: block; margin-top: 5px; color: #a9bfd5; font-size: 11px; }
.sbc-more-stats { margin: 17px 0; border-bottom: 1px solid #294565; }
.sbc-more-stats summary { padding: 11px 0; color: #c8e3fc; font-size: 13px; font-weight: 650; cursor: pointer; }
.sbc-more-stats > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 14px; }
.sbc-profile-record { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #294565; border-radius: 9px; color: #a9bfd5; font-size: 12px; }
.sbc-profile-record strong { color: var(--sbc-text); font-variant-numeric: tabular-nums; }
.sbc-history-section h3 { margin: 17px 0 10px; font-size: 16px; }
.sbc-history-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 9px; }
.sbc-history-controls label { display: flex; align-items: center; gap: 7px; color: var(--sbc-muted); font-size: 12px; }
.sbc-history-controls select { min-height: 36px; padding: 0 9px; border: 1px solid #365b7d; border-radius: 8px; background: #0a1a2e; color: var(--sbc-text); font-size: 12px; }
.sbc-history-controls select:focus-visible { outline: 2px solid var(--sbc-blue-bright); outline-offset: 2px; }
.sbc-history-row { display: grid; grid-template-columns: 85px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-top: 1px solid #29415c; background: transparent; color: var(--sbc-text); text-align: left; cursor: pointer; }
.sbc-history-row:hover { background: #17324f; }
.sbc-history-row span:first-child, .sbc-history-row span:last-child { color: var(--sbc-muted); font-size: 12px; }
.sbc-history-row strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.sbc-profile-status { min-height: 0; }
@media (max-width: 840px) { .sbc-workspace { grid-template-columns: 1fr; } .sbc-search-panel { order: 2; } .sbc-day-panel { order: 1; } }
@media (max-width: 600px) {
  .sbc-header, .sbc-shell { width: min(100% - 28px, 1160px); }
  .sbc-header { min-height: 66px; gap: 9px; }
  .sbc-brand { gap: 8px; font-size: 10px; letter-spacing: .09em; }
  .sbc-brand-mark { width: 32px; height: 32px; }
  .sbc-current-link { max-width: 145px; gap: 5px; font-size: 11px; line-height: 1.35; }
  .sbc-hero { padding-top: 38px; }
  .sbc-workspace { gap: 11px; }
  .sbc-panel { padding: 16px 13px; border-radius: 14px; }
  .sbc-panel-heading { flex-wrap: wrap; margin-bottom: 17px; }
  .sbc-panel-heading h2 { font-size: 20px; }
  .sbc-day-picker { width: 100%; justify-content: space-between; }
  .sbc-day-picker select { max-width: 150px; }
  .sbc-day-summary { grid-template-columns: 1.2fr .7fr; gap: 10px; padding: 12px; }
  .sbc-day-summary > div:nth-child(3) { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid #31516f; border-left: 0; }
  .sbc-table { font-size: 12px; }
  .sbc-table th, .sbc-table td { padding: 9px 8px; }
  .sbc-table td:first-child { width: 55px; }
  .sbc-table td:last-child { width: 93px; }
  .sbc-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbc-profile-stat { padding: 12px; }
  .sbc-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
