/* Public rule only hides the retired outsider feature. */
#keiba-all-local .katc-v3-horse-open,#keiba-central-all .katc-v3-horse-open,#keiba-all-central .katc-v3-horse-open,
#keiba-all-local .katc-v3-horse-panel,#keiba-central-all .katc-v3-horse-panel,#keiba-all-central .katc-v3-horse-panel{display:none!important}
#keiba-all-local .kcoa-trigger,#keiba-all-local .kcoa-panel,#keiba-central-all .kcoa-trigger,#keiba-central-all .kcoa-panel,#keiba-all-central .kcoa-trigger,#keiba-all-central .kcoa-panel,
#keiba-all-local .katc-qv2-open,#keiba-all-local .katc-qv2-panel,#keiba-central-all .katc-qv2-open,#keiba-central-all .katc-qv2-panel,#keiba-all-central .katc-qv2-open,#keiba-all-central .katc-qv2-panel{display:none!important}
#keiba-all-local .race-card[data-kso-view="odds"] .kso-ai-part,#keiba-central-all .race-card[data-kso-view="odds"] .kso-ai-part,#keiba-all-central .race-card[data-kso-view="odds"] .kso-ai-part{display:none!important}
.kso-workspace[hidden]{display:none!important}
.kso-view-tabs{display:inline-flex;gap:0;margin:4px 0;vertical-align:middle;border:1px solid #9db9e4;border-radius:10px;overflow:hidden;flex-shrink:0}
.kso-view-tabs .kso-view-button{border:0!important;border-radius:0!important;padding:12px 18px;min-height:46px;background:#f3f7ff;color:#173e74;font-size:15px;font-weight:700;cursor:pointer;white-space:nowrap}
.kso-view-tabs .kso-view-button+.kso-view-button{border-left:1px solid #b7cae6!important}
.kso-view-tabs .kso-view-button[aria-selected=true]{background:#1673e6;color:#fff}
.kso-modal.kso-inline{width:100%;max-height:none;margin:0 0 20px;padding:18px;border:1px solid #d4e2f1;border-radius:12px;box-shadow:none;box-sizing:border-box}
@media(max-width:600px){.kso-modal.kso-inline{padding:10px}.kso-view-tabs .kso-view-button{padding:11px 14px;font-size:14px}}
.kso-open{border:1px solid #175ab0;background:#eaf2ff;color:#123c72;padding:9px 13px;border-radius:8px;font-weight:700;cursor:pointer}
.kso-modal{width:min(1000px,96vw);max-height:90vh;border:0;border-radius:14px;padding:20px;color:#183044;background:#fff;box-shadow:0 12px 50px #0005}
.kso-modal::backdrop{background:#071a32aa}.kso-modal *{box-sizing:border-box}.kso-modal h2{margin:0 0 8px;font-size:21px;background:none;border:0;padding:0}
.kso-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.kso-bar label{display:flex;gap:6px;align-items:center}.kso-bar button,.kso-modal button{cursor:pointer;padding:7px 10px;border:1px solid #b8cadb;border-radius:6px;background:#eef4fb;color:#133a64}
.kso-modal button.kso-primary{background:#185fb3;color:white}.kso-modal input,.kso-modal select,.kso-modal textarea{border:1px solid #b5c5d5;border-radius:5px;padding:7px;font-size:14px;background:#fff;color:#123}
.kso-modal textarea{width:100%;min-height:90px}.kso-table-scroll{overflow-x:auto}.kso-table{border-collapse:collapse;min-width:720px;width:100%;font-size:13px}.kso-table td,.kso-table th{border-bottom:1px solid #d8e3ed;padding:6px;text-align:left;background:transparent;color:#123}.kso-table input{width:90px}.kso-table .kso-combo{width:105px}
.kso-note{font-size:13px;line-height:1.65;color:#50667b;margin:8px 0}.kso-error{padding:10px;background:#fff0ef;color:#a12a25;white-space:pre-wrap}.kso-result{border:1px solid #c9dbed;background:#f6faff;border-radius:8px;padding:14px;margin:12px 0}.kso-result h3{font-size:17px;margin:0 0 8px}.kso-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.kso-metrics div{background:white;padding:10px;border-radius:6px}.kso-metrics strong{display:block;font-size:20px}.kso-close{margin-left:auto}.kso-results{margin-top:12px}.kso-mobile{font-size:12px}
@media(max-width:600px){.kso-modal{padding:12px}.kso-bar{gap:8px}.kso-modal h2{font-size:18px}.kso-table input{width:78px}}
.kso-selector{border:1px solid #cbd8df;border-radius:10px;margin:14px 0;overflow:hidden;background:#fff}
.kso-typebar,.kso-modebar{display:flex;gap:0;flex-wrap:wrap;border-bottom:1px solid #d8e1e5;background:#eef4f3}
.kso-modal .kso-type,.kso-modal .kso-mode{border:0;border-right:1px solid #d1dedb;border-radius:0;background:transparent;padding:11px 15px;color:#25473c;font-weight:700;min-height:44px}
.kso-modal .kso-type[aria-pressed=true]{background:#167349;color:#fff}.kso-modal .kso-mode[aria-pressed=true]{background:#d7eee1;color:#075b34;box-shadow:inset 0 -3px #167349}
.kso-pick-guide{font-size:13px;line-height:1.6;padding:0 12px;color:#435d55}.kso-multi{display:flex;gap:7px;align-items:center;padding:0 12px 9px;font-size:13px}.kso-multi[hidden]{display:none}
.kso-pick-tools{display:flex;gap:7px;flex-wrap:wrap;padding:0 10px 10px}.kso-modal .kso-select-all,.kso-modal .kso-clear{font-size:12px;padding:5px 8px}
.kso-horse-scroll{max-height:360px;overflow:auto;border-top:1px solid #d8e1e5}.kso-horse-grid{border-collapse:collapse;width:100%;margin:0;table-layout:auto;font-size:14px}
.kso-horse-grid th{position:sticky;top:0;background:#eef3f1;color:#31483f;z-index:1;font-size:12px;font-weight:600;padding:9px 6px;border-bottom:1px solid #c9d4cf;text-align:center;white-space:nowrap}
.kso-horse-grid td{padding:7px 6px;border-bottom:1px solid #e0e6e3;text-align:center;background:#fff;color:#233d31}.kso-horse-grid tr:nth-child(even) td{background:#f9fbfa}
.kso-horse-grid .kso-horse-name{text-align:left;min-width:125px}.kso-horse-name strong{display:block;font-size:14px}.kso-horse-name small{display:block;font-size:11px;color:#65786d;line-height:1.5}
.kso-horse-badge{display:inline-flex;align-items:center;justify-content:center;width:28px;height:30px;border:1px solid #8c9b93;border-radius:4px;background:#fff;font-weight:700}
.kso-modal .kso-horse-pick{width:42px;min-height:40px;border:1px solid #aab9b1;border-radius:5px;background:#fff;color:#50665b;font-weight:700;padding:5px}
.kso-modal .kso-horse-pick.is-selected{background:#167349;border-color:#0b5936;color:#fff;box-shadow:0 0 0 2px #c6e3d3}.kso-modal button:focus-visible{outline:3px solid #e99723;outline-offset:2px}
.kso-pick-summary{padding:11px 12px 4px;font-size:16px;font-weight:700;color:#164c33}.kso-pick-preview{padding:0 12px 10px;font-size:12px;color:#50675b;line-height:1.8;max-height:80px;overflow:auto}
.kso-pick-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#eff6f2;border-top:1px solid #cfdcd4;padding:11px 12px}.kso-pick-foot input{width:96px}.kso-modal .kso-pick-add{background:#167349;min-height:44px;color:white;min-width:165px}.kso-modal .kso-pick-add:disabled{opacity:.45;cursor:default}.kso-legacy{margin:10px 0}
@media(max-width:600px){.kso-modal .kso-type,.kso-modal .kso-mode{padding:10px 11px;font-size:13px}.kso-horse-grid td{padding:6px 3px}.kso-horse-grid .kso-horse-name{min-width:105px}.kso-horse-name strong{font-size:12px}.kso-horse-name small{font-size:10px}.kso-modal .kso-horse-pick{width:35px;min-height:40px}.kso-horse-badge{width:24px}.kso-pick-foot{gap:8px}.kso-modal .kso-pick-add{min-width:140px;flex:1}.kso-horse-scroll{max-height:320px}}
/* Compact controls, with advanced copy kept inside disclosures. */
.kso-modal.kso-inline{padding:10px 12px}.kso-modal .kso-bar{gap:7px;margin:7px 0}.kso-modal h2{font-size:17px;margin:0}.kso-admin-badge{font-size:10px;color:#60788f;background:#edf3f8;border-radius:4px;padding:2px 5px}
.kso-modal .kso-syncbar{justify-content:flex-end;font-size:11px;margin-top:-4px}.kso-modal .kso-syncbar button{font-size:11px;padding:4px 7px;min-height:28px}.kso-modal .kso-note{font-size:11px;line-height:1.5;margin:5px 0}
.kso-modal details{margin:7px 0}.kso-modal summary{font-size:12px;cursor:pointer;color:#47617b}.kso-selector{margin:7px 0;border-radius:7px}.kso-typebar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.kso-modal .kso-type{font-size:13px;padding:8px 2px;min-height:39px}
.kso-modebar{flex-wrap:nowrap;overflow-x:auto}.kso-modal .kso-mode{font-size:12px;padding:8px 10px;min-height:36px;white-space:nowrap;flex-shrink:0}.kso-pick-guide{font-size:11px;line-height:1.4;padding:0 9px;margin:6px 0}.kso-pick-tools{padding:0 7px 6px;gap:5px}
.kso-horse-scroll{max-height:290px}.kso-horse-grid th{padding:6px 4px}.kso-horse-grid td{padding:4px}.kso-modal .kso-horse-pick{min-height:36px;height:36px;width:38px}.kso-horse-badge{height:26px;width:25px}.kso-horse-name strong{font-size:13px}.kso-horse-name small{font-size:10px}
.kso-pick-summary{font-size:14px;padding:7px 9px 2px}.kso-pick-preview{font-size:11px;max-height:44px;padding:0 9px 5px;line-height:1.5}.kso-pick-foot{padding:7px 9px;gap:8px;font-size:12px}.kso-pick-foot input{width:80px}.kso-modal .kso-pick-add{min-height:38px;font-size:13px}
.kso-cart-table{min-width:0}.kso-modal .kso-cart-table td,.kso-modal .kso-cart-table th{font-size:12px;padding:5px}.kso-modal .kso-cart-table input{width:80px;padding:6px}.kso-calcbar{justify-content:flex-end}.kso-modal .kso-main-calc{min-width:140px;min-height:38px}
.kso-result{padding:10px;margin:8px 0}.kso-result h3{font-size:15px;margin-bottom:7px}.kso-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;font-size:11px}.kso-metrics div{padding:7px}.kso-metrics strong{font-size:18px}
.kso-bar[hidden],.kso-table-scroll[hidden],.kso-modal details[hidden]{display:none!important}
.kso-toolbar-compact{gap:7px!important}.kso-toolbar-compact>button,.kso-toolbar-compact>a,.kso-toolbar-compact>.katc-v3-open{padding:8px 12px!important;min-height:39px!important;font-size:14px!important;line-height:1.3!important;border-radius:8px!important}
.kso-view-tabs{margin:2px 0;border-radius:8px}.kso-view-tabs .kso-view-button{min-height:39px;padding:8px 14px;font-size:14px}
:is(#keiba-all-local,#keiba-central-all,#keiba-all-central) .race-card[data-kso-view] :is(.race-table,.pair-table) :is(th,td){padding:6px 8px!important}
:is(#keiba-all-local,#keiba-central-all,#keiba-all-central) .race-card[data-kso-view] .kpm-switch-button{padding:6px 10px!important;font-size:12px!important;line-height:1.4!important}
@media(max-width:600px){
 .kso-modal.kso-inline{padding:8px;margin-bottom:10px}.kso-modal .kso-type{font-size:11px;min-height:39px}.kso-modal .kso-mode{font-size:11px;padding:7px 8px}.kso-horse-scroll{max-height:245px}.kso-horse-grid .kso-horse-name{min-width:92px}.kso-horse-name strong{font-size:11px}.kso-modal .kso-horse-pick{width:33px;min-height:36px}.kso-horse-grid td{padding:4px 3px}
 .kso-modal .kso-bar label{font-size:12px}.kso-modal input,.kso-modal select{font-size:16px;padding:6px;min-height:36px}.kso-pick-foot input{width:78px}.kso-pick-foot label{font-size:11px}.kso-pick-foot{flex-wrap:nowrap}.kso-modal .kso-pick-add{min-width:105px}
 .kso-cart-scroll{overflow:visible}.kso-cart-table,.kso-cart-table tbody{display:block;min-width:0;width:100%}.kso-cart-table thead{display:none}.kso-cart-table tbody{display:grid;grid-template-columns:1fr;gap:6px}
 .kso-cart-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;border:1px solid #d8e3eb;border-radius:7px;padding:7px;background:#fff}.kso-modal .kso-cart-table td{border:0;display:flex;align-items:center;gap:5px;padding:0;min-width:0}.kso-cart-table td[data-label]::before{content:attr(data-label);font-size:10px;min-width:35px;color:#5c7184;white-space:nowrap}.kso-modal .kso-cart-table input,.kso-modal .kso-cart-table select{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:34px}.kso-cart-table td:last-child{justify-content:flex-end}.kso-modal .kso-main-calc{width:100%}
 .kso-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.kso-metrics strong{font-size:18px}.kso-metrics div{min-width:0}.kso-toolbar-compact{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.kso-toolbar-compact>button,.kso-toolbar-compact>a{font-size:12px!important;padding:7px 9px!important;min-height:37px!important}.kso-toolbar-compact>.kso-view-tabs{flex-basis:100%;display:flex}.kso-view-tabs .kso-view-button{flex:1;min-height:40px;font-size:13px;padding:8px 10px}
}

/* Show all horses vertically; use the page scroll, not an inner scrollbar. */
.kso-modal .kso-horse-scroll,.kso-modal .kso-pick-preview{max-height:none;overflow:visible;height:auto}
