/* Shared LOCAL / JRA presentation, based on existing LOCAL renderer. */

/* PAIR_DISPLAY_V2_PROBABILITY_ORDER_COMPACT */
:is(#keiba-all-local,#keiba-central).ku-ready{
 --blue:#1778f2;--green:#16a34a;--text:#102b50;--muted:#6d83a0;
 max-width:980px;margin:12px auto 44px;color:var(--text);
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
}
:is(#keiba-all-local,#keiba-central).ku-ready *{box-sizing:border-box}
:is(#keiba-all-local,#keiba-central).ku-ready .ui-shell{background:#f7fbff;padding:12px;border-radius:20px}
:is(#keiba-all-local,#keiba-central).ku-ready .hero{
 background:linear-gradient(135deg,#eef7ff,#f7fbff);
 border:1px solid #d8e9fb;border-radius:18px;padding:20px 18px;text-align:center;margin-bottom:14px;
 box-shadow:0 8px 22px rgba(35,91,143,.05)
}
:is(#keiba-all-local,#keiba-central).ku-ready .badge{
 display:inline-block;background:#fff;color:#15803d;border:1px solid #cdeed7;border-radius:999px;
 padding:5px 11px;font-size:11px;font-weight:900;margin-bottom:6px
}
:is(#keiba-all-local,#keiba-central).ku-ready h2{font-size:27px;margin:3px 0 5px;color:#102b50}
:is(#keiba-all-local,#keiba-central).ku-ready .sub{font-size:12px;color:#627d9c;line-height:1.7}
:is(#keiba-all-local,#keiba-central).ku-ready .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:520px;margin:14px auto 0}
:is(#keiba-all-local,#keiba-central).ku-ready .stat{background:#fff;border:1px solid #dfeaf5;border-radius:12px;padding:9px 6px;font-size:11px;color:#71839a}
:is(#keiba-all-local,#keiba-central).ku-ready .stat b{display:block;color:#1778f2;font-size:20px;margin-bottom:1px}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-seo-link{
 display:inline-block;
 padding:5px 9px;
 border:1px solid #d5e5f6;
 border-radius:999px;
 background:#fff;
 color:#35658f;
 font-size:11px;
 font-weight:800;
 text-decoration:none;
 line-height:1.3;
}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-seo-link:hover,
:is(#keiba-all-local,#keiba-central).ku-ready .venue-seo-link:focus{
 background:#edf6ff;
 color:#0867d8;
 border-color:#9cc9f8;
}
:is(#keiba-all-local,#keiba-central).ku-ready .control-card{
 position:relative;z-index:30;overflow:visible;
 background:#fff;border:1px solid #dce9f7;border-radius:16px;padding:10px;margin-bottom:12px;
 box-shadow:0 8px 24px rgba(36,82,125,.07)
}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-date-row{
 display:flex;gap:8px;align-items:center;overflow:visible;padding:1px 0 4px;position:relative
}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{
 display:flex;gap:8px;align-items:center;overflow-x:auto;overflow-y:hidden;flex:1 1 auto;min-width:0;
 padding:1px 0 4px;scrollbar-width:none
}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll::-webkit-scrollbar{display:none}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{
 flex:0 0 auto;min-width:88px;text-align:center;border:1px solid #cfe1f5;background:#fff;border-radius:12px;
 padding:10px 14px;font-weight:900;font-size:14px;color:#17385f;cursor:pointer
}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{text-decoration:none}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn:hover,:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn:focus{
 background:#eaf4ff;color:#0867d8;border-color:#9cc9f8
}
:is(#keiba-all-local,#keiba-central).ku-ready .date-picker{position:relative;flex:0 0 auto;z-index:60}
:is(#keiba-all-local,#keiba-central).ku-ready .date-picker summary{
 list-style:none;border:1px solid #cfe1f5;background:#fff;border-radius:12px;padding:10px 13px;
 font-weight:900;font-size:12px;color:#17385f;cursor:pointer
}
:is(#keiba-all-local,#keiba-central).ku-ready .date-menu{
 position:absolute;right:0;bottom:calc(100% + 10px);width:292px;background:#fff;border:1px solid #dbe8f5;
 border-radius:14px;padding:12px;box-shadow:0 18px 40px rgba(15,39,71,.22);z-index:999
}
:is(#keiba-all-local,#keiba-central).ku-ready .calendar-pop:after{
 content:"";position:absolute;right:24px;bottom:-7px;width:12px;height:12px;background:#fff;
 border-right:1px solid #dbe8f5;border-bottom:1px solid #dbe8f5;transform:rotate(45deg)
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-head{
 display:flex;align-items:center;justify-content:center;padding:2px 0 10px;color:#102b50;font-size:14px
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-week,:is(#keiba-all-local,#keiba-central).ku-ready .cal-grid{
 display:grid;grid-template-columns:repeat(7,1fr);gap:4px
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-week{margin-bottom:4px}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-week span{
 text-align:center;font-size:10px;font-weight:900;color:#7890aa;padding:2px 0
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-week .sun{color:#e45b5b}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-week .sat{color:#4b78d1}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day{
 min-height:32px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:850;
 text-decoration:none;color:#17385f;background:#f8fbff;border:1px solid transparent
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day.available{
 background:#eef6ff;color:#126fd8;border-color:#cfe2f8
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day.available:hover{
 background:#dfeeff;border-color:#9dc8f4
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day.current{
 background:linear-gradient(135deg,#1478ff,#2a9cff);color:#fff;border-color:#1478ff;
 box-shadow:0 4px 10px rgba(20,120,255,.18)
}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day.disabled{color:#c2ccd8;background:#fff}
:is(#keiba-all-local,#keiba-central).ku-ready .cal-day.empty{visibility:hidden}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-panel{display:block;scroll-margin-top:96px}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-heading{
 font-size:22px;font-weight:950;color:#102b50;margin:18px 2px 5px;
 padding-left:10px;border-left:5px solid #1778f2
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-nav{
 display:grid;grid-template-columns:repeat(12,minmax(48px,1fr));gap:6px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-nav::-webkit-scrollbar{display:none}
:is(#keiba-all-local,#keiba-central).ku-ready .race-btn{
 min-width:48px;text-align:center;text-decoration:none;border:1px solid #cfe1f5;background:#fff;color:#496783;
 border-radius:10px;padding:9px 6px;font-size:12px;font-weight:900
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-btn.live{background:#edf6ff;color:#1778f2;border-color:#a9cff8}
:is(#keiba-all-local,#keiba-central).ku-ready .race-btn.off{opacity:.35;pointer-events:none}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card{
 background:#fff;border:1px solid #e0eaf4;border-radius:17px;margin:10px 0 14px;overflow:hidden;
 box-shadow:0 8px 22px rgba(16,56,95,.05);scroll-margin-top:100px
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-head{display:flex;gap:12px;padding:14px 15px 12px;border-bottom:1px solid #edf2f7}
:is(#keiba-all-local,#keiba-central).ku-ready .race-main{display:flex;gap:11px;align-items:flex-start;width:100%}
:is(#keiba-all-local,#keiba-central).ku-ready .race-icon{
 width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:5px solid #d9f7e4;
 color:#16a34a;font-weight:950;font-size:17px;background:#f5fff8;flex:0 0 auto
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-line{font-size:19px;font-weight:950;color:#102b50;line-height:1.2}
:is(#keiba-all-local,#keiba-central).ku-ready .live-badge{display:inline-block;margin-left:6px;background:#19b84b;color:#fff;border-radius:5px;padding:3px 6px;font-size:9px;vertical-align:2px}
:is(#keiba-all-local,#keiba-central).ku-ready .race-subtitle{font-size:14px;font-weight:850;margin-top:3px;color:#18385e}
:is(#keiba-all-local,#keiba-central).ku-ready .race-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;color:#7287a0;margin-top:6px;line-height:1.5}
:is(#keiba-all-local,#keiba-central).ku-ready .race-meta span{white-space:nowrap}
:is(#keiba-all-local,#keiba-central).ku-ready .race-meta b{color:#506d8d;font-weight:900}
:is(#keiba-all-local,#keiba-central).ku-ready .race-meta-chip{
 display:inline-flex;align-items:center;gap:4px;
 background:#f7faff;border:1px solid #e2ebf5;
 padding:4px 8px;border-radius:999px;
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-countdown{
 margin-left:auto;align-self:center;flex:0 0 auto;
 min-width:154px;padding:9px 12px;
 border:1px solid #dbeafe;border-radius:12px;
 background:linear-gradient(135deg,#f8fbff,#eef6ff);
 text-align:center;
}
:is(#keiba-all-local,#keiba-central).ku-ready .countdown-label{
 display:block;font-size:9px;font-weight:900;color:#6b86a3;
 letter-spacing:.05em;margin-bottom:2px;
}
:is(#keiba-all-local,#keiba-central).ku-ready .countdown-time{
 display:block;font-size:20px;font-weight:950;color:#1677f2;
 font-variant-numeric:tabular-nums;letter-spacing:.03em;
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-countdown.started{
 background:#f8fafc;border-color:#e2e8f0;
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-countdown.started .countdown-time{
 font-size:13px;color:#64748b;
}
:is(#keiba-all-local,#keiba-central).ku-ready .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
:is(#keiba-all-local,#keiba-central).ku-ready table{width:100%;border-collapse:collapse;table-layout:fixed}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table{font-size:11px}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table th{background:#edf5fd;color:#294866;padding:9px 3px;border-bottom:1px solid #dbe7f2;font-weight:900}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table td{padding:9px 3px;border-bottom:1px solid #eef3f7;text-align:center}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table th:nth-child(1),:is(#keiba-all-local,#keiba-central).ku-ready .race-table td:nth-child(1){width:10%}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table th:nth-child(2),:is(#keiba-all-local,#keiba-central).ku-ready .race-table td:nth-child(2){width:30%}
:is(#keiba-all-local,#keiba-central).ku-ready .race-table th:nth-child(n+3),:is(#keiba-all-local,#keiba-central).ku-ready .race-table td:nth-child(n+3){width:15%}
:is(#keiba-all-local,#keiba-central).ku-ready td.name{text-align:left;font-weight:900;color:#17304f;white-space:normal}
:is(#keiba-all-local,#keiba-central).ku-ready .horse-no{
 display:inline-grid;place-items:center;width:30px;height:30px;border-radius:6px;border:1px solid #cbd5e1;background:#fff;color:#17304f;font-size:14px;font-weight:950
}
:is(#keiba-all-local,#keiba-central).ku-ready .ev{font-weight:950;color:#15913f}
:is(#keiba-all-local,#keiba-central).ku-ready .ev-hot{background:#dcfce7}
:is(#keiba-all-local,#keiba-central).ku-ready .ev-high{background:#ecfdf5}
:is(#keiba-all-local,#keiba-central).ku-ready .ev-plus{background:#f3fff6}
:is(#keiba-all-local,#keiba-central).ku-ready .race-mode-radio{display:none!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-mode-row{
 display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px 12px 0;background:#fff
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-mode-btn{
 min-height:40px;border:1px solid #c7def8;background:#fff;border-radius:11px;
 display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:950;
 color:#17385f;cursor:pointer;user-select:none
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-win:checked) .race-mode-btn.win,
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-place:checked) .race-mode-btn.place,
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-quinella:checked) .race-mode-btn.quinella,
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-wide:checked) .race-mode-btn.wide{
 background:linear-gradient(135deg,#1478ff,#2a9cff);color:#fff;border-color:#1478ff;
 box-shadow:0 5px 12px rgba(20,120,255,.18)
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-win-table{display:block!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-place-table,:is(#keiba-all-local,#keiba-central).ku-ready .race-quinella-table,:is(#keiba-all-local,#keiba-central).ku-ready .race-wide-table{display:none!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-place:checked) .race-win-table,
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-quinella:checked) .race-win-table,
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-wide:checked) .race-win-table{display:none!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-place:checked) .race-place-table{display:block!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-quinella:checked) .race-quinella-table{display:block!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:has(.race-mode-wide:checked) .race-wide-table{display:block!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table{font-size:9.7px!important;min-width:620px!important;line-height:1.35!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table th{background:#f5f0ff!important;color:#4b3d72!important;padding:7px 3px!important;border-bottom:1px solid #e5dcf6!important;font-weight:900!important;font-size:9.7px!important;line-height:1.35!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table td{padding:7px 3px!important;border-bottom:1px solid #f0edf7!important;text-align:center!important;font-size:9.7px!important;line-height:1.35!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table .pair-cell{text-align:left;width:32%;font-weight:900;color:#17304f}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table .pair-cell b{display:block!important;font-size:11px!important;color:#5b3fb2!important;line-height:1.3!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-table .pair-cell small{display:block!important;margin-top:2px!important;color:#6f839a!important;font-size:8.5px!important;font-weight:700!important;white-space:normal!important;line-height:1.35!important}
:is(#keiba-all-local,#keiba-central).ku-ready .pair-empty{padding:18px;color:#8a99aa;text-align:center;background:#fafcff}
:is(#keiba-all-local,#keiba-central).ku-ready .table-actions{
 display:flex;justify-content:flex-end;padding:8px 10px 10px;background:#fff
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card .table-actions{display:flex!important;justify-content:flex-end!important;width:100%!important}
:is(#keiba-all-local,#keiba-central).ku-ready .top-btn{
 display:inline-flex;align-items:center;gap:5px;text-decoration:none;border:1px solid #cfe1f5;
 background:#f7fbff;color:#1677f0;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:900
}
:is(#keiba-all-local,#keiba-central).ku-ready .top-btn:hover{background:#eaf4ff;border-color:#9ec9f6}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking{
 background:#fff;border:1px solid #dce9f7;border-radius:17px;overflow:hidden;margin:22px 0 4px;
 box-shadow:0 8px 22px rgba(16,56,95,.05)
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-title{padding:14px 15px;background:#f3f8fe;font-size:17px;font-weight:950;color:#15365d}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-title:before{content:"🏆";margin-right:6px}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards{display:flex;gap:8px;overflow-x:auto;padding:10px;scrollbar-width:none}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards::-webkit-scrollbar{display:none}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-card{min-width:150px;border:1px solid #e0eaf4;border-radius:12px;padding:10px;background:#fff}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-top{display:flex;align-items:center;gap:7px}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-badge{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#1677f2;color:#fff;font-size:11px;font-weight:950}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-name{font-size:12px;font-weight:900;color:#17304f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-ev{font-size:18px;color:#15913f;font-weight:950;margin-top:7px}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-meta{font-size:10px;color:#7a8ca2;margin-top:2px}
:is(#keiba-all-local,#keiba-central).ku-ready .foot{margin-top:14px;padding:12px 14px;background:#f8fbff;border-radius:12px;font-size:10px;line-height:1.8;color:#7a8ca2}
@media(max-width:650px){
 :is(#keiba-all-local,#keiba-central).ku-ready{margin:4px auto 30px}
 :is(#keiba-all-local,#keiba-central).ku-ready .ui-shell{padding:7px;border-radius:0}
 :is(#keiba-all-local,#keiba-central).ku-ready .hero{padding:16px 10px}
 :is(#keiba-all-local,#keiba-central).ku-ready h2{font-size:22px}
 :is(#keiba-all-local,#keiba-central).ku-ready .control-card{padding:8px}
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-date-row{
   display:grid;
   grid-template-columns:1fr;
   gap:8px;
   align-items:stretch;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:8px;
   width:100%;
   overflow:visible;
   padding:1px 0;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{
   width:100%;
   min-width:0;
   box-sizing:border-box;
   padding:10px 8px;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .date-picker{
   width:100%;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .date-picker summary{
   width:100%;
   box-sizing:border-box;
   text-align:center;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .date-menu{
   width:min(276px,calc(100vw - 28px));
   right:0;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .cal-day{min-height:30px;font-size:11px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-mode-btn{font-size:13px;min-height:38px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-nav{grid-template-columns:repeat(12,48px)}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-head{padding:11px 10px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-icon{width:36px;height:36px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-line{font-size:17px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-subtitle{font-size:12px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-head{flex-wrap:wrap}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-countdown{
   width:100%;min-width:0;margin-left:47px;
   display:flex;align-items:center;justify-content:space-between;
   padding:7px 10px
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .countdown-label{margin:0;font-size:9px}
 :is(#keiba-all-local,#keiba-central).ku-ready .countdown-time{font-size:17px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-meta{gap:5px 6px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-meta-chip{padding:3px 6px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-table{font-size:9.7px}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-table th,:is(#keiba-all-local,#keiba-central).ku-ready .race-table td{padding:7px 2px}
 :is(#keiba-all-local,#keiba-central).ku-ready .horse-no{width:26px;height:26px;font-size:12px}
}
/* VENUE_MOBILE_GRID_FORCE_V1 */
@media(max-width:900px){
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-date-row{
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   gap:8px!important;
   width:100%!important;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:8px!important;
   width:100%!important;
   max-width:none!important;
   overflow:visible!important;
   flex:none!important;
   padding:0!important;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{
   display:block!important;
   width:100%!important;
   min-width:0!important;
   max-width:none!important;
   box-sizing:border-box!important;
   margin:0!important;
   padding:10px 6px!important;
   text-align:center!important;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .date-picker{
   display:block!important;
   width:100%!important;
   flex:none!important;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .date-picker summary{
   display:block!important;
   width:100%!important;
   box-sizing:border-box!important;
   text-align:center!important;
 }
}
/* VENUE_SWIPE_HINT_SIMPLE_V1 */
@media(max-width:900px){
 :is(#keiba-all-local,#keiba-central).ku-ready .control-card::after{
   content:"← 横にスワイプで他の開催場 →";
   display:block;
   margin-top:6px;
   text-align:center;
   font-size:10px;
   font-weight:800;
   color:#7b8da3;
   letter-spacing:.02em;
 }
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{
   -webkit-mask-image:linear-gradient(
     to right,
     #000 0%,
     #000 calc(100% - 42px),
     transparent 100%
   )!important;
   mask-image:linear-gradient(
     to right,
     #000 0%,
     #000 calc(100% - 42px),
     transparent 100%
   )!important;
 }
}
/* TOP10_RACE_LINK_PATCH_V1 */
:is(#keiba-all-local,#keiba-central).ku-ready a.rank-card{
 display:block;
 text-decoration:none!important;
 color:inherit!important;
 cursor:pointer;
 transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
:is(#keiba-all-local,#keiba-central).ku-ready a.rank-card:hover{
 transform:translateY(-2px);
 border-color:#9fd8b1!important;
 box-shadow:0 7px 16px rgba(22,163,74,.10);
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-jump{
 margin-top:7px;
 padding-top:6px;
 border-top:1px solid #edf3ef;
 color:#168047;
 font-size:9px;
 font-weight:900;
 text-align:right;
}
:is(#keiba-all-local,#keiba-central).ku-ready .race-card:target{
 border-color:#58c77e!important;
 box-shadow:0 0 0 3px rgba(34,197,94,.12),0 10px 24px rgba(22,163,74,.10)!important;
}
/* TOP10_UI_CLEANUP_PATCH_V1 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:14px!important;
  overflow-x:auto!important;
  align-items:stretch!important;
  padding:2px 2px 6px!important;
  scroll-behavior:smooth;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > *:not(.rank-card){
  display:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:empty{
  display:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-card::before,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-card::after,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards::before,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards::after{
  content:none!important;
  display:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready a.rank-card,
:is(#keiba-all-local,#keiba-central).ku-ready .rank-card{
  flex:0 0 220px!important;
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  min-height:0!important;
  padding:12px 12px 10px!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-top{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin-bottom:8px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-badge{
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  font-size:13px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-name{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  line-height:1.25!important;
  font-size:13px!important;
  font-weight:900!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-ev{
  font-size:15px!important;
  line-height:1.1!important;
  margin:6px 0 8px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-meta{
  font-size:9px!important;
  line-height:1.35!important;
  color:#6f839a!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-jump{
  margin-top:8px!important;
  padding-top:6px!important;
  font-size:9px!important;
  line-height:1.2!important;
}
/* TOP10_FIRST_ALIGN_PATCH_V1 */
/* TOP10の全カードを同じ上端位置から開始 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > a.rank-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-self:stretch!important;
  vertical-align:top!important;
  margin-top:0!important;
  padding-top:12px!important;
  padding-bottom:10px!important;
}
/* 1位だけ既存CSSの影響で下がらないよう強制リセット */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:first-child,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > a.rank-card:first-child{
  margin-top:0!important;
  padding-top:12px!important;
  transform:none;
}
/* 上部の順位＋馬名も全カードで同じ位置 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-top{
  margin-top:0!important;
  padding-top:0!important;
  min-height:28px!important;
  align-items:center!important;
}
/* EV以下の縦位置も統一 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-ev{
  margin-top:10px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-meta{
  margin-top:0!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards .rank-jump{
  margin-top:auto!important;
}
/* TOP10_CARD_REBUILD_V2 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 6px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards::before,
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards::after,
:is(#keiba-all-local,#keiba-central).ku-ready .rank-card::before,
:is(#keiba-all-local,#keiba-central).ku-ready .rank-card::after{
  content:none!important;
  display:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card{
  position:relative!important;
  display:grid!important;
  grid-template-rows:30px 24px 18px 20px!important;
  align-content:start!important;
  flex:0 0 210px!important;
  width:210px!important;
  min-width:210px!important;
  max-width:210px!important;
  height:126px!important;
  min-height:126px!important;
  max-height:126px!important;
  margin:0!important;
  padding:11px 12px 9px!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:first-child{
  margin:0!important;
  padding:11px 12px 9px!important;
  height:126px!important;
  min-height:126px!important;
  max-height:126px!important;
  transform:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-hitbox{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  text-decoration:none!important;
  z-index:10!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-hitbox::before,
:is(#keiba-all-local,#keiba-central).ku-ready .rank-hitbox::after{
  content:none!important;
  display:none!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-top{
  grid-row:1!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-badge{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-name{
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
  font-size:13px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-ev{
  grid-row:2!important;
  align-self:center!important;
  margin:0!important;
  padding:0!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-meta{
  grid-row:3!important;
  align-self:center!important;
  margin:0!important;
  padding:0!important;
  font-size:9px!important;
  line-height:1.2!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-jump{
  grid-row:4!important;
  align-self:end!important;
  justify-self:end!important;
  margin:0!important;
  padding:5px 0 0!important;
  border-top:1px solid #edf3ef!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#168047!important;
  z-index:2!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-card:has(.rank-hitbox:hover){
  transform:translateY(-2px)!important;
  border-color:#9fd8b1!important;
  box-shadow:0 7px 16px rgba(22,163,74,.10)!important;
}
@media(max-width:650px){
  :is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card{
    flex-basis:188px!important;
    width:188px!important;
    min-width:188px!important;
    max-width:188px!important;
    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
    grid-template-rows:28px 22px 17px 19px!important;
    padding:9px 10px 8px!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:first-child{
    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
    padding:9px 10px 8px!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .rank-top{
    height:28px!important;
    min-height:28px!important;
    grid-template-columns:26px minmax(0,1fr)!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .rank-badge{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    min-height:26px!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .rank-name{font-size:12px!important}
  :is(#keiba-all-local,#keiba-central).ku-ready .rank-ev{font-size:14px!important}
}
/* RANK_PROBABILITY_LINE_V1 */
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card{
  grid-template-rows:30px 24px 15px 17px 20px!important;
  height:142px!important;
  min-height:142px!important;
  max-height:142px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:first-child{
  height:142px!important;
  min-height:142px!important;
  max-height:142px!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-prob{
  grid-row:3!important;
  align-self:center!important;
  margin:0!important;
  padding:0!important;
  font-size:9px!important;
  line-height:1.15!important;
  font-weight:850!important;
  color:#5f7893!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-meta{
  grid-row:4!important;
}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-jump{
  grid-row:5!important;
}
@media(max-width:650px){
  :is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card{
    grid-template-rows:28px 22px 14px 16px 19px!important;
    height:134px!important;
    min-height:134px!important;
    max-height:134px!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .ranking-cards > .rank-card:first-child{
    height:134px!important;
    min-height:134px!important;
    max-height:134px!important;
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .rank-prob{font-size:8.5px!important}
}
/* LOCAL_NOTE_ADMIN_V1 */
:is(#keiba-all-local,#keiba-central).ku-ready .admin-only{display:none!important}
body.admin-bar :is(#keiba-all-local,#keiba-central).ku-ready .admin-only,
body.logged-in :is(#keiba-all-local,#keiba-central).ku-ready .admin-only{display:block!important}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-admin{
  margin:18px 0;
  border:1px solid #f2ce73;
  border-radius:17px;
  background:#fff9e9;
  padding:16px 17px;
  color:#8b430c
}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:5px
}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-title{
  font-size:18px;
  font-weight:950;
  color:#9a4a0f
}
:is(#keiba-all-local,#keiba-central).ku-ready .copy-btn{
  border:1px solid #f0a23a;
  border-radius:10px;
  background:#fff;
  color:#a54c09;
  padding:8px 12px;
  font-size:11px;
  font-weight:900;
  cursor:pointer
}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-rule{
  font-size:10px;
  color:#ad640f;
  margin-bottom:10px
}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-row{
  display:grid;
  grid-template-columns:1.15fr 2.2fr 1fr .9fr .9fr;
  gap:8px;
  align-items:center;
  border:1px solid #f6dda5;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
  margin:8px 0;
  font-size:11px
}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-race{font-weight:950;color:#9a4a0f}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-name{font-weight:900;color:#17304f}
:is(#keiba-all-local,#keiba-central).ku-ready .battle-num{text-align:right;color:#294866}
@media(max-width:650px){
  :is(#keiba-all-local,#keiba-central).ku-ready .battle-row{
    grid-template-columns:1fr 1.8fr
  }
  :is(#keiba-all-local,#keiba-central).ku-ready .battle-row .battle-num{
    display:none
  }
}

:is(#keiba-all-local,#keiba-central).ku-ready .ku-hidden{display:none!important}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn.ku-active,:is(#keiba-all-local,#keiba-central).ku-ready .race-btn.ku-active{background:#1677f2!important;color:#fff!important;border-color:#1677f2!important;box-shadow:0 3px 10px #1677f225}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn:focus-visible,:is(#keiba-all-local,#keiba-central).ku-ready .race-btn:focus-visible,:is(#keiba-all-local,#keiba-central) .ku-step:focus-visible,:is(#keiba-all-local,#keiba-central) .rank-hitbox:focus-visible{outline:3px solid #e69c25;outline-offset:3px}
:is(#keiba-all-local,#keiba-central).ku-ready .race-nav{display:grid;grid-template-columns:repeat(12,minmax(46px,1fr));gap:6px;overflow-x:auto;padding:8px 0 12px;scroll-margin-top:90px}
:is(#keiba-all-local,#keiba-central) .ku-selection{font-size:12px;color:#546b85;padding:8px 4px 0;font-weight:700}
:is(#keiba-all-local,#keiba-central) .ku-stepper{display:flex;justify-content:space-between;gap:12px;padding:14px;border-top:1px solid #e8eef6;background:#fff}
:is(#keiba-all-local,#keiba-central) .ku-step{border:1px solid #cfe1f5;border-radius:10px;background:#f7fbff;color:#1769ce;padding:10px 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
:is(#keiba-all-local,#keiba-central) .ku-step:hover:not(:disabled){background:#eaf3ff}
:is(#keiba-all-local,#keiba-central) .ku-step:disabled{opacity:.4;cursor:default}
:is(#keiba-all-local,#keiba-central) .ku-prob-ranking .ranking-cards>.ku-rank-card{height:146px!important;min-height:146px!important;max-height:146px!important;grid-template-rows:30px 30px 16px 18px 22px!important}
:is(#keiba-all-local,#keiba-central) .ku-prob-ranking .rank-ev{font-size:24px!important;color:#1677f2!important;font-variant-numeric:tabular-nums}
:is(#keiba-all-local,#keiba-central) .ku-prob-ranking .rank-prob{font-size:10px!important}
:is(#keiba-all-local,#keiba-central) .ku-prob-ranking .rank-jump{color:#1769ce!important}
:is(#keiba-all-local,#keiba-central) .ku-prob-ranking .rank-hitbox:focus-visible{outline-offset:-4px}
:is(#keiba-all-local,#keiba-central) .ku-empty{padding:18px;color:#64748b}
@media(max-width:650px){:is(#keiba-all-local,#keiba-central).ku-ready .race-nav{grid-template-columns:repeat(6,minmax(40px,1fr));overflow:visible;gap:5px}:is(#keiba-all-local,#keiba-central).ku-ready .race-btn{min-width:0;padding:10px 4px}:is(#keiba-all-local,#keiba-central) .ku-step{padding:10px;font-size:12px}}

/* v1.0.1: date above venues, every venue visible without horizontal scrolling. */
:is(#keiba-all-local,#keiba-central).ku-ready .venue-date-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;overflow:visible!important}
:is(#keiba-all-local,#keiba-central).ku-ready .date-picker{align-self:flex-end!important;flex:0 0 auto!important;max-width:100%}
:is(#keiba-all-local,#keiba-central).ku-ready .date-picker summary{white-space:nowrap}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(90px,1fr))!important;gap:8px!important;flex:none!important;width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px;padding:10px 6px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.4!important;margin:0!important}
@media(max-width:650px){
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-scroll{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .venue-btn{font-size:14px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .date-menu{right:0!important;width:min(292px,calc(100vw - 36px))!important}
}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-venue-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 5px}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-venue-heading-row .venue-heading{margin:0!important;flex:0 0 auto}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-course-link{display:inline-flex;align-items:center;color:#1769ce;background:#eef6ff;border:1px solid #cfe1f5;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:750;text-decoration:none;line-height:1.5;text-align:right;min-width:0}
:is(#keiba-all-local,#keiba-central) .ku-course-link:hover{background:#dfedff}
:is(#keiba-all-local,#keiba-central) .ku-course-link:focus-visible{outline:3px solid #e69c25;outline-offset:3px}
@media(max-width:650px){:is(#keiba-all-local,#keiba-central).ku-ready .ku-venue-heading-row{gap:8px}:is(#keiba-all-local,#keiba-central).ku-ready .ku-course-link{font-size:11px;padding:7px 8px;max-width:66%}}
:is(#ku-nagoya-guide,.ku-course-guide){--ng-blue:#1778f2;--ng-ink:#15365d;color:var(--ng-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;line-height:1.9;max-width:980px;margin:0 auto;font-size:15px}
:is(#ku-nagoya-guide,.ku-course-guide) *{box-sizing:border-box}
:is(#ku-nagoya-guide,.ku-course-guide) a{color:#1769ce;text-underline-offset:3px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-intro{background:#f2f8ff;border:1px solid #dbe9fb;border-radius:16px;padding:24px;margin:8px 0 16px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#1778f2}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-intro h2{background:none;border:0;padding:0;margin:5px 0 9px;font-size:27px;color:#15365d}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-intro p{margin:0;color:#637993;font-size:14px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-toc a{background:#f5f9ff;border:1px solid #dbe9fb;padding:7px 12px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-section{margin:0 0 32px;scroll-margin-top:80px}
:is(#ku-nagoya-guide,.ku-course-guide) h3{font-size:22px;background:none;border:0;border-left:4px solid #1778f2;padding:0 0 0 12px;margin:26px 0 16px;color:#15365d;line-height:1.5}
:is(#ku-nagoya-guide,.ku-course-guide) h4{font-size:17px;background:none;border:0;margin:20px 0 8px;padding:0;color:#15365d}
:is(#ku-nagoya-guide,.ku-course-guide) p{margin:12px 0 16px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 20px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics>div{padding:14px;border:1px solid #dce9f7;border-radius:12px;background:#f7fbff}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics small{display:block;font-size:11px;color:#617890;line-height:1.6}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics b{display:block;font-size:20px;color:#1769ce;margin-top:4px;line-height:1.5}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics span{font-size:12px;color:#637993}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-table-scroll{overflow-x:auto;margin:16px 0 20px;border:1px solid #dce9f7;border-radius:12px}
:is(#ku-nagoya-guide,.ku-course-guide) table{width:100%;border-collapse:collapse;margin:0;font-size:13px;line-height:1.8;min-width:520px}
:is(#ku-nagoya-guide,.ku-course-guide) th,:is(#ku-nagoya-guide,.ku-course-guide) td{padding:12px;text-align:left;border:0;border-bottom:1px solid #e7eef7;vertical-align:top}
:is(#ku-nagoya-guide,.ku-course-guide) thead th{background:#edf5ff;color:#15365d;font-weight:800}
:is(#ku-nagoya-guide,.ku-course-guide) tbody th{background:#f7fbff;min-width:90px;white-space:nowrap}
:is(#ku-nagoya-guide,.ku-course-guide) tr:last-child>*{border-bottom:0}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-two-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-two-cards>div{background:#f7fbff;border:1px solid #dce9f7;border-radius:12px;padding:16px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-two-cards h4{margin:0 0 8px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-two-cards p{margin:0;font-size:14px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-note{font-size:12px;color:#657b94}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist{list-style:none;counter-reset:check;padding:0;margin:0}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist li{counter-increment:check;display:grid;grid-template-columns:28px 140px 1fr;gap:10px;padding:14px 0;border-bottom:1px solid #e7eef7}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist li:before{content:counter(check);display:grid;place-items:center;border-radius:50%;background:#edf5ff;color:#1769ce;width:26px;height:26px;font-size:13px;font-weight:800}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist span{font-size:14px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-ref{font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-sources{padding-top:8px;border-top:1px solid #dce9f7;font-size:12px;color:#647a94;scroll-margin-top:80px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-sources h3{font-size:16px;border:0;padding:0;margin:12px 0}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-sources ol{padding-left:20px}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-return{font-size:14px;text-align:right;margin-top:24px}
@media(max-width:650px){:is(#ku-nagoya-guide,.ku-course-guide){font-size:14px}:is(#ku-nagoya-guide,.ku-course-guide) .ng-intro{padding:18px}:is(#ku-nagoya-guide,.ku-course-guide) .ng-intro h2{font-size:23px}:is(#ku-nagoya-guide,.ku-course-guide) h3{font-size:20px}:is(#ku-nagoya-guide,.ku-course-guide) .ng-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}:is(#ku-nagoya-guide,.ku-course-guide) .ng-two-cards{grid-template-columns:1fr}:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist li{grid-template-columns:28px 1fr}:is(#ku-nagoya-guide,.ku-course-guide) .ng-checklist span{grid-column:2}}

:is(#ku-nagoya-guide,.ku-course-guide) .ng-sources summary{cursor:pointer;font-weight:700;padding:12px 0;color:#245e9f}
:is(#ku-nagoya-guide,.ku-course-guide) .ng-sources[open] summary{margin-bottom:8px}

:is(#keiba-central,.ku-note-export) .ku-note-export{padding:16px;margin:20px 0;border:1px solid #dce9f7;border-radius:14px;background:#fff}
.ku-note-export summary{cursor:pointer;font-weight:700;color:#183e68}
.ku-note-export textarea{display:block;width:100%;box-sizing:border-box;min-height:220px;margin:12px 0;padding:12px;border:1px solid #bcd2ee;border-radius:8px;font:14px/1.7 sans-serif}
.ku-note-export button{padding:8px 14px;margin-right:8px;border:1px solid #bcd2ee;border-radius:8px;background:#f3f8ff;color:#1b5dba;cursor:pointer}

/* v1.3.1: one layout for both exporters, including Cocoon and legacy inline styles. */
body.ku-central-page #sidebar,body.ku-central-page .sidebar{display:none!important}
body.ku-central-page #content-in{display:block!important}
body.ku-central-page #main{float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
:is(#keiba-all-local,#keiba-central).ku-ready{width:100%;min-width:0;max-width:980px;margin-top:8px!important}
:is(#keiba-all-local,#keiba-central).ku-ready :is(.ui-shell,.venue-panel,.race-card,.race-head,.race-main,.race-copy,.control-card){min-width:0;max-width:100%;box-sizing:border-box}
:is(#keiba-all-local,#keiba-central).ku-ready .hero{padding:14px!important;margin-bottom:10px!important;border-radius:18px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .hero .badge{padding:5px 11px!important;margin-bottom:3px!important;font-size:10px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .hero h2{padding:0!important;border:0!important;background:none!important;margin:2px 0 3px!important;font-size:25px!important;line-height:1.2!important}
:is(#keiba-all-local,#keiba-central).ku-ready .hero .sub{font-size:11px!important;line-height:1.45!important}
:is(#keiba-all-local,#keiba-central).ku-ready .stats{margin-top:9px!important;gap:7px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .stat{padding:7px 5px!important;min-height:58px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .stat b{font-size:18px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-guide-links{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .venue-seo-link{display:inline-flex!important;align-items:center;justify-content:center;padding:5px 9px!important;margin:0!important;font-size:11px!important;line-height:1.3!important;border-radius:999px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-main{grid-column:1;display:flex!important;gap:11px!important;width:auto!important;min-width:0!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-copy{flex:1 1 0;min-width:0!important;overflow-wrap:anywhere}
:is(#keiba-all-local,#keiba-central).ku-ready .race-countdown{grid-column:2;grid-row:1;display:block!important;width:154px;min-width:0!important;margin:0!important;align-self:start!important;white-space:normal!important}
:is(#keiba-all-local,#keiba-central).ku-ready :is(.ku-race-live-tools,.keiba-race-live-tools,.odds-mini){grid-column:1 / -1;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px;flex-wrap:wrap!important;min-width:0!important;width:auto!important;margin:0!important;text-align:right}
:is(#keiba-all-local,#keiba-central).ku-ready :is(.ku-race-live-tools,.keiba-race-live-tools,.odds-mini) :is(.refresh,.keiba-race-refresh){display:inline-flex!important;align-items:center;justify-content:center;min-width:0!important;max-width:100%;border:1px solid #bfe7cb;border-radius:10px;padding:7px 10px!important;color:#168047;background:#f3fff6;font:900 11px/1.4 sans-serif!important;white-space:normal!important;cursor:pointer}
:is(#keiba-all-local,#keiba-central).ku-ready :is(.ku-race-live-tools,.keiba-race-live-tools,.odds-mini) :is(small,.keiba-live-status){margin:0!important;font-size:9px!important;white-space:normal!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-nav{grid-template-columns:repeat(12,minmax(0,1fr))!important}
:is(#keiba-all-local,#keiba-central).ku-ready .race-btn{min-width:0!important;margin:0!important}
:is(#keiba-all-local,#keiba-central).ku-ready .table-wrap{max-width:100%;min-width:0;overflow-x:auto!important}
:is(#keiba-all-local,#keiba-central).ku-ready .date-menu{top:auto!important;bottom:calc(100% + 10px)!important;right:0!important;left:auto!important;min-width:0!important;width:min(292px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important}
@media(max-width:650px){
 :is(#keiba-all-local,#keiba-central).ku-ready .ui-shell{padding:7px!important;border-radius:0!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .hero h2{font-size:22px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-head{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:11px 10px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-countdown{grid-column:1;grid-row:auto;width:calc(100% - 47px)!important;max-width:calc(100% - 47px)!important;margin:0 0 0 47px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 11px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .countdown-label{margin:0!important;font-size:10px!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .countdown-time{font-size:18px!important;line-height:1!important}
 :is(#keiba-all-local,#keiba-central).ku-ready :is(.ku-race-live-tools,.keiba-race-live-tools,.odds-mini){grid-column:1;width:calc(100% - 47px)!important;max-width:calc(100% - 47px)!important;margin:0 0 0 47px!important;justify-content:space-between!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;overflow:visible!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-mode-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px 8px 0}
 :is(#keiba-all-local,#keiba-central).ku-ready .race-mode-btn{min-width:0;margin:0!important}
 :is(#keiba-all-local,#keiba-central).ku-ready .ku-venue-heading-row{min-width:0;gap:8px}
 :is(#keiba-all-local,#keiba-central).ku-ready .ku-course-link{max-width:66%;overflow-wrap:anywhere}
 :is(#keiba-all-local,#keiba-central).ku-ready .ku-stepper{gap:8px;padding:10px}
 :is(#keiba-all-local,#keiba-central).ku-ready .ku-step{min-width:0;flex:1;padding:10px 4px!important}
}

/* v1.4.0: probability TOP30 with secondary EV; left-aligned content and contextual rail. */
:is(#keiba-all-local,#keiba-central).ku-ready{margin-left:0!important;margin-right:auto!important}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-secondary{grid-row:3!important;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
:is(#keiba-all-local,#keiba-central).ku-ready .rank-current-ev{font-size:10px;font-weight:700;color:#64748b;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2}
body.ku-has-rail #sidebar,body.ku-has-rail .sidebar{display:none!important}
body.ku-has-rail #main{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin:0!important}
body.ku-has-rail #content-in{display:grid!important;grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:24px}
.ku-context-rail{width:100%;min-width:0;position:sticky;top:80px;padding:18px 0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:#15365d}
.ku-context-rail .ku-rail-section{background:#f7fbff;border:1px solid #dce9f7;border-radius:14px;padding:16px;margin:0 0 14px;overflow-wrap:anywhere}
.ku-context-rail .ku-rail-title{font-size:15px;font-weight:800;margin:0 0 10px;padding:0;border:0;background:none;color:#15365d;line-height:1.5}
.ku-context-rail .ku-rail-link,.ku-context-rail .ku-rail-current{display:block;padding:9px 0;margin:0;border:0;border-bottom:1px solid #e3ecf7;color:#1769ce;font-size:13px;font-weight:700;line-height:1.6;text-decoration:none}
.ku-context-rail a:last-child{border-bottom:0}
.ku-context-rail a:hover{text-decoration:underline}
.ku-context-rail a:focus-visible{outline:3px solid #e69c25;outline-offset:3px}
.ku-context-rail .ku-rail-current{font-size:15px;padding:0;border:0}
.ku-context-rail .ku-rail-caption{font-size:12px;color:#647a94;line-height:1.8;margin:9px 0 0}
.ku-context-rail [aria-current=page]{color:#647a94;font-weight:400}
@media(max-width:1099px){
 body.ku-has-rail #content-in{grid-template-columns:minmax(0,1fr)!important;gap:12px}
 .ku-context-rail{position:static;top:auto;padding:0 10px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .ku-context-rail .ku-rail-section{margin:0}
}
@media(max-width:650px){
 .ku-context-rail{grid-template-columns:minmax(0,1fr);gap:10px}
 .ku-context-rail .ku-rail-section{padding:14px}
 :is(#keiba-all-local,#keiba-central).ku-ready .rank-current-ev{font-size:9px}
}

/* v1.5.0: independent desktop rail scrolling and current race conditions. */
.ku-context-rail{max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-right:8px;min-height:0}
.ku-context-rail:focus-visible{outline:3px solid #e69c25;outline-offset:2px}
:is(#keiba-all-local,#keiba-central) .ku-market-stamp{padding:7px 10px;background:#f7fbff;color:#647a94;font-size:10px;line-height:1.5}
:is(#keiba-all-local,#keiba-central) .ku-live-error{color:#b45309!important;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1099px){.ku-context-rail{max-height:none;overflow-y:visible;overscroll-behavior-y:auto;scrollbar-gutter:auto;padding-right:10px}}

/* Four probability rankings share one visible panel on both race pages. */
:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:#f7faff;border-bottom:1px solid #dbe7f5}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tab{appearance:none;min-width:0;min-height:44px;padding:9px 6px;border:1px solid #bfd6fa;border-radius:10px;background:#fff;color:#1769ce;font:900 13px/1.4 sans-serif;cursor:pointer}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tab.ku-active{background:#1677f2;color:#fff;border-color:#1677f2}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tab:focus-visible{outline:3px solid #e69c25;outline-offset:2px}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-panel[hidden]{display:none!important}
:is(#keiba-all-local,#keiba-central).ku-ready .ku-rank-pair .rank-name{font-size:11px!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.2!important}
@media(max-width:480px){:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tabs{gap:5px;padding:8px}:is(#keiba-all-local,#keiba-central).ku-ready .ku-ranking-tab{font-size:11px;padding:8px 3px}}
