/* RACING DATA · UI proposal 02. Presentation only; original IDs and scripts retained. */
:root {
  --bg:#f3f4f6;--surface:#fff;--surface2:#f7f8fa;--surface3:#edf0f3;
  --surface-hover:#f0f3f6;--row-alt:#fafbfc;--sidebar-bg:#fff;
  --sidebar-item-active-bg:#f6f1e7;--border:#e2e6eb;--border-strong:#cbd2da;--divider:#e8ebef;
  --text:#202833;--text-mid:#586575;--text-dim:#697586;--text-weak:#697586;--text-faint:#718092;
  --accent:#af8744;--gold:#af8744;--gold-text:#80602c;--gold-bright:#bb9453;
  --gold-soft:#f8f3e9;--gold-tint:rgba(175,135,68,.06);--gold-tint-2:rgba(175,135,68,.12);
  --gold-line:rgba(175,135,68,.30);--accent-rgb:175,135,68;
  --radius:12px;--radius-card:12px;--radius-sm:7px;
  --shadow-card:0 2px 8px rgba(28,42,57,.035);--shadow-pop:0 14px 44px rgba(28,42,57,.12);
}
body{font-family:Inter,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;background:var(--bg);letter-spacing:.005em}
body::before,body::after{background:none;opacity:0}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--info);outline-offset:3px}
table{font-variant-numeric:tabular-nums}
.sidebar{border-radius:14px;box-shadow:var(--shadow-card)}
.sb-head{min-height:74px;padding:18px 16px}
.sb-name{font-size:14px;font-weight:700;letter-spacing:.035em}
.sb-name small{font-size:10px;letter-spacing:.06em;margin-top:4px}
.sb-group{font-size:10px;letter-spacing:.12em;padding:22px 20px 7px;color:var(--text-dim)}
.sb-item{height:41px;font-size:13px;margin:3px 10px;width:calc(100% - 20px);padding:0 11px;gap:11px;border-radius:8px}
.sb-item.active{color:var(--gold-text);font-weight:650}
.sb-item.active::before{left:-10px;top:11px;bottom:11px;width:3px}
.sb-ico{width:18px;height:18px}
.topbar{border-color:var(--border);box-shadow:none;background:rgba(255,255,255,.96)}
.stat-pill{background:transparent;border-color:var(--border);color:var(--text-dim);font-size:11px}
.stat-pill strong{font-weight:650;color:var(--text)}
#page-title-bar .pt-text{font-size:25px;font-weight:700;letter-spacing:0;color:var(--text)}
/* This help sentence belongs to Cards, and is unrelated to the prediction view. */
#app-main:has(.view-btn[data-view="localpred"].active) .cards-sub{display:none}
.race-panel,.precise-head,.fm-compose,.fm-post,.mc-current,.mc-plan,.odg-embed{box-shadow:var(--shadow-card)}
.race-btn{border-radius:7px;min-height:34px;padding:7px 13px;font-size:13px;font-weight:550;box-shadow:none}
.ms-trigger{min-height:40px;background:var(--surface);border-color:var(--border)}
.ms-drop{border:1px solid var(--border);box-shadow:var(--shadow-pop);border-radius:10px}
.ms-opt{padding-top:9px;padding-bottom:9px}
.ms-opt-count{font-variant-numeric:tabular-nums}
.pivot-src{gap:8px;padding:14px 16px;border-radius:10px;background:var(--surface);border-color:var(--border)}
.pivot-src .rv-tab{padding:7px 12px;border-radius:6px;font-size:12px}
.pivot-filters{gap:10px;padding-top:12px;padding-bottom:12px}
.pivot-hint{color:var(--text-dim);font-size:12px;line-height:1.8}
.pivot-summary{justify-content:flex-start;padding:12px 0;box-shadow:var(--shadow-card)}
.pivot-section{padding:20px;border-radius:12px;box-shadow:var(--shadow-card)}
.pivot-sec-title{font-size:15px;font-weight:650}
.pivot-section th{padding-top:12px;padding-bottom:12px;background:var(--surface2);font-weight:550}
.pivot-section td{padding-top:11px;padding-bottom:11px}
.pivot-section tbody tr:hover{background:var(--surface-hover)}
.odg-embed{background:var(--surface);border:1px solid var(--border);border-radius:12px}
.odg-head{padding:16px;border-bottom-color:var(--border);background:var(--surface)}
.odg-title{font-size:15px;color:var(--text);font-weight:650}
.odg-bar{padding:12px 16px;gap:8px}
.odg-foot{color:var(--text-dim);line-height:1.8;padding:12px 16px}
/* No rules below change model output, sort order, folds, or event handlers. */
#lp-view .lp-wrap{background:transparent;border:0;border-radius:0;padding:0}
#lp-view .lp-head{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--border);gap:14px;align-items:center}
#lp-view .lp-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--gold-text)}
#lp-view .lp-icon svg{width:25px;height:25px}
#lp-view .lp-title{font-size:22px;line-height:1.5;font-weight:700;letter-spacing:0;color:var(--text)}
#lp-view .lp-sub{font-size:12px;line-height:1.8;max-width:780px;margin-top:4px;color:var(--text-dim)}
#lp-view .lp-acts{gap:8px;align-items:center}
#lp-view #lp-mode-wrap{gap:3px!important;margin:0 4px 0 0!important;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:9px}
#lp-view #lp-mode-wrap button{border-width:1px;background:var(--surface);min-height:32px;padding:5px 14px;font-size:12px}
#lp-view #lp-body{font-size:14px;line-height:1.75;color:var(--text)}
#lp-view #lp-final-head,#lp-view #lp-live-ts{padding:15px 18px!important;border:1px solid var(--gold-line)!important;border-left:3px solid var(--accent)!important;border-radius:9px!important;background:var(--gold-soft)!important;line-height:1.9;margin-bottom:16px!important;box-shadow:none}
#lp-view #lp-final-head>span:first-child,#lp-view #lp-live-ts{font-size:13px!important;font-weight:650!important}
#lp-view #lp-final-head>span:not(:first-child){font-size:12px!important;color:var(--text-mid)!important}
#lp-view #lp-body>div:has(>#lpf-day),#lp-view #lp-body>div:has(>#lp-day){display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0!important;font-size:13px}
#lp-view #lp-body>div:has(>#lpf-day)>span:last-child{margin-left:auto;float:none!important;display:flex;gap:8px}
#lp-view #lpf-day,#lp-view #lp-day{padding:8px 12px!important;min-height:36px;font-size:13px!important;border:1px solid var(--border-strong)!important;border-radius:7px!important;background:var(--surface)!important}
#lp-view #lpf-expand,#lp-view #lpf-collapse,#lp-view #lp-exp{display:inline-flex;align-items:center;min-height:34px;padding:5px 12px!important;border-radius:7px!important;border:1px solid var(--border-strong)!important;background:var(--surface);font-size:12px!important;margin:0!important}
#lp-view #lp-body>div:has(>table){background:var(--surface);border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:var(--shadow-card);margin:0 0 24px!important;overflow:auto!important}
#lp-view #lp-body>div:has(>table)>div:first-child{padding:16px 18px!important;background:var(--surface)!important;color:var(--text)!important;border-bottom:1px solid var(--border);font-size:14px!important}
#lp-view #lp-body>div:has(>table)>div:first-child>span{font-size:11px!important;color:var(--text-dim)!important}
#lp-view #lp-body>div>table{font-size:13px!important;min-width:740px;color:var(--text)!important}
#lp-view #lp-body>div>table thead tr{background:var(--surface2)!important;color:var(--text-dim)!important}
#lp-view #lp-body>div>table th{font-size:11px!important;font-weight:550;padding:11px 15px!important;text-align:left}
#lp-view #lp-body>div>table td{padding:12px 15px!important;border-bottom:1px solid var(--divider);color:var(--text)!important;vertical-align:middle}
#lp-view #lp-body>div>table tbody tr:last-child td{border-bottom:0}
#lp-view #lp-body>div>table tbody tr:hover{background:var(--surface2)}
#lp-view #lp-body [data-lp-jump]{padding:5px 8px!important;border-radius:5px!important;font-size:12px!important;line-height:1.65;margin:3px 5px 3px 0!important;border-color:var(--border)!important;background:var(--surface2);color:var(--text)!important;white-space:nowrap}
#lp-view #lp-body [data-lp-jump]:first-child{background:var(--gold-soft)!important;border-color:var(--gold-line)!important;color:var(--gold-text)!important}
#lp-view #lp-body [data-lp-jump] b{font-weight:650;margin-left:4px;font-variant-numeric:tabular-nums}
#lp-view #lp-body .race[id^="lpF-R"]{padding:0!important;background:var(--surface);border:1px solid var(--border)!important;border-radius:10px;margin-bottom:12px!important;box-shadow:var(--shadow-card);scroll-margin-top:90px;overflow:hidden}
#lp-view #lp-body [data-lp-head]{padding:17px 18px!important;margin:0!important;border-left:3px solid transparent!important;color:var(--text)!important;font-size:15px!important;font-weight:650!important;display:flex;align-items:center;gap:12px;flex-wrap:wrap;line-height:1.6}
#lp-view #lp-body [data-lp-head]>span{margin-left:auto!important;font-size:12px!important;color:var(--text-dim)!important}
#lp-view #lp-body [data-lp-head]:hover{background:var(--surface2)}
#lp-view #lp-body .race:has(.lpf-body[style*="block"]) [data-lp-head]{border-left-color:var(--accent)!important;border-bottom:1px solid var(--border)}
#lp-view #lp-body .lpf-body{overflow:auto}
#lp-view #lp-body .lpf-body table{min-width:570px;font-size:13px!important}
#lp-view #lp-body .lpf-body th{padding:12px 18px!important;font-size:11px!important;font-weight:550}
#lp-view #lp-body .lpf-body td{padding:13px 18px!important;border-bottom:1px solid var(--divider)}
#lp-view #lp-body .lpf-body td:nth-child(1){color:var(--text-dim)!important}
#lp-view #lp-body .lpf-body td:nth-child(3){font-size:15px}
#lp-view #lp-body .lpf-body td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
#lp-view #lp-body .lpf-body td:nth-child(4) b{font-size:16px;color:var(--text)!important}
#lp-view #lp-body .lpf-body tbody tr:first-child td:nth-child(4) b{color:var(--gold-text)!important}
#lp-view #lp-body .lpf-body tbody tr:last-child td{border-bottom:0}
#lp-view #lp-body .lpf-body tbody tr:hover{background:var(--surface2)}
#lp-view #lp-body [data-lp-race]{min-width:38px;min-height:34px;display:inline-grid;place-items:center;border-radius:7px!important;padding:5px 12px!important;background:var(--surface);font-variant-numeric:tabular-nums}
#lp-view #lp-tbl>div:first-child:not(.lpc){padding:12px 0;font-size:12px!important;line-height:1.9;color:var(--text-mid)!important}
#lp-view #lp-body .lpc{padding:20px 22px;margin-bottom:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-card)}
#lp-view #lp-body .lpc-top{border-color:var(--gold-line);border-left:3px solid var(--accent);box-shadow:var(--shadow-card)}
#lp-view #lp-body .c-head{gap:8px 12px;padding:0 0 12px;border-bottom:1px solid var(--divider);margin-bottom:12px}
#lp-view #lp-body .no{display:inline-grid;place-items:center;min-width:37px;height:32px;background:var(--surface2);border:1px solid var(--border);border-radius:6px;color:var(--text-mid);font-size:12px}
#lp-view #lp-body .hname{font-size:19px;line-height:1.6;color:var(--text);font-weight:650;letter-spacing:0}
#lp-view #lp-body .jt{color:var(--text-dim);font-size:12px;margin-left:auto}
#lp-view #lp-body .badge{font-size:10px;border-radius:4px;padding:2px 6px}
#lp-view #lp-body .c-line{font-size:13px;line-height:2;color:var(--text-mid);margin:10px 0 14px}
#lp-view #lp-body .c-line b{font-size:16px;color:var(--text);font-weight:650}
#lp-view #lp-body .lpc-top .c-line b{color:var(--gold-text)}
#lp-view #lp-body .chips{gap:6px;line-height:1.7;margin:8px 0;align-items:center}
#lp-view #lp-body .chip{font-size:11px;line-height:1.8;border:1px solid var(--border);border-radius:5px;padding:4px 8px;background:var(--surface2);color:var(--text-mid)}
#lp-view #lp-body .chip b{color:var(--text);font-size:12px;font-weight:600}
#lp-view #lp-body .chip i{font-size:10px;color:var(--text-dim);margin-left:3px}
#lp-view #lp-body .chip.dim{background:var(--surface);color:var(--text-dim)}
#lp-view #lp-body .ana{font-size:13px;line-height:1.95;padding:12px 0 6px;color:var(--text-mid)}
#lp-view #lp-body .ana-cap{font-size:12px;color:var(--text);font-weight:650}
#lp-view #lp-body .c-meta{font-size:11px;line-height:1.8;color:var(--text-dim);border-top:1px solid var(--divider);padding-top:11px;margin-top:12px}
@media(min-width:1100px){#lp-view .lp-htxt{flex:1 1 480px}#lp-view .lp-acts{margin-left:auto}}
@media(max-width:768px){
  .sb-head{min-height:64px}.sb-item{height:42px}
  #lp-view .lp-head{gap:10px;padding-bottom:16px;margin-bottom:16px}
  #lp-view .lp-icon{width:40px;height:40px}
  #lp-view .lp-title{font-size:20px}#lp-view .lp-htxt{min-width:210px}
  #lp-view .lp-acts{width:100%;justify-content:space-between;gap:6px}
  #lp-view .lp-sub{font-size:11px;line-height:1.8}
  #lp-view #lp-final-head,#lp-view #lp-live-ts{padding:12px 13px!important}
  #lp-view #lp-body>div:has(>#lpf-day)>span:last-child{width:100%;margin-left:0}
  #lp-view #lp-body [data-lp-head]{padding:14px 12px!important;font-size:14px!important}
  #lp-view #lp-body [data-lp-head]>span{font-size:11px!important}
  #lp-view #lp-body .lpc{padding:16px 14px}#lp-view #lp-body .hname{font-size:18px}
  #lp-view #lp-body .jt{margin-left:0;width:100%}#lp-view #lp-body .c-line{line-height:2.2;font-size:12px}
  .pivot-section{padding:15px}.pivot-src{padding:12px;gap:6px}.pivot-summary{padding:10px 0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Batch 03: module guidance and table readability; no data or interaction changes. */
#app-main:not(:has(.view-btn[data-view="cards"].active)) .cards-sub{display:none}
.rd-context-note{padding:12px 16px;border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--surface);border-radius:8px;font-size:12px;line-height:1.85;color:var(--text-mid);margin:0 0 18px}
.precise-sub,.pivot-sub,.odds-sub,.race-sub{line-height:1.9;font-size:12px}
.precise-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.precise-table th{padding:13px 16px;font-weight:550;background:var(--surface2);font-size:12px}
.precise-table td{padding:12px 16px;font-size:13px;font-variant-numeric:tabular-nums}
.precise-table tbody tr:hover{background:var(--surface-hover)}
.mc-plan .p-list{line-height:1.9}.mc-plan .p-list li{margin:8px 0}
.rd-account-email{overflow-wrap:anywhere}.rd-account-email span{color:var(--text);font-weight:550}
@media(max-width:768px){.rd-context-note{font-size:11px;padding:10px 12px}.precise-table{min-width:570px}}
