:root{--bg:#f3f6fa;--ink:#17273c;--muted:#607287;--teal:#087f83;--line:#dce4ec;--selected:#d7eeee}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:13px/1.6 "맑은 고딕",system-ui,sans-serif}button,input,select{font:inherit}button,a,input,select,[tabindex]{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #36a1a6}button{cursor:pointer;border:1px solid #cad5df;border-radius:4px;padding:7px 13px;background:#fff;color:var(--ink)}button:hover{background:#eaf1f6}button:disabled{opacity:.5;cursor:wait}.accent{background:var(--teal);color:white;border-color:var(--teal)}.accent:hover{background:#086d70}input[type=search]{width:100%;padding:9px 10px;border:1px solid #c6d3df;border-radius:4px;background:white;min-width:0}select{background:white;color:var(--ink);border:1px solid #c6d3df;border-radius:4px;padding:5px 8px}.browser-header{display:flex;justify-content:space-between;align-items:center;padding:17px 24px 8px;gap:16px}.browser-header h1{font-size:25px;line-height:1.35;margin:0}.browser-header>div{display:flex;align-items:center;gap:22px}.browser-header span{font-size:11px;letter-spacing:1.2px;color:var(--muted)}a{color:var(--teal);text-underline-offset:3px}.scope{padding:0 24px 12px;color:var(--muted);font-size:12px}.scope p{margin:3px 0}.browser-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;padding:0 20px;max-width:1900px;margin:auto}.search-pane{padding:10px 10px 0;min-width:0}.search-pane h2{font-size:15px;margin:0}.muted{color:var(--muted);font-size:12px}.search-pane>.muted{margin:3px 0 9px}.search-actions{display:flex;gap:7px;margin:9px 0 11px}.check{display:flex;align-items:center;gap:6px;font-size:12px;margin:5px 0;cursor:pointer}.check input{accent-color:var(--teal);flex:none}.legend{display:flex;gap:12px;font-size:12px;margin:10px 0}.umamusume{color:#087f83}.media_motif{color:#7540a1}.famous{color:#995b08}.other{color:var(--ink)}.horse-results{height:420px;overflow:auto;background:white;border:1px solid var(--line);border-radius:4px}.horse-result{display:block;width:100%;border:0;border-radius:0;border-bottom:1px solid #edf0f4;text-align:left;padding:9px 10px;font-size:12px;background:white;overflow-wrap:anywhere}.horse-result.selected{background:var(--selected)}.search-help{margin-top:12px}.history-pane{min-width:0;padding:8px 0 0}.horse-heading h2{font-size:21px;line-height:1.4;margin:0}.horse-heading p{margin:3px 0;overflow-wrap:anywhere}.horse-heading .summary{font-size:14px;font-weight:700;color:var(--teal);margin:12px 0 9px}.empty{color:#95621e;font-size:12px;white-space:pre-line;margin-bottom:9px!important}.history-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0}.history-toolbar h3{font-size:14px;margin:0 auto 0 0}.history-toolbar label{font-size:12px;color:var(--muted)}.table-scroll{overflow:auto;background:white;border:1px solid var(--line);border-radius:4px;max-height:305px}.history-scroll{height:305px}table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:12px;text-align:left;white-space:nowrap}th{position:sticky;top:0;z-index:1;background:#e9eef5;font-size:11px;font-weight:650;padding:10px 9px;border-bottom:1px solid var(--line)}td{padding:8px 9px;border-bottom:1px solid #edf0f4}#history-table th:nth-child(2),#history-table td:nth-child(2){min-width:210px}#history-table tbody tr{cursor:pointer}#history-table tbody tr:hover{background:#eef6f6}tr.selected-race,tr.selected-horse{background:#e0f2ef!important}tr.winner{color:#00796c}tr.special{color:#99601b}.detail-section{margin-top:15px;min-width:0}.tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid #cad5df}.tabs button{border:0;border-radius:5px 5px 0 0;background:#e6ecf3;white-space:nowrap;padding:9px 13px;font-size:12px}.tabs [aria-selected=true]{background:white;border:1px solid #cad5df;border-bottom:1px solid white;font-weight:650;color:var(--teal)}[role=tabpanel]{background:white;padding:12px;border:1px solid #dce4ec;border-top:0;min-height:255px;max-height:410px;overflow:auto}pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.85 "맑은 고딕",system-ui,sans-serif}.runners-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.runners-toolbar>span{margin-left:auto}.history-bottom{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:10px 0}.source-link{font-size:12px}#history-footer{padding:12px 24px 18px;color:var(--muted);font-size:11px}.error{margin:0 24px 12px;padding:10px 14px;background:#fff0e8;color:#9a391e;border:1px solid #edc3b2;border-radius:5px}.conflict{color:#a34628}[hidden]{display:none!important}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{position:fixed;top:8px;left:12px;z-index:10;background:white;padding:10px}
@media(min-height:950px) and (min-width:1000px){.horse-results{height:560px}.history-scroll{height:355px}}
@media(max-width:900px){.browser-layout{grid-template-columns:220px minmax(0,1fr);gap:12px;padding:0 14px}.browser-header{padding:18px 20px 8px}.browser-header h1{font-size:22px}.browser-header span{display:none}.scope{padding:0 20px 10px}.search-pane{padding:8px 0}.history-bottom{flex-wrap:wrap;gap:7px}}
@media(max-width:650px){.browser-header{align-items:flex-start;padding:18px 16px 8px}.browser-header h1{font-size:21px}.browser-header a{font-size:11px;white-space:nowrap}.scope{padding:0 16px 10px;font-size:11px}.browser-layout{display:block;padding:0 16px}.search-pane{margin-bottom:20px}.horse-results{height:180px}.search-help{margin-bottom:0}.search-actions{margin:8px 0}.legend{margin:8px 0}.history-toolbar{gap:7px}.history-toolbar h3{flex-basis:100%}.history-scroll{height:280px}.horse-heading h2{font-size:20px}.tabs button{font-size:11px;padding:9px 11px}[role=tabpanel]{padding:10px;max-height:400px;min-height:230px}.runners-toolbar{gap:4px 12px}.runners-toolbar>span{margin-left:0;flex-basis:100%}#history-footer{padding:10px 16px}.history-bottom>.muted{font-size:10px}}
.browser-header>div{flex-wrap:wrap;justify-content:flex-end;gap:10px 18px}.browser-header .browser-language{display:flex;gap:7px;align-items:center;letter-spacing:normal;font-size:12px;color:var(--muted)}.browser-language label{white-space:nowrap}.browser-header h1{overflow-wrap:anywhere;min-width:0}.browser-language select{min-width:100px}.horse-result small{display:block;font-size:10px;color:var(--muted);margin-top:2px}html[lang=en] .tabs button{white-space:normal;min-width:110px}
@media(max-width:650px){.browser-header{align-items:flex-start}.browser-header h1{max-width:48%;font-size:20px}.browser-header>div{max-width:52%;gap:6px 10px}.browser-header .browser-language{display:flex;flex-basis:100%;justify-content:flex-end;font-size:11px}.browser-language select{min-width:90px}.browser-header .browser-language label{font-size:10px}.race-browser .browser-header h1{white-space:normal}.tabs button{flex-shrink:0;max-width:160px}html[lang=en] .tabs button{min-width:108px}}
