.ana-block { padding:55px 0; border-top:1px solid var(--line,#d6d9cc); scroll-margin-top:18px }
.ana-wrap { min-width:0 }
.ana-title { margin:0 0 14px; font:800 clamp(30px,4vw,56px)/1.04 var(--display,sans-serif); letter-spacing:-.045em }
.ana-wrap h3 { font-size:clamp(19px,2vw,27px); line-height:1.15; margin:20px 0 12px }
.ana-wrap h4 { font-size:16px; margin:0 0 12px }
.ana-note { color:var(--muted,#576158); margin:8px 0 18px; max-width:86ch }
.ana-game { color:inherit; font-weight:650; text-decoration:underline; text-decoration-color:#b7bfaa; text-underline-offset:3px }
.ana-game:hover { color:#39720e }
.ana-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 16px; margin:22px 0 14px }
.ana-field { display:flex; flex-direction:column; gap:6px; width:fit-content; max-width:100%; color:var(--muted,#576158); font-size:13px; font-weight:650 }
.ana-field select,.ana-field input { max-width:100%; height:43px; border:1px solid #bac3b1; border-radius:5px; background:#fffefa; color:#17241d; padding:0 12px; font:inherit; font-size:15px; font-weight:500 }
.ana-field select { padding-right:29px }
.ana-field input[type=number] { width:142px }
.ana-wrap :is(select,input,a,summary,button):focus-visible,.ana-scroll:focus-visible { outline:3px solid #4c831f; outline-offset:3px }
.ana-scroll { width:100%; max-width:100%; overflow-x:auto; border:1px solid var(--line,#d6d9cc); border-radius:8px; background:#fffefa; margin:12px 0 }
.ana-table { width:100%; border-collapse:collapse; color:#17241d; font-size:14px; font-variant-numeric:tabular-nums }
.ana-table th,.ana-table td { padding:10px 13px; border-bottom:1px solid #e0e4d6; text-align:left }
.ana-table th { color:#44523e; background:#edf1e5; font-size:12px; font-weight:700; white-space:nowrap }
.ana-table tbody tr:last-child td { border-bottom:0 }
.ana-table tr:hover td { background:#f8faef }
.ana-form-marks { display:inline-flex; gap:3px; white-space:nowrap }
.ana-chip { display:inline-block; padding:3px 7px; border-radius:4px; background:#e6e8e1; color:#29332a; white-space:nowrap; font-size:12px; font-weight:650 }
.ana-chip.ok { background:#dcecc7; color:#264f14 }
.ana-chip.miss { background:#f5e4df; color:#833c27 }
.ana-form-marks .ana-chip { padding:2px 4px }
.ana-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.ana-example { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:26px; border:1px solid var(--line,#d6d9cc); border-radius:10px; padding:clamp(16px,3vw,34px); background:#fffefa }
.ana-example-meta p { margin:7px 0 }
.ana-kicker { color:#487222; font-size:13px; font-weight:700 }
.ana-example-meta h3 { margin:10px 0 16px }
.ana-probs { display:flex; flex-direction:column; justify-content:center; gap:9px }
.ana-prob { display:grid; grid-template-columns:minmax(75px,1fr) minmax(56px,1fr) 56px; gap:12px; align-items:center; font-size:14px }
.ana-prob strong { text-align:right; white-space:nowrap }
.ana-track { display:block; height:8px; border-radius:8px; background:#e9ecdf; overflow:hidden }
.ana-track i { display:block; height:100%; background:#5b872c }
.ana-details { padding:12px 0; border-bottom:1px solid var(--line,#d6d9cc) }
.ana-details>summary { cursor:pointer; font-weight:650; width:fit-content; max-width:100% }
.ana-details[open]>summary { margin-bottom:12px }
.ana-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr)); gap:22px }
.ana-form-line,.ana-pick-list li { display:flex; align-items:center; gap:10px; min-height:40px; border-top:1px solid #d9ddcf; padding:5px 0 }
.ana-form-line { font-size:13px }
.ana-form-line>span:not(.ana-chip),.ana-pick-list a { flex:1; min-width:0 }
.ana-form-line small,.ana-pick-list small { color:var(--muted,#576158); white-space:nowrap }
.ana-pick-list { margin:8px 0; padding:0; list-style:none }
.ana-collection-body { max-width:850px }
.ana-pager,.ana-axis { display:flex; align-items:center; justify-content:space-between; gap:10px }
.ana-pager span,.ana-axis { color:var(--muted,#576158); font-size:13px }
.ana-pager button { min-height:40px }
.ana-pager button:disabled { opacity:.45; cursor:default }
.ana-totals,.ana-exact { display:flex; align-items:baseline; gap:14px; flex-wrap:wrap }
.ana-totals strong,.ana-exact strong { font:800 clamp(34px,5vw,64px)/1 var(--display,sans-serif); letter-spacing:-.055em }
.ana-chart { display:flex; gap:clamp(2px,.4vw,6px); align-items:stretch; height:100px; margin-top:12px; border-bottom:1px solid #7b896e }
.ana-day { position:relative; flex:1; background:#e5ebda; border-radius:4px 4px 0 0; overflow:hidden }
.ana-day i { position:absolute; inset:auto 0 0; min-height:1px; background:#4e7732 }
.ana-axis { margin-top:5px }
.ana-calc-out { display:grid; grid-template-columns:1fr 1.2fr; gap:25px; align-items:center; padding:22px; background:#e9efdd; border-radius:9px; margin:18px 0 0 }
.ocr-panel { margin:10px 0 16px }
.ocr-panel>p { max-width:74ch }
.ocr-drop { padding:12px 15px; border:1px dashed #818e74; border-radius:6px; background:#f8f9ef }
.ocr-drop.dragging { outline:2px solid #5b872c }
.ocr-drop input { max-width:100%; width:100%; border:0; padding:8px 0; height:auto; background:transparent }
.ocr-options { display:flex; flex-wrap:wrap; gap:7px }
@media(max-width:640px) {
  .ana-block { padding:34px 0 }
  .ana-example,.ana-calc-out { grid-template-columns:1fr; gap:16px }
  .ana-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
  .ana-filters .ana-field,.ana-filters .ana-field :is(select,input) { width:100%; min-width:0 }
  .ana-table th,.ana-table td { padding:8px }
  .ana-pager { flex-wrap:wrap }
}
