#content .sr65 { max-width:1240px; margin:0 auto; padding:24px; color:#243247; }
#content .sr65 h1 { font-size:1.65rem; line-height:1.3; margin:0 0 8px; }
#content .sr65 h2 { font-size:1.2rem; margin:0 0 18px; }
#content .sr65 h3 { font-size:1rem; margin:0 0 10px; }
#content .sr65 p { line-height:1.55; }
#content .sr65-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; margin:20px 0; }
#content .sr65-heading p { margin:4px 0 0; color:#64748b; }
#content .sr65-workspace { display:grid; grid-template-columns:280px minmax(0,1fr); gap:20px; align-items:start; }
#content .sr65-card { border:1px solid #d4e0f2; border-radius:14px; padding:22px; background:#fff; min-width:0; }
#content .sr65-report { display:block; margin:8px -8px; padding:12px; border-radius:9px; text-decoration:none; color:#243247; }
#content .sr65-report.is-selected { background:#edf3ff; }
#content .sr65 small { display:block; margin-top:4px; font-size:.77rem; font-weight:400; line-height:1.4; color:#64748b; }
#content .sr65 input:not([type=checkbox]) { box-sizing:border-box; width:100%; padding:10px; border:1px solid #c9d9ef; border-radius:7px; font:inherit; min-width:0; }
#content .sr65 input[type=checkbox] { width:18px; height:18px; accent-color:#245ce0; }
#content .sr65-field { display:block; font-weight:600; margin:18px 0; }
#content .sr65-field input { display:block; margin-top:7px; font-weight:400; }
#content .sr65 fieldset { border:0; padding:0; margin:0; min-width:0; }
#content .sr65-button { display:inline-block; box-sizing:border-box; width:auto; padding:9px 14px; border:1px solid #245ce0; border-radius:8px; background:#245ce0; color:#fff; text-decoration:none; font:inherit; font-size:.88rem; font-weight:600; line-height:1.4; cursor:pointer; }
#content .sr65-button.sr65-secondary { border-color:#c9d9ef; background:#fff; color:#2254c0; }
#content .sr65 fieldset:disabled { opacity:.6; }
#content .sr65-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
#content .sr65-actions form { margin:0; }
#content .sr65-subsection { border-top:1px solid #e0e8f3; margin-top:24px; padding-top:22px; }
#content .sr65-badge { font-size:.75rem; color:#436485; font-weight:400; margin-left:6px; }
#content .sr65-link-row { display:flex; gap:8px; align-items:center; }
#content .sr65-link-row input { flex:1; font-size:.8rem; }
#content .sr65-link-row button { flex-shrink:0; }
#content .sr65-alert { border:1px solid #efbdc5; background:#fff2f4; padding:12px; border-radius:8px; }
#content .sr65-success { border:1px solid #b9dec9; background:#effaf3; padding:12px; border-radius:8px; }
#content .sr65-scroll { overflow:auto; max-width:100%; border:1px solid #d9e3f1; border-radius:10px; margin:16px 0; }
#content .sr65 table { border:0; border-collapse:separate; border-spacing:0; width:100%; background:#fff; font-size:.86rem; margin:0; }
#content .sr65 th,#content .sr65 td { border:0; border-bottom:1px solid #dfe7f2; border-right:1px solid #dfe7f2; padding:11px; text-align:left; vertical-align:top; }
#content .sr65 th:last-child,#content .sr65 td:last-child { border-right:0; }
#content .sr65 tbody tr:last-child>* { border-bottom:0; }
#content .sr65 thead th { background:#f0f5fc; color:#486382; font-weight:650; }
#content .sr65-choices td:nth-child(2) { min-width:180px; }
#content .sr65-choices td:nth-child(3) { min-width:180px; }
#content .sr65-choices td:nth-child(4) input { min-width:75px; }
#content .sr65-table-scroll { max-height:75vh; }
#content .sr65-table thead th { position:sticky; top:0; z-index:3; }
#content .sr65-table .sr65-nick { position:sticky; left:0; z-index:1; background:#fff; min-width:115px; color:#245ce0; }
#content .sr65-table thead .sr65-nick { background:#f0f5fc; z-index:4; }
#content .sr65-team-col { min-width:125px; max-width:220px; overflow-wrap:anywhere; }
#content .sr65-score-col { min-width:110px; max-width:190px; }
#content .sr65-score-col span { display:block; }
#content .sr65-table .sr65-score { text-align:center; vertical-align:middle; font-variant-numeric:tabular-nums; }
#content .sr65-score>strong { color:#1552cf; font-size:1rem; }
#content .sr65-score.is-full { background:#eef9f3; }
#content .sr65-score.is-partial { background:#fff8df; }
#content .sr65-score.is-zero { background:#fcecf0; }
#content .sr65-score.is-empty>strong { color:#64748b; font-weight:400; font-size:.85rem; }
#content .sr65-table .sr65-group-start>* { border-top:2px solid #c8d7ec; }
#content .sr65-table .sr65-group-start:first-child>* { border-top:0; }
#content .sr65-person { width:230px; }
#content .sr65-person summary,#content .sr65-team-info summary { cursor:pointer; color:#2254c0; white-space:nowrap; }
#content .sr65-person dl { margin:12px 0 0; }
#content .sr65-person dt { color:#64748b; font-size:.75rem; margin-top:8px; }
#content .sr65-person dd { margin:2px 0 0; overflow-wrap:anywhere; }
#content .sr65-team-info ul { padding-left:18px; }
#content .sr65-facts { display:flex; flex-wrap:wrap; gap:10px; }
#content .sr65-facts>span { padding:10px 16px; border:1px solid #d4e0f2; border-radius:8px; background:#fff; color:#64748b; }
#content .sr65-facts strong { color:#245ce0; font-size:1.15rem; margin-right:5px; }
#content .sr65-muted { color:#64748b; font-size:.85rem; }
@media(max-width:850px) {
  #content .sr65 { padding:18px 12px; }
  #content .sr65-workspace { grid-template-columns:1fr; }
  #content .sr65-heading { align-items:flex-start; flex-direction:column; }
  #content .sr65-card { padding:16px; }
  #content .sr65-link-row { flex-wrap:wrap; }
}

#content .sr65 h1,#content .sr65 h2,#content .sr65 h3 { color:#1c3555; }
#content .sr65 .sr65-button { font-size:.88rem; }
#content .sr65 a.sr65-button { color:#fff; text-decoration:none; }
#content .sr65 a.sr65-button.sr65-secondary { color:#2254c0; }
#content .sr65-catalog { max-height:32rem; }
#content .sr65-catalog thead th { position:sticky; top:0; z-index:1; }

/* 066: ranked team blocks, compact profile columns and one shared team score. */
#content .sr66 [hidden] { display:none!important; }
#content .sr66 .sr66-table { table-layout:fixed; min-width:calc(var(--sr66-width) + 500px); }
#content .sr66.sr66-profiles-collapsed .sr66-table { min-width:var(--sr66-width); }
#content .sr66.sr66-profiles-collapsed .sr66-profile { display:none; }
#content .sr66-place-col { width:64px; }
#content .sr66-team-col { width:132px; }
#content .sr66-nick-col { width:186px; }
#content .sr66-name-col { width:142px; }
#content .sr66-grade-col { width:60px; }
#content .sr66-school-col { width:168px; }
#content .sr66-region-col { width:130px; }
#content .sr66-contest-col { width:112px; }
#content .sr66-total-col { width:114px; }
#content .sr66 .sr66-table th,#content .sr66 .sr66-table td { padding:10px 8px; overflow-wrap:anywhere; }
#content .sr66 .sr66-member>* { vertical-align:middle; }
#content .sr66 .sr65-table .sr65-nick { left:196px; min-width:0; width:auto; font-weight:650; }
#content .sr66 .sr65-team-col { min-width:0; max-width:none; }
#content .sr66 .sr65-score-col { min-width:0; max-width:none; }
#content .sr66 .sr66-place,#content .sr66 .sr66-member>.sr65-team-col { position:sticky; z-index:2; background:#f7faff; }
#content .sr66 .sr66-place { left:0; text-align:center; font-variant-numeric:tabular-nums; }
#content .sr66 .sr66-member>.sr65-team-col { left:64px; }
#content .sr66 .sr66-place>span { display:inline-grid; place-items:center; min-width:25px; min-height:27px; padding:2px 4px; background:#fff0c9; color:#735014; border-radius:6px; font-weight:650; }
#content .sr66 .sr66-table thead th:nth-child(1) { left:0; z-index:5; white-space:nowrap; }
#content .sr66 .sr66-table thead th:nth-child(2) { left:64px; z-index:5; }
#content .sr66 .sr66-table thead .sr65-nick { z-index:5; }
#content .sr66 .sr66-total { position:sticky; right:0; z-index:2; border-left:1px solid #cfdef3; text-align:center; vertical-align:middle; background:#edf3ff; font-variant-numeric:tabular-nums; box-shadow:-4px 0 8px -7px #667d9a; }
#content .sr66 .sr66-table thead .sr66-total { z-index:5; background:#e9f0ff; }
#content .sr66 .sr66-total-link { display:block; padding:5px 0; text-decoration:none; color:#1552cf; }
#content .sr66 .sr66-total-link strong { font-size:1.15rem; line-height:1.3; }
#content .sr66 .sr66-total-link[aria-expanded=true] small { color:#1552cf; }
#content .sr66 .sr66-email { color:#64748b; font-weight:400; }
#content .sr66 .sr66-contest-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
#content .sr66 .sr66-section th { position:static; border-top:1px solid #c8d7ec; padding:11px 12px; background:#f7faff; color:#243247; }
#content .sr66 .sr66-section small { display:inline; margin-left:12px; }
#content .sr66 .sr66-calculation { border:1px solid #d4e0f2; background:#fff; border-radius:12px; padding:16px; margin:18px 0; }
#content .sr66 .sr66-calculation>header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#content .sr66 .sr66-calculation h2 { margin:0; font-size:1rem; }
#content .sr66 .sr66-breakdown { min-width:480px; }
#content .sr66 .sr66-breakdown th:first-child { width:35%; }
#content .sr66 .sr66-breakdown th:last-child { width:20%; }
#content .sr66 .sr66-breakdown td:last-child { text-align:right; color:#1552cf; font-weight:650; font-variant-numeric:tabular-nums; }
#content .sr66 .sr66-breakdown-total>* { background:#edf3ff; }
#content .sr66 .sr66-rules { padding:16px 20px; }
#content .sr66 .sr66-rules summary { cursor:pointer; color:#24549b; font-weight:650; }
@media(max-width:650px) {
  #content .sr66 .sr66-table .sr66-place,#content .sr66 .sr66-table .sr65-team-col,#content .sr66 .sr66-table .sr65-nick,#content .sr66 .sr66-table .sr66-total { position:static; }
  #content .sr66 .sr66-calculation { padding:12px; }
}
