/* 模态层默认隐藏；完整重温/官方页样式见 board-replay.css（按需加载） */
.replay-modal:not(.show),
.official-page-modal:not(.show){
  display:none !important;
}
#replayLoadingState[hidden],
.replay-modal-inline-host[hidden]{
  display:none !important;
}

:root{--tipsme-blue-deep:#133260;--tipsme-blue-mid:#2A4873;--tipsme-yellow:#ffce44;--tipsme-bg-soft:#eef4ff;--tipsme-border:#dbe7f5;--bg:#eff2f4;--card:#fff;--line:var(--tipsme-border);--text:#1f2d3d;--muted:#6b7a88;--green:var(--tipsme-blue-deep);--yellow:var(--tipsme-yellow);--red:#e5484d;--rise:#3fb950;--deep:#b8642b}
*{box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#fff;margin:0;color:var(--text)}
.wrap{max-width:769px;margin:0 auto;padding:0}
.card{background:var(--card);border:none;border-radius:0;padding:10px;margin-bottom:-25px}
.card.tabs-card{padding:0;margin-bottom:-25px;background:#fff}
.head{background:linear-gradient(135deg,var(--tipsme-blue-deep) 0%,var(--tipsme-blue-mid) 100%);color:#fff;border:0;border-radius:0;padding:12px 14px}
.meta{display:block;font-size:13px;opacity:.95;font-weight:500}
.head-tools{display:flex;align-items:center;gap:10px}
.member-center-btn{display:inline-flex;align-items:center;justify-content:flex-end;min-width:92px;padding:0;border:none;border-radius:0;color:var(--tipsme-yellow);text-decoration:none;font-size:13px;background:transparent;box-shadow:none}
.member-center-btn:hover{opacity:.9}
.member-center-name{display:block;max-width:124px;font-size:16px;line-height:1.1;font-weight:700;color:var(--tipsme-yellow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.member-center-btn.guest .member-center-name,.member-center-btn.member .member-center-name{color:var(--tipsme-yellow)}
.races{display:none}
.btn{display:inline-block;padding:6px 10px;border:1px solid var(--tipsme-border);border-radius:999px;text-decoration:none;color:var(--tipsme-blue-deep);background:#f8fafc;white-space:nowrap;font-size:12px}
.tabs{display:flex;gap:0;overflow:auto;padding:0 4px;background:var(--tipsme-blue-deep);border-radius:0;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;align-items:stretch;scrollbar-width:none;-ms-overflow-style:none}
.tabs::-webkit-scrollbar{display:none;height:0;width:0}
.tab{
  position:relative;
  border:none;
  border-radius:0;
  padding:10px 12px 12px;
  background:transparent;
  color:#fff;
  font-size:25px;
  cursor:pointer;
  white-space:nowrap;
  font-weight:600;
  transition:color .18s ease;
  box-shadow:none;
}
.tab:hover{color:var(--tipsme-yellow)}
.tab[data-tab="wp"],#panel-wp{display:none !important}
.tab.active{
  background:transparent;
  color:var(--tipsme-yellow);
  font-weight:800;
  box-shadow:none;
}
.tab.active::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:0;
  height:4px;
  background:var(--tipsme-yellow);
}
.tab.tab-locked{opacity:.55;position:relative}
.tab.tab-locked::after{content:"锁";font-size:12px;margin-left:6px}
.primary,.btn.primary,button.primary{background:linear-gradient(135deg,var(--tipsme-blue-deep) 0%,var(--tipsme-blue-mid) 100%);color:#fff}
.ghost,.btn.ghost,button.ghost{background:var(--tipsme-bg-soft);color:var(--tipsme-blue-deep);border-color:var(--tipsme-border)}
.gold,.btn.gold,button.gold{background:var(--tipsme-yellow);color:var(--tipsme-blue-deep)}
.panel{display:none;padding:0}
.panel.active{display:block}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{border-bottom:1px solid #e8edf2;padding:7px 6px;text-align:left;vertical-align:top}
.table th{background:#f6f9fc;position:sticky;top:0}
.muted{color:var(--muted);font-size:12px}
.live{color:#c7d2fe;font-weight:600}
.warn{color:#ffd5d5}
.jockey-trainer{color:#2e68bd}
@media(max-width:420px){.wrap{padding:0}.card{padding:8px}.table{font-size:13px}}


@media(max-width:768px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{touch-action:manipulation}
  .tab{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
}

/* Tipsme unified UI pass: keep common controls visually consistent. */
.btn,
button{
  -webkit-tap-highlight-color:transparent;
}
.primary,.btn.primary,button.primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--tipsme-blue-deep) 0%,var(--tipsme-blue-mid) 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(19,50,96,.16);
}
.ghost,.btn.ghost,button.ghost{
  background:#fff8dc;
  color:var(--tipsme-blue-deep);
  border-color:rgba(255,206,68,.72);
}
.gold,.btn.gold,button.gold{
  border-color:rgba(19,50,96,.12);
  background:linear-gradient(135deg,var(--tipsme-yellow) 0%,#f7b500 100%);
  color:var(--tipsme-blue-deep);
  box-shadow:0 8px 18px rgba(19,50,96,.1);
}
.card{
  border-color:var(--tipsme-border);
}
.hot{background:#f03939;color:#fff;font-weight:600}
.q-down20{background:#2aa217;color:#fff;font-weight:600}
.q-down50{background:#993300;color:#fff;font-weight:600}
.wp-val-plain{color:#1a56db;font-weight:600}
.wp-up{background:#2aa217;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.wp-down{background:#f03939;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.wp-down50{background:#993300;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.arrow-up{color:#e53e3e;font-weight:700;text-align:center;line-height:1;display:inline-block}
.arrow-down{color:#38a169;font-weight:700;text-align:center;line-height:1;display:inline-block}
.table td .horse-name{color:#1f2d3d}
.badge{display:inline-block;padding:2px 6px;border-radius:999px;background:#edf3ff;color:#315ea8;font-size:11px}

.loading-screen{
  position:fixed;
  inset:0;
  z-index:30;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:24px 16px;
  box-sizing:border-box;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.loading-screen.hidden{display:none !important}
.loading-screen-card{
  width:80%;
  max-width:280px;
  padding:16px 14px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(18,44,104,.12);
  box-shadow:0 8px 28px rgba(18,44,104,.14);
  animation:loadingCardIn .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes loadingCardIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
.loading-stage{
  margin:0 0 14px;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
  color:#334155;
  letter-spacing:.02em;
}
.loading-double-spinner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin:0 auto;
  box-sizing:border-box;
}
.loading-double-spinner__outer,
.loading-double-spinner__inner{
  position:absolute;
  display:block;
  box-sizing:border-box;
  border:3px solid transparent;
  border-radius:50%;
  pointer-events:none;
}
.loading-double-spinner__outer{
  inset:0;
  border-top-color:#133260;
  border-right-color:#2A4873;
  animation:loadingDoubleSpinnerSpin .85s linear infinite;
}
.loading-double-spinner__inner{
  inset:6px;
  border-bottom-color:#ffce44;
  border-left-color:#ffce44;
  animation:loadingDoubleSpinnerSpinReverse .85s linear infinite;
}
.loading-double-spinner__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffce44;
  animation:loadingDoubleSpinnerPulse 1.2s ease-in-out infinite;
}
@keyframes loadingDoubleSpinnerSpin{to{transform:rotate(360deg)}}
@keyframes loadingDoubleSpinnerSpinReverse{to{transform:rotate(-360deg)}}
@keyframes loadingDoubleSpinnerPulse{
  0%,100%{opacity:.45;transform:scale(.82)}
  50%{opacity:1;transform:scale(1)}
}
.loading-bar-wrap{display:none}
.loading-bar-track{
  position:relative;
  height:8px;
  border-radius:4px;
  background:#e8edf2;
  overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06);
}
.loading-bar{
  position:relative;
  z-index:1;
  height:100%;
  width:0%;
  border-radius:4px;
  background:linear-gradient(135deg,#ffd84a 0%,#ffc400 100%);
  transition:width .3s ease;
  box-shadow:0 1px 3px rgba(255,196,0,.35);
}
.loading-bar-shine{
  position:absolute;
  inset:0;
  z-index:2;
  width:40%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation:loadingShine 1.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes loadingShine{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(350%)}
}
.loading-footer{display:none;align-items:center;justify-content:center}
.loading-percent{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:#888}
.loading-text{font-size:15px;color:#555}
#toastContainer{position:fixed;right:14px;bottom:18px;z-index:1600;display:flex;flex-direction:column;gap:10px;align-items:flex-end;pointer-events:none}
.toast-msg{
  position:relative;min-width:220px;max-width:min(88vw,380px);padding:14px 16px 14px 50px;border-radius:16px;
  border:1px solid rgba(135,167,224,.28);background:linear-gradient(135deg,rgba(9,20,42,.97) 0%,rgba(18,44,104,.95) 100%);color:#f8fbff;
  box-shadow:0 18px 40px rgba(6,15,34,.34);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  font-size:14px;line-height:1.55;font-weight:600;pointer-events:auto;animation:toastIn .24s ease
}
.toast-msg::before{
  content:'✓';position:absolute;left:16px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;background:#ffe56a;color:#122c68;font-size:13px;font-weight:800;
  box-shadow:0 0 0 4px rgba(255,229,106,.18)
}
.toast-msg.hide{animation:toastOut .24s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes toastOut{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(12px) scale(.96)}}

.auth-guide-modal{display:none;position:fixed;inset:0;background:rgba(7,12,20,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:1400;padding:16px;align-items:center;justify-content:center}
.auth-guide-modal.show{display:flex}
.auth-guide-dialog{position:relative;width:min(460px,100%);background:linear-gradient(180deg,#ffffff 0%,#f5f8fe 100%);border:1px solid rgba(215,226,242,.95);border-radius:22px;padding:24px 20px 18px;box-shadow:0 20px 56px rgba(8,15,34,.28)}
.auth-guide-close{position:absolute;right:12px;top:12px;border:none;background:rgba(18,44,104,.08);font-size:24px;line-height:1;color:#64748b;cursor:pointer;width:34px;height:34px;border-radius:999px}
.auth-guide-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;border-radius:999px;background:#eef4ff;color:#122c68;font-size:12px;font-weight:800;letter-spacing:.3px}
.auth-guide-dialog h3{margin:12px 0 8px;font-size:24px;line-height:1.2;color:#0f172a}
.auth-guide-dialog p{margin:0;color:#475569;font-size:15px;line-height:1.7}
.auth-guide-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.auth-guide-btn{display:inline-flex;align-items:center;justify-content:center;height:44px;border-radius:14px;border:1px solid #d0d7e2;background:#fff;color:#0f172a;text-decoration:none;font-size:15px;font-weight:700;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.auth-guide-btn.primary{background:#122c68;border-color:#122c68;color:#fff}
.auth-guide-btn.ghost{background:#eef4ff;border-color:#d7e4ff;color:#122c68}
.ticket-modal{display:none;position:fixed;inset:0;background:rgba(7,12,20,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:1450;padding:16px;align-items:center;justify-content:center}
.ticket-modal.show{display:flex}
.ticket-modal-dialog{position:relative;width:min(500px,100%);background:linear-gradient(180deg,#ffffff 0%,#f5f8fe 100%);border:1px solid rgba(215,226,242,.95);border-radius:22px;padding:24px 20px 18px;box-shadow:0 20px 56px rgba(8,15,34,.28)}
.ticket-modal-dialog-wide{width:min(736px,100%);max-height:min(78vh,760px);overflow:hidden}

#ticketInboxModal.ticket-modal.show{
  display:block;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:max(10px,env(safe-area-inset-top)) 14px max(22px,env(safe-area-inset-bottom));
  box-sizing:border-box;
}
#ticketInboxModal .ticket-modal-dialog-wide{
  max-height:none;
  overflow:visible;
  margin-left:auto;
  margin-right:auto;
}
.ticket-modal-close{position:absolute;right:12px;top:12px;border:none;background:rgba(18,44,104,.08);font-size:24px;line-height:1;color:#64748b;cursor:pointer;width:34px;height:34px;border-radius:999px}
.ticket-modal-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;border-radius:999px;background:#eef4ff;color:#122c68;font-size:12px;font-weight:800;letter-spacing:.3px}
.ticket-modal-title{margin:12px 0 8px;font-size:24px;line-height:1.2;color:#0f172a}
.ticket-modal-desc{margin:0 0 18px;color:#475569;font-size:15px;line-height:1.7}
.ticket-modal-form{display:flex;flex-direction:column;gap:14px}
.ticket-modal-form[hidden]{display:none !important}
.ticket-field{display:block}
.ticket-field-label{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:#334155}
.ticket-field input,.ticket-field textarea,.ticket-reply-form textarea{width:100%;border:1px solid #d9e1ec;border-radius:14px;background:#fff;padding:12px 14px;font-size:14px;color:#0f172a;box-sizing:border-box}
.ticket-field textarea,.ticket-reply-form textarea{min-height:140px;resize:vertical;line-height:1.7}
.ticket-field input:focus,.ticket-field textarea:focus,.ticket-reply-form textarea:focus{outline:none;border-color:#122c68;box-shadow:0 0 0 4px rgba(18,44,104,.08)}
.ticket-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ticket-modal-btn{display:inline-flex;align-items:center;justify-content:center;min-width:104px;height:42px;padding:0 16px;border-radius:14px;border:1px solid #d0d7e2;background:#fff;color:#0f172a;text-decoration:none;font-size:14px;font-weight:700;cursor:pointer}
.ticket-modal-btn.primary{background:#122c68;border-color:#122c68;color:#fff}
.ticket-modal-btn.ghost{background:#eef4ff;border-color:#d7e4ff;color:#122c68}
.ticket-modal-btn[disabled]{opacity:.6;cursor:not-allowed}
.ticket-compose-success{padding:18px 10px 4px;text-align:center;animation:loadingCardIn .25s ease}
.ticket-compose-success[hidden]{display:none !important}
.ticket-compose-success-icon{width:68px;height:68px;margin:0 auto 16px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#dffbe8 0%,#c1f0cf 100%);color:#14803d;box-shadow:0 10px 28px rgba(20,128,61,.18)}
.ticket-compose-success-icon svg{width:34px;height:34px;display:block}
.ticket-compose-success-title{font-size:24px;font-weight:800;line-height:1.3;color:#0f172a}
.ticket-compose-success-text{max-width:380px;margin:10px auto 0;color:#475569;font-size:15px;line-height:1.75}
.ticket-compose-success-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.ticket-inbox-filters{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:-4px 0 14px}
.ticket-filter-group{display:flex;gap:8px;flex-wrap:wrap}
.ticket-filter-chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #d0d7e2;background:#fff;color:#334155;font-size:13px;font-weight:700;cursor:pointer;transition:all .18s ease}
.ticket-filter-chip.is-active{background:#122c68;border-color:#122c68;color:#fff;box-shadow:0 10px 24px rgba(18,44,104,.18)}
.ticket-filter-chip.ticket-filter-chip-light{background:#f8fbff;border-color:#d7e4ff;color:#122c68}
.ticket-inbox-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;min-height:0;align-items:start}
.ticket-inbox-list{display:flex;flex-direction:column;gap:10px;max-height:460px;overflow:auto;padding-right:4px}
.ticket-inbox-item{padding:14px 14px 12px;border-radius:16px;border:1px solid #dbe5f0;background:#fff;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.04);text-align:left}
.ticket-inbox-item.active{border-color:#bfd3ff;background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%)}
.ticket-inbox-item.has-unread{border-color:#fecaca;background:linear-gradient(180deg,#fff8f8 0%,#fff 100%);box-shadow:0 10px 26px rgba(239,68,68,.08)}
.ticket-inbox-item-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.ticket-inbox-item-title{font-size:14px;font-weight:700;color:#0f172a;line-height:1.45}
.ticket-inbox-item-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff4d4f;color:#fff;font-size:10px;font-weight:800}
.ticket-inbox-item-meta{margin-top:6px;font-size:12px;color:#64748b}
.ticket-inbox-item-preview{margin-top:8px;font-size:13px;line-height:1.55;color:#334155;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ticket-inbox-panel{border:1px solid #dbe5f0;border-radius:18px;background:linear-gradient(180deg,#fbfdff 0%,#f5f8fe 100%);padding:16px;min-height:0;width:100%;box-sizing:border-box}

#ticketInboxModal .ticket-inbox-panel:has(#ticketInboxThread:not([hidden])) #ticketInboxEmpty{display:none !important}
#ticketInboxModal #ticketInboxThread{display:flex;flex-direction:column;gap:0;min-height:0}
.ticket-inbox-empty{display:flex;align-items:center;justify-content:center;text-align:center;color:#94a3b8;line-height:1.8;padding:20px 16px;min-height:0}
.ticket-inbox-loading-msg{padding:14px 12px;color:#64748b;font-size:14px}
.ticket-thread-headline{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.ticket-thread-subject{font-size:18px;font-weight:700;color:#0f172a;line-height:1.45}
.ticket-thread-meta{margin-top:6px;font-size:12px;color:#64748b}
.ticket-thread-status{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px;font-weight:700}
.ticket-thread-status.closed{background:#e2e8f0;color:#475569}
.ticket-inbox-messages{display:flex;flex-direction:column;gap:12px;min-height:0;padding-right:4px}

#ticketInboxModal .ticket-inbox-messages{max-height:none;overflow:visible}
.ticket-msg{max-width:86%;padding:14px 16px;border-radius:16px;line-height:1.75;white-space:pre-wrap;word-break:break-word}
.ticket-msg.user{align-self:flex-start;background:linear-gradient(180deg,#f8fafc 0%,#eef4fb 100%);border:1px solid #dbe5f0;color:#0f172a}
.ticket-msg.admin{align-self:flex-end;background:linear-gradient(180deg,#122c68 0%,#163a7d 100%);border:1px solid rgba(255,255,255,.12);color:#fff}
.ticket-msg-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:7px;font-size:12px}
.ticket-msg-name{font-weight:700}
.ticket-msg-time{opacity:.8}
.ticket-reply-form{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.ticket-field-upload input[type=file]{
  width:100%;padding:10px 12px;border:1px dashed #c5cfe0;border-radius:14px;background:#f8fafc;font-size:13px;cursor:pointer;box-sizing:border-box
}
.ticket-upload-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;min-height:0}
.ticket-upload-chip{
  position:relative;display:inline-flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;border:1px solid #dbe5f0;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.06)
}
.ticket-upload-chip img{width:64px;height:64px;object-fit:cover;border-radius:8px;display:block;background:#f1f5f9}
.ticket-upload-chip-remove{
  position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:999px;border:none;background:#ef4444;color:#fff;font-size:14px;line-height:1;cursor:pointer;box-shadow:0 4px 10px rgba(239,68,68,.35)
}
.ticket-reply-upload{margin-top:4px}
.ticket-msg-images{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.ticket-msg-images a.ticket-msg-img-link{display:block;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.22);max-width:min(100%,320px);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.ticket-msg-images a.ticket-msg-img-link:active{transform:scale(.98)}
.ticket-msg-images a.ticket-msg-img-link:focus-visible{outline:2px solid rgba(18,44,104,.45);outline-offset:2px}
.ticket-msg.admin .ticket-msg-images a.ticket-msg-img-link{border-color:rgba(255,255,255,.25)}
.ticket-msg-images img{max-width:min(100%,320px);max-height:min(50vh,280px);width:auto;height:auto;display:block;vertical-align:top;object-fit:contain;background:rgba(15,23,42,.04)}
@media(max-width:520px){
  .auth-guide-dialog{padding:22px 16px 16px}
  .auth-guide-actions{grid-template-columns:1fr}
  .ticket-modal{padding:10px}
  .ticket-modal-dialog,.ticket-modal-dialog-wide{padding:22px 16px 16px}
  #ticketInboxModal.ticket-modal.show{padding-left:10px;padding-right:10px}
  .ticket-modal-actions{justify-content:stretch}
  .ticket-modal-btn{width:100%}
  .ticket-compose-success-actions{justify-content:stretch}
  .ticket-inbox-layout{grid-template-columns:1fr;min-height:unset}
  .ticket-inbox-list{max-height:220px}
  .ticket-inbox-panel{padding:14px}
  .ticket-msg{max-width:100%}
}
.menu-btn{background:transparent;border:0;color:#fff;font-size:30px;line-height:1;cursor:pointer;margin:0;padding:6px 10px;vertical-align:middle;display:inline-flex;align-items:center;justify-content:center}
.card.head .menu-btn,.topline .menu-btn{font-size:30px !important}
.menu-btn .menu-btn-icon,.card.head .menu-btn .menu-btn-icon{font-size:30px !important;line-height:1;display:inline-block;font-weight:700;vertical-align:middle}
.topline{display:flex;align-items:center;gap:10px}
.head-race-wrap{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.race-pill{color:#fff;font-size:26px;font-weight:700;line-height:1;padding:6px 0;border-radius:8px;cursor:pointer;white-space:nowrap}
.head-eventname{font-size:21px;font-weight:700;color:#fff;margin-top:6px;display:block}
.head .meta{font-size:20px;opacity:.95;color:#fff;line-height:1.5;margin-top:4px}
.head-status{display:none}
.head #eventsHint{color:#b8e6c8;font-size:11px}
.right-state{background:transparent !important;box-shadow:none !important;color:#ffe56a;font-weight:600;padding:6px 12px;border-radius:0;font-size:30px}
.card.head .right-state{font-size:30px !important}
.right-state .state-open{color:#e5484d}

.card.head.board-head{
  padding:0;
  background:transparent;
  border:0;
}

.board-head{
  width:100%;
  padding:0;
  margin-bottom:0;
  background:transparent;
}


.board-head-top{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  box-sizing:border-box;
  border-bottom:1px solid rgba(0,0,0,.12);
  overflow:visible;
  background:linear-gradient(152deg,#061124 0%,#0b2144 18%,#133260 46%,#2A4873 78%,#10213f 100%);
}

.board-head-top::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.55;
  background:linear-gradient(
    118deg,
    rgba(255,255,255,.09) 0%,
    rgba(255,255,255,.02) 38%,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,.06) 100%
  );
}

.board-head-top::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 100% 75% at 5% 88%,rgba(130,185,255,.11) 0%,transparent 50%),
    radial-gradient(ellipse 85% 65% at 96% 6%,rgba(0,0,0,.12) 0%,transparent 48%);
}


.board-head-menu{
  display:none !important;
}

.board-head-menu .menu-btn-icon{
  font-size:45px !important;
}


.board-head-top .board-head-main-row{
  grid-column:1 / -1;
  grid-row:1;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:48px;
  box-sizing:border-box;
}

.board-head-top .board-head-time-slot{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  flex:1 1 auto;
  min-width:0;
}

.board-head-brand{
  flex:0 0 auto;
  font-size:38px;
  font-weight:800;
  color:#fff;
  letter-spacing:.06em;
  padding:0 4px 0 12px;
  margin-left:4px;
  border-left:1px solid rgba(255,255,255,.32);
  line-height:1.1;
  user-select:none;
  text-shadow:0 1px 0 rgba(0,0,0,.12);
}

.board-top-menu-wrap{
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.board-top-menu-mask{
  position:fixed;
  inset:0;
  z-index:58;
  background:rgba(2,8,23,.54);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.board-top-menu-mask[hidden]{
  display:none !important;
}

.board-top-menu-btn{
  width:40px;
  height:40px;
  padding:0;
  border:0;
  border-radius:8px;
  background:linear-gradient(180deg,#2A4873 0%,#133260 100%);
  box-shadow:0 10px 22px rgba(6,15,34,.24), inset 0 1px 0 rgba(255,255,255,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.board-top-menu-btn:hover,
.board-top-menu-btn:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(6,15,34,.3), inset 0 1px 0 rgba(255,255,255,.16);
  outline:none;
}

.board-top-menu-btn.is-open{
  background:linear-gradient(180deg,#2A4873 0%,#133260 100%);
}

.board-top-menu-icon{
  width:20px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.board-top-menu-icon span{
  display:block;
  width:100%;
  height:3px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.08);
}

.board-top-menu-dropdown{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(84vw,320px);
  z-index:59;
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
}

.board-top-menu-dropdown[hidden]{
  display:none !important;
}

.board-top-menu-panel{
  width:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  color:#e6f0ff;
  background:linear-gradient(180deg,#0b1b34 0%,#061124 100%);
  box-shadow:18px 0 48px rgba(3,10,24,.34);
  border-right:1px solid rgba(126,159,219,.14);
}

.board-top-menu-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 14px 14px;
  border-bottom:1px solid rgba(120,150,206,.18);
}

.board-top-menu-profile{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}

.board-top-menu-avatar{
  width:74px;
  height:74px;
  border-radius:50%;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#2A4873 0%,#133260 100%);
  border:2px solid #ffce44;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 10px 18px rgba(6,15,34,.28);
  color:#fff;
  font-size:34px;
  font-weight:800;
  line-height:1;
}

.board-top-menu-profile-copy{
  min-width:0;
  padding-top:4px;
}

.board-top-menu-profile-name{
  font-size:16px;
  font-weight:800;
  color:#f8fbff;
  line-height:1.35;
  word-break:break-word;
}

.board-top-menu-profile-sub{
  margin-top:6px;
  font-size:12px;
  line-height:1.5;
  color:#8fb5ea;
  word-break:break-word;
}

.board-top-menu-profile-link{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  color:#ffce44;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

.board-top-menu-profile-link:hover,
.board-top-menu-profile-link:focus-visible{
  color:#ffce44;
  outline:none;
}

.board-top-menu-close{
  width:34px;
  height:34px;
  flex:0 0 auto;
  border-radius:50%;
  border:1px solid rgba(125,160,218,.34);
  background:rgba(255,255,255,.05);
  color:#9fc4ff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.board-top-menu-close svg{
  width:18px;
  height:18px;
  display:block;
}

.board-top-menu-close:hover,
.board-top-menu-close:focus-visible{
  background:rgba(36,80,145,.32);
  color:#fff;
  transform:translateY(-1px);
  outline:none;
}

.board-top-menu-panel-body{
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 auto;
}

.board-top-menu-panel-dock[hidden]{
  display:none !important;
}
.board-top-menu-panel-dock{
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  align-items:stretch;
  margin:10px 12px 8px;
  padding:0;
  border-radius:12px;
  border:1px solid #e8e8e8;
  background:#fff;
  color:#111;
  overflow:hidden;
  flex:0 0 auto;
}

.board-top-menu-dock-cell{
  padding:12px 10px 14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}

.board-top-menu-dock-divider{
  width:1px;
  background:#eee;
  align-self:stretch;
}

.board-top-menu-dock-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
}

.board-top-menu-dock-icon{
  flex:0 0 auto;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.board-top-menu-dock-icon-tt{
  font-size:15px;
  font-weight:900;
  font-family:Georgia,'Times New Roman',serif;
  letter-spacing:-0.12em;
  line-height:1;
  padding:0 2px;
}

.board-top-menu-dock-title{
  font-size:15px;
  font-weight:700;
  color:#111;
}

.board-top-menu-dock-sub{
  margin:0;
  font-size:11px;
  line-height:1.45;
  color:#64748b;
  width:100%;
}

.board-top-menu-dock-action{
  margin-top:4px;
  padding:0;
  border:0;
  background:transparent;
  color:#133260;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  text-align:left;
  line-height:1.4;
}

.board-top-menu-dock-action:hover,
.board-top-menu-dock-action:focus-visible{
  text-decoration:underline;
  outline:none;
}

.board-top-menu-dock-action:disabled{
  opacity:.55;
  cursor:wait;
  text-decoration:none;
}

.board-hkjc-radio-play-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:68px;
  height:68px;
  min-width:68px;
  min-height:68px;
  line-height:1;
}
.board-hkjc-radio-play-btn:hover,
.board-hkjc-radio-play-btn:focus-visible{
  text-decoration:none;
}
.board-hkjc-radio-play-btn:hover .board-hkjc-radio-play-btn__icon,
.board-hkjc-radio-play-btn:focus-visible .board-hkjc-radio-play-btn__icon{
  opacity:.88;
}
.board-hkjc-radio-play-btn.is-loading{
  width:auto;
  min-width:68px;
  padding:0 8px;
}
.board-hkjc-radio-play-btn__vis{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:68px;
  height:68px;
  color:inherit;
}
.board-hkjc-radio-play-btn.is-loading .board-hkjc-radio-play-btn__vis{
  width:auto;
  min-width:68px;
  min-height:68px;
  justify-content:center;
}
.board-hkjc-radio-play-btn__icon{
  display:block;
  flex:0 0 auto;
  width:68px;
  height:68px;
}
.board-hkjc-radio-play-btn__icon[hidden]{
  display:none !important;
}
.board-hkjc-radio-play-btn__spinner{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  color:#133260;
  line-height:1;
}
.board-hkjc-radio-play-btn:not(.is-loading) .board-hkjc-radio-play-btn__spinner{
  position:absolute;
  left:0;
  top:0;
  width:68px;
  height:68px;
  pointer-events:none;
}
.board-hkjc-radio-play-btn__spinner[hidden]{
  display:none !important;
}


.board-hkjc-radio-tc-wrap{
  width:100%;
  max-width:min(100%,260px);
  margin-top:6px;
  border-radius:8px;
  overflow:hidden;
  background:#0f172a;
  box-sizing:border-box;
}
.board-hkjc-radio-tc-wrap[hidden]{
  display:none !important;
}
.board-hkjc-radio-tc-wrap .board-hkjc-radio-tc-video,
.board-hkjc-radio-tc-wrap .video-js{
  width:100% !important;
  max-height:44px !important;
  height:40px !important;
  font-size:10px;
}
.board-hkjc-radio-tc-wrap .vjs-tech{
  object-fit:contain;
}
.board-hkjc-radio-tc-wrap .vjs-control-bar{
  height:26px !important;
  padding:0 4px;
}
.board-hkjc-radio-tc-wrap .vjs-button > .vjs-icon-placeholder::before{
  font-size:1.15em;
  line-height:26px;
}

.board-top-menu-dock-action-muted{
  margin-top:6px;
  font-size:12px;
  font-weight:600;
  color:#64748b;
}

.board-top-menu-dock-action-muted:hover,
.board-top-menu-dock-action-muted:focus-visible{
  color:#133260;
}

.board-top-menu-dock-font-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  margin-top:2px;
}

.board-top-menu-dock-font-tap{
  padding:0 4px;
  border:0;
  background:transparent;
  color:#133260;
  font-size:20px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  min-width:28px;
}

.board-top-menu-dock-font-tap:hover,
.board-top-menu-dock-font-tap:focus-visible{
  text-decoration:underline;
  outline:none;
}

.board-top-menu-dock-font-label{
  font-size:15px;
  font-weight:800;
  color:#1677ff;
  min-width:2.5em;
  text-align:center;
}

.board-top-menu-panel-foot{
  margin-top:auto;
  padding:14px 16px 18px;
  border-top:1px solid rgba(120,150,206,.16);
  color:#86a7d8;
}

.board-top-menu-panel-foot div{
  font-size:13px;
  font-weight:700;
}

.board-top-menu-panel-foot small{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6f8ebd;
}

.board-top-menu-item{
  width:100%;
  min-height:46px;
  padding:0 16px;
  border:1px solid transparent;
  border-radius:16px;
  background:transparent;
  color:#dbeafe;
  font-size:16px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.board-top-menu-item-icon{
  display:flex;
  align-items:center;
  gap:12px;
}

.board-top-menu-item-glyph{
  width:20px;
  height:20px;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#8ec0ff;
}

.board-top-menu-item-glyph svg{
  width:100%;
  height:100%;
  display:block;
}

.board-top-menu-item:hover,
.board-top-menu-item:focus-visible,
.board-top-menu-item.is-active{
  background:linear-gradient(180deg,rgba(30,72,138,.95) 0%,rgba(23,58,115,.95) 100%);
  color:#f8fbff;
  border-color:rgba(77,138,242,.32);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 10px 20px rgba(5,13,31,.2);
  transform:translateY(-1px);
  outline:none;
}

.board-top-menu-item:hover .board-top-menu-item-glyph,
.board-top-menu-item:focus-visible .board-top-menu-item-glyph,
.board-top-menu-item.is-active .board-top-menu-item-glyph{
  color:#cfe5ff;
}

.board-head-top .board-head-actions{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
  min-width:0;
}

.board-mail-btn{
  position:relative;
  flex:0 0 auto;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.board-mail-btn[hidden]{
  display:none !important;
}

.board-mail-icon{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.board-mail-icon svg{
  width:100%;
  height:100%;
  display:block;
}

.board-mail-badge{
  position:absolute;
  top:-1px;
  right:-2px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#ff4d4f;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:16px;
  box-shadow:0 0 0 2px rgba(18,44,104,.85);
}

.tab-in-menu{
  display:none !important;
}

.board-head-top .board-head-actions .member-center-btn{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0 !important;
  padding:4px;
  color:#fff;
  text-decoration:none;
}

.board-head-top .board-head-actions .member-center-btn .member-center-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  color:#fff;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.board-head-top .board-head-actions .member-center-btn .member-center-icon svg{
  width:32px;
  height:32px;
  display:block;
}

.board-head-top .board-head-actions .member-center-btn.guest .member-center-name{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.board-head-top .board-head-actions .member-center-btn.member .member-center-name{
  position:static;
  width:auto;
  height:auto;
  margin:0;
  clip:auto;
  overflow:hidden;
  font-size:14px;
  font-weight:700;
  max-width:120px;
  color:#ffe56a;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.head-legacy{
  display:none;
}

.board-head-top > .meeting-toolbar{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:end;
  gap:1px 10px;
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:0 16px 3px 10px;
  background:transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
  min-height:0;
  flex-shrink:0;
}

.board-head-top .meeting-date-trigger{
  grid-row:2;
  grid-column:1;
  justify-self:start;
  align-self:end;
  min-width:0;
  max-width:100%;
}

.meeting-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 12px;
  width:100%;
  padding:6px 8px;
  border:1px solid rgba(218,186,95,.85);
  border-radius:4px;
  background:#fffef9;
  box-shadow:none;
}

.meeting-date-trigger{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:260px;
  padding:11px 16px;
  border:1px solid #d9dee8;
  border-radius:18px;
  background:#fff;
  color:#24364a;
  font-size:15px;
  line-height:1.2;
}

.meeting-date-trigger-text{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.meeting-date-trigger-caret{
  flex:0 0 auto;
  color:#4a5e7a;
  font-size:13px;
}

.meeting-type-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.meeting-type-btn{
  min-width:88px;
  padding:11px 18px;
  border:1px solid #ddb44f;
  border-radius:16px;
  background:#fff;
  color:#8f7b44;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
}

.meeting-type-btn.active{
  background:#ffce44;
  color:#133260;
  border-color:#ffce44;
}

.meeting-type-btn.is-placeholder{
  color:#7c7c7c;
  border-color:#d8c081;
  background:#fff;
}


.board-head-top .meeting-toolbar .meeting-type-toggle.detail-app-meeting-type-tabs{
  grid-row:2;
  grid-column:2;
  justify-self:end;
  align-self:end;
  margin-left:0 !important;
  display:inline-flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  min-width:0;
  width:auto;
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:44px;
  padding:10px 14px;
  border:none;
  border-radius:16px;
  background:#fff;
  color:#7b8798;
  font-size:15px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 6px 18px rgba(18,44,104,.06);
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn.is-active{
  background:linear-gradient(135deg,#ffce44 0%,#f5b800 100%);
  color:#133260;
  box-shadow:0 8px 18px rgba(255,196,0,.24);
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn:not(.is-active){
  background:#fff !important;
  color:#5a6a7e;
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn:hover:not(:disabled){
  color:#163a7a;
  box-shadow:0 8px 20px rgba(18,44,104,.08);
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn.is-placeholder:not(.is-active){
  opacity:1;
}

.board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn:focus-visible{
  outline:2px solid rgba(37,99,235,.38);
  outline-offset:2px;
}

.drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;z-index:5000}
.drawer{position:fixed;left:0;top:0;bottom:0;width:50%;min-width:280px;max-width:400px;background:#f0f0f0;transform:translateX(-100%);transition:.2s;z-index:5001;overflow:auto}
.drawer.open{transform:translateX(0)}
body.drawer-open .bottom-nav,
body.drawer-open .site-font-zoom-panel,
body.drawer-open .board-font-popover{
  visibility:hidden !important;
  pointer-events:none !important;
}
.drawer-head{background:linear-gradient(135deg,#133260 0%,#2A4873 100%);color:#fff;padding:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.drawer-head-left{min-width:0}
.drawer-head b{font-size:1.3em;font-weight:700;display:block;line-height:1.25}
.drawer-head-sub{font-size:15px;opacity:.9;margin-top:2px}
.drawer-version{flex-shrink:0;font-size:13px;opacity:.95;white-space:nowrap;align-self:center}
.drawer-head>div{font-size:15px}
.drawer-admin-link{padding:10px 12px;background:#133260;border-bottom:1px solid rgba(255,255,255,.2)}
.drawer-admin-link a{color:#fff;font-size:15px;text-decoration:none;font-weight:600}
.drawer-admin-link a:hover{text-decoration:underline}
.drawer-date{background:#2A4873;color:#fff;padding:10px;font-size:17px;line-height:1.4;border-top:1px solid rgba(255,255,255,.18);cursor:pointer;user-select:none}
.drawer-date:first-child{border-top:none}
.drawer-date-collapsed::after{content:' ▶';opacity:.8;font-size:15px}
.drawer-date-expanded::after{content:' ▼';opacity:.8;font-size:15px}
.drawer-date-races{background:transparent !important;box-shadow:none !important}
#drawerBody .race-item{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ddd;background:transparent !important;box-shadow:none !important;cursor:pointer}
#drawerBody .race-item.active{background:transparent !important;box-shadow:none !important}
#drawerBody .race-item .main{font-size:21px !important;line-height:1.3}
#drawerBody .race-item-time{font-size:21px !important;color:#666;box-shadow:none !important;line-height:1.3}
#drawerBody .race-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
#drawerBody .race-item-ended{font-size:20px;font-weight:700;color:#0d47a1}
.race-item .main{font-size:21px !important}
.race-item-time{font-size:21px !important;color:#666;box-shadow:none !important}
.race-item{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ddd;background:transparent !important;box-shadow:none !important;cursor:pointer}
.race-item.active{background:transparent !important;box-shadow:none !important}
.race-item .sub{font-size:15px;color:#666}

.meeting-picker-mask{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.28);
  display:none;
  z-index:90;
}

.meeting-picker-modal{
  position:fixed;
  left:50%;
  top:50%;
  width:min(94vw,420px);
  transform:translate(-50%,-50%);
  display:none;
  z-index:91;
}

.meeting-picker-modal.open,
.meeting-picker-mask.open{
  display:block;
}

.meeting-picker-card{
  overflow:hidden;
  border-radius:6px;
  background:#fff;
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}

.meeting-picker-current{
  padding:18px 18px 12px;
  background:#fff;
  color:#163f7a;
  text-align:center;
}

.meeting-picker-current-text{
  display:block;
  font-size:22px;
  font-weight:600;
  line-height:1.2;
}

.meeting-picker-calendar{
  background:#fff;
}

.meeting-picker-monthbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 16px 8px;
}

.meeting-picker-monthlabel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:#333;
  font-size:16px;
  font-weight:700;
}

.meeting-picker-nav{
  width:32px;
  height:32px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:#333;
  font-size:28px;
  line-height:1;
}

.meeting-picker-nav:disabled{
  opacity:.28;
}

.meeting-picker-weekdays,
.meeting-picker-days{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;
  padding:0 10px;
}

.meeting-picker-weekdays{
  padding-top:2px;
  padding-bottom:6px;
}

.meeting-picker-weekday{
  text-align:center;
  color:#3c3c3c;
  font-size:13px;
  line-height:30px;
}

.meeting-picker-days{
  padding-bottom:10px;
}

.meeting-picker-day{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:1px;
  width:100%;
  min-height:58px;
  padding:6px 0 4px;
  border:1px solid transparent;
  background:transparent;
  color:#303030;
  font-size:14px;
}

.meeting-picker-day.is-empty{
  pointer-events:none;
  visibility:hidden;
}

.meeting-picker-day.is-disabled{
  color:#d1d1d1;
}

.meeting-picker-day.is-selected:not(.is-today){
  border-width:2px;
  border-style:solid;
  border-color:#ff7043;
}


.meeting-picker-day.is-today{
  border:none;
  background:transparent;
  box-sizing:border-box;
}

.meeting-picker-day.is-today .meeting-picker-day-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:#122c68;
  color:#fff !important;
  font-weight:800;
  font-size:18px;
  line-height:1;
  box-sizing:border-box;
}

.meeting-picker-day.is-today.is-selected .meeting-picker-day-num{
  box-shadow:0 0 0 2px #ff7043;
}


.meeting-picker-day.is-past-meeting:not(.is-today) .meeting-picker-day-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:#e2edf6;
  color:#1a1a1a;
  font-weight:800;
  font-size:18px;
  line-height:1;
  box-sizing:border-box;
}
.meeting-picker-day.is-past-meeting.is-selected:not(.is-today) .meeting-picker-day-num{
  box-shadow:0 0 0 2px #ff7043;
}

.meeting-picker-day-num{
  font-size:18px;
  line-height:1.15;
  pointer-events:none;
}

.meeting-picker-day.is-available:not(.is-today) .meeting-picker-day-num{
  font-weight:800;
  color:#1a1a1a;
}

.meeting-picker-day-notes{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:18px;
  max-width:100%;
  pointer-events:none;
}
.meeting-picker-day-note{
  min-height:14px;
  font-size:11px;
  line-height:1.1;
  font-weight:600;
  white-space:nowrap;
  pointer-events:none;
}
.meeting-tag-overseas{
  display:inline-block;
  padding:1px 5px;
  border-radius:4px;
  background:#fff3e0;
  color:#e65100 !important;
  font-size:10px;
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}

.meeting-picker-day.is-disabled .meeting-picker-day-note{
  opacity:.3;
}

.meeting-tag-st-day,.meeting-legend-dot-st-day{color:#ef5c97}
.meeting-tag-st-night,.meeting-legend-dot-st-night{color:#c21a1c}
.meeting-tag-st-twilight,.meeting-legend-dot-st-twilight{color:#c46e00}
.meeting-tag-hv-day,.meeting-legend-dot-hv-day{color:#3291e6}
.meeting-tag-hv-night,.meeting-legend-dot-hv-night{color:#1c4a9c}
.meeting-legend-dot-overseas{background:#ff9800 !important}

.meeting-picker-legend{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px 10px;
  padding:12px 14px 14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}

.meeting-picker-legend-sep{
  flex:0 0 auto;
  color:#bbb;
  font-weight:300;
  user-select:none;
}

.meeting-picker-legend-item{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
  color:#666;
  font-size:12px;
  white-space:nowrap;
}

.meeting-picker-legend-dot{
  width:14px;
  height:14px;
  flex:0 0 auto;
  background:currentColor;
}

.meeting-picker-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  padding:12px 16px 16px;
  border-top:1px solid #e8e8e8;
}

.meeting-picker-btn-cancel,
.meeting-picker-btn-ok{
  min-width:100px;
  padding:10px 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.meeting-picker-btn-cancel{
  border:1px solid #c9ced6;
  background:#fff;
  color:#3a4555;
}

.meeting-picker-btn-ok{
  border:none;
  background:#122c68;
  color:#fff;
}


.board-race-context{
  padding:0;
  background:#fff;
  border-top:1px solid #dce3eb;
  border-bottom:1px solid #dce3eb;
}


.board-race-context-toolbar{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  background:#fff;
}
.board-race-toolbar-body{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:0;
  min-width:0;
  width:100%;
}

.board-os-session-leading{
  flex:0 0 auto;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:clamp(4px,1vw,8px);
  padding:12px 6px 12px 12px;
  border-right:1px solid #dce3eb;
  max-width:38vw;
  overflow-x:auto;
  scrollbar-width:none;
}

.board-os-session-leading::-webkit-scrollbar{display:none}

.board-os-session-slot{
  flex:0 0 auto;
  display:block;
}

.board-os-session-btn{
  width:40px;
  max-width:40px;
  aspect-ratio:1;
  margin:0;
  border-radius:999px;
  border:none;
  background:#e2edf6;
  color:#111;
  font-size:clamp(11px,3vw,13px);
  font-weight:800;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
  padding:0;
  box-sizing:border-box;
}

.board-os-session-btn.is-active{
  background:#122c68;
  color:#fff;
}

.board-race-no-list{
  --race-count:12;
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  gap:clamp(4px,1.2vw,12px);
  justify-content:center;
  align-items:flex-start;
  overflow-x:auto;
  overflow-y:visible;
  padding:12px 10px 0;
  background:#fff;
  scrollbar-width:thin;
}

.board-race-no-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1 1 0;
  min-width:0;
  max-width:48px;
  gap:6px;
  padding-bottom:0;
}

.board-race-no-btn{
  width:100%;
  max-width:40px;
  aspect-ratio:1;
  height:auto;
  margin:0 auto;
  border-radius:999px;
  border:none;
  background:#e2edf6;
  color:#111;
  font-size:clamp(11px, calc(88vw / (var(--race-count, 12) + 5)), 16px);
  font-weight:800;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
  box-sizing:border-box;
  padding:0;
}

.board-race-no-btn.is-active{
  background:#122c68;
  color:#fff;
}


.board-race-no-bar{
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:40px;
  min-width:0;
  height:6px;
  border-radius:9999px;
  flex-shrink:0;
  margin-bottom:0;
  align-self:center;
}

.board-race-no-bar--turf{background:#59b814}

.board-race-no-bar--aw{background:#cb7645}

.board-race-spotlight{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  padding:8px 14px;
  border-top:1px solid #dce3eb;
  background:linear-gradient(180deg,#f8fbff 0%,#f3f7fc 100%);
  overflow:hidden;
}
#boardRaceSpotlight[hidden],
.board-race-spotlight.board-race-spotlight--off-tab,
body:not(.board-tab-q) #boardRaceSpotlight{
  display:none !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  border:none !important;
  background:transparent !important;
  overflow:hidden !important;
  gap:0 !important;
}

.board-race-spotlight-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
  min-width:0;
}

.board-race-spotlight-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.board-race-spotlight-label{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  background:#122c68;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.board-race-spotlight-label--lulufa{
  background:#1B4422;
}

.board-race-spotlight-line{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  white-space:nowrap;
  overflow:hidden;
  color:#122c68;
  font-size:clamp(11px,2.8vw,15px);
  font-weight:700;
  line-height:1.35;
}

.board-race-spotlight-line--fada{
  color:#122c68;
}

.board-race-spotlight-line--lulufa{
  color:#1B4422;
}

.board-race-spotlight-text{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.board-race-spotlight-empty{
  color:#64748b;
  font-weight:600;
}

.board-race-spotlight-guest{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  width:100%;
  min-width:0;
}
.board-race-spotlight--guest{
  background:linear-gradient(180deg,#fff9f3 0%,#fff5eb 100%);
}
.board-race-spotlight-guest-msg{
  margin:0;
  color:#334155;
  font-size:13px;
  font-weight:600;
  line-height:1.45;
}
.board-race-spotlight-guest-inline{
  color:#122c68;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}
.board-race-spotlight-guest-inline:hover{
  color:#0b1d45;
}
.board-race-spotlight-guest-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.board-race-spotlight-guest-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}
.board-race-spotlight-guest-btn--primary{
  border-color:#122c68;
  background:#122c68;
  color:#fff;
}
.board-race-spotlight-guest-btn:hover{
  filter:brightness(1.05);
  text-decoration:none;
}

.board-race-detail.board-race-venue-text{
  margin:0;
  padding:8px 12px 4px;
  font-size:clamp(14px,2.9vw,16px);
  line-height:1.4;
  border:none;
  background:transparent;
  overflow:hidden;
  text-align:left;
  box-sizing:border-box;
}
.board-race-venue-block{
  width:100%;
  min-width:0;
}
.board-race-venue-line--full{
  margin:0;
  padding:0;
  width:100%;
  min-width:0;
  font-size:inherit;
  font-weight:600;
  line-height:1.35;
  color:#334155;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  word-break:break-word;
}
.board-race-venue-line--full .board-race-venue-race{
  color:#122c68;
  font-size:1.06em;
  font-weight:800;
}
.board-race-venue-line--full .board-race-venue-event{
  color:#0f172a;
  font-weight:700;
}
.board-race-venue-line--full .board-race-venue-meta{
  color:#334155;
  font-weight:600;
}
.board-race-venue-line--full .board-race-venue-sub{
  color:#64748b;
  font-weight:500;
}
.board-race-venue-sep{
  color:#94a3b8;
  font-weight:500;
}
@media (min-width:768px){
  .board-race-venue-line--full{
    display:block;
    -webkit-line-clamp:unset;
    white-space:nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
    word-break:normal;
  }
}
#boardRaceDetail[hidden]{
  display:none !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
}

@media (min-width:768px){
  .board-race-spotlight{
    padding:9px 16px;
  }
  .board-race-spotlight-label{
    height:26px;
    font-size:13px;
  }
  .board-race-spotlight-line{
    font-size:clamp(12px,1.15vw,16px);
  }
  .board-race-detail.board-race-venue-text{
    padding:9px 16px 5px;
    font-size:clamp(17px,1.05vw,19px);
  }
  .board-race-venue-line--full .board-race-venue-race{
    font-size:1.08em;
  }
}

body.meeting-picker-open{
  overflow:hidden;
}

html.has-board-top-menu-open,
html.has-board-top-menu-open body{
  overflow:hidden;
}

@media (max-width: 640px){
  .board-top-menu-btn{
    width:36px;
    height:36px;
    border-radius:7px;
  }

  .board-head-brand{
    font-size:30px;
    padding-left:8px;
    margin-left:2px;
    letter-spacing:.04em;
  }

  .board-top-menu-dropdown{
    width:min(88vw,320px);
  }

  .board-head-top > .meeting-toolbar{
    padding:0 12px 3px 8px;
    gap:1px 6px;
    overflow:visible;
  }

  .board-head-top .board-head-actions .member-center-btn.member .member-center-name{
    font-size:13px;
    max-width:88px;
  }

  .board-head-top .board-head-actions .member-center-btn .member-center-icon{
    width:36px;
    height:36px;
  }

  .board-mail-btn{
    width:36px;
    height:36px;
  }

  .board-mail-icon{
    width:30px;
    height:30px;
  }

  .board-head-top .board-head-actions .member-center-btn .member-center-icon svg{
    width:28px;
    height:28px;
  }

  .meeting-toolbar{
    gap:8px;
    padding:6px;
  }

  .meeting-date-trigger{
    padding:9px 12px;
    font-size:14px;
  }

  .meeting-type-toggle{
    flex:0 0 auto;
    justify-content:flex-end;
    gap:6px;
  }

  .meeting-type-btn{
    min-width:0;
    padding:9px 12px;
    font-size:14px;
  }

  
  .board-head-top .meeting-date-trigger{
    justify-self:stretch;
    width:100%;
    max-width:80%;
    min-width:0;
    box-sizing:border-box;
    padding:8.5px 11px;
    font-size:14px;
  }

  .board-head-top .meeting-date-trigger .meeting-date-trigger-text{
    min-width:0;
    flex:1 1 auto;
  }

  .board-head-top .meeting-toolbar .meeting-type-toggle.detail-app-meeting-type-tabs{
    gap:6px;
  }

  .board-head-top .meeting-type-toggle.detail-app-meeting-type-tabs .meeting-type-btn{
    min-height:39px;
    font-size:14px;
    padding:8px 11px;
  }
}

/* Tipsme unified UI pass */
.meeting-picker-day.is-today .meeting-picker-day-num,
.meeting-picker-btn-ok,
.board-os-session-btn.is-active,
.board-race-spotlight-label{
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
  color:#fff;
}
.board-race-spotlight-label--lulufa{
  background:linear-gradient(135deg,#1B4422 0%,#2d6a3a 100%);
  color:#fff;
}
.meeting-picker-day.is-selected:not(.is-today),
.meeting-picker-day.is-today.is-selected .meeting-picker-day-num,
.meeting-picker-day.is-past-meeting.is-selected:not(.is-today) .meeting-picker-day-num{
  border-color:#ffce44;
  box-shadow:0 0 0 2px #ffce44;
}
.meeting-picker-btn-cancel,
.board-os-session-btn{
  background:#fff8dc;
  color:#133260;
  border-color:rgba(255,206,68,.72);
}
.board-race-spotlight-line{
  color:#133260;
}
.board-race-spotlight-line--lulufa{
  color:#1B4422;
}
.board-race-venue-line--full .board-race-venue-race,
.board-race-venue-line--full .board-race-venue-event{
  color:#133260;
}
.board-race-venue-line--full .board-race-venue-meta{
  color:#334155;
}
.board-race-venue-line--full .board-race-venue-sub{
  color:#475569;
}

/* Keep race-number pills close to the official HKJC palette. */
.board-race-no-btn{
  background:#e2edf6;
  color:#000;
  border:none;
  box-shadow:none;
}
.board-race-no-btn.is-active{
  background:#163b8f;
  color:#fff;
}
/* board-bundle-critical.css 的源文件之一。
 * 修改后须重建：cd /www/wwwroot/www.66888.hk && php scripts/build-board-bundles.php
 * 完整 CSS 源列表见 scripts/build-board-bundles.php 的 $cssSources。
 * 懒加载样式（board-replay.css、board-tips.css 等）不在 bundle 内，改那些无需重建。 */
.rank-wp-table-ref{table-layout:fixed;width:100%;min-width:0}
#panel-q .rank-wp-table.rank-wp-table-ref{min-width:100% !important;width:100% !important;max-width:100% !important}
#panel-q .rank-wp-wrap-q,
#panel-q .rank-q-table-font-scaler{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
}
#panel-q .rank-wp-table.rank-wp-table-ref{
  table-layout:fixed !important;
  width:100% !important;
  max-width:100% !important;
  min-width:100% !important;
  border-radius:0 !important;
  box-shadow:none !important;
  border-collapse:collapse !important;
  border:0 !important;
  margin:0 !important;
  font-size:clamp(10px,2.6vw,15px);
}
#panel-q .rank-wp-wrap-q{overflow-x:hidden !important}
.rank-q-font-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 12px 8px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
  border-bottom:1px solid #dce3eb;
}
.rank-q-font-tools-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.rank-q-font-tools[hidden]{display:none !important}
.rank-q-font-tools-label{
  font-size:14px;
  font-weight:600;
  color:#64748b;
  line-height:1;
  user-select:none;
}
.rank-q-font-btn{
  flex:0 0 auto;
  width:34px;
  height:34px;
  padding:0;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg,#ffce44 0%,#f7b500 100%);
  color:#133260;
  font-size:22px;
  font-weight:800;
  line-height:34px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(255,206,68,.35);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.rank-q-font-btn:hover:not(:disabled),
.rank-q-font-btn:focus-visible:not(:disabled){
  filter:brightness(1.03);
  outline:none;
}
.rank-q-font-btn:active:not(:disabled){transform:scale(.96)}
.rank-q-font-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.rank-q-font-btn--reset{
  width:auto;
  min-width:44px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  line-height:30px;
  background:#fff;
  color:#133260;
  border:1px solid rgba(19,50,96,.18);
  box-shadow:0 1px 4px rgba(15,23,42,.06);
}
.rank-q-font-btn--reset:hover:not(:disabled),
.rank-q-font-btn--reset:focus-visible:not(:disabled){
  background:#fff8dc;
  border-color:rgba(255,206,68,.72);
  filter:none;
}
.rank-q-view-mode{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.rank-q-view-mode-btn{
  min-width:52px;
  height:30px;
  padding:0 12px;
  border:1px solid rgba(19,50,96,.18);
  border-radius:999px;
  background:#fff;
  color:#64748b;
  font-size:13px;
  font-weight:700;
  line-height:28px;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.rank-q-view-mode-btn.is-active{
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
  border-color:#133260;
  color:#fff;
  box-shadow:0 2px 6px rgba(19,50,96,.18);
}
.rank-q-view-mode-btn:hover:not(.is-active),
.rank-q-view-mode-btn:focus-visible:not(.is-active){
  background:#fff8dc;
  border-color:rgba(255,206,68,.72);
  color:#133260;
  outline:none;
}
.rank-q-table-font-scaler{
  display:block;
  width:100%;
  box-sizing:border-box;
  transform-origin:top left;
}
#panel-q .rank-wp-table-ref col.rank-col-name{width:34%}
#panel-q .rank-wp-table-ref col.rank-col-wp{width:14%}
#panel-q .rank-wp-table-ref col.rank-col-index{width:14%}
#panel-q .rank-wp-table-ref col.rank-col-odd{width:14%}
#panel-q .rank-wp-table-ref col.rank-col-time{width:24%}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head{
  background:#f8f8f8 !important;
  color:#4b5563 !important;
  padding-left:4px !important;
  padding-right:14px !important;
  text-align:center !important;
  height:auto !important;
  min-height:30px;
  position:relative;
}
#panel-q .rank-wp-table-ref .rank-th-wp-labels{
  display:inline;
  font-size:inherit;
  font-weight:inherit;
  white-space:nowrap;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head.sortable{
  cursor:pointer;
  user-select:none;
}
#panel-q .rank-wp-table-ref .rank-th-wp-label{
  display:inline;
  font-size:inherit;
  font-weight:inherit;
  line-height:inherit;
  color:inherit;
  user-select:none;
}
#panel-q .rank-wp-table-ref .rank-th-wp-label.is-active{color:#122c68}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-index-col-head.rank-sort-p-active .th-label,
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head.rank-sort-p-active .rank-th-wp-label[data-wp-label="place"],
#panel-q .rank-wp-table-ref > thead > tr > th.rank-index-col-head.rank-sort-w-active .th-label,
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head.rank-sort-w-active .rank-th-wp-label[data-wp-label="win"]{
  color:#122c68;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow{
  position:absolute !important;
  right:8px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  display:block !important;
  margin-left:0 !important;
  width:10px;
  height:14px;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow::before,
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow::after{
  content:'';
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  border-left:4px solid transparent;
  border-right:4px solid transparent;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow::before{
  top:0;
  border-bottom:6px solid rgba(31,45,61,.72);
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow::after{
  bottom:0;
  border-top:6px solid rgba(31,45,61,.72);
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow[asc="1"]::before{border-bottom-color:#122c68}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow[asc="0"]::after{border-top-color:#122c68}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row{
  justify-content:center;
  align-items:baseline;
  gap:3px;
  width:100%;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-value{
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  flex:0 1 auto;
  min-width:0;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap{
  display:inline-flex !important;
  align-items:baseline !important;
  justify-content:center !important;
  gap:1px !important;
  width:auto !important;
  max-width:100%;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd{
  min-height:20px !important;
  padding:0 !important;
  line-height:1 !important;
  font-weight:400 !important;
  flex:0 0 auto !important;
  width:auto !important;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{
  min-height:20px !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  line-height:1 !important;
  font-weight:400 !important;
  flex:0 0 auto !important;
  width:auto !important;
  box-sizing:border-box;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down{background:#f03939 !important;color:#fff !important}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up{background:#2aa217 !important;color:#fff !important}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{background:#993300 !important;color:#fff !important}
#panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-inline-row{
  justify-content:center;
  gap:0;
  width:100%;
}
#panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-wt-value{
  font-size:20px !important;
  font-weight:400 !important;
  line-height:1 !important;
  color:#0f172a !important;
}
#panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-draw-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-draw-value--empty{
  font-size:13px !important;
  font-weight:400 !important;
  color:#6b7280;
}
#panel-q .rank-gate-draw-badge,
#panel-q .rank-gate-combo-draw .rank-gate-draw-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 2px;
  line-height:1;
  border-radius:50%;
  font-weight:700;
  font-size:13px;
  background:#122c68;
  color:#fff;
  border:none;
  box-sizing:border-box;
  vertical-align:middle;
}
#panel-q .rank-wp-table-ref .rank-best-time-cell .rank-time-value{
  font-size:17px !important;
  font-weight:400 !important;
  line-height:1 !important;
}
.rank-q-result-payout{
  margin:6px 0 10px;
}
.pingyu-card-panel{
  margin:0;
  padding:10px 10px 14px;
  background:#fff;
  border-radius:0;
}
.pingyu-card-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media(min-width:769px){
  .pingyu-card-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
.pingyu-horse-card{
  border:1px solid #d7e5f5;
  border-left:5px solid #122c68;
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 10px rgba(18,44,104,.08);
  overflow:hidden;
}
.pingyu-horse-card.tone-blue{border-left-color:#2563eb}
.pingyu-horse-card.tone-gold{border-left-color:#f59e0b}
.pingyu-horse-card.tone-green{border-left-color:#16a34a}
.pingyu-horse-card.tone-purple{border-left-color:#7c3aed}
.pingyu-horse-card.tone-orange{border-left-color:#ea580c}
.pingyu-horse-card.tone-rose{border-left-color:#e11d48}
.pingyu-horse-card.tone-cyan{border-left-color:#0891b2}
.pingyu-horse-card.tone-slate{border-left-color:#475569}
.pingyu-horse-main{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 13px 8px;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
  border-bottom:1px solid #edf3fb;
}
.pingyu-horse-no{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#122c68;
  color:#fff;
  font-size:18px;
  font-weight:900;
}
.pingyu-horse-info{min-width:0;flex:1}
.pingyu-horse-title-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px 10px;
}
.pingyu-horse-name{
  flex:1 1 auto;
  min-width:0;
  font-size:20px;
  font-weight:900;
  color:#122c68;
  line-height:1.22;
  word-break:break-word;
}
.pingyu-horse-meta-inline{
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  flex-wrap:nowrap;
  justify-content:flex-end;
  gap:0;
  margin-left:auto;
  max-width:58%;
  font-size:12px;
  color:#64748b;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
}
.pingyu-meta-item{display:inline-flex;align-items:baseline;gap:2px}
.pingyu-meta-sep{
  margin:0 4px;
  color:#cbd5e1;
  font-weight:400;
}
.pingyu-meta-winodd .pingyu-meta-winodd-label{
  margin-right:2px;
  color:#64748b;
  font-weight:700;
}
.pingyu-meta-winodd .rank-odd-wp-wrap,
.pingyu-meta-winodd .wp-down,
.pingyu-meta-winodd .wp-up,
.pingyu-meta-winodd .wp-val-plain{
  font-size:12px;
  font-weight:800;
}
.pingyu-horse-comment{
  padding:12px 13px 14px;
  color:#1f2937;
  font-size:15px;
  line-height:1.65;
  white-space:pre-wrap;
  word-break:break-word;
}
.pingyu-horse-comments{
  display:flex;
  flex-direction:column;
  padding:0 0 4px;
}
.pingyu-comment-section{
  padding:10px 13px 12px;
}
.pingyu-comment-section+.pingyu-comment-section{
  border-top:1px solid #edf3fb;
}
.pingyu-comment-label{
  margin-bottom:5px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  color:#64748b;
}
.pingyu-comment-section--ai .pingyu-comment-label{color:#0d9488}
.pingyu-comment-section--ai.is-pending .pingyu-comment-label{color:#94a3b8}
.pingyu-comment-text{
  color:#1f2937;
  font-size:15px;
  line-height:1.65;
  white-space:pre-wrap;
  word-break:break-word;
}
.pingyu-comment-text--pending{
  color:#94a3b8;
  font-weight:700;
}
.pingyu-no-comment{color:#94a3b8;font-weight:700}
.pingyu-panel-empty{
  padding:20px 14px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#f8fbff;
  color:#64748b;
  font-size:14px;
  font-weight:800;
  text-align:center;
}
.rank-q-result-payout-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  border:1px solid #f0b429;
  border-radius:12px;
  background:linear-gradient(135deg,#fff8d8 0%,#ffe08a 48%,#ffc247 100%);
  box-shadow:0 2px 8px rgba(146,90,0,.18), inset 0 1px 0 rgba(255,255,255,.72);
  color:#102a62;
  padding:9px 13px;
  font-size:16px;
  font-weight:900;
  line-height:1.35;
  text-align:center;
  cursor:pointer;
}
.rank-q-result-payout-toggle:active{
  transform:translateY(1px);
}
.rank-q-result-payout-toggle .result-meeting-payout-prefix{
  color:#0f2b69;
  font-weight:950;
}
.rank-q-result-payout-toggle .result-meeting-payout-chips{
  flex:0 1 auto;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rank-q-result-payout-toggle .result-meeting-payout-no{
  color:#d71920;
  font-size:1.15em;
  font-weight:950;
}
.rank-q-result-payout-toggle .result-meeting-payout-name{
  color:#111827;
  font-weight:850;
}
.rank-q-result-payout-text{
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  overflow:hidden;
}
.rank-q-result-payout-arrow{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#17368b;
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 1px 4px rgba(15,23,42,.22);
}
.rank-q-result-payout-body{
  margin-top:9px;
  padding:8px;
  border:1px solid #f0d58a;
  border-radius:12px;
  background:#fffaf0;
}
.rank-q-result-payout-body .official-panel-dividend{
  margin:0;
}
#panel-q .rank-wp-table-ref th,#panel-q .rank-wp-table-ref td{text-align:center;vertical-align:middle}
#panel-q .rank-wp-table-ref td:nth-child(1){padding:4px 8px !important;font-size:14px !important;font-weight:400 !important}
#panel-q .rank-wp-table-ref td:nth-child(1){text-align:left !important}
#panel-q .rank-wp-table-ref td:nth-child(1) .horse-name{display:inline-block !important;width:auto !important;max-width:none !important;font-size:28px !important;font-weight:400 !important;color:#003399 !important;line-height:1 !important;white-space:nowrap !important;text-align:left !important}
#panel-q .rank-ref-horse-cell{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:36px;flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box}
#panel-q .rank-ref-horse-top{display:flex;align-items:baseline;gap:8px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#panel-q .rank-ref-horse-top-main{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1 1 auto}
#panel-q .rank-ref-horse-pace-slot{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;line-height:1;pointer-events:none;font-size:14px}
#panel-q .rank-ref-horse-arrow-slot{display:flex;align-items:flex-end;justify-content:flex-end;line-height:1}
#panel-q .rank-ref-horse-pace-slot .horse-pace-badge{font-size:14px !important;line-height:1.12 !important;padding:1px 4px !important;min-width:0 !important;font-weight:700 !important;max-width:100%}
#panel-q .rank-ref-horse-no{flex:0 0 auto;font-size:18px;font-weight:800;line-height:1;color:#111}
#panel-q .rank-ref-horse-bottom{display:grid;grid-template-columns:max-content minmax(0,auto);align-items:start;justify-content:start;column-gap:4px;row-gap:0;width:auto;max-width:100%;min-width:0}
#panel-q .rank-ref-horse-bottom .rank-horse-silk{width:19px;height:26px;object-fit:contain;display:block}
#panel-q .rank-ref-horse-bottom .rank-silk-empty{font-size:12px;color:#94a3b8}
#panel-q .rank-ref-silk{display:flex;align-items:flex-start;justify-content:flex-start;align-self:start;flex:0 0 auto}
#panel-q .rank-ref-meta{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;align-self:start;gap:2px;min-width:0;width:auto;text-align:left}
#panel-q .rank-ref-meta-lines{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0;flex:1 1 auto}
#panel-q .rank-ref-jockey,#panel-q .rank-ref-trainer{display:block;min-width:0;width:100%;text-align:left}
#panel-q .rank-ref-weight{display:none !important}
#panel-q .rank-ref-jockey .label-tag,#panel-q .rank-ref-weight .label-tag,#panel-q .rank-ref-trainer .label-tag{display:none !important}
#panel-q .rank-ref-jockey .person-name,#panel-q .rank-ref-trainer .person-name{font-size:17px !important;line-height:1.12 !important;color:#111827 !important;white-space:nowrap;font-weight:500 !important;text-align:left}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-up,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down50{display:flex !important;align-items:center !important;justify-content:center !important;width:100% !important;min-height:28px !important;padding:4px 0 !important;border-radius:0 !important;font-size:15px !important;font-weight:400 !important;box-sizing:border-box}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-val-plain{background:transparent !important;color:#2457d6 !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down{background:#f03939 !important;color:#fff !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-up{background:#2aa217 !important;color:#fff !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down50{background:#993300 !important;color:#fff !important}

#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  width:100% !important;
  max-width:100% !important;
  vertical-align:middle;
  box-sizing:border-box;
}
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-down,
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-up,
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-down50,
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-scr-exit-odd{
  width:auto !important;
  flex:8 1 0% !important;
  min-width:0;
}
#panel-q .rank-wp-table-ref .rank-odd-cell .rank-odd-wp-wrap .wp-trend{
  flex:2 0 0 !important;
  min-width:0;
  margin-left:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box;
  font-size:1.15em !important;
  font-weight:900 !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-trend{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-left:1px !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1 !important;
  position:relative;
  top:1px;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-trend.arrow-up,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-trend.arrow-down{
  font-size:15px !important;
  font-weight:400 !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline{gap:3px;line-height:1;width:100%;padding:2px 0}
#panel-q .rank-wp-table-ref .rank-index-inline-row{justify-content:center;gap:3px;width:100%}
#panel-q .rank-wp-table-ref .rank-index-inline-label{font-size:12px;font-weight:700 !important;color:#122c68}
#panel-q .rank-wp-table-ref .rank-index-inline-value,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{
  font-size:22px !important;
  font-weight:400 !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline-value{color:#0f172a}
#panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-win-value:not(.rank-index-tier){color:#0f172a;font-weight:400 !important}
#panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-place-value:not(.rank-index-tier){color:#6b7280;font-weight:400 !important}
#panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-tier{
  font-weight:400 !important;
  background:linear-gradient(135deg,#EB3349,#F45C43) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  color:transparent !important;
}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-time-value{
  font-size:19px !important;
  font-weight:400 !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-last6-plain{
  display:inline-block;
  max-width:100%;
  font-size:17px !important;
  font-weight:400 !important;
  line-height:1 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#panel-q .rank-wp-table-ref .rank-comment-inline{
  gap:3px;
  line-height:1;
  width:100%;
  padding:2px 0;
}
#panel-q .rank-wp-table-ref .rank-comment-inline-row{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:26px;
}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-win .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-win .wp-scr-exit-odd{color:#0f172a !important;font-weight:400 !important}
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-place .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-place .wp-scr-exit-odd{color:#6b7280 !important;font-weight:400 !important}
#panel-q .rank-wp-table-ref .rank-index-inline-divider{width:88%;height:1px;background:#cbd5e1;opacity:.95}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2) .rank-index-inline-divider,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3) .rank-index-inline-divider{display:none !important}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(3)::before,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3)::before{display:none !important}
#panel-q .rank-wp-table-ref .rank-last6-plain{display:inline-block;max-width:100%;font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-q .rank-wp-table-ref td:nth-child(n+2),#panel-q .rank-wp-table-ref .rank-gate-cell,#panel-q .rank-wp-table-ref .rank-best-time-cell,#panel-q .rank-wp-table-ref .rank-last6-data-cell,#panel-q .rank-wp-table-ref .rank-comment-col-cell,#panel-q .rank-wp-table-ref .rank-time-value,#panel-q .rank-wp-table-ref .rank-last6-plain{font-weight:400 !important}
#panel-q .rank-wp-table-ref thead th{
  font-size:var(--rank-q-horse-name-font, clamp(14px,4vw,28px)) !important;
  font-weight:400 !important;
  color:#4b5563 !important;
}
#panel-q .rank-wp-table-ref thead th .th-label{
  font-size:inherit !important;
  font-weight:inherit !important;
  color:inherit !important;
}
#panel-q .rank-wp-table-ref .rank-time-value-fastest,#panel-q .rank-wp-table-ref .rank-best-time-fastest{font-weight:400 !important}

:root{
  --idx-col-no-width: 52px;
  --idx-col-name-width: 150px;
  --idx-no-size: 20px;
  --idx-silk-width: 48px;
  --idx-silk-height: 28px;
  --idx-no-silk-gap: 6px;
  --idx-name-size: 21px;
  --idx-name-line-height: 1.06;
  --idx-meta-size: 14px;
  --idx-meta-line-height: 1.08;
  --idx-meta-gap: 4px;
  --idx-cell-padding-y: 6px;
  --idx-cell-padding-x: 6px;
  --idx-name-block-padding-y: 3px;
}
.qwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:0;padding:0}
#panel-q{padding-bottom:50px}
.rank-placeholder-card{margin:8px 0 0;padding:18px 14px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;text-align:center}
.rank-placeholder-title{font-size:16px;font-weight:800;color:#122c68}
.rank-placeholder-desc{margin-top:6px;font-size:13px;line-height:1.6;color:#64748b}
.rank-card-list{display:flex;flex-direction:column;gap:0;margin:0 -12px;background:#fff;border-top:1px solid #e5e7eb}
.rank-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:13px;padding:11px 12px;border-bottom:1px solid #e5e7eb;background:#fff}
.rank-card:nth-child(odd){background:#ffffff}
.rank-card:nth-child(even){background:#f8fafc}
.rank-card-silk{display:flex;align-items:flex-start;justify-content:center;padding-top:12px}
.rank-card-silk .rank-horse-silk{width:110px;height:110px;display:block;object-fit:contain}
.rank-card-body{min-width:0}
.rank-card-head{display:flex;align-items:baseline;gap:3px;line-height:1.1;color:#111827}
.rank-card-no{font-size:17px;font-weight:400;color:#111827;white-space:nowrap;letter-spacing:-.01em}
.rank-card-name{font-size:23px;font-weight:400;color:#111827;min-width:0;line-height:1.08}
.rank-card-name .horse-name{display:inline;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}
.rank-card-line{margin-top:4px;font-size:14px;line-height:1.34;color:#374151;word-break:break-word;letter-spacing:-.01em}
.rank-card-line strong{font-weight:700;color:#111827}
@media(max-width:768px){
  .rank-card-list{margin:0 -10px}
  .rank-card{grid-template-columns:44px minmax(0,1fr);gap:11px;padding:10px 10px}
  .rank-card-silk{padding-top:11px}
  .rank-card-silk .rank-horse-silk{width:39px;height:44px}
  .rank-card-no{font-size:16px}
  .rank-card-name{font-size:20px}
  .rank-card-line{margin-top:3px;font-size:13.5px;line-height:1.32}
}
.qwrap-offset{margin-left:28%;max-width:72%}
@media(max-width:768px){.qwrap-offset{margin-left:0;max-width:100%}}
.qtable{font-size:12px;min-width:680px;border-collapse:collapse;border:0;border-bottom:1px solid #122c68;background:#fff}
.qtable td,.qtable th{padding:4px 6px;border:1px solid #ccc;vertical-align:middle}
.qtable tr:first-child th{background:#6b7280;color:#fff;text-align:center;font-weight:600}
.qtable th:first-child{text-align:center;position:sticky;left:0;z-index:1;min-width:2.2em}
.qtable tr:first-child th:first-child{background:#6b7280;color:#fff}
.qtable tr:not(:first-child) th:first-child{background:#fff;color:#1f2d3d;text-align:center}
.qtable td{text-align:right}
.panel#panel-q .qtable td{text-align:center}
.qtable td.q-na{background:#eaeaea;color:#777;font-weight:normal}
.qtable th.q-gap,.qtable td.q-gap{width:6px;min-width:6px;padding:0;border-left:2px solid #ccc;background:#f0f0f0}
.qin-odds-slide-container{position:relative;overflow:hidden;width:100%;border-radius:0;background:transparent}
.qin-odds-slide{position:relative;overflow:hidden;width:100%;border-radius:0;background:transparent}
.qin-table{display:block;width:100%;border-radius:0;overflow:hidden;background:#fff;border:0;border-bottom:1px solid #122c68;box-sizing:border-box}
.qin-odds-table{width:100%;max-width:100%;font-size:clamp(13px,2.8vw,15px);border-collapse:collapse;border:0;background:#fff;table-layout:fixed;border-radius:0;overflow:hidden}
.qin-odds-table td,.qin-odds-table th{padding:6px 4px;border:1px solid #ccc;vertical-align:middle;text-align:center;overflow:visible;word-break:normal;box-sizing:border-box;min-height:28px;line-height:1.3}
.qin-odds-table td>span,.qin-odds-table th>span,.qin-odds-table td>div,.qin-odds-table th>div{display:flex;align-items:center;justify-content:center;width:100%;text-align:center}
.qin-odds-table .iwn-odds-table-row td:not(.left-number):not(.right-number):not(.center-number):not(.q-empty),.qin-odds-table .iwn-odds-table-row.sec td:not(.left-number):not(.right-number):not(.center-number):not(.q-empty){white-space:nowrap}
.qin-odds-table-header td{background:#e5e7eb;color:#1f2d3d;font-weight:600}
.qin-odds-table-title{text-align:left;font-size:1.35em;font-weight:700}
.qin-odds-table-QIN .qin-odds-table-title{background:#122c68 !important;color:#fff}
.qin-odds-table-QIN .qin-odds-table-header td:not(.qin-odds-table-title),.qin-odds-table-QIN .left-number,.qin-odds-table-QIN .right-number,.qin-odds-table-QIN .center-number{background:#6176a0 !important;color:#fff !important;font-weight:600}
.qin-odds-table-QPL .qin-odds-table-title{background:#122c68 !important;color:#fff}
.qin-odds-table-QPL .qin-odds-table-header td:not(.qin-odds-table-title),.qin-odds-table-QPL .left-number,.qin-odds-table-QPL .right-number,.qin-odds-table-QPL .center-number{background:#6176a0 !important;color:#fff !important;font-weight:600}
.qin-odds-table .center-number{background:#d1d5db;color:#1f2d3d;font-weight:600}
.qin-odds-table .left-number,.qin-odds-table .right-number{background:#e5e7eb;text-align:center;color:#1f2d3d;font-weight:600;min-width:0}
.qin-odds-table .q-empty{background:#fff;min-width:0}
.qin-odds-table .iwn-odds-table-row td,.qin-odds-table .iwn-odds-table-row.sec td{min-height:28px}
.qin-odds-table tr.iwn-odds-table-row td{background:#fff}
.qin-odds-table tr.iwn-odds-table-row td.left-number,.qin-odds-table tr.iwn-odds-table-row td.right-number,.qin-odds-table tr.iwn-odds-table-row td.center-number{background:#fff}
.qin-odds-table tr.iwn-odds-table-row.sec td{background:#f0f0f0}
.qin-odds-table tr.iwn-odds-table-row.sec td.left-number,.qin-odds-table tr.iwn-odds-table-row.sec td.right-number,.qin-odds-table tr.iwn-odds-table-row.sec td.center-number{background:#f0f0f0}
.qin-odds-table tr.iwn-odds-table-row td:not(.left-number):not(.right-number):not(.center-number),.qin-odds-table tr.iwn-odds-table-row.sec td:not(.left-number):not(.right-number):not(.center-number){color:#122c68}
.qin-odds-table .iwn-odds-table-row td.favourite,.qin-odds-table .iwn-odds-table-row.sec td.favourite{background:#f03939 !important;color:#fff;font-weight:600}
.qin-odds-table .iwn-odds-table-row td.q-down20,.qin-odds-table .iwn-odds-table-row.sec td.q-down20{background:#2aa217 !important;color:#fff;font-weight:600}
.qin-odds-table .iwn-odds-table-row td.q-down50,.qin-odds-table .iwn-odds-table-row.sec td.q-down50{background:#993300 !important;color:#fff;font-weight:600}
.qin-odds-table .iwn-odds-table-row td.favourite span,.qin-odds-table .iwn-odds-table-row.sec td.favourite span,.qin-odds-table .iwn-odds-table-row td.q-down20 span,.qin-odds-table .iwn-odds-table-row.sec td.q-down20 span,.qin-odds-table .iwn-odds-table-row td.q-down50 span,.qin-odds-table .iwn-odds-table-row.sec td.q-down50 span{color:#fff !important}
.qin-odds-table .iwn-odds-table-row td.q-scr,.qin-odds-table .iwn-odds-table-row.sec td.q-scr{color:#A3A3A3 !important}
.qin-odds-table .iwn-odds-table-row td.q-scr span,.qin-odds-table .iwn-odds-table-row.sec td.q-scr span{color:#A3A3A3 !important}
.qin-table-overflow{margin-top:0;border-top:0;border-bottom:1px solid #122c68}
.qin-odds-table-overflow{width:100%;max-width:100%;table-layout:fixed}
.qin-odds-table-overflow .left-number,.qin-odds-table-overflow .right-number,.qin-odds-table-overflow .qin-odds-table-header td:not(.qin-odds-table-title){background:#6176a0 !important;color:#fff !important;font-weight:600}
.qin-odds-table-overflow .q-empty{background:#fff}
.qin-odds-table tr:first-child td:first-child{border-top-left-radius:8px}
.qin-odds-table tr:first-child td:last-child{border-top-right-radius:8px}
.qin-odds-table tr:last-child td:first-child{border-bottom-left-radius:8px}
.qin-odds-table tr:last-child td:last-child{border-bottom-right-radius:8px}
.qin-odds-table .q-toggle-cell{padding:0 !important;background:#122c68 !important}
.q-toggle-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;min-height:34px;padding:4px 6px;border:none;border-radius:0;background:#FECF13;color:#122C68;font-size:clamp(12px,2.2vw,16px);font-weight:800;line-height:1;cursor:pointer;animation:q-toggle-heartbeat .9s infinite ease-in-out;box-shadow:0 5px 15px rgba(254,207,19,.4);transition:transform .1s ease,background .15s ease,box-shadow .15s ease}
.q-toggle-btn-label{display:block}
.q-toggle-btn-arrow{display:block;width:0;height:0;margin-top:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid #122C68;transition:transform .18s ease}
.q-toggle-btn.active .q-toggle-btn-arrow{transform:rotate(90deg)}
.q-toggle-btn:hover{animation:none;transform:scale(1.06);background:#FFE045;box-shadow:0 8px 25px rgba(254,207,19,.6)}
.q-toggle-btn.active{background:#FFD83D;animation:none}
.rank-q-inline-water{margin-top:0}
.rank-q-inline-water[hidden],.rank-q-water-panel[hidden]{display:none !important}
.rank-q-toggle-group[data-q-toggle-group="qin"] .rank-q-inline-water:not([hidden]){margin-bottom:14px}
.rank-q-simple-widget{margin-top:14px;border:1px solid #dbe5f1;border-radius:16px;background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%);box-shadow:0 8px 22px rgba(15,23,42,.05);overflow:hidden;touch-action:manipulation}
.rank-q-simple-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:14px 16px;border:none;background:transparent;color:#122c68;font-size:16px;font-weight:800;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
.rank-q-simple-toggle-arrow{display:block;width:10px;height:10px;border-right:2px solid #122c68;border-bottom:2px solid #122c68;transform:rotate(45deg);transition:transform .18s ease}
.rank-q-simple-toggle.active .rank-q-simple-toggle-arrow{transform:rotate(225deg)}
.rank-q-simple-toggle-title{display:block}
.rank-q-simple-body{padding:0 14px 12px}
.rank-q-simple-widget--guest .rank-q-simple-body{padding:4px 14px 16px}
.rank-q-simple-widget--guest .board-race-spotlight-guest{margin:0;padding:0;background:transparent;border:none;box-shadow:none}
.rank-q-simple-head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.rank-q-simple-desc{font-size:12px;line-height:1.55;color:#64748b}
.rank-q-simple-filters{display:flex;flex-direction:column;gap:12px}
.rank-q-simple-filter-group{display:flex;flex-direction:column;gap:8px}
.rank-q-simple-filter-label{font-size:12px;font-weight:800;color:#122c68;letter-spacing:.04em}
.rank-q-simple-check-row{display:flex;flex-wrap:wrap;gap:8px}
.rank-q-simple-check{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid #d7e3f4;color:#334155;font-size:12px;font-weight:700}
.rank-q-simple-check input{margin:0}
.rank-q-simple-custom-stepper{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:28px;background:linear-gradient(180deg,#fbfcfe 0%,#f3f6fb 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 8px 18px rgba(15,23,42,.06)}
.rank-q-simple-stepper-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border:none;border-radius:50%;background:#fff;color:#16325c;font-size:30px;font-weight:500;line-height:1;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.10);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rank-q-simple-stepper-btn.is-minus{font-size:34px}
.rank-q-simple-stepper-btn:hover{transform:translateY(-1px)}
.rank-q-simple-stepper-btn:active{transform:translateY(0)}
.rank-q-simple-custom-input{flex:1 1 160px;min-width:0;height:68px;padding:0 20px;border:none;border-radius:999px;background:#fff;color:#102a49;font-size:max(16px,52px);font-weight:500;line-height:1;text-align:center;box-shadow:inset 0 0 0 1px rgba(219,229,241,.9);-webkit-tap-highlight-color:transparent}
.rank-q-simple-custom-input:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(18,44,104,.16),0 0 0 4px rgba(18,44,104,.08)}
.rank-q-simple-custom-input::-webkit-outer-spin-button,.rank-q-simple-custom-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.rank-q-simple-custom-input[type=number]{-moz-appearance:textfield}
.rank-q-simple-suffix-row{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:wrap;margin-top:4px}
.rank-q-simple-suffix-input{flex:1 1 200px;min-width:0;height:42px;padding:0 14px;border:1px solid #d7e3f4;border-radius:12px;background:#fff;color:#102a49;font-size:14px;font-weight:600;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.rank-q-simple-suffix-input:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(18,44,104,.14)}
.rank-q-simple-suffix-save{flex-shrink:0;padding:10px 18px;border:none;border-radius:12px;background:#122c68;color:#fff !important;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(18,44,104,.2);-webkit-tap-highlight-color:transparent}
.rank-q-simple-suffix-save:hover{background:#0f2460}
.rank-q-simple-suffix-save:active{transform:translateY(1px)}
.rank-q-simple-custom-tags{display:flex;flex-wrap:wrap;gap:8px}
.rank-q-simple-custom-tag{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:none;border-radius:999px;background:#dbeafe;color:#122c68;font-size:12px;font-weight:800;cursor:pointer}
.rank-q-simple-results{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.rank-q-simple-section{display:flex;flex-direction:column;gap:8px}
.rank-q-simple-section-title{font-size:13px;font-weight:800;color:#122c68}
.rank-q-simple-matrix-hint{font-size:12px;line-height:1.5;color:#64748b;margin:0 0 10px}
.rank-q-simple-section--hcols .rank-q-simple-section-title{margin-bottom:6px}
.rank-q-simple-index-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(132px,1fr));
  gap:10px;
  width:100%;
  box-sizing:border-box;
}
.rank-q-simple-index-col{
  min-width:0;
  border:1px solid #dbe5f1;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-sizing:border-box;
}
.rank-q-simple-index-head{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:14px;
  font-weight:900;
  text-align:center;
  padding:7px 6px;
  line-height:1.25;
  color:#fff;
  letter-spacing:.02em;
}
.rank-q-simple-index-head.is-high{background:#1247b8}
.rank-q-simple-index-head.is-mid{background:#3B82F6}
.rank-q-simple-index-head.is-base{background:#64748b}
.rank-q-simple-index-num{flex-shrink:0;font-variant-numeric:tabular-nums}
.rank-q-simple-head-copy{
  flex-shrink:0;
  margin:0;
  padding:3px 8px;
  border:none;
  border-radius:999px;
  background:#f97316;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 1px 0 rgba(0,0,0,.12);
  -webkit-tap-highlight-color:transparent;
}
.rank-q-simple-head-copy:hover{background:#ea580c}
.rank-q-simple-head-copy:active{background:#c2410c}
.rank-q-simple-index-chips{display:flex;flex-direction:column;gap:5px;padding:7px 6px 8px}
.rank-q-simple-chip{padding:4px 6px;border-radius:8px;background:#fffbf5;border:1px solid rgba(200,150,110,.32)}
.rank-q-simple-chip .rank-q-simple-pair-code{display:block;font-size:12px;font-weight:700;color:#111 !important;word-break:break-word}
#panel-q .rank-q-simple-chip .rank-q-simple-pair-code{color:#111 !important}
.rank-q-simple-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #dbe5f1;transition:background .15s ease,border-color .15s ease}
.rank-q-simple-line-text{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.rank-q-simple-line-tag{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;background:#122c68;color:#fff;font-size:11px;font-weight:800}
.rank-q-simple-line-score{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:2px 8px;border-radius:999px;background:#e8eef8;color:#0f172a;font-size:12px;font-weight:900;font-variant-numeric:tabular-nums}
.rank-q-simple-line--q-high{border-color:#1247b8;background:linear-gradient(90deg,rgba(18,71,184,.14) 0%,#fff 55%)}
.rank-q-simple-line--q-high .rank-q-simple-line-score{background:#1247b8;color:#fff}
.rank-q-simple-line--q-high .rank-q-simple-line-text code{color:#0c1e4a}
.rank-q-simple-line--q-mid{border-color:#5a8fd4;background:linear-gradient(90deg,rgba(90,143,212,.12) 0%,#fff 50%)}
.rank-q-simple-line--q-mid .rank-q-simple-line-score{background:#5a8fd4;color:#fff}
.rank-q-simple-line--q-base .rank-q-simple-line-score{background:#f1f5f9;color:#334155}

.rank-q-simple-line--sort-strip{
  border-color:rgba(200,150,110,.42);
  background:var(--rank-q-sort-bg,#ffe5cc) !important;
  transition:background .2s ease,border-color .2s ease;
}
.rank-q-simple-line--sort-strip .rank-q-simple-line-tag{background:#5c3e28;color:#fff9f0}
.rank-q-simple-line--sort-strip .rank-q-simple-line-score{
  background:rgba(0,0,0,.18);
  color:#fff !important;
  border:1px solid rgba(255,255,255,.35);
  box-sizing:border-box;
}
.rank-q-simple-line-text code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:13px;font-weight:700;color:#0f172a;background:transparent;padding:0;white-space:pre-wrap;word-break:break-word}
.rank-q-simple-line--sort-strip .rank-q-simple-line-text code.rank-q-simple-pair-code{color:#111 !important}
#panel-q .rank-q-simple-line--sort-strip .rank-q-simple-line-text code.rank-q-simple-pair-code{color:#111 !important}
.rank-q-simple-copy{flex:0 0 auto;height:32px;padding:0 12px;border:none;border-radius:999px;background:#2563eb;color:#fff;font-size:12px;font-weight:800;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rank-q-simple-copy:hover{background:#1d4ed8}
.rank-q-simple-copy:active{background:#1e40af}
.rank-q-simple-empty,.rank-q-simple-empty-inline{font-size:12px;line-height:1.6;color:#64748b}
.panel#panel-wp .table th,.panel#panel-wp .table td{border:1px solid #e5e9ef}
.panel#panel-q .table th,.panel#panel-q .table td{border-bottom:1px solid #e8edf2}
.rank-wp-wrap:not(.rank-wp-wrap-q){overflow-x:auto;overflow-y:visible;width:100%;padding:0;margin:0;box-sizing:border-box;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;position:relative}
.rank-wp-wrap-q{margin-bottom:10px;background:transparent;position:relative;overflow-x:hidden !important;overflow-y:hidden !important;border-radius:0;scrollbar-gutter:auto !important}
#panel-q .rank-wp-wrap.rank-wp-wrap-q{width:100% !important;max-width:100% !important;margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important}
.rank-wp-wrap-q.is-race-switch-loading .rank-wp-table-ref thead{opacity:.42;pointer-events:none}
.rank-wp-wrap-q.is-race-switch-loading .rank-wp-table-ref > tbody > tr.rank-wp-switch-skeleton > td{
  height:36px;
  padding:6px 8px !important;
  vertical-align:middle !important;
  background:#fff;
  border-bottom:1px solid #eef2f7;
}
.rank-wp-sk{
  display:block;
  border-radius:6px;
  background:linear-gradient(90deg,#e8edf3 25%,#f5f8fc 37%,#e8edf3 63%);
  background-size:400% 100%;
  animation:rankWpSkShimmer 1.15s ease infinite;
}
.rank-wp-sk-name{width:68%;max-width:128px;height:20px;margin:0 auto 0 10%}
.rank-wp-sk-index{width:34px;height:14px;margin:0 auto}
.rank-wp-sk-wp{width:42px;height:14px;margin:0 auto}
.rank-wp-sk-gate{width:38px;height:14px;margin:0 auto}
.rank-wp-sk-time{width:52px;height:14px;margin:0 auto}
.rank-wp-sk-comment{width:22px;height:14px;margin:0 auto;border-radius:999px}
@keyframes rankWpSkShimmer{
  0%{background-position:100% 50%}
  100%{background-position:0 50%}
}
.rank-wp-switch-status{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:9px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,231,245,.95);
  box-shadow:0 8px 28px rgba(18,44,104,.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  pointer-events:none;
}
.rank-wp-switch-status__spinner{
  flex:0 0 auto;
  width:16px;
  height:16px;
  border:2px solid #dbe7f5;
  border-top-color:#133260;
  border-right-color:#2A4873;
  border-radius:50%;
  animation:rankWpSwitchSpin .75s linear infinite;
}
.rank-wp-switch-status__text{
  font-size:13px;
  font-weight:800;
  color:#334155;
  line-height:1.35;
  white-space:nowrap;
}
@keyframes rankWpSwitchSpin{to{transform:rotate(360deg)}}
@media(max-width:768px){
  .rank-wp-switch-status{max-width:calc(100% - 24px);padding:8px 14px}
  .rank-wp-switch-status__text{font-size:12px;white-space:normal;text-align:center}
  .rank-wp-sk-name{height:18px;margin-left:8%}
}
.rank-wp-wrap::-webkit-scrollbar{height:10px}
.rank-wp-wrap::-webkit-scrollbar-track{background:transparent}
.rank-wp-wrap::-webkit-scrollbar-thumb{background:rgba(107,122,136,.45);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.rank-wp-wrap::-webkit-scrollbar-thumb:hover{background:rgba(107,122,136,.62);border:2px solid transparent;background-clip:padding-box}
@media(max-width:768px){.rank-wp-wrap{scrollbar-width:none;-ms-overflow-style:none}.rank-wp-wrap::-webkit-scrollbar{display:none}}
.rank-q-block{margin-top:0;padding-top:0;border-top:none}
.rank-q-water-block{margin-top:14px}
.rank-q-water-block.is-collapsed,.rank-water-legend.is-collapsed{display:none}
.rank-q-water-block{display:none !important}
.rank-water-legend{display:none !important}
.rank-q-title{font-size:18px;font-weight:700;color:#1f2d3d;margin-bottom:8px}
.panel#panel-q .rank-q-block .qin-odds-table-QIN .qin-odds-table-title,.panel#panel-q .rank-q-block .qin-odds-table-QPL .qin-odds-table-title{background:#122c68 !important;color:#fff}
.panel#panel-q .rank-q-block .qin-odds-table-QIN .qin-odds-table-header td:not(.qin-odds-table-title),.panel#panel-q .rank-q-block .qin-odds-table-QIN .left-number,.panel#panel-q .rank-q-block .qin-odds-table-QIN .right-number,.panel#panel-q .rank-q-block .qin-odds-table-QIN .center-number,.panel#panel-q .rank-q-block .qin-odds-table-QPL .qin-odds-table-header td:not(.qin-odds-table-title),.panel#panel-q .rank-q-block .qin-odds-table-QPL .left-number,.panel#panel-q .rank-q-block .qin-odds-table-QPL .right-number,.panel#panel-q .rank-q-block .qin-odds-table-QPL .center-number{background:#6176a0 !important;color:#fff !important;font-weight:600}
.rank-q-block .qin-water-table-QIN .qin-odds-table-title,.rank-q-block .qin-water-table-QPL .qin-odds-table-title{background:#122c68 !important;color:#fff}
.rank-q-block .qin-water-table-QIN .qin-odds-table-header td:not(.qin-odds-table-title),.rank-q-block .qin-water-table-QIN .left-number,.rank-q-block .qin-water-table-QIN .right-number,.rank-q-block .qin-water-table-QIN .center-number,.rank-q-block .qin-water-table-QPL .qin-odds-table-header td:not(.qin-odds-table-title),.rank-q-block .qin-water-table-QPL .left-number,.rank-q-block .qin-water-table-QPL .right-number,.rank-q-block .qin-water-table-QPL .center-number{background:#6176a0 !important;color:#fff !important;font-weight:600}
.rank-q-block .qin-water-table td.q-water-base,.rank-q-block .qin-water-table tr.iwn-odds-table-row.sec td.q-water-base{background:#fff !important;color:#122c68;font-weight:400}
.rank-q-block .qin-water-table td.q-water-mid,.rank-q-block .qin-water-table tr.iwn-odds-table-row.sec td.q-water-mid{background:#3B82F6 !important;color:#fff;font-weight:400}
.rank-q-block .qin-water-table td.q-water-high,.rank-q-block .qin-water-table tr.iwn-odds-table-row.sec td.q-water-high{background:#1247b8 !important;color:#fff;font-weight:400}
.rank-q-block .qin-water-table td.q-water-mid span,.rank-q-block .qin-water-table tr.iwn-odds-table-row.sec td.q-water-mid span,.rank-q-block .qin-water-table td.q-water-high span,.rank-q-block .qin-water-table tr.iwn-odds-table-row.sec td.q-water-high span{color:#fff !important}
.rank-water-legend{margin-top:10px}
.rank-water-legend .legend-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}
.rank-water-legend .legend-label{font-weight:700}
.rank-water-legend .legend-right{display:flex;align-items:center;gap:4px}
.rank-water-legend .q-water-refresh-state{color:#64748b;font-size:12px;white-space:nowrap}
@media(max-width:768px){
  .rank-q-block .qin-water-table .qin-odds-table-title{font-size:1.08em}
  .rank-water-legend .q-water-refresh-state{font-size:11px}
  .q-toggle-btn{min-height:30px;font-size:12px}
  .q-toggle-btn-arrow{margin-top:0;border-top-width:4px;border-bottom-width:4px;border-left-width:6px}
  .rank-q-simple-widget{padding:12px 10px}
  .rank-q-simple-custom-stepper{gap:10px;padding:12px}
  .rank-q-simple-stepper-btn{flex-basis:44px;width:44px;height:44px;font-size:26px}
  .rank-q-simple-stepper-btn.is-minus{font-size:30px}
  .rank-q-simple-custom-input{height:56px;font-size:max(16px,38px);padding:0 14px}
  .rank-q-simple-line{align-items:flex-start;flex-direction:column}
  .rank-q-simple-copy{width:100%}
  .rank-q-simple-index-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
  .rank-q-simple-index-head{gap:4px;padding:6px 5px;font-size:13px;white-space:nowrap}
  .rank-q-simple-head-copy{padding:2px 7px;font-size:11px}
}
@keyframes q-toggle-heartbeat{
  0%{transform:scale(1)}
  25%{transform:scale(1.08);background:#FFDE4D}
  35%{transform:scale(1.08)}
  45%{transform:scale(1)}
  55%{transform:scale(1.05)}
  65%{transform:scale(1)}
  100%{transform:scale(1)}
}
.rank-wp-table:not(.rank-wp-table-ref){width:max-content;min-width:100%;max-width:none;font-size:15px;table-layout:auto;border-collapse:separate;border-spacing:0;background:#fff;border-radius:6px;overflow:visible;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.rank-wp-table:not(.rank-wp-table-ref) > thead{background:#f8f8f8;box-shadow:0 2px 4px rgba(0,0,0,.03)}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th,
.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td{border:none;vertical-align:middle;white-space:nowrap;text-align:center;box-sizing:border-box;background:#fff;position:relative}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th{padding:3.78px 5.04px;height:30px;background:#f8f8f8;font-weight:500;font-size:12.45px;text-align:left;color:#333}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background:linear-gradient(90deg,transparent,#eee,transparent);box-shadow:0 1px 2px rgba(0,0,0,.02)}
.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td{padding:0 2px;height:36px}
.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background:linear-gradient(90deg,rgba(0,0,0,.01),#eee,rgba(0,0,0,.01));box-shadow:0 1px 3px rgba(0,0,0,.015)}
.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr:last-child > td::after{display:none}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th.sortable{cursor:pointer;user-select:none}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th.sortable:hover{color:#122c68}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th.sortable::after{display:none}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th.sortable.asc::after{display:none}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th.sortable.desc::after{display:none}
#panel-q .rank-wp-table-ref > thead > tr > th{
  padding-top:8px !important;
  padding-bottom:8px !important;
  vertical-align:middle !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th{padding-left:6px !important;padding-right:16px !important}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col{
  padding-left:0 !important;
  padding-right:0 !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.sortable:nth-child(2),
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head,
#panel-q .rank-wp-table-ref > thead > tr > th.sortable:nth-child(4){
  text-align:center !important;
  padding-left:4px !important;
  padding-right:14px !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.sortable:nth-child(5),
#panel-q .rank-wp-table-ref > thead > tr > th.rank-time-col-head{
  text-align:center !important;
  padding-left:6px !important;
  padding-right:14px !important;
  white-space:nowrap !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1).sortable{text-align:center !important}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(2) .th-label,
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(4) .th-label,
#panel-q .rank-wp-table-ref > thead > tr > th.rank-time-col-head .th-label{
  display:block;
  width:100%;
  text-align:center !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th .th-label{display:block;white-space:nowrap}
#panel-q .rank-wp-table-ref > thead > tr > th .th-sort-arrow{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:10px;height:14px}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-sort-arrow{right:4px !important}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-wp-col-head .rank-th-wp-labels{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
}
#panel-q .rank-wp-table-ref > thead > tr > th .th-sort-arrow::before,
#panel-q .rank-wp-table-ref > thead > tr > th .th-sort-arrow::after{content:'';position:absolute;left:50%;transform:translateX(-50%);border-left:4px solid transparent;border-right:4px solid transparent}
#panel-q .rank-wp-table-ref > thead > tr > th .th-sort-arrow::before{top:0;border-bottom:6px solid rgba(31,45,61,.72)}
#panel-q .rank-wp-table-ref > thead > tr > th .th-sort-arrow::after{bottom:0;border-top:6px solid rgba(31,45,61,.72)}
#panel-q .rank-wp-table-ref > thead > tr > th.sortable[asc="1"] .th-sort-arrow::before{border-bottom-color:#122c68}
#panel-q .rank-wp-table-ref > thead > tr > th.sortable[asc="0"] .th-sort-arrow::after{border-top-color:#122c68}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-time-col-head{
  cursor:pointer;
  user-select:none;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-time-col-head .th-label{
  width:100%;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-time-col-head:hover{color:#122c68}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-comment-col-head,
#panel-q .rank-wp-table-ref > thead > tr > th.rank-comment-col-head .th-label{
  text-align:center !important;
  padding-left:6px !important;
  padding-right:6px !important;
}

#panel-q .rank-wp-table-ref > thead > tr > th:not(:last-child):not(:first-child)::before,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:not(:last-child):not(:first-child)::before{
  content:'';
  position:absolute;
  right:0;
  top:10%;
  width:1px;
  height:80%;
  background:linear-gradient(180deg,rgba(217,222,232,0),rgba(217,222,232,.95) 14%,rgba(217,222,232,.95) 86%,rgba(217,222,232,0));
  pointer-events:none;
}
#panel-q .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(1),
#panel-q .rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(1){position:sticky !important;left:0 !important;width:80px !important;min-width:80px !important;max-width:80px !important}
#panel-q .rank-wp-table > thead > tr > th:nth-child(1){z-index:20 !important;background:#f8f8f8 !important;box-shadow:2px 0 3px -2px rgba(0,0,0,.1) !important;padding:3px 2px !important;text-align:center !important}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1){padding-left:8px !important;padding-right:18px !important;text-align:center !important;background:#f8f8f8 !important;box-shadow:inset -1px 0 0 rgba(100,116,139,.45),2px 0 6px -4px rgba(15,23,42,.16) !important}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1) .th-label{text-align:center !important;width:100%}
#panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1){z-index:15 !important;background:#fff !important;box-shadow:2px 0 3px -2px rgba(0,0,0,.05) !important;font-size:18px !important;font-weight:900 !important;color:#111827 !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1){box-shadow:inset -1px 0 0 rgba(100,116,139,.55),4px 0 10px -3px rgba(15,23,42,.18) !important}
.draw-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;height:1.35em;line-height:1;border-radius:50%;font-weight:700;font-size:0.85em;background:#fff;color:#0d47a1;border:1px solid #0d47a1;box-sizing:border-box}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(2),
.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(2){width:52px;min-width:52px;max-width:52px}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(3),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(3){width:46px;min-width:46px;max-width:46px}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(4),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(4),
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(5),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(5){width:58px;min-width:58px;max-width:58px}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(6),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(6){width:58px;min-width:58px;max-width:58px}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(7),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(7){width:54px;min-width:54px;max-width:54px}
.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(8),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(8){width:54px;min-width:54px;max-width:54px}
.rank-wp-table > tbody > tr.sortTr > td:nth-child(2),.rank-wp-table > tbody > tr.sortTr > td:nth-child(3),.rank-wp-table > tbody > tr.sortTr > td:nth-child(4),.rank-wp-table > tbody > tr.sortTr > td:nth-child(5),.rank-wp-table > tbody > tr.sortTr > td:nth-child(6),.rank-wp-table > tbody > tr.sortTr > td:nth-child(7),.rank-wp-table > tbody > tr.sortTr > td:nth-child(8){font-size:13.86px;font-weight:700;color:#333;background:#fff}
.rank-wp-table > tbody > tr.sortTr .horse-name{font-size:inherit;font-weight:400;color:#003399;cursor:pointer;line-height:inherit}
.rank-wp-table > tbody > tr.sortTr .horse-name:hover{color:#122c68}
.rank-wp-table > tbody > tr.sortTr .last6-bold-red{font-weight:700;color:#c00}
.rank-wp-table > tbody > tr.sortTr .wp-trend{
  margin-left:1px;
  vertical-align:middle;
  font-size:calc(1em + 2px);
  font-weight:900;
  line-height:1;
}
.rank-odd-cell .rank-odd-wp-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  max-width:100%;
  vertical-align:middle;
  box-sizing:border-box;
}
.rank-odd-cell .rank-odd-wp-wrap .wp-val-plain,
.rank-odd-cell .rank-odd-wp-wrap .wp-down,
.rank-odd-cell .rank-odd-wp-wrap .wp-up,
.rank-odd-cell .rank-odd-wp-wrap .wp-down50,
.rank-odd-cell .rank-odd-wp-wrap .wp-scr-exit-odd{
  flex:8 1 0%;
  min-width:0;
}
.rank-odd-cell .rank-odd-wp-wrap .wp-trend{
  flex:2 0 0;
  min-width:0;
  margin-left:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  font-size:calc(1em + 2px);
  font-weight:900;
  line-height:1;
}
.rank-wp-table > tbody > tr.sortTr .scr-exit-text{font-size:75%;font-weight:600}

.rank-wp-table > tbody > tr.sortTr .wp-scr-exit-odd,
.rank-wp-table > tbody > tr.sortTr .wp-scr-exit-odd .scr-exit-text{color:#A3A3A3 !important}
.rank-wp-table > tbody > tr.sortTr .wp-scr-exit-odd{background:transparent !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-scr-exit-odd,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-scr-exit-odd .scr-exit-text{color:#A3A3A3 !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-scr-exit-odd{background:transparent !important}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-odd-cell .wp-scr-exit-odd,
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-odd-cell .wp-scr-exit-odd .scr-exit-text{color:#A3A3A3 !important}
.rank-horse-silk{width:18px;height:24px;object-fit:cover;display:block;margin:0 auto}
.rank-silk-empty{display:inline-block;color:#94a3b8;font-size:13px;line-height:1}
#panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1){padding:5.04px 2px !important}
#panel-q .info-col{display:flex !important;align-items:center !important;gap:1px !important;justify-content:flex-start !important;width:100% !important}
#panel-q .horse-left{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;margin-right:1px !important;width:22px !important;min-width:22px !important;max-width:22px !important;flex:0 0 22px !important}
#panel-q .horse-number{font-size:10px !important;font-weight:700 !important;color:#000 !important;text-align:center !important;margin-bottom:0 !important;line-height:1 !important}
#panel-q .silk-img{width:35px !important;height:40px !important;border-radius:1px !important;display:flex !important;align-items:center !important;justify-content:center !important;overflow:hidden !important}
#panel-q .silk-img .rank-horse-silk{width:35px !important;height:40px !important;object-fit:contain !important;display:block !important}
#panel-q .horse-info{flex:1 !important;max-width:55px !important;min-width:0 !important}
#panel-q .horse-name-wrap{display:block !important;width:50px !important;max-width:50px !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;margin-bottom:1px !important}
#panel-q .rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(1) .horse-name{display:block !important;font-size:11px !important;font-weight:400 !important;color:#003399 !important;line-height:1.1 !important;width:50px !important;max-width:50px !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important}
#panel-q .main-info{display:flex !important;flex-direction:column !important;align-items:flex-start !important;margin-top:0 !important;gap:0 !important}
#panel-q .jockey-row,#panel-q .weight-row{display:flex !important;align-items:center !important;gap:1px !important}
#panel-q .label-tag{background:#f0f0f0 !important;padding:.5px 1px !important;border-radius:1px !important;font-size:6px !important;font-weight:700 !important;color:#333 !important;line-height:1 !important}
#panel-q .person-name,#panel-q .weight-value{font-size:7px !important;color:#333 !important;line-height:1 !important}
.rank-gate-cell,.rank-best-time-cell,.rank-last6-data-cell,.rank-comment-col-cell{font-size:13.86px;font-weight:700;color:#333;text-align:center}
.rank-odd-cell .wp-val-plain,.rank-odd-cell .wp-down,.rank-odd-cell .wp-up,.rank-odd-cell .wp-down50{background:transparent !important;padding:0;font-size:13.86px;font-weight:700}
.rank-index-inline{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.05}
.rank-index-inline-row{display:flex;align-items:center;gap:4px}
.rank-index-inline-label{font-size:11px;font-weight:800;color:#122c68}
.rank-index-inline-value{font-size:14px;font-weight:400;color:#0f172a}
.rank-index-inline-value.rank-index-place-value{color:#6b7280}
.rank-index-inline-value.rank-index-tier{font-weight:400 !important}
.rank-last6-plain{display:inline-block;max-width:100%;font-size:17px;font-weight:700;line-height:1.15;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.board-race-overseas #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name,
body.board-race-overseas #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1) .horse-name{font-weight:400 !important;color:#122c68 !important}
body.board-race-overseas #panel-q .rank-ref-horse-no,
body.board-race-overseas #panel-q .horse-number,
body.board-race-overseas #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1){font-weight:400 !important;color:#122c68 !important}
body:not(.board-race-overseas) .rank-card-no,
body:not(.board-race-overseas) .rank-card-name,
body:not(.board-race-overseas) .rank-card-name .horse-name{
  color:#122c68 !important;
  font-weight:400 !important;
}
body:not(.board-race-overseas) #panel-q .rank-ref-horse-no,
body:not(.board-race-overseas) #panel-q .horse-number,
body:not(.board-race-overseas) #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1){
  color:#122c68 !important;
  font-weight:400 !important;
}
body:not(.board-race-overseas) #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1) .horse-name,
body:not(.board-race-overseas) #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name{
  color:#003399 !important;
  font-weight:400 !important;
}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-index-inline-label,
body.board-race-overseas #panel-q .rank-index-inline-label,
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-win-value:not(.rank-index-tier),
body.board-race-overseas #panel-q .rank-index-inline-value.rank-index-win-value:not(.rank-index-tier){font-weight:400 !important;color:#0f172a !important}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-place-value:not(.rank-index-tier),
body.board-race-overseas #panel-q .rank-index-inline-value.rank-index-place-value:not(.rank-index-tier){font-weight:400 !important;color:#6b7280 !important}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-tier,
body.board-race-overseas #panel-q .rank-index-inline-value.rank-index-tier{font-weight:400 !important}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-win .wp-val-plain,
body.board-race-overseas #panel-q .rank-wp-odd-inline .rank-wp-odd-row-win .wp-val-plain{font-weight:400 !important;color:#0f172a !important}
body.board-race-overseas #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-wp-odd-row-place .wp-val-plain,
body.board-race-overseas #panel-q .rank-wp-odd-inline .rank-wp-odd-row-place .wp-val-plain{font-weight:400 !important;color:#6b7280 !important}
.rank-wp-table > tbody > tr.sortTr > td.rank-best-time-cell{font-variant-numeric:tabular-nums;font-size:18.86px !important;font-weight:700}
.rank-time-value{display:inline-block;max-width:100%;font-size:18.86px !important;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-time-value-fastest,.rank-wp-table > tbody > tr.sortTr .rank-best-time-fastest{color:#c00;font-weight:800}
.rank-gate-combo{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1 !important}
.rank-gate-combo-draw{display:inline-flex;align-items:center;vertical-align:middle;margin-left:2px}
#panel-q .rank-gate-combo-line-wt .rank-gate-combo-draw{
  line-height:1.1 !important;
}
#panel-q .rank-gate-col-cell{vertical-align:middle !important;text-align:center !important;padding:3px 4px !important;overflow:hidden}
#panel-q .rank-gate-combo-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  width:100%;
  max-width:100%;
  min-width:0;
  line-height:1.1;
  overflow:hidden;
  box-sizing:border-box;
}
#panel-q .rank-gate-combo-line{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
#panel-q .rank-gate-combo-line-wt .rank-gate-combo{
  font-size:20px !important;
  font-weight:400 !important;
  line-height:1.1 !important;
}
#panel-q .rank-gate-combo-line-pace .horse-pace-badge{
  font-size:20px !important;
  font-weight:400 !important;
  min-width:0;
  max-width:100%;
  padding:0 4px;
  line-height:1.15;
  border-radius:3px;
  letter-spacing:0;
}
#panel-q .rank-sort-active-cell .rank-gate-combo-line-pace .horse-pace-badge{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}

#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+1) > td:not(.rank-sort-active-cell){background:#ffffff !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+3) > td:not(.rank-sort-active-cell){background:#e2edf6 !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+1) > td:nth-child(1):not(.rank-sort-active-cell){background:#ffffff !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+3) > td:nth-child(1):not(.rank-sort-active-cell){background:#e2edf6 !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+3) + tr.rank-wp-form-detail-tr > td{background:#e2edf6 !important}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr:nth-child(4n+1) + tr.rank-wp-form-detail-tr > td{background:#fff !important}
.rank-comment-empty{display:inline-block;font-size:12px;font-weight:700;color:#94a3b8}
.rank-comment-trigger{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:none;border-radius:999px;background:#eef4ff;color:#122c68;cursor:pointer;box-shadow:inset 0 0 0 1px #dbe8fb;transition:background .16s ease,color .16s ease,transform .16s ease}
.rank-comment-trigger:hover{background:#dfeaff;color:#0f2357}
.rank-comment-trigger:focus-visible{outline:2px solid #6176a0;outline-offset:2px}
.rank-comment-trigger:active{transform:scale(.96)}
.rank-comment-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px}
.rank-comment-trigger-icon svg{display:block;width:16px;height:16px}
.rank-note-trigger,.rank-note-inline-btn{display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.rank-note-trigger{width:26px;height:26px;border-radius:999px;background:#fff7ed;color:#c2410c;box-shadow:inset 0 0 0 1px #fed7aa}
.rank-note-trigger:hover{background:#ffedd5;color:#9a3412}
.rank-note-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px}
.rank-note-trigger-icon svg{display:block;width:14px;height:14px}
.rank-pingyu-single.rank-ai-analysis-cell{display:flex;align-items:center;justify-content:center;gap:6px}
.rank-comment-inline.rank-ai-analysis-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.rank-sort-active-cell{background:var(--rank-sort-bg)!important;color:var(--rank-sort-fg)!important}
.rank-sort-active-cell .horse-name,.rank-sort-active-cell .rank-last6-plain,.rank-sort-active-cell .person-name,.rank-sort-active-cell .weight-value,.rank-sort-active-cell .rank-index-inline-label,.rank-sort-active-cell .rank-index-inline-value:not(.rank-index-tier){color:var(--rank-sort-fg)!important}
.rank-comment-modal{display:block !important;left:0 !important;right:0 !important;top:auto !important;bottom:0 !important;transform:translateY(calc(100% + 24px)) !important;width:100% !important;max-width:769px !important;min-width:0 !important;max-height:min(82vh,720px) !important;margin:0 auto !important;pointer-events:none;transition:transform .28s ease}
.rank-comment-modal.show{display:block !important;transform:translateY(0) !important;pointer-events:auto}
.rank-comment-modal .horse-detail-inner{border-radius:22px 22px 0 0;border-bottom:0;box-shadow:0 -18px 42px rgba(4,15,31,.22);background:linear-gradient(180deg,#fbfdff 0%,#f3f7fc 100%)}
.rank-comment-modal .horse-detail-head{padding:10px 16px 8px;border-bottom:none;background:transparent}
.rank-comment-modal .horse-detail-head h3{font-size:17px}
.rank-comment-body{padding:0 16px 18px}
.rank-comment-sheet{display:flex;flex-direction:column;gap:12px}
.horse-detail-sheet-body{padding:0 16px 18px}
.horse-detail-sheet{display:flex;flex-direction:column;gap:12px}
.actor-detail-sheet-body{padding:0 16px 18px}
.actor-detail-sheet{display:flex;flex-direction:column;gap:12px}
.horse-detail-sheet .detail-section{margin-top:0}
.horse-detail-sheet .detail-section + .detail-section{margin-top:12px}
.horse-detail-sheet .detail-section-current{border-radius:18px}
.horse-detail-sheet .detail-section-history,
.horse-detail-sheet .detail-past-race,
.horse-detail-sheet .detail-section-detail,
.horse-detail-sheet .detail-section-summary{margin-left:0}
.horse-detail-sheet .detail-section-history::before,
.horse-detail-sheet .detail-section-history::after{display:none}
.actor-detail-sheet .detail-section{margin-top:0}
.actor-detail-sheet .detail-section + .detail-section{margin-top:12px}
.actor-detail-sheet .detail-section-history,
.actor-detail-sheet .detail-past-race,
.actor-detail-sheet .detail-section-detail,
.actor-detail-sheet .detail-section-summary{margin-left:0}
.actor-detail-sheet .detail-section-history::before,
.actor-detail-sheet .detail-section-history::after{display:none}
.horse-detail-sheet-modal .horse-detail-head{padding:10px 16px 8px;border-bottom:none;background:transparent}
.horse-detail-sheet-modal .horse-detail-head h3{font-size:17px}
.actor-detail-sheet-modal .horse-detail-head{padding:10px 16px 8px;border-bottom:none;background:transparent}
.actor-detail-sheet-modal .horse-detail-head h3{font-size:17px}
.rank-comment-tools{display:flex;justify-content:flex-end;margin:-2px 0 8px}
.rank-note-inline-btn{min-height:30px;padding:0 12px;border-radius:999px;background:#fff7ed;color:#9a3412;box-shadow:inset 0 0 0 1px #fed7aa;font-size:12px;font-weight:700}
.rank-note-inline-btn:hover{background:#ffedd5}
.rank-comment-handle{width:52px;height:5px;border-radius:999px;background:#cbd7ea;margin:2px auto 2px}
.rank-comment-horse-card{padding:14px;border:1px solid #d7e5f4;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);box-shadow:0 8px 24px rgba(18,44,104,.08)}
.rank-comment-horse-top{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:12px}
.rank-comment-horse-silk-wrap{display:flex;align-items:center;justify-content:center;flex:0 0 74px;width:74px;height:74px;border-radius:18px;background:rgba(255,255,255,.92);border:1px solid #d9e5f6}
.rank-comment-horse-silk{width:58px;height:58px;object-fit:contain;display:block}
.rank-comment-horse-silk-placeholder{font-size:22px;font-weight:800;color:#122c68}
.rank-comment-horse-main{min-width:0;display:flex;align-items:center;justify-content:center}
.rank-comment-horse-title-row{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;width:100%;text-align:center;flex-wrap:nowrap}
.rank-comment-horse-no{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#122c68;color:#fff;font-size:13px;font-weight:800;box-shadow:0 6px 14px rgba(18,44,104,.18)}
.rank-comment-horse-name{min-width:0;max-width:100%;font-size:23px;line-height:1.2;font-weight:900;color:#0f172a;word-break:break-word}
.rank-comment-horse-odds{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px}
.rank-comment-horse-odd{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;min-width:78px;min-height:30px;padding:0 10px;border-radius:999px;background:#eef4ff;border:1px solid #dbe8fb}
.rank-comment-horse-odd-label{font-size:12px;font-weight:800;color:#64748b}
.rank-comment-horse-odd-value{font-size:14px;font-weight:800;color:#122c68}
.rank-comment-horse-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.rank-comment-horse-meta{min-width:0;padding:10px 11px;border-radius:14px;background:#fff;border:1px solid #e2eaf4;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.rank-comment-horse-meta-label{display:block;font-size:11px;font-weight:800;letter-spacing:.3px;color:#64748b}
.rank-comment-horse-meta-value{display:block;margin-top:5px;font-size:14px;line-height:1.45;font-weight:700;color:#0f172a;word-break:break-word;overflow-wrap:anywhere}
.rank-comment-tabs{display:flex;gap:8px;padding:4px;background:#eaf0f8;border-radius:14px}
.rank-comment-tab{flex:1;min-height:40px;padding:0 14px;border:none;border-radius:11px;background:transparent;color:#53657f;font-size:14px;font-weight:800;cursor:pointer;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.rank-comment-tab.is-active{background:linear-gradient(135deg,#122c68 0%,#1c3f8d 100%);color:#fff;box-shadow:0 8px 20px rgba(18,44,104,.18)}
.rank-comment-tab:focus-visible{outline:2px solid #6176a0;outline-offset:2px}
.rank-comment-panels{min-height:180px}
.rank-comment-panel{padding:16px 14px 18px;border:1px solid #dbe5f1;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.rank-comment-text{margin-top:12px;font-size:15px;line-height:1.85;color:#0f172a;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
.rank-comment-empty-state{display:flex;align-items:center;justify-content:center;min-height:150px;padding:18px 12px;color:#94a3b8;font-size:14px;font-weight:700;text-align:center}
.horse-note-sheet{display:flex;flex-direction:column;gap:12px}
.horse-note-headline{display:flex;align-items:center;gap:8px}
.horse-note-headline-no{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border-radius:999px;background:#122c68;color:#fff;font-size:13px;font-weight:800}
.horse-note-headline-name{font-size:20px;font-weight:800;color:#0f172a}
.horse-note-sub{font-size:13px;line-height:1.6;color:#64748b}
.horse-note-textarea{width:100%;min-height:180px;padding:12px 14px;border:1px solid #dbe5f1;border-radius:16px;background:#fff;box-sizing:border-box;font-size:14px;line-height:1.7;color:#0f172a;resize:vertical}
.horse-note-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.horse-note-updated{font-size:12px;color:#64748b;text-align:center}
.horse-note-save-btn{min-width:108px;height:38px;padding:0 16px;border:none;border-radius:999px;background:#122c68;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.horse-note-save-btn:disabled{opacity:.6;cursor:not-allowed}
.rank-wp-table > tbody > tr.sortTr > td:nth-child(2) .horse-name{white-space:normal;word-break:break-word;line-height:1.2}
.horse-detail-mask.show + .rank-comment-modal.show{z-index:1001}
.horse-detail-mask{display:none;position:fixed;inset:0;background:rgba(7,12,20,.56);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:1000}
.horse-detail-mask.show{display:block}
.horse-detail-modal{display:none;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1001;width:min(94vw,720px);max-width:min(94vw,720px);min-width:280px;max-height:calc(100vh - 24px);overflow:hidden;box-sizing:border-box}
.horse-detail-modal.show{display:block}
#actorDetailMask{z-index:1002}
#actorDetailModal{z-index:1003}
.horse-detail-inner{background:linear-gradient(180deg,#f9fbff 0%,#f2f5fb 100%);border:1px solid rgba(217,225,234,.9);border-radius:18px;box-shadow:0 24px 70px rgba(4,15,31,.28);width:100%;min-height:0;height:auto;max-height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden}
.horse-detail-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #dfe7f0;background:linear-gradient(135deg,#ffffff 0%,#eef4ff 100%);flex:0 0 auto}
.horse-detail-head h3{margin:0;font-size:18px;font-weight:800;color:#172554;letter-spacing:.2px}
.horse-detail-close{border:none;background:rgba(22,37,84,.08);font-size:22px;line-height:1;cursor:pointer;color:#475569;padding:0;width:32px;height:32px;border-radius:999px;transition:background .18s,color .18s}
.horse-detail-close:hover{color:#1e3a8a;background:rgba(37,99,235,.14)}
.horse-detail-body{padding:16px;font-size:14px;line-height:1.65;height:auto;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1 1 auto}
@media(max-width:640px){
  .rank-comment-horse-card{padding:12px}
  .rank-comment-horse-top{grid-template-columns:67px minmax(0,1fr) auto;gap:10px}
  .rank-comment-horse-silk-wrap{flex-basis:67px;width:67px;height:67px}
  .rank-comment-horse-silk{width:53px;height:53px}
  .rank-comment-horse-name{font-size:18px}
  .rank-comment-horse-title-row{gap:6px}
  .rank-comment-horse-no{width:30px;height:30px;font-size:12px}
  .rank-comment-horse-odds{gap:6px}
  .rank-comment-horse-odd{min-width:68px;min-height:28px;padding:0 8px}
  .rank-comment-horse-odd-label{font-size:11px}
  .rank-comment-horse-odd-value{font-size:13px}
  .rank-comment-horse-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
  .rank-comment-horse-meta{padding:8px 8px 9px;border-radius:12px}
  .rank-comment-horse-meta-label{font-size:10px;letter-spacing:.2px}
  .rank-comment-horse-meta-value{margin-top:4px;font-size:12px;line-height:1.35}
}
.horse-detail-body .detail-row{display:flex;margin-bottom:8px;gap:10px}
.horse-detail-body .detail-line{margin-bottom:8px;font-size:14px;line-height:1.6}
.horse-detail-body .detail-line .detail-pair{display:inline;margin-right:14px;white-space:normal}
.horse-detail-body .detail-line .detail-pair .detail-label{color:#64748b;margin-right:3px;font-weight:700}
.horse-detail-body .detail-label{flex:0 0 76px;color:#64748b;font-weight:700}
.horse-detail-body .detail-value{flex:1;font-weight:500;min-width:0;white-space:normal;word-break:break-word;overflow-wrap:anywhere;color:#0f172a}
.horse-detail-body .horse-detail-silk{width:70px;height:70px;object-fit:contain;vertical-align:middle;margin-right:6px;filter:drop-shadow(0 4px 10px rgba(15,23,42,.14))}
.horse-detail-body .detail-link{color:#1d4ed8;cursor:pointer;text-decoration:underline;font-weight:600;padding:2px 4px;margin:-2px -4px;display:inline-block;touch-action:manipulation}
.horse-detail-body .detail-link:hover{color:#122c68}
.horse-detail-body .detail-section{margin-top:14px;padding:0;border-radius:14px;background:#fff;border:1px solid #dbe4ee;box-shadow:0 8px 22px rgba(15,23,42,.06);overflow:hidden}
.horse-detail-body .detail-section:first-of-type{margin-top:0}
.horse-detail-body .detail-section-title{font-weight:800;font-size:14px;margin:0;padding:11px 14px;background:linear-gradient(135deg,#edf3ff 0%,#e3ebf6 100%);color:#1e3a8a;border-bottom:1px solid #d7e0eb}
.horse-detail-body .detail-section .detail-race-name,.horse-detail-body .detail-section .detail-race-meta,.horse-detail-body .detail-section .detail-row,.horse-detail-body .detail-section .detail-line{padding-left:14px;padding-right:14px}
.horse-detail-body .detail-section .detail-section-title + .detail-race-name,.horse-detail-body .detail-section .detail-section-title + .detail-race-meta,.horse-detail-body .detail-section .detail-section-title + .detail-row,.horse-detail-body .detail-section .detail-section-title + .detail-line{padding-top:10px}
.horse-detail-body .detail-section .detail-row:last-child,.horse-detail-body .detail-section .detail-line:last-child{padding-bottom:12px}
.horse-detail-body .detail-section-current{background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border-color:#cddcf7;box-shadow:0 12px 30px rgba(29,78,216,.08)}
.horse-detail-body .detail-section-current .detail-section-title{background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);color:#fff;border-bottom-color:rgba(255,255,255,.18)}
.horse-detail-body .detail-section-summary{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)}
.horse-detail-body .detail-section-summary .detail-section-title{background:linear-gradient(135deg,#eef2f7 0%,#e2e8f0 100%);color:#334155;border-bottom-color:#d7dfe8}
.horse-detail-body .detail-section-history{position:relative;background:linear-gradient(180deg,#ffffff 0%,#fafcff 100%);border-color:#e2e8f0;margin-left:18px}
.horse-detail-body .detail-section-history::before{content:"";position:absolute;left:-12px;top:-16px;bottom:-16px;width:2px;background:linear-gradient(180deg,#dbe7f3 0%,#cbd5e1 100%)}
.horse-detail-body .detail-section-history::after{content:"";position:absolute;left:-18px;top:20px;width:12px;height:12px;border-radius:999px;background:linear-gradient(135deg,#fbbf24 0%,#f59e0b 100%);box-shadow:0 0 0 4px #fff}
.horse-detail-body .detail-section-history .detail-section-title{background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);color:#9a3412;border-bottom-color:#fed7aa}
.horse-detail-body .detail-section-detail{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border-color:#dfe6ef}
.horse-detail-body .detail-section-detail .detail-section-title{background:linear-gradient(135deg,#ecfeff 0%,#dbeafe 100%);color:#155e75;border-bottom-color:#bfdbfe}
.horse-detail-body .detail-race-name{margin-bottom:6px;font-weight:700;color:#0f172a}
.horse-detail-body .detail-race-meta{font-size:12px;color:#64748b;margin-bottom:8px;line-height:1.45}
.horse-detail-body .detail-race-meta-summary{padding:0 14px 12px;font-size:12px}
.horse-detail-body .detail-section-header{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 4px}
.horse-detail-body .detail-section-badge-wrap{flex:0 0 auto}
.horse-detail-body .detail-section-heading{min-width:0;flex:1}
.horse-detail-body .detail-section-kicker{font-size:11px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;color:#64748b}
.horse-detail-body .detail-section-heading-title{margin-top:4px;font-size:17px;line-height:1.35;font-weight:800;color:#0f172a;word-break:break-word}
.horse-detail-body .detail-place-badge{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;padding:0 12px;border-radius:14px;background:#e2e8f0;color:#334155;font-size:16px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.horse-detail-body .detail-place-badge-win{background:linear-gradient(135deg,#fde68a 0%,#fbbf24 100%);color:#7c2d12}
.horse-detail-body .detail-place-badge-place{background:linear-gradient(135deg,#e2e8f0 0%,#cbd5e1 100%);color:#334155}
.horse-detail-body .detail-place-badge-show{background:linear-gradient(135deg,#fed7aa 0%,#fb923c 100%);color:#7c2d12}
.horse-detail-body .detail-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;padding:2px 14px 12px}
.horse-detail-body .detail-stat-card{border-radius:12px;padding:10px 12px;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid #dbe4ee;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.horse-detail-body .detail-stat-card-hot{background:linear-gradient(180deg,#fff5f5 0%,#fff1f2 100%);border-color:#fecdd3}
.horse-detail-body .detail-stat-card-cool{background:linear-gradient(180deg,#eff6ff 0%,#f8fbff 100%);border-color:#cfe1ff}
.horse-detail-body .detail-stat-label{font-size:11px;font-weight:700;letter-spacing:.3px;color:#64748b}
.horse-detail-body .detail-stat-value{margin-top:4px;font-size:20px;line-height:1.1;font-weight:800;color:#0f172a}
.horse-detail-body .detail-horse-info-top{padding:2px 14px 8px;background:linear-gradient(180deg,rgba(37,99,235,.04) 0%,transparent 100%)}
.horse-detail-body .detail-horse-info-top .detail-row{margin-bottom:6px}
.horse-detail-body .detail-horse-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.horse-detail-body .detail-horse-hero{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:8px 14px 14px;padding:14px;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 100%);border:1px solid #d8e5ff;box-shadow:0 10px 22px rgba(37,99,235,.08)}
.horse-detail-body .detail-horse-hero-silk{width:73px;height:73px;display:flex;align-items:center;justify-content:center;border-radius:0;background:transparent;border:none;box-shadow:none}
.horse-detail-body .detail-horse-hero-silk .horse-detail-silk{width:73px;height:73px;margin-right:0}
.horse-detail-body .detail-horse-hero-main{min-width:0}
.horse-detail-body .detail-horse-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.horse-detail-body .detail-horse-no{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:28px;padding:0 10px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:13px;font-weight:800;letter-spacing:.3px}


/* （已廢棄）舊 6 列固定列寬規則 — 5 列全寬見文件末尾 */
#panel-q .rank-wp-table-ref .rank-time-last6-inline{
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 auto !important;
}
#panel-q .rank-wp-table-ref .rank-comment-inline.rank-ai-analysis-cell{
  align-items:flex-start !important;
  justify-content:center !important;
  width:fit-content !important;
  max-width:fit-content !important;
}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-index-inline-row{
  justify-content:center !important;
  width:100% !important;
}
#panel-q .rank-wp-table-ref .rank-comment-inline .rank-index-inline-row{
  justify-content:flex-start !important;
  width:auto !important;
}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-index-inline-divider{
  width:72% !important;
  max-width:5em !important;
  align-self:center !important;
}
#panel-q .rank-wp-table-ref .rank-comment-inline .rank-index-inline-divider{
  width:100% !important;
  align-self:stretch !important;
}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-time-value,
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-last6-plain{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2) .rank-index-inline-divider,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3) .rank-index-inline-divider{
  display:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(3)::before,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3)::before{
  display:none !important;
}
#panel-q .rank-wp-table-ref .rank-comment-col-cell{
  text-align:left !important;
}
#panel-q .rank-wp-table-ref .rank-best-time-cell{
  text-align:center !important;
  overflow:hidden !important;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(4) .rank-gate-inline{
  max-width:100% !important;
  white-space:nowrap !important;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(4) .rank-gate-wt-value{
  font-size:20px !important;
  font-weight:400 !important;
  color:#0f172a !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(4) .rank-gate-draw-badge{
  min-width:22px;
  height:22px;
  font-size:13px;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2){
  font-size:inherit !important;
}
#panel-q .rank-ref-horse-top{
  flex-wrap:nowrap !important;
  align-items:baseline !important;
  gap:8px !important;
  width:100% !important;
}
#panel-q .rank-ref-horse-top-main{
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}
#panel-q .rank-ref-horse-pace-slot{
  display:flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  justify-content:flex-end !important;
  font-size:14px !important;
  pointer-events:none !important;
}
#panel-q .rank-ref-horse-pace-slot .horse-pace-badge{
  font-size:14px !important;
  line-height:1.12 !important;
  padding:1px 4px !important;
  min-width:0 !important;
}
#panel-q .rank-ref-horse-no{
  display:inline-block !important;
  min-width:auto !important;
  height:auto !important;
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#003399 !important;
  font-size:28px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-shadow:none !important;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name{
  display:inline-block !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  font-size:28px !important;
  font-weight:400 !important;
  white-space:nowrap !important;
  text-align:left !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline-label{
  font-size:12px !important;
  font-weight:500 !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline-value,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{
  font-size:22px !important;
  font-weight:400 !important;
  line-height:1 !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-win-value:not(.rank-index-tier){color:#0f172a !important}
#panel-q .rank-wp-table-ref .rank-index-inline-value.rank-index-place-value:not(.rank-index-tier){color:#6b7280 !important}
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-up,
#panel-q .rank-wp-table-ref .rank-odd-cell .wp-down50{
  min-height:30px !important;
  padding:4px 2px !important;
  border-radius:5px !important;
  font-size:22px !important;
  line-height:1 !important;
}
@media(max-width:768px){
  #panel-q .rank-wp-table.rank-wp-table-ref{min-width:100% !important;width:100% !important}
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1){
    padding-right:8px !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1) .th-sort-arrow{
    display:none !important;
  }
  
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1),
  #panel-q .rank-wp-table.rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1){
    width:34% !important;
    min-width:0 !important;
    max-width:none !important;
    position:sticky !important;
    left:0 !important;
    z-index:15 !important;
    background:#fff !important;
    box-shadow:inset -1px 0 0 rgba(100,116,139,.55),4px 0 10px -3px rgba(15,23,42,.18) !important;
    padding:4px 6px !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1){
    z-index:20 !important;
    background:#f8f8f8 !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name,
  #panel-q .rank-wp-table.rank-wp-table-ref .rank-ref-horse-top .horse-name{
    display:inline-block !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
    font-size:18px !important;
    font-weight:400 !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref .horse-name-wrap{
    width:auto !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref .rank-gate-combo-line-wt .rank-gate-combo{
    overflow:visible !important;
    text-overflow:clip !important;
    max-width:none !important;
  }
  #panel-q .rank-ref-horse-no{
    font-size:20px !important;
  }
  #panel-q .rank-ref-jockey .person-name,#panel-q .rank-ref-trainer .person-name{
    font-size:13px !important;
    color:#111827 !important;
    font-weight:500 !important;
  }
  #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(4) .rank-gate-combo-wt-no{
    font-size:13px !important;
  }
  #panel-q .rank-gate-combo-line-wt .rank-gate-combo{
    font-size:15px !important;
    font-weight:400 !important;
  }
  
  #panel-q .rank-ref-horse-wrap{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding-right:0 !important;
    position:relative !important;
  }
  #panel-q .rank-ref-horse-cell{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    gap:2px !important;
  }
  #panel-q .rank-ref-horse-top{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:4px !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #panel-q .rank-ref-horse-top-main{
    flex:1 1 0 !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  #panel-q .rank-ref-horse-top-main .horse-name{
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  #panel-q .rank-ref-horse-pace-slot{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    padding:0 !important;
    pointer-events:none !important;
  }
  #panel-q .rank-ref-horse-pace-slot .horse-pace-badge{
    font-size:14px !important;
    font-weight:700 !important;
    min-width:0 !important;
    max-width:none !important;
    padding:2px 5px !important;
    line-height:1.2 !important;
  }
  #panel-q .rank-ref-horse-bottom{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-end !important;
    justify-content:space-between !important;
    width:100% !important;
    max-width:100% !important;
    gap:4px !important;
    column-gap:4px !important;
  }
  #panel-q .rank-ref-horse-bottom-body{
    display:grid !important;
    grid-template-columns:max-content minmax(0,auto) !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    align-items:center !important;
    column-gap:4px !important;
    row-gap:0 !important;
  }
  #panel-q .rank-ref-horse-bottom-body .rank-ref-meta{
    min-width:0 !important;
  }
  #panel-q .rank-ref-horse-arrow-slot{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    align-self:flex-end !important;
    line-height:1 !important;
  }
  #panel-q .rank-ref-horse-arrow-slot .rank-ref-form-toggle{
    position:static !important;
    flex:0 0 auto !important;
    pointer-events:auto !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1){
    text-align:center !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref > thead > tr > th:nth-child(1) .th-label{
    text-align:center !important;
    width:100% !important;
  }
  #panel-q .rank-wp-table-ref .rank-odd-cell .wp-val-plain,
  #panel-q .rank-wp-table-ref .rank-odd-cell .wp-down,
  #panel-q .rank-wp-table-ref .rank-odd-cell .wp-up,
  #panel-q .rank-wp-table-ref .rank-odd-cell .wp-down50{
    font-size:20px !important;
    min-height:28px !important;
  }
  #panel-q .rank-wp-table-ref .rank-index-inline-label{
    font-size:11px !important;
  }
  #panel-q .rank-wp-table-ref .rank-index-inline-value,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{
    font-size:20px !important;
    font-weight:400 !important;
    line-height:1 !important;
  }
  #panel-q .rank-wp-table-ref .rank-index-inline-value{
    color:#0f172a !important;
  }
  #panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-time-value{
    font-size:17px !important;
    font-weight:400 !important;
    line-height:1 !important;
  }
  #panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-last6-plain{
    font-size:15px !important;
    font-weight:400 !important;
    line-height:1 !important;
  }
  #panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-wt-value{
    font-size:18px !important;
    font-weight:400 !important;
    color:#0f172a !important;
  }
  #panel-q .rank-ref-horse-bottom .rank-horse-silk{
    width:40px !important;
    height:40px !important;
  }
  #panel-q .rank-ref-silk{
    align-self:center !important;
  }
  #panel-q .rank-ref-meta{
    align-self:center !important;
    justify-content:center !important;
    gap:1px !important;
  }
  #panel-q .rank-ref-role{
    font-size:11px !important;
    font-weight:500 !important;
    color:#374151 !important;
  }
}

#panel-q .rank-ref-horse-bottom .rank-horse-silk{
  width:40px !important;
  height:40px !important;
  object-fit:contain !important;
  display:block !important;
}


#panel-q .rank-ref-horse-wrap{
  position:relative;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:0;
}
#panel-q .rank-ref-horse-wrap .rank-ref-horse-cell{
  display:flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#panel-q .rank-ref-horse-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
#panel-q .rank-ref-horse-top-main{
  flex:1 1 auto;
  min-width:0;
}
@media(min-width:769px){
  #panel-q .rank-ref-horse-wrap{
    padding-right:2.6em !important;
  }
  #panel-q .rank-ref-horse-top{
    display:flex !important;
    align-items:baseline !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding-right:0 !important;
  }
  #panel-q .rank-ref-horse-top-main{
    flex:1 1 auto !important;
    display:flex !important;
    align-items:baseline !important;
    gap:8px !important;
    min-width:0 !important;
  }
  #panel-q .rank-ref-horse-pace-slot{
    position:absolute !important;
    right:0 !important;
    top:0 !important;
    flex:0 0 auto !important;
  }
  #panel-q .rank-ref-horse-bottom{
    display:grid !important;
    grid-template-columns:max-content minmax(0,auto) !important;
    align-items:start !important;
    justify-content:start !important;
    padding-right:0 !important;
  }
  #panel-q .rank-ref-horse-bottom-body{
    display:contents !important;
  }
  #panel-q .rank-ref-horse-arrow-slot{
    position:absolute !important;
    right:0 !important;
    bottom:0 !important;
    flex:0 0 auto !important;
    align-self:auto !important;
  }
  #panel-q .rank-ref-horse-arrow-slot .rank-ref-form-toggle{
    pointer-events:auto !important;
  }
}
#panel-q .rank-ref-form-toggle{
  position:static;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:17px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#111;
  cursor:pointer;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}
#panel-q .rank-ref-form-toggle:hover,
#panel-q .rank-ref-form-toggle:focus-visible{
  background:transparent;
  color:#000;
  outline:none;
}
#panel-q .rank-ref-form-toggle-icon{
  display:block;
  transition:transform .2s ease;
}
#panel-q .rank-ref-form-toggle[aria-expanded="true"] .rank-ref-form-toggle-icon{
  transform:rotate(180deg);
}
#panel-q tr.rank-wp-form-detail-tr td.rank-wp-form-detail-cell{
  padding:0 !important;
  vertical-align:top !important;
  text-align:left !important;
  background:#fff;
  border-top:0 !important;
  box-shadow:none !important;
  min-width:0;
  overflow:visible;
}
#panel-q td.rank-wp-form-detail-cell.rank-wp-detail-loading{
  text-align:center !important;
  vertical-align:middle !important;
  min-height:120px;
  padding:20px 0 !important;
}
#panel-q td.rank-wp-form-detail-cell.rank-wp-detail-loading > .site-text-loading,
#panel-q td.rank-wp-form-detail-cell.rank-wp-detail-loading > .detail-app-empty.rank-wp-history-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:0 auto;
}
#panel-q td.rank-wp-form-detail-cell.rank-wp-detail-loading > .site-text-loading{
  border:none;
  background:transparent;
  box-shadow:none;
  min-height:88px;
}
@media(max-width:768px){
  #panel-q td.rank-wp-form-detail-cell.rank-wp-detail-loading{
    min-height:132px;
    padding:24px 0 !important;
  }
}

#panel-q .rank-wp-inline-history{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  position:relative;
  z-index:2;
  box-sizing:border-box;
  width:100%;
  max-width:calc(100vw - 16px);
  margin:0;
  transform-origin:0 0;
  font-size:72%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
  
  touch-action:pan-x pan-y;
  scrollbar-width:thin;
  scrollbar-color:#7da2db #e8eef6;
  isolation:isolate;
}
#panel-q .rank-wp-inline-history::-webkit-scrollbar{
  height:9px;
}
#panel-q .rank-wp-inline-history::-webkit-scrollbar-track{
  background:#e8eef6;
  border-radius:999px;
}
#panel-q .rank-wp-inline-history::-webkit-scrollbar-thumb{
  background:#7da2db;
  border-radius:999px;
  border:2px solid #e8eef6;
}
#panel-q .rank-wp-inline-history .detail-app-history-table-wrap{
  flex:0 0 auto;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  margin:0;
  min-width:0;
  width:max-content;
  max-width:none;
  box-sizing:border-box;
  overflow:visible !important;
  overscroll-behavior:auto;
  touch-action:inherit;
}
#panel-q .rank-wp-wrap{
  overscroll-behavior-x:contain;
}
#panel-q .rank-wp-inline-history .detail-app-history-table{
  width:max-content !important;
  
  min-width:max-content !important;
  table-layout:auto;
  border-collapse:separate;
  border-spacing:0;
}
#panel-q .rank-wp-inline-history .detail-app-history-table th,
#panel-q .rank-wp-inline-history .detail-app-history-table td{
  min-width:0;
  border:none !important;
  border-bottom:none !important;
  box-shadow:none !important;
}

#panel-q .rank-wp-inline-history .detail-app-history-col-date,
#panel-q .rank-wp-inline-history .detail-app-history-col-place{
  left:auto !important;
  width:auto !important;
  min-width:max-content !important;
  max-width:none !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-col-place{
  min-width:0 !important;
  width:auto !important;
  max-width:min(18vw, 9ch) !important;
  white-space:nowrap !important;
}
@media(max-width:768px){
  #panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-col-place{
    max-width:min(16vw, 7.5ch) !important;
  }
}
#panel-q .rank-wp-inline-history .detail-app-history-th:last-child,
#panel-q .rank-wp-inline-history .detail-app-history-td:last-child{
  border-right:none !important;
}

#panel-q .rank-wp-inline-history .detail-app-history-th-sticky,
#panel-q .rank-wp-inline-history .detail-app-history-td-sticky{
  position:static;
  left:auto !important;
  box-shadow:none;
  width:auto;
  min-width:0;
  max-width:none;
}
#panel-q .rank-wp-inline-history .detail-app-history-th,
#panel-q .rank-wp-inline-history .detail-app-history-td{
  font-size:1em;
  line-height:1.15;
  font-weight:400;
  padding:2px 5px;
}
#panel-q .rank-wp-inline-history .detail-app-history-th{
  font-weight:400;
}
#panel-q .rank-wp-inline-history .detail-app-history-place-text{
  font-size:1em;
  font-weight:400;
  color:#24364f;
}
#panel-q .rank-wp-inline-history .detail-app-history-place-first,
#panel-q .rank-wp-inline-history .detail-app-history-place-second,
#panel-q .rank-wp-inline-history .detail-app-history-place-third{
  color:#c62828;
  font-weight:800;
}
#panel-q .rank-wp-inline-history .detail-app-history-date-text,
#panel-q .rank-wp-inline-history .detail-app-history-lbw{
  font-size:1em;
  font-weight:400;
}
#panel-q .rank-wp-inline-history .detail-app-history-race-link{
  font-size:1em;
  font-weight:400;
  color:#24364f;
}
#panel-q .rank-wp-inline-history .detail-app-history-muted{
  font-size:1em;
  font-weight:400;
}
#panel-q .rank-wp-inline-history .detail-app-history-podium-main{
  font-size:1em;
  font-weight:400;
  color:#24364f;
}
#panel-q .rank-wp-inline-history .detail-app-history-podium-hit-self,
#panel-q .rank-wp-inline-history .detail-app-history-podium-hit-field{
  background:transparent;
  padding:0;
  border-radius:0;
}
#panel-q .rank-wp-inline-history .detail-app-history-podium-hit-self .detail-app-history-podium-main,
#panel-q .rank-wp-inline-history .detail-app-history-podium-hit-field .detail-app-history-podium-main{
  font-weight:400;
}
#panel-q .rank-wp-inline-history .detail-app-replay-btn{
  font-size:1em;
  font-weight:400;
  border:none !important;
  box-shadow:none !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-sort-btn{
  font-weight:400;
}
#panel-q .rank-wp-inline-history .detail-app-history-samecourse-badge{
  font-size:0.85em;
  font-weight:600;
}

#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th{
  font-weight:800 !important;
  font-size:1em !important;
  background:#fef9c3 !important;
  color:#1e293b !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td{
  font-weight:400 !important;
  font-size:1em !important;
  line-height:1.22;
  padding-top:3px;
  padding-bottom:3px;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-place-first,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-place-second,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-place-third{
  color:#c62828 !important;
  font-weight:800 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq col.detail-app-history-col-tightgroup{
  width:0.05%;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq col.detail-app-history-col-colplace{
  width:2.35em;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq col.detail-app-history-col-coldate{
  width:4.1em;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-col-tight{
  width:0.0001% !important;
  max-width:none !important;
  padding-left:2px !important;
  padding-right:2px !important;
  white-space:nowrap !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th:nth-child(5),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th:nth-child(6),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th:nth-child(7),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td:nth-child(5),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td:nth-child(6),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td:nth-child(7){
  width:1px !important;
  max-width:fit-content !important;
}

#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th:nth-child(4),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td.detail-app-history-col-date{
  font-size:0.875em !important;
  text-align:left !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td.detail-app-history-col-date .detail-app-history-date-text{
  text-align:left !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq th,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq td{
  min-width:0 !important;
}

#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead th:nth-child(2),
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody td:nth-child(2){
  min-width:min-content !important;
  max-width:none !important;
  white-space:nowrap !important;
  padding-right:2px !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq colgroup > col:nth-child(2){
  width:auto;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-th-sticky.detail-app-history-col-place,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-td-sticky.detail-app-history-col-place{
  position:sticky !important;
  left:0 !important;
  z-index:4;
  box-shadow:inset -1px 0 0 rgba(100,116,139,.55),4px 0 10px -3px rgba(15,23,42,.2) !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq thead .detail-app-history-th-sticky.detail-app-history-col-place{
  z-index:6;
  box-shadow:inset -1px 0 0 rgba(100,116,139,.55),4px 0 10px -3px rgba(15,23,42,.22) !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody .detail-app-history-td-sticky.detail-app-history-col-place{
  background:#fff !important;
}

#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tr.detail-app-history-table-row:nth-child(even):not(.detail-app-history-table-row-samecourse) .detail-app-history-td-sticky.detail-app-history-col-place{
  background:#f9fbff !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tr.detail-app-history-table-row-samecourse .detail-app-history-td-sticky.detail-app-history-col-place{
  background:#ffe8c9 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-podium-hit-self{
  background:#ffd9d9 !important;
  border-radius:6px;
  padding:2px 4px;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-podium-hit-field{
  background:#dceeff !important;
  border-radius:6px;
  padding:2px 4px;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-date-text,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-lbw,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-muted{
  font-weight:400 !important;
  color:#24364f;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-lbw.detail-app-history-lbw-red{
  color:#c62828 !important;
  font-weight:400 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq tbody .detail-app-history-podium-main{
  font-weight:700 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-podium-hit-self .detail-app-history-podium-main{
  color:#b71c1c !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-podium-hit-field .detail-app-history-podium-main{
  color:#0d47a1 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq col.detail-app-history-col-corunning{
  width:auto;
  min-width:5.5em;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-th-corunning{
  font-size:0.78em !important;
  line-height:1.12 !important;
  white-space:nowrap !important;
  text-align:left !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq .detail-app-history-td-corunning{
  font-weight:400 !important;
  text-align:left !important;
  white-space:nowrap !important;
  line-height:1.18 !important;
}
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq a.detail-app-history-race-link,
#panel-q .rank-wp-inline-history .detail-app-history-table--rankq a.detail-app-replay-btn{
  font-weight:400 !important;
}

#panel-q .rank-wp-inline-pingyu{
  align-self:stretch;
  width:100%;
  box-sizing:border-box;
  margin-top:6px;
  padding:4px 2px 2px;
  border-top:1px solid #e2e8f0;
}
#panel-q .rank-wp-inline-history .detail-app-history-table-wrap > .rank-wp-inline-pingyu{
  align-self:flex-start;
  width:max-content;
  max-width:none;
}
#panel-q .rank-wp-inline-pingyu--empty{
  display:none;
}
#panel-q .rank-wp-inline-pingyu-inner{
  display:block;
  width:100%;
  box-sizing:border-box;
  font-size:1em;
  font-weight:800;
  color:#003399;
  white-space:nowrap;
  overflow:visible;
  line-height:1.25;
}
#panel-q .rank-wp-inline-history .detail-app-history-table-wrap > .rank-wp-inline-pingyu .rank-wp-inline-pingyu-inner{
  display:inline-block;
  width:max-content;
  max-width:none;
}


.rank-card-no{
  font-size:24px !important;
  font-weight:400 !important;
}
.rank-card-name{
  font-size:26px !important;
  font-weight:400 !important;
}
.rank-card-line,
.rank-card-line strong,
.rank-card-line .horse-name + *{
  font-weight:400 !important;
}
@media(max-width:768px){
  .rank-card-no{
    font-size:21px !important;
  }
  .rank-card-name{
    font-size:22px !important;
  }
}


@media (min-width: 769px){
  #panel-rank{
    zoom: 0.8;
  }
}
.horse-detail-body .detail-horse-name{font-size:22px;line-height:1.2;font-weight:800;color:#0f172a;word-break:break-word}
.horse-detail-body .detail-horse-tagline{margin-top:6px;font-size:12px;color:#475569;line-height:1.45}
.horse-detail-body .detail-odds-inline{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.horse-detail-body .detail-odds-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #cfe1ff;box-shadow:0 6px 14px rgba(37,99,235,.08);font-weight:700;color:#1e3a8a;white-space:nowrap}
.horse-detail-body .detail-odds-inline .wp-down,.horse-detail-body .detail-odds-inline .wp-val-plain{margin-left:4px}
.horse-detail-body .detail-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 14px 14px}
.horse-detail-body .detail-insight-card{padding:12px 13px;border-radius:14px;border:1px solid #e2e8f0;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 6px 16px rgba(15,23,42,.05)}
.horse-detail-body .detail-insight-card-comment{border-color:#dbeafe;background:linear-gradient(180deg,#f8fbff 0%,#f1f7ff 100%)}
.horse-detail-body .detail-insight-card-report{border-color:#fde68a;background:linear-gradient(180deg,#fffdf4 0%,#fff9e8 100%)}
.horse-detail-body .detail-insight-title{font-size:12px;font-weight:800;letter-spacing:.4px;color:#475569}
.horse-detail-body .detail-insight-text{margin-top:6px;font-size:14px;line-height:1.65;color:#0f172a;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
.horse-detail-body .detail-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:4px 14px 14px}
.horse-detail-body .detail-info-grid-tight{padding-top:0}
.horse-detail-body .detail-info-card{min-width:0;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid #e5edf5;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.horse-detail-body .detail-info-label{font-size:11px;font-weight:800;letter-spacing:.32px;color:#64748b}
.horse-detail-body .detail-info-value{margin-top:6px;font-size:14px;line-height:1.5;font-weight:700;color:#0f172a;word-break:break-word;overflow-wrap:anywhere}
.horse-detail-body .detail-info-value .detail-link{font-weight:700}
.horse-detail-body .detail-past-race{background:#fbfcfe;border:1px solid #e4eaf2;margin-top:10px}
.horse-detail-body .detail-past-race .detail-section-title{background:linear-gradient(135deg,#f4f7fb 0%,#e9eef4 100%);color:#334155}
.horse-detail-body .detail-horse-info{font-size:13px;line-height:1.5}
.horse-detail-body .detail-loading-copy{padding:14px;font-size:14px;font-weight:700;color:#64748b}
#actorDetailBody .detail-section{margin-top:14px}
#actorDetailBody .detail-section:first-of-type{margin-top:0}
#actorDetailBody .detail-section-actor-current{border-color:#c7d9fb;background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%)}
#actorDetailBody .detail-section-actor-current .detail-section-title{background:linear-gradient(135deg,#0f766e 0%,#0ea5a4 100%);color:#fff;border-bottom-color:rgba(255,255,255,.18)}
#actorDetailBody .detail-actor-hero{display:flex;align-items:center;gap:12px;padding:12px 14px 6px}
#actorDetailBody .detail-actor-avatar{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#0f766e 0%,#14b8a6 100%);color:#fff;font-size:22px;font-weight:900;box-shadow:0 10px 20px rgba(15,118,110,.18)}
#actorDetailBody .detail-actor-main{min-width:0;flex:1}
#actorDetailBody .detail-actor-role{font-size:11px;font-weight:800;letter-spacing:.4px;color:#64748b}
#actorDetailBody .detail-actor-name{margin-top:4px;font-size:22px;line-height:1.25;font-weight:800;color:#0f172a;word-break:break-word}
#actorDetailBody .detail-actor-horse-list{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px 14px}
#actorDetailBody .detail-actor-horse-chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #dbe7f3;box-shadow:0 4px 10px rgba(15,23,42,.05);font-size:13px;font-weight:700;color:#0f172a}
#actorDetailBody .detail-section-actor-entry .detail-section-kicker{color:#0f766e}
.q-fit-inner{display:block}
.q-tables-gap{display:none;height:0;min-height:0;margin:0;padding:0}
.q-meta-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:13px;color:var(--muted)}
.q-meta-row .q-update-time{flex:1}
.q-meta-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px;margin-left:8px}
.q-meta-row .q-refresh-btn:hover{opacity:.8}
.odds-legend{margin-top:6px;font-size:12px;color:var(--muted)}
.odds-legend .legend-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.odds-legend .legend-top-row .legend-label{font-weight:700}
.odds-legend .legend-top-row .legend-right{display:flex;align-items:center;gap:4px}
.odds-legend .legend-top-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px}
.odds-legend .legend-top-row .q-refresh-btn:hover{opacity:.8}
.odds-legend .legend-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.rank-meta-row{margin-top:6px;margin-bottom:8px;display:flex;align-items:center;justify-content:flex-end;font-size:13px;color:var(--muted)}
.rank-meta-row .q-update-time{margin-right:4px}
.rank-meta-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px}
.rank-meta-row .q-refresh-btn:hover{opacity:.8}
.panel#panel-q .rank-odds-legend{margin-top:10px}
.legend-item{display:inline-flex;align-items:center;gap:4px}
.legend-dot{width:10px;height:10px;border-radius:2px;flex-shrink:0}
.legend-dot.hot{background:#f03939}
.legend-dot.down20{background:#2aa217}
.legend-dot.down50{background:#993300}

@media(max-width:768px){
  .wrap{padding:0}
  .card.tabs-card{padding:0}
  .tabs{padding:0 2px}
  .tab{padding:8px 8px 10px;font-size:23px}
  .head-tools{gap:8px}
  .member-center-btn{min-width:84px}
  .member-center-name{max-width:90px;font-size:14px}
  #panel-q{padding:0 0 50px 0;max-width:100%;min-width:0;overflow-x:visible}
  .panel#panel-q .rank-wp-table:not(.rank-wp-table-ref){font-size:clamp(12px,3.2vw,14px);min-width:520px}
  .panel#panel-q .rank-wp-table.rank-wp-table-ref{min-width:0 !important;width:100% !important}
  #panel-q .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(1),#panel-q .rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(1){width:80px !important;min-width:110px !important;max-width:80px !important}
  .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(2),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(2){width:48px;min-width:48px;max-width:48px}
  .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(4),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(4),
  .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(5),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(5){width:58px;min-width:58px;max-width:58px}
  .rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(6),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(6),.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(7),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(7),.rank-wp-table:not(.rank-wp-table-ref) > thead > tr > th:nth-child(8),.rank-wp-table:not(.rank-wp-table-ref) > tbody > tr.sortTr > td:nth-child(8){width:48px;min-width:48px;max-width:48px}
  .rank-wp-table > thead > tr > th::after,.rank-wp-table > tbody > tr.sortTr > td::after{box-shadow:0 1px 2px rgba(0,0,0,.01)}
  .rank-wp-table > tbody > tr.sortTr > td{height:34px}
  #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name{font-size:18px !important}
  #panel-q .horse-info{max-width:55px !important}
  #panel-q .horse-name-wrap{width:50px !important;max-width:50px !important}
  #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1) .horse-name{width:50px !important;max-width:50px !important}
  .rank-odd-cell .wp-val-plain,.rank-odd-cell .wp-down,.rank-odd-cell .wp-up,.rank-odd-cell .wp-down50{font-size:12px}
  #panel-q .rank-wp-table-ref .rank-index-inline-value,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{font-size:20px !important;font-weight:400 !important}
  .rank-wp-table > tbody > tr.sortTr > td.rank-best-time-cell,.rank-time-value,.rank-last6-plain{font-size:14px !important}
  .panel#panel-q .q-fit-wrap,.panel#panel-q .q-fit-inner,.panel#panel-q #qodd{max-width:100%;min-width:0}
  .qwrap{width:100%;max-width:100%;margin:0;padding:0;overflow:visible;min-width:0}
  .qtable{width:100% !important;min-width:0 !important;max-width:100%;table-layout:fixed;border-collapse:collapse;font-size:clamp(8px,2.4vw,11px);line-height:1.25}
  .qtable td,.qtable th{padding:2px 4px;border:1px solid #ddd;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
  .qin-odds-table{width:100%;max-width:100%;table-layout:fixed;font-size:clamp(12px,2.7vw,14px)}
  .qin-odds-table td,.qin-odds-table th{padding:6px 3px;overflow:visible;word-break:normal;box-sizing:border-box;min-height:26px;line-height:1.3}
  .panel#panel-q .qtable td,.panel#panel-q .qin-odds-table td{text-align:center}
  .panel#panel-q .q-fit-wrap{margin:0;overflow:visible}
  .panel#panel-q .q-fit-inner{overflow:visible}
  .panel#panel-q .q-tables-gap{display:none;height:0;min-height:0;margin:0;padding:0}
  .panel#panel-q .odds-legend{margin-top:4px;font-size:11px}
  .horse-detail-modal{left:50%;top:12px;transform:translateX(-50%);width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
  .horse-detail-inner{max-height:calc(100vh - 16px);border-radius:10px}
  .horse-detail-head{padding:12px}
  .horse-detail-head h3{font-size:15px;max-width:calc(100% - 36px);word-break:break-word}
  .horse-detail-body{padding:12px}
  .horse-detail-body .detail-line .detail-pair{display:block;margin-right:0;margin-bottom:4px}
  .horse-detail-body .detail-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .horse-detail-body .detail-section-header{padding:12px 12px 4px;gap:10px}
  .horse-detail-body .detail-section-heading-title{font-size:15px}
  .horse-detail-body .detail-place-badge{min-width:40px;height:40px;padding:0 10px;font-size:14px;border-radius:12px}
  .horse-detail-body .detail-stat-value{font-size:18px}
  .horse-detail-body .detail-horse-hero{grid-template-columns:1fr;gap:10px;padding:12px}
  .horse-detail-body .detail-horse-hero-silk{width:60px;height:60px;border-radius:0;background:transparent;border:none;box-shadow:none}
  .horse-detail-body .detail-horse-name{font-size:19px}
  .horse-detail-body .detail-odds-inline{width:100%;justify-content:flex-start;margin-left:0}
  .horse-detail-body .detail-insight-grid{grid-template-columns:1fr;gap:8px}
  .horse-detail-body .detail-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .horse-detail-body .detail-section-history{margin-left:12px}
  .horse-detail-body .detail-section-history::before{left:-9px}
  .horse-detail-body .detail-section-history::after{left:-15px;top:18px}
  #actorDetailBody .detail-actor-hero{padding:12px 12px 6px}
  #actorDetailBody .detail-actor-avatar{width:48px;height:48px;border-radius:14px;font-size:20px}
  #actorDetailBody .detail-actor-name{font-size:18px}
  #actorDetailBody .detail-actor-horse-list{padding:10px 12px 12px;gap:6px}
}


body.board-race-overseas #panel-q .rank-wp-table > thead > tr > th:nth-child(1),
body.board-race-overseas #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1){
  width:auto !important;
  min-width:72px !important;
  max-width:min(46vw,220px) !important;
}
body.board-race-overseas #panel-q .horse-info{
  max-width:none !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}
body.board-race-overseas #panel-q .horse-name-wrap,
body.board-race-overseas #panel-q .rank-wp-table > tbody > tr.sortTr > td:nth-child(1) .horse-name{
  width:auto !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word !important;
  line-height:1.15 !important;
}
body.board-race-overseas #panel-q .info-col{
  align-items:flex-start !important;
}
@media(min-width:769px){
  body.board-race-overseas #panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1),
  body.board-race-overseas #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1){
    width:auto !important;
    min-width:100px !important;
    max-width:min(28vw,260px) !important;
  }
  body.board-race-overseas #panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1) .horse-name{
    max-width:100% !important;
    white-space:normal !important;
    word-break:break-word !important;
  }
}


.horse-pace-badge,
.horse-pace-stack{
  display:inline-flex;
  font-weight:700;
  color:#fff;
  box-sizing:border-box;
  vertical-align:middle;
}
.horse-pace-badge{
  align-items:center;
  justify-content:center;
  min-width:2.4em;
  padding:1px 7px;
  border-radius:3px;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.02em;
  white-space:nowrap;
}
.horse-pace-stack{
  flex:0 0 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  align-self:center;
  min-width:1.15em;
  padding:1px 3px;
  border-radius:3px;
  gap:0;
  line-height:1;
  white-space:nowrap;
}
.horse-pace-stack-c1,
.horse-pace-stack-c2{
  display:block;
  font-size:inherit;
  font-weight:inherit;
  line-height:1.02;
  color:inherit;
  background:transparent;
  padding:0;
  margin:0;
  border-radius:0;
}
.horse-pace-badge.pace-front,.horse-pace-stack.pace-front{background:#dc2626}
.horse-pace-badge.pace-track,.horse-pace-stack.pace-track{background:#ea580c}
.horse-pace-badge.pace-even,.horse-pace-stack.pace-even{background:#16a34a}
.horse-pace-badge.pace-closer,.horse-pace-stack.pace-closer{background:#2563eb}
.horse-pace-badge.pace-none,
.horse-pace-stack.pace-none{background:#9ca3af;color:#fff}
#panel-q .rank-ref-horse-pace-slot .horse-pace-badge.pace-none{background:#9ca3af !important;color:#fff !important}
#panel-q .rank-ref-meta .horse-pace-stack{
  font-size:12px;
}
#panel-q .rank-ref-person-line,
.rank-horse-card-info .rank-ref-person-line,
.rank-index-horse-meta .rank-ref-person-line{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:3px;
  width:100%;
  min-width:0;
  max-width:100%;
}
#panel-q .rank-ref-role,
.rank-horse-card-info .rank-ref-role,
.rank-index-horse-meta .rank-ref-role{
  flex:0 0 auto;
  font-size:13px;
  font-weight:500;
  color:#374151;
  letter-spacing:0;
  white-space:nowrap;
}
#panel-q .rank-ref-person-line .person-name,
.rank-horse-card-info .rank-ref-person-line .person-name,
.rank-index-horse-meta .rank-ref-person-line .person-name{
  flex:0 1 auto;
  min-width:0;
}
#panel-q .rank-ref-jockey .rank-ref-person-line,
#panel-q .rank-ref-trainer .rank-ref-person-line{
  width:100%;
}
#panel-q .rank-ref-jockey .label-tag,#panel-q .rank-ref-weight .label-tag,#panel-q .rank-ref-trainer .label-tag{display:none !important}
#panel-q .rank-name-line-person{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  gap:3px;
  min-width:0;
}
#panel-q .rank-name-line-person .rank-ref-meta-lines{
  flex:1 1 auto;
  min-width:0;
}
#panel-q .rank-index-horse-meta-person{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  gap:3px;
  min-width:0;
}
.pace-data-status{display:block;font-size:12px;margin-top:4px;line-height:1.35}
.pace-data-status-ok{color:#16a34a}
.pace-data-status-warn{color:#ea580c}
#panel-q .rank-ref-horse-top{
  flex-wrap:nowrap;
  align-items:baseline;
  row-gap:2px;
}
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1),
#panel-q .rank-wp-table-ref > thead > tr > th:nth-child(1) .th-label{
  text-align:center !important;
}

/* Tipsme unified UI pass */
.pingyu-horse-card{
  border-left-color:#133260;
  box-shadow:0 6px 18px rgba(19,50,96,.08);
}
.pingyu-horse-card.tone-blue,
.pingyu-horse-card.tone-slate{
  border-left-color:#2A4873;
}
.pingyu-horse-card.tone-gold{
  border-left-color:#ffce44;
}
.pingyu-horse-no{
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
}
.pingyu-horse-name,
#panel-q .rank-wp-table-ref .rank-index-inline-label,
.rank-placeholder-title{
  color:#133260;
}
.qtable,
.qin-table{
  border-bottom-color:#133260;
}
.horse-pace-badge.pace-closer,
.horse-pace-stack.pace-closer{
  background:#2A4873;
}
.rank-q-simple-copy,
.rank-q-simple-copy:hover,
.rank-q-simple-copy:active,
.horse-detail-body .detail-horse-no{
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
  color:#fff;
}
.horse-detail-body .detail-link,
.horse-detail-body .detail-link:hover{
  color:#133260;
}
.horse-detail-body .detail-section-current{
  border-color:#dbe7f5;
  box-shadow:0 12px 30px rgba(19,50,96,.08);
}
.horse-detail-body .detail-section-current .detail-section-title{
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
}
.horse-detail-body .detail-horse-hero{
  background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 100%);
  border-color:#dbe7f5;
  box-shadow:0 10px 22px rgba(19,50,96,.08);
}

/* 海外同播：指數 TAB 無跑法步速、無近10場往績展開 */
.board-race-overseas #panel-q .rank-ref-horse-pace-slot,
.board-race-overseas #panel-q .rank-ref-horse-arrow-slot{
  display:none !important;
}
.board-race-overseas #panel-q tr.rank-wp-form-detail-tr{
  display:none !important;
}
.board-race-overseas .rank-q-view-mode{
  display:none !important;
}

/* 海外賽事：走位圖／騎師王／練馬師王僅適用本地賽馬 */
.board-race-overseas #panel-q .rank-q-extras{
  display:none !important;
}

/* 水位頁：速勢走位圖 + 騎師王／練馬師王（位於水位篩選下方；配色跟隨本頁 #133260 / #122c68） */
#panel-q .rank-q-extras{
  margin-top:14px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:14px;
}
#panel-q .rank-q-ft-figure{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
  border:1px solid #dbe5f1;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
#panel-q .rank-q-ft-figure .ft-top-figure,
#panel-q .rank-q-ft-figure .race-main,
#panel-q .rank-q-ft-figure .race-detail,
#panel-q .rank-q-ft-figure > div{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
}
#panel-q .rank-q-ft-figure .ft-top-figure{
  display:block;
  overflow:hidden;
}
#panel-q .rank-q-ft-figure img.has-map,
#panel-q .rank-q-ft-figure .speedguide-map,
#panel-q .rank-q-ft-figure .race-main img,
#panel-q .rank-q-ft-figure .race-detail img,
#panel-q .rank-q-ft-figure .ft-top-figure img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain;
  cursor:default;
}
#panel-q .rank-q-ft-figure .ft-placeholder-msg{
  min-height:180px;
  padding:20px 14px;
  font-size:14px;
  color:#64748b;
}
#panel-q .rank-q-kings{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}
#panel-q .rank-q-king-block{
  margin-top:0;
  width:100%;
  box-sizing:border-box;
  border:1px solid #dbe5f1 !important;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
  overflow:hidden;
  padding-top:0 !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
#panel-q #rankQJkcMeta,
#panel-q #rankQTncMeta{
  margin:0;
  padding:10px 14px !important;
  background:linear-gradient(135deg,#133260 0%,#2A4873 100%);
  color:#fff;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
  border-bottom:1px solid rgba(19,50,96,.12);
}
#panel-q .rank-q-king-block .king-meta-title{
  font-size:16px;
  font-weight:900;
  line-height:1.15;
  color:#fff;
}
#panel-q .rank-q-king-table-wrap{
  max-height:none !important;
  overflow:auto;
  padding:0;
  background:#fff;
}
#panel-q .rank-q-king-block .div-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  margin:0;
}
#panel-q .rank-q-king-block .div-table thead th{
  background:#f8f8f8;
  color:#122c68;
  border-color:#dbe5f1;
  padding:9px 8px;
  font-size:14px;
  font-weight:800;
}
#panel-q .rank-q-king-block .div-table td{
  border-color:#dbe5f1;
  padding:9px 8px;
  font-size:14px;
  font-weight:600;
  color:#334155;
}
#panel-q .rank-q-king-block .div-table tbody tr:nth-child(odd) td{
  background:#f8fbff;
}
#panel-q .rank-q-king-block .div-table tbody tr:nth-child(even) td{
  background:#fff;
}
#panel-q .rank-q-king-block .div-table .jkc-other-summary td,
#panel-q .rank-q-king-block .div-table .tnc-other-summary td{
  background:#eef4ff !important;
}
#panel-q .rank-q-king-block.king-result-hidden .div-table th:nth-child(6),
#panel-q .rank-q-king-block.king-result-hidden .div-table td:nth-child(6){
  display:none;
}
#panel-q .rank-q-king-block .king-name-main{
  color:#133260;
}
#panel-q .rank-q-king-block .jkc-other-toggle,
#panel-q .rank-q-king-block .tnc-other-toggle{
  border:0;
  background:transparent;
  color:#133260;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  padding:0;
}

/* 水位頁：雙行表頭（備份見 docs/backups/board-rank-q-thead-v1.css） */
#panel-q .rank-wp-table-ref{
  --rank-q-horse-name-font:clamp(14px,4vw,28px);
}
@media(max-width:768px){
  #panel-q .rank-wp-table-ref{
    --rank-q-horse-name-font:18px;
  }
}
#panel-q .rank-q-table-font-scaler{width:100%}
#panel-q .rank-wp-table-ref > thead{
  background:#6176a0 !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col{
  background:#6176a0 !important;
  color:#fff !important;
  border:0 !important;
  padding:0 !important;
  height:auto !important;
  min-height:28px;
  vertical-align:middle !important;
  text-align:center !important;
  box-shadow:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col::before,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col::after,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th::before,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th::after{
  display:none !important;
  content:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name{
  box-shadow:2px 0 6px -4px rgba(15,23,42,.16) !important;
  z-index:21 !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col[rowspan="2"]{
  vertical-align:middle !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col[rowspan="2"] .rank-q-th-sort{
  min-height:56px;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort,
#panel-q .rank-wp-table-ref .rank-q-th-static-label{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:28px;
  padding:2px 4px;
  box-sizing:border-box;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  cursor:default;
  text-align:center;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name .rank-q-th-sort,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name .rank-q-th-static-label{
  width:100%;
  justify-content:center;
  padding-left:10px;
  padding-right:10px;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort.sortable{
  cursor:pointer;
  user-select:none;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort.sortable:hover{
  filter:brightness(1.05);
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th:not(.rank-q-th-col-name) .rank-q-th-sort.sortable{
  gap:6px;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort-label,
#panel-q .rank-wp-table-ref .rank-q-th-static-label{
  font-size:var(--rank-q-horse-name-font) !important;
  font-weight:700;
  color:#fff;
  line-height:1;
  text-align:center;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name .rank-q-th-sort.is-active .rank-q-th-sort-label,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-wp .rank-q-th-sort.is-active .rank-q-th-sort-label,
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-water .rank-q-th-sort.is-active .rank-q-th-sort-label{
  color:#ffb020 !important;
  font-weight:800 !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name .rank-q-th-sort-arrow{
  display:none !important;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort-arrow{
  position:relative;
  width:12px;
  height:14px;
  flex:0 0 12px;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort-arrow::before,
#panel-q .rank-wp-table-ref .rank-q-th-sort-arrow::after{
  content:'';
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  border-left:5px solid transparent;
  border-right:5px solid transparent;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort-arrow::before{
  top:0;
  border-bottom:6px solid rgba(255,255,255,.45);
}
#panel-q .rank-wp-table-ref .rank-q-th-sort-arrow::after{
  bottom:0;
  border-top:6px solid rgba(255,255,255,.45);
}
#panel-q .rank-wp-table-ref .rank-q-th-sort.is-active.is-asc .rank-q-th-sort-arrow::before{
  border-bottom-color:#fff;
}
#panel-q .rank-wp-table-ref .rank-q-th-sort.is-active.is-desc .rank-q-th-sort-arrow::after{
  border-top-color:#fff;
}
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2) .rank-index-inline-divider,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3) .rank-index-inline-divider{
  display:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th:nth-child(2)::before,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2)::before{
  display:none !important;
}
#panel-q .rank-wp-wrap-q.is-race-switch-loading .rank-wp-table-ref > thead > tr.rank-q-thead-row > th{
  opacity:.42;
  pointer-events:none;
}

/* （已由文件末尾 colgroup + 類名規則取代） */
#panel-q .rank-wp-table-ref > thead > tr > th,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td{
  overflow:hidden;
  box-sizing:border-box;
}
#panel-q .rank-wp-table-ref td:nth-child(1) .horse-name{
  font-size:clamp(14px,4vw,28px) !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#panel-q .rank-wp-table-ref .rank-ref-horse-no{
  font-size:clamp(14px,3.8vw,28px) !important;
}
#panel-q .rank-wp-table-ref .rank-index-inline-value,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
#panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50{
  font-size:clamp(12px,3.2vw,22px) !important;
}
#panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-wt-value,
#panel-q .rank-wp-table-ref .rank-time-value{
  font-size:clamp(11px,2.8vw,20px) !important;
}
#panel-q .rank-wp-table-ref .rank-ref-jockey .person-name,
#panel-q .rank-wp-table-ref .rank-ref-trainer .person-name{
  font-size:clamp(9px,2.2vw,13px) !important;
}
#panel-q .rank-wp-table-ref .rank-best-time-cell{
  width:24% !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:hidden !important;
  text-align:center !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-name{width:34% !important}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-wp{width:14% !important}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-water{width:14% !important}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-gate{width:14% !important}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row > th.rank-q-th-col-time{width:24% !important}
#panel-q .rank-wp-table-ref .rank-time-last6-inline .rank-last6-plain{
  display:none !important;
}
#panel-q .rank-wp-table-ref .rank-time-comment-inline{
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  gap:2px !important;
}
#panel-q .rank-wp-table-ref .rank-time-comment-actions{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:clamp(4px,1.2vw,8px);
}
#panel-q .rank-wp-table-ref .rank-time-comment-actions .rank-comment-trigger,
#panel-q .rank-wp-table-ref .rank-time-comment-actions .rank-note-trigger{
  width:clamp(22px,6vw,26px);
  height:clamp(22px,6vw,26px);
  flex:0 0 auto;
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#panel-q .rank-wp-table-ref .rank-time-comment-actions .rank-comment-trigger-icon,
#panel-q .rank-wp-table-ref .rank-time-comment-actions .rank-note-trigger-icon{
  width:clamp(13px,3.6vw,16px);
  height:clamp(13px,3.6vw,16px);
}

/* 水位頁 5 列全寬（桌面/移動）：colgroup + 類名列寬，避免 thead 雙行 nth-child 錯位 */
#panel-q .rank-wp-wrap-q,
#panel-q .rank-q-table-font-scaler,
#panel-q .rank-wp-table.rank-wp-table-ref,
#panel-q .rank-wp-table.rank-wp-table-ref > thead,
#panel-q .rank-wp-table.rank-wp-table-ref > tbody,
#panel-q .rank-wp-table.rank-wp-table-ref > tbody > tr.sortTr{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box;
}
#panel-q .rank-wp-table.rank-wp-table-ref{
  min-width:100% !important;
}
#panel-q .rank-wp-table.rank-wp-table-ref{
  table-layout:fixed !important;
  border:0 !important;
  margin:0 !important;
  border-collapse:collapse !important;
}
#panel-q .rank-wp-table.rank-wp-table-ref th,
#panel-q .rank-wp-table.rank-wp-table-ref td{
  border-left:0 !important;
  border-right:0 !important;
  box-sizing:border-box !important;
}
#panel-q .rank-wp-table-ref > colgroup > col.rank-col-name{width:34% !important}
#panel-q .rank-wp-table-ref > colgroup > col.rank-col-wp{width:14% !important}
#panel-q .rank-wp-table-ref > colgroup > col.rank-col-index{width:14% !important}
#panel-q .rank-wp-table-ref > colgroup > col.rank-col-odd{width:14% !important}
#panel-q .rank-wp-table-ref > colgroup > col.rank-col-time{width:24% !important}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col-name,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(1){
  width:34% !important;
  min-width:0 !important;
  max-width:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col-wp,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(2){
  width:14% !important;
  min-width:0 !important;
  max-width:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col-water,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(3){
  width:14% !important;
  min-width:0 !important;
  max-width:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col-gate,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(4){
  width:14% !important;
  min-width:0 !important;
  max-width:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col-time,
#panel-q .rank-wp-table-ref > tbody > tr.sortTr > td:nth-child(5),
#panel-q .rank-wp-table-ref .rank-best-time-cell{
  width:24% !important;
  min-width:0 !important;
  max-width:none !important;
}
#panel-q .rank-wp-table-ref > thead > tr.rank-q-thead-row{
  width:100%;
  display:table-row;
}
#panel-q .rank-wp-table-ref > thead{
  display:table-header-group;
  width:100%;
}
@media(min-width:769px){
  #panel-q .rank-wp-wrap-q,
  #panel-q .rank-q-table-font-scaler,
  #panel-q .rank-wp-table.rank-wp-table-ref{
    width:100% !important;
    max-width:100% !important;
  }
  #panel-q .rank-wp-table.rank-wp-table-ref{
    display:table !important;
    table-layout:fixed !important;
  }
  #panel-q .rank-wp-table-ref > thead > tr > th.rank-q-th-col{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .card.tabs-card #panel-q.active,
  .card.tabs-card #panel-q{
    width:100%;
    max-width:100%;
  }
}
@media(max-width:768px){
  #panel-q .rank-wp-table-ref .rank-index-inline-value,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-val-plain,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-scr-exit-odd,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-up,
  #panel-q .rank-wp-table-ref .rank-wp-odd-inline .rank-odd-wp-wrap .wp-down50,
  #panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-wt-value,
  #panel-q .rank-wp-table-ref .rank-gate-inline .rank-gate-draw-value{
    font-size:clamp(16px,4.6vw,20px) !important;
    font-weight:400 !important;
    line-height:1.1 !important;
  }
}

/* 評語氣泡（整站卡片風格） */
.rank-comment-bubble-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:1100;
  background:rgba(7,12,20,.52);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.rank-comment-bubble-backdrop.show{
  display:block;
  opacity:1;
  pointer-events:auto;
}
.rank-comment-bubble{
  position:fixed;
  z-index:1101;
  width:min(calc(100vw - 24px),340px);
  max-height:min(56vh,380px);
  opacity:0;
  transform:translateY(8px) scale(.98);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.rank-comment-bubble.show{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.rank-comment-bubble-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #d7e5f4;
  background:#fff;
  box-shadow:0 16px 40px rgba(18,44,104,.16),0 0 0 1px rgba(219,231,245,.85);
}
.rank-comment-bubble-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px 10px 14px;
  background:linear-gradient(135deg,#133260 0%,#2a4873 100%);
  color:#fff;
}
.rank-comment-bubble-head-main{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 auto;
}
.rank-comment-bubble-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,206,68,.18);
  color:#ffce44;
  font-size:11px;
  font-weight:800;
  letter-spacing:.3px;
}
.rank-comment-bubble-title{
  min-width:0;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rank-comment-bubble-close{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:background .16s ease;
}
.rank-comment-bubble-close:hover{background:rgba(255,255,255,.24)}
.rank-comment-bubble-body{
  max-height:min(44vh,300px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:14px 14px 16px;
  background:linear-gradient(180deg,#fbfdff 0%,#f3f7fc 100%);
}
.rank-comment-bubble-text{
  font-size:15px;
  line-height:1.75;
  color:#0f172a;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.rank-comment-bubble-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:88px;
  padding:12px;
  border-radius:12px;
  border:1px dashed #cbd5e1;
  background:#fff;
  color:#94a3b8;
  font-size:14px;
  font-weight:700;
  text-align:center;
}
.rank-comment-bubble-arrow{
  position:absolute;
  left:var(--rank-comment-bubble-arrow-left,50%);
  bottom:-7px;
  width:14px;
  height:14px;
  margin-left:-7px;
  background:#fff;
  transform:rotate(45deg);
  border-right:1px solid #d7e5f4;
  border-bottom:1px solid #d7e5f4;
  box-shadow:3px 3px 6px rgba(15,23,42,.08);
}
.rank-comment-bubble.is-above .rank-comment-bubble-arrow{
  bottom:auto;
  top:-7px;
  border-right:0;
  border-bottom:0;
  border-left:1px solid #d7e5f4;
  border-top:1px solid #d7e5f4;
  box-shadow:-2px -2px 5px rgba(15,23,42,.06);
}

/* 水位 5 列：桌面铺满容器，消除右侧白边（须置于文件末尾） */
#panel-q .rank-wp-table.rank-wp-table-ref{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#fff !important;
}
#panel-q .rank-wp-wrap.rank-wp-wrap-q{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  scrollbar-gutter:auto !important;
  overflow-x:hidden !important;
}
@media(min-width:769px){
  #panel-q .rank-wp-wrap.rank-wp-wrap-q,
  #panel-q .rank-q-table-font-scaler,
  #panel-q .rank-wp-table.rank-wp-table-ref,
  #panel-q .rank-wp-table.rank-wp-table-ref > colgroup{
    width:100% !important;
    max-width:100% !important;
    min-width:100% !important;
  }
  #panel-q .rank-wp-table-ref > thead{
    width:100% !important;
    background:#6176a0 !important;
  }
  #panel-q .rank-wp-table-ref > tbody{
    width:100% !important;
  }
}
.rank-wp-table > thead > tr > th.sortable.rank-sort-highlight-active{
  background:inherit !important;
  color:inherit !important;
  border-bottom-color:inherit !important;
  box-shadow:none !important;
}

.rank-wp-table > thead > tr > th.sortable.rank-sort-highlight-active::after{
  opacity:1;
}

.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell{
  background:var(--rank-sort-bg,#ffffff) !important;
  color:#111 !important;
  transition:background-color .2s ease,color .2s ease,filter .2s ease,box-shadow .2s ease;
}

.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr:hover > td.rank-sort-active-cell{
  background:var(--rank-sort-bg,#ffffff) !important;
  color:#111 !important;
  filter:saturate(1.02) brightness(.99);
}

.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .wp-down,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .wp-up,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .wp-down50,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .wp-val-plain,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .wp-trend,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .jockey-trainer{
  color:inherit !important;
  background:transparent !important;
}

.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .draw-badge{
  background:rgba(255,255,255,.58);
  border-color:currentColor;
  color:currentColor;
}
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-gate-draw-badge{
  background:rgba(255,255,255,.58);
  color:currentColor;
}
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-index-inline-value.rank-index-win-value:not(.rank-index-tier){
  color:#0f172a !important;
}
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-index-inline-value.rank-index-place-value:not(.rank-index-tier){
  color:#6b7280 !important;
}
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-wp-odd-inline .rank-wp-odd-row-win .wp-val-plain,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-wp-odd-inline .rank-wp-odd-row-win .wp-scr-exit-odd{
  color:#0f172a !important;
}
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-wp-odd-inline .rank-wp-odd-row-place .wp-val-plain,
.rank-wp-table.rank-sort-highlight-enabled > tbody > tr.sortTr > td.rank-sort-active-cell .rank-wp-odd-inline .rank-wp-odd-row-place .wp-scr-exit-odd{
  color:#6b7280 !important;
}
.horse-detail-mask{
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  overscroll-behavior:contain;
}

#horseDetailModal.horse-detail-sheet-modal,
#actorDetailModal.actor-detail-sheet-modal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:1001;
  width:min(96vw,720px);
  max-width:min(96vw,720px);
  height:min(calc(100vh - 12px),920px);
  max-height:calc(100vh - 12px);
  overflow:visible;
  overscroll-behavior:contain;
  box-sizing:border-box;
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-inner,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-inner{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
  max-height:calc(100vh - 12px);
  overflow:hidden;
  background:#ececec;
  border:1px solid #cfcfcf;
  border-radius:8px;
  box-shadow:0 18px 48px rgba(0,0,0,.24);
}

@supports (height: 100dvh){
  #horseDetailModal.horse-detail-sheet-modal,
  #actorDetailModal.actor-detail-sheet-modal{
    height:min(calc(100dvh - 12px),920px);
    max-height:calc(100dvh - 12px);
  }

  #horseDetailModal.horse-detail-sheet-modal .horse-detail-inner,
  #actorDetailModal.actor-detail-sheet-modal .horse-detail-inner{
    max-height:calc(100dvh - 12px);
  }
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-head,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 11px 7px;
  border-bottom:1px solid rgba(255,255,255,.14);
  background:linear-gradient(135deg,#0f3b8f 0%,#163a7a 56%,#1e4fb5 100%);
  position:sticky;
  top:0;
  z-index:2;
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-head h3,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-head h3{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  margin:0;
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:0;
}

.horse-detail-title-main{
  display:block;
  font-size:14px;
  line-height:1.15;
  font-weight:700;
}

.horse-detail-title-sub{
  display:block;
  font-size:10px;
  line-height:1.15;
  font-weight:600;
  color:rgba(255,255,255,.9);
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-close,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-close{
  border:none;
  width:26px;
  height:26px;
  color:#fff;
  background:rgba(255,255,255,.12);
  border-radius:5px;
  font-size:18px;
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-close:hover,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-close:hover{
  color:#fff;
  background:rgba(255,255,255,.24);
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-body,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-body{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
  padding:8px 8px calc(120px + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px));
  font-size:12px;
  line-height:1.45;
  background:#ececec;
}

#horseDetailModal.horse-detail-sheet-modal .horse-detail-body::after,
#actorDetailModal.actor-detail-sheet-modal .horse-detail-body::after{
  content:"";
  display:block;
  height:calc(120px + env(safe-area-inset-bottom, 0px));
  flex:0 0 auto;
}

html.detail-modal-open,
body.detail-modal-open{
  overflow:hidden;
  overscroll-behavior:none;
}

body.detail-modal-open{
  position:fixed;
  left:0;
  right:0;
  width:100%;
}

.detail-debug-console{
  position:fixed;
  right:8px;
  bottom:72px;
  z-index:2600;
  width:min(92vw,360px);
  max-height:36vh;
  overflow:hidden;
  padding:8px 10px 10px;
  border-radius:8px;
  background:rgba(6,10,18,.86);
  color:#d9f4dd;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  pointer-events:auto;
  -webkit-overflow-scrolling:touch;
}

.detail-debug-console-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}

.detail-debug-console-title{
  color:#eef8f0;
  font:600 11px/1.2 monospace;
  opacity:.92;
}

.detail-debug-copy{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:6px;
  padding:3px 8px;
  font:600 11px/1.2 sans-serif;
  cursor:pointer;
}

.detail-debug-console-text{
  margin:0;
  max-height:calc(36vh - 34px);
  overflow:auto;
  color:#d9f4dd;
  font:11px/1.35 monospace;
  white-space:pre-wrap;
  word-break:break-word;
  -webkit-overflow-scrolling:touch;
}

#horseDetailBody .detail-section,
#actorDetailBody .detail-section{
  margin-top:8px;
  border:1px solid #d6d6d6;
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}

#horseDetailBody .detail-section-title,
#actorDetailBody .detail-section-title{
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  background:#6f6f6f;
  border-bottom:1px solid #d6d6d6;
}

#horseDetailBody .detail-section-current,
#actorDetailBody .detail-section-actor-current{
  border-color:#cfd8c7;
}

#horseDetailBody .detail-section-current .detail-section-title,
#actorDetailBody .detail-section-actor-current .detail-section-title{
  background:#1e7f22;
  border-bottom-color:#1e7f22;
}

#horseDetailBody .detail-section-summary .detail-section-title,
#horseDetailBody .detail-section-detail .detail-section-title,
#horseDetailBody .detail-section-history .detail-section-title,
#actorDetailBody .detail-section-detail .detail-section-title,
#actorDetailBody .detail-section-history .detail-section-title{
  background:#767676;
  color:#fff;
}

#horseDetailBody .detail-section .detail-race-name,
#horseDetailBody .detail-section .detail-race-meta,
#horseDetailBody .detail-section .detail-row,
#horseDetailBody .detail-section .detail-line,
#actorDetailBody .detail-section .detail-race-name,
#actorDetailBody .detail-section .detail-race-meta,
#actorDetailBody .detail-section .detail-row,
#actorDetailBody .detail-section .detail-line{
  padding-left:10px;
  padding-right:10px;
}

#horseDetailBody .detail-race-meta,
#actorDetailBody .detail-race-meta{
  margin-bottom:4px;
  color:#666;
  font-size:12px;
}

#horseDetailBody .detail-summary-grid{
  gap:6px;
  padding:4px 10px 10px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

#horseDetailBody .detail-stat-card{
  padding:8px;
  border:1px solid #d9d9d9;
  border-radius:6px;
  background:#fafafa;
  text-align:center;
}

#horseDetailBody .detail-stat-card-hot{
  background:#fff7e8;
  border-color:#efd49c;
}

#horseDetailBody .detail-stat-card-cool{
  background:#f3f8ff;
  border-color:#d4e2f5;
}

#horseDetailBody .detail-horse-info-top{
  padding:2px 10px 6px;
  background:#f8f8f8;
}

.detail-horse-info-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:flex-start;
  padding:6px 10px;
  background:#707070;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
}

.detail-horse-info-banner-silk{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
}

.detail-horse-info-banner-silk .horse-detail-silk{
  width:39px;
  height:49px;
  margin-right:0;
  object-fit:contain;
  filter:none;
}

.detail-horse-info-banner-copy{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px 14px;
}

.detail-horse-info-banner-label{
  display:inline;
  color:rgba(255,255,255,.78);
  font-size:9px;
  line-height:1.08;
  font-weight:700;
}

.detail-horse-info-banner-value{
  display:inline;
  color:#fff;
  font-size:11px;
  line-height:1.16;
  font-weight:600;
  word-break:break-word;
}

.detail-horse-info-banner-item{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:4px;
  flex-wrap:wrap;
  justify-content:space-between;
}

.detail-horse-info-banner-item-full{
  grid-column:1 / -1;
}

#horseDetailBody .detail-horse-hero{
  margin:6px 10px 10px;
  padding:10px;
  gap:8px;
  border:1px solid #d6e2d1;
  border-radius:8px;
  background:linear-gradient(180deg,#ffffff 0%,#f5fbf5 100%);
  box-shadow:none;
}

#horseDetailBody .detail-horse-hero-silk{
  width:73px;
  height:73px;
  border-radius:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

#horseDetailBody .detail-horse-hero-silk .horse-detail-silk{
  width:73px;
  height:73px;
}

#horseDetailBody .detail-horse-no{
  min-width:38px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#1e7f22;
  font-size:11px;
}

#horseDetailBody .detail-horse-name{
  font-size:18px;
  font-weight:700;
}

#horseDetailBody .detail-horse-tagline,
#actorDetailBody .detail-actor-role{
  color:#6b6b6b;
}

#horseDetailBody .detail-odds-chip{
  padding:5px 9px;
  border:1px solid #d6d6d6;
  border-radius:999px;
  background:#fff;
  box-shadow:none;
  color:#1f1f1f;
  font-size:12px;
}

#horseDetailBody .detail-insight-grid{
  gap:6px;
  padding:4px 10px 10px;
}

#horseDetailBody .detail-insight-card{
  padding:8px 9px;
  border:1px solid #d9d9d9;
  border-radius:6px;
  box-shadow:none;
  background:#fff;
}

#horseDetailBody .detail-insight-card-comment{
  background:#f6fbff;
}

#horseDetailBody .detail-insight-card-report{
  background:#fffbea;
}

#horseDetailBody .detail-info-grid,
#actorDetailBody .detail-info-grid{
  gap:10px;
  padding:2px 0 0;
}

#horseDetailBody .detail-info-card,
#actorDetailBody .detail-info-card{
  padding:11px 12px 12px;
  border:1px solid #e2eaf6;
  border-radius:14px;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}

#horseDetailBody .detail-info-label,
#actorDetailBody .detail-info-label{
  color:#7b8798;
  font-size:11px;
  font-weight:800;
}

#horseDetailBody .detail-info-value,
#actorDetailBody .detail-info-value{
  margin-top:4px;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
  color:#163a7a;
}

#horseDetailBody .detail-info-value-badge,
#actorDetailBody .detail-info-value-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  margin-top:6px;
}

#horseDetailBody .detail-info-place-badge-wrap,
#actorDetailBody .detail-info-place-badge-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#horseDetailBody .detail-link,
#actorDetailBody .detail-link{
  color:#0c63c7;
  text-decoration:none;
}

#horseDetailBody .detail-section-history,
#actorDetailBody .detail-section-history{
  margin-left:12px;
  background:#fff;
}

#horseDetailBody .detail-section-history::before,
#actorDetailBody .detail-section-history::before{
  left:-10px;
  width:2px;
  background:#d5d5d5;
}

#horseDetailBody .detail-section-history::after,
#actorDetailBody .detail-section-history::after{
  left:-16px;
  width:10px;
  height:10px;
  background:#1e7f22;
  box-shadow:0 0 0 3px #ececec;
}


#horseDetailBody .detail-app-shell-horse .detail-app-history-th.detail-app-history-th-corunning,
#horseDetailBody .detail-app-shell-horse .detail-app-history-td.detail-app-history-td-corunning{
  text-align:left !important;
  white-space:normal !important;
  vertical-align:top;
}

#actorDetailBody .detail-actor-hero{
  padding:10px 10px 4px;
}

#actorDetailBody .detail-actor-avatar{
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(180deg,#249228 0%,#1d7f21 100%);
  box-shadow:none;
  font-size:18px;
}

#actorDetailBody .detail-actor-name{
  font-size:18px;
}

#actorDetailBody .detail-actor-horse-list{
  gap:6px;
  padding:8px 10px 10px;
}

#actorDetailBody .detail-actor-horse-chip{
  min-height:28px;
  padding:4px 9px;
  border:1px solid #d7d7d7;
  background:#f8f8f8;
  box-shadow:none;
  font-size:12px;
}

@media (max-width: 768px){
  #horseDetailModal.horse-detail-sheet-modal,
  #actorDetailModal.actor-detail-sheet-modal{
    top:6px;
    bottom:6px;
    left:50%;
    transform:translateX(-50%);
    width:calc(100vw - 8px);
    max-width:calc(100vw - 8px);
    height:calc(100vh - 12px);
    max-height:none;
  }

  #horseDetailModal.horse-detail-sheet-modal .horse-detail-inner,
  #actorDetailModal.actor-detail-sheet-modal .horse-detail-inner{
    height:100%;
    max-height:none;
    border-radius:6px;
  }

  #horseDetailModal.horse-detail-sheet-modal .horse-detail-head h3,
  #actorDetailModal.actor-detail-sheet-modal .horse-detail-head h3{
    font-size:13px;
  }

  #horseDetailModal.horse-detail-sheet-modal .horse-detail-body,
  #actorDetailModal.actor-detail-sheet-modal .horse-detail-body{
    padding:8px;
    font-size:12px;
  }

  #horseDetailBody .detail-horse-hero{
    grid-template-columns:1fr;
  }

  #horseDetailBody .detail-horse-name,
  #actorDetailBody .detail-actor-name{
    font-size:16px;
  }

  #horseDetailBody .detail-info-grid,
  #actorDetailBody .detail-info-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #horseDetailBody .detail-insight-grid{
    grid-template-columns:1fr;
  }

  #horseDetailBody .detail-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .detail-app-official-link-grid{
    grid-template-columns:1fr;
  }

  .detail-app-row-actions{
    width:100%;
    justify-content:flex-start;
    margin-left:0;
  }
}

.detail-season-strip{
  padding:8px 10px;
  background:#6f6f6f;
  color:#fff;
}

.detail-season-strip-current{
  background:linear-gradient(180deg,#239526 0%,#1d7f21 100%);
}

.detail-season-strip-muted{
  background:#6d6d6d;
}

.detail-season-title{
  font-size:14px;
  line-height:1.25;
  font-weight:700;
}

.detail-season-detail{
  margin-top:2px;
  font-size:11px;
  line-height:1.35;
  color:rgba(255,255,255,.82);
}

.detail-app-entry{
  overflow:hidden;
}

.detail-app-entry + .detail-app-entry{
  border-top:1px solid #ececec;
}

.detail-app-entry-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  padding:3px 10px 4px;
  background:#f1f1f1;
  border-bottom:1px solid #e2e2e2;
}

.detail-app-entry-meta-left{
  min-width:0;
  flex:1;
}

.detail-app-entry-meta-right{
  flex:0 0 auto;
  text-align:right;
  min-width:42px;
}

.detail-app-entry-meta-title{
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  color:#1f1f1f;
}

.detail-app-entry-meta-sub,
.detail-app-entry-meta-time{
  margin-top:1px;
  font-size:10px;
  line-height:1.3;
  color:#777;
}

.detail-app-entry-meta-finish{
  font-size:10px;
  line-height:1.2;
  color:#0c63c7;
  font-weight:700;
}

.detail-app-entry-body{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  padding:7px 10px;
}

.detail-app-leading{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
}

.detail-app-leading-silk{
  width:30px;
}

.detail-app-leading-silk .horse-detail-silk{
  width:26px;
  height:34px;
  margin-right:0;
  object-fit:contain;
  filter:none;
}

.detail-app-entry-copy{
  min-width:0;
  padding-top:1px;
}

.detail-app-entry-meta-title{
  font-size:11px;
  line-height:1.16;
  font-weight:700;
  color:#1c1c1c;
}

.detail-app-entry-meta-sub,
.detail-app-entry-meta-time{
  margin-top:1px;
  font-size:10px;
  line-height:1.12;
  color:#777;
}

.detail-app-entry-meta-finish{
  font-size:10px;
  line-height:1.1;
}

.detail-app-title-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
  min-width:0;
  color:#111;
  margin-bottom:2px;
}

.detail-app-title-num{
  font-size:11px;
  line-height:1.08;
  font-weight:700;
}

.detail-app-title-name{
  min-width:0;
  font-size:12px;
  line-height:1.08;
  font-weight:700;
  color:#111;
}

.detail-app-title-name .detail-link,
.detail-app-title-name .detail-horse-link{
  color:#111;
}

.detail-app-flag{
  margin-left:2px;
  font-size:11px;
  line-height:1.1;
  font-weight:700;
}

.detail-app-flag-scr{
  color:#d12626;
}

.detail-app-flag-dh{
  color:#0c63c7;
}

.detail-app-fields-line{
  display:flex;
  flex-wrap:wrap;
  gap:1px 8px;
  margin-top:2px;
  font-size:11px;
  line-height:1.3;
}

.detail-app-fields-line-fixed{
  gap:1px 8px;
  margin-top:1px;
}

#horseDetailBody .detail-app-entry-current .detail-app-fields-line-fixed{
  gap:2px 12px;
}

.detail-app-field{
  display:inline-flex;
  align-items:flex-start;
  max-width:100%;
  color:#666;
}

.detail-app-field-label{
  color:#4f4f4f;
  font-weight:700;
  margin-right:1px;
}

.detail-app-field-value{
  color:#666;
  word-break:break-word;
}

.detail-app-field-value .detail-link{
  color:#0c63c7;
}

.detail-app-odds-panel{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:54px;
  padding-top:2px;
  align-items:flex-end;
}

.detail-app-odd-cell{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:2px;
  min-height:16px;
}

.detail-app-odd-label{
  min-width:12px;
  font-size:9px;
  line-height:1;
  color:#7a7a7a;
  font-weight:700;
  text-align:center;
}

.detail-app-odd-value{
  font-size:14px;
  line-height:1;
  color:#111;
  font-weight:700;
}

.detail-place-badge-gold,
.detail-place-badge-silver,
.detail-place-badge-copper{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.08);
}

.detail-app-odd-arrow{
  display:inline-block;
  min-width:10px;
  font-size:12px;
  line-height:1;
  font-weight:700;
  text-align:center;
}

.detail-app-odd-arrow-up{
  color:#1e9b3a;
}

.detail-app-odd-arrow-down{
  color:#d13a34;
}

.detail-app-odd-cell-place .detail-app-odd-value{
  color:#1d7f21;
}

.detail-app-odd-cell-place-badge{
  align-items:center;
}

.detail-app-odd-cell-place-badge .detail-app-odd-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
}

.detail-app-odd-cell-place-badge .detail-place-badge{
  width:24px;
  height:24px;
  min-width:24px;
}

.detail-app-odd-cell-place-badge .detail-place-badge-num{
  font-size:11px;
}

.detail-app-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:min-content;
}

.detail-app-role-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:4px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 6px 18px rgba(18,44,104,.08);
}

.detail-app-role-tab{
  min-height:42px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:#7b8798;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.detail-app-role-tab.is-active{
  background:linear-gradient(135deg,#ffd84a 0%,#ffc400 100%);
  color:#142a63;
  box-shadow:0 6px 14px rgba(255,196,0,.28);
}

.detail-app-role-tab:disabled{
  opacity:.45;
  cursor:default;
}

.detail-app-role-tab:not(:disabled):hover{
  color:#163a7a;
  background:#f5f9ff;
}

.detail-app-role-tab:focus-visible{
  outline:2px solid rgba(37,99,235,.38);
  outline-offset:2px;
}

.detail-app-hero-card{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:16px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 26px rgba(18,44,104,.08);
}

.detail-app-hero-media{
  display:flex;
  align-items:center;
  justify-content:center;
}

.detail-app-hero-silk-wrap,
.detail-app-actor-avatar,
.detail-app-actor-avatar-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:110px;
  height:110px;
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%);
  box-shadow:0 10px 24px rgba(18,44,104,.10);
}

.detail-app-actor-avatar-img{
  width:110px;
  height:110px;
  border-radius:999px;
  object-fit:cover;
  display:block;
  box-shadow:0 10px 24px rgba(18,44,104,.10);
  background:#f4f8ff;
}

.detail-app-hero-silk{
  width:110px;
  height:110px;
  object-fit:contain;
}

.detail-app-hero-silk-placeholder{
  font-size:28px;
  font-weight:900;
  color:#163a7a;
}

.detail-app-actor-avatar{
  background:linear-gradient(135deg,#1e4ca3 0%,#143a7a 100%);
  color:#fff;
  font-size:30px;
  font-weight:900;
}

.detail-app-hero-copy{
  min-width:0;
}

.detail-app-hero-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.detail-app-hero-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  border-radius:999px;
  background:#163a7a;
  color:#fff;
  font-size:14px;
  font-weight:800;
}

.detail-app-hero-title{
  min-width:0;
  font-size:34px;
  line-height:1.15;
  font-weight:900;
  color:#163a7a;
  word-break:break-word;
}

.detail-app-hero-sub{
  margin-top:6px;
  font-size:14px;
  line-height:1.5;
  color:#6b7b93;
}

.detail-app-hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.detail-app-hero-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:#eef4ff;
  border:1px solid #dce7fb;
}

.detail-app-hero-chip-label{
  font-size:12px;
  font-weight:800;
  color:#6b7b93;
}

.detail-app-hero-chip-value{
  font-size:14px;
  font-weight:800;
  color:#163a7a;
}

.detail-app-hero-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.detail-app-hero-fact{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dbe4f3;
}

.detail-app-hero-fact-label{
  font-size:12px;
  font-weight:800;
  color:#7b8798;
}

.detail-app-hero-fact-value{
  font-size:13px;
  font-weight:800;
  color:#163a7a;
}

.detail-app-hero-card-horse{
  grid-template-columns:88px minmax(0,1fr);
  align-items:start;
}

.detail-app-hero-insight{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}

.detail-app-hero-card-horse .detail-app-hero-ibut{
  grid-column:auto;
  grid-row:auto;
  justify-content:flex-start;
  margin:0;
  padding:2px 0 0;
}

.detail-app-hero-ibut{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:22px;
  flex:0 0 auto;
}

.detail-app-ibut-ring{
  position:relative;
  width:72px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.detail-app-ibut-ring-body{
  position:relative;
  width:72px;
  height:72px;
}

.detail-app-ibut-ring-svg{
  width:72px;
  height:72px;
  transform:rotate(-90deg);
  display:block;
}

.detail-app-ibut-ring-track{
  fill:none;
  stroke:#e8edf2;
  stroke-width:5;
}

.detail-app-ibut-ring-fill{
  fill:none;
  stroke:#163a7a;
  stroke-width:5;
  stroke-linecap:round;
}

.detail-app-ibut-ring-grade{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:18px;
  font-weight:800;
  color:#163a7a;
  line-height:1;
}

.detail-app-ibut-ring-label{
  margin:0 0 6px;
  font-size:11px;
  font-weight:600;
  color:#6b7280;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
}

.detail-app-hero-pingyu-section{
  display:flex;
  justify-content:center;
  width:100%;
}

.detail-app-hero-pingyu{
  width:100%;
  max-width:100%;
  padding:12px 14px;
  border-radius:10px;
  background:#eef6ff;
  border:1px solid #dbeafe;
  box-shadow:0 2px 10px rgba(15,23,42,.10);
}

.detail-app-hero-pingyu-text{
  font-size:14px;
  line-height:1.65;
  color:#1e293b;
  white-space:pre-wrap;
  word-break:break-word;
}

.detail-app-hr-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 12px;
  width:100%;
  margin-top:4px;
}

.detail-app-hr-meta-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 10px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e8edf2;
}

.detail-app-hr-meta-label{
  font-size:11px;
  font-weight:700;
  color:#64748b;
}

.detail-app-hr-meta-value{
  font-size:14px;
  font-weight:800;
  color:#163a7a;
}

.detail-app-hr-people{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin-top:6px;
}

.detail-app-hr-person{
  padding:10px 10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e8edf2;
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}

.detail-app-hr-person-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}

.detail-app-hr-person-role{
  font-size:12px;
  font-weight:800;
  color:#163a7a;
}

.detail-app-hr-person-rank{
  font-size:11px;
  font-weight:700;
  color:#64748b;
}

.detail-app-hr-person-body{
  display:flex;
  align-items:center;
  gap:10px;
}

.detail-app-hr-person-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
  background:#eef2ff;
}

.detail-app-hr-person-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
  color:#163a7a;
}

.detail-app-hr-person-name{
  font-size:14px;
  font-weight:800;
  color:#163a7a;
  line-height:1.25;
}

.detail-app-hr-person-stat{
  margin-top:2px;
  font-size:11px;
  color:#64748b;
}

.detail-app-hr-person-stat strong{
  margin-left:4px;
  font-size:13px;
  color:#163a7a;
}

.detail-app-section-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.detail-app-section-tab{
  min-height:44px;
  border:none;
  border-radius:16px;
  background:#fff;
  color:#7b8798;
  font-size:15px;
  font-weight:800;
  box-shadow:0 6px 18px rgba(18,44,104,.06);
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.detail-app-section-tab.is-active{
  background:linear-gradient(135deg,#ffd84a 0%,#ffc400 100%);
  color:#142a63;
  box-shadow:0 8px 18px rgba(255,196,0,.24);
}

.detail-app-section-tab:hover{
  color:#163a7a;
  box-shadow:0 8px 20px rgba(18,44,104,.08);
}

.detail-app-section-tab:focus-visible{
  outline:2px solid rgba(37,99,235,.38);
  outline-offset:2px;
}

.detail-app-section-panels{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-bottom:12px;
}

.detail-app-page-card{
  padding:16px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 26px rgba(18,44,104,.08);
  border:1px solid rgba(224,233,247,.92);
}

.detail-app-page-card-history{
  padding:16px 0 0;
  overflow:visible;
}

.detail-app-page-card-history .detail-app-page-title-row{
  padding:0 16px;
}

.detail-app-page-card-sub{
  padding:14px;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(18,44,104,.06);
}

.detail-app-card-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.detail-app-data-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.detail-app-data-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 14px;
  border:1px solid #e5eaf3;
  border-radius:16px;
  background:#f9fbff;
}

.detail-app-data-main{
  flex:1 1 auto;
  min-width:0;
}

.detail-app-data-title-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}

.detail-app-data-title-row-history{
  align-items:center;
}

.detail-app-data-title{
  font-size:14px;
  line-height:1.25;
  font-weight:800;
  color:#162a63;
}

.detail-app-data-date{
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  color:#162a63;
}

.detail-app-data-tag,
.detail-app-data-pass{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:#e8f1ff;
  color:#2a5fcf;
  font-size:12px;
  font-weight:700;
}

.detail-app-data-pass{
  background:#eef8ea;
  color:#2d7c31;
}

.detail-app-data-sub{
  margin-bottom:4px;
  color:#58657a;
  font-size:12px;
  line-height:1.35;
}

.detail-app-data-copy{
  color:#26354d;
  font-size:13px;
  line-height:1.5;
  word-break:break-word;
}

.detail-app-data-side{
  flex:0 0 auto;
  color:#5d6880;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}

.detail-app-data-row-history{
  background:#fff;
}

.detail-app-data-row-history-sheet{
  padding:14px;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(18,44,104,.05);
}

.detail-app-data-row-trackwork{
  background:#f8fbff;
}

.detail-app-data-row-injury{
  background:#fff9f7;
  border-color:#f0d7cf;
}

.detail-app-data-row-stat{
  background:#fff;
}

.detail-app-data-row-timeline{
  position:relative;
  padding-left:18px;
}

.detail-app-timeline-dot{
  position:absolute;
  left:-2px;
  top:18px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg,#2a5fcf 0%,#4f86ff 100%);
  box-shadow:0 0 0 4px rgba(79,134,255,.12);
}

.detail-app-timeline-dot-alert{
  background:linear-gradient(135deg,#d05a2f 0%,#f08a57 100%);
  box-shadow:0 0 0 4px rgba(240,138,87,.14);
}

.detail-app-data-list-trackwork,
.detail-app-data-list-injury{
  position:relative;
}

.detail-app-data-list-trackwork::before,
.detail-app-data-list-injury::before{
  content:"";
  position:absolute;
  left:2px;
  top:8px;
  bottom:8px;
  width:2px;
  background:linear-gradient(180deg,#d7e5ff 0%,#cbd9f2 100%);
}

.detail-app-data-list-injury::before{
  background:linear-gradient(180deg,#f0d7cf 0%,#ecd0c4 100%);
}

.detail-app-data-place-wrap{
  flex:0 0 auto;
}

.detail-app-row-actions{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.detail-app-official-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.detail-app-official-link-btn{
  min-height:42px;
  padding:0 14px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#edf5ff 0%,#dce9ff 100%);
  color:#163a7a;
  font-size:14px;
  font-weight:800;
  box-shadow:0 6px 16px rgba(29,78,216,.10);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.detail-app-official-link-btn:hover{
  background:linear-gradient(135deg,#e2efff 0%,#d3e4ff 100%);
  box-shadow:0 8px 20px rgba(29,78,216,.14);
}

.detail-app-official-link-btn:focus-visible{
  outline:2px solid rgba(37,99,235,.35);
  outline-offset:2px;
}

.detail-app-official-link-btn-inline{
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
}

.detail-app-data-sub-strong{
  color:#334155;
  font-weight:700;
}


.detail-app-stat-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.detail-app-stat-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#eef4ff;
  border:1px solid #dbe7fb;
}

.detail-app-stat-pill-total{
  background:#fff8dd;
  border-color:#f3dfa0;
}

.detail-app-stat-pill-label{
  font-size:12px;
  font-weight:800;
  color:#6b7b93;
}

.detail-app-stat-pill-value{
  font-size:13px;
  font-weight:900;
  color:#163a7a;
}

.detail-app-page-title{
  font-size:20px;
  font-weight:900;
  color:#163a7a;
  margin-bottom:12px;
}

.detail-app-page-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.detail-app-page-title-row .detail-app-page-title{
  margin-bottom:0;
}

.detail-app-page-title-meta{
  flex:0 1 auto;
  min-width:0;
  text-align:right;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
  color:#6b7b93;
  white-space:nowrap;
}

.detail-app-page-title-sub{
  font-size:16px;
  margin-bottom:10px;
}

.detail-app-horse-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.detail-app-horse-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 14px;
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg,#f7faff 0%,#edf4ff 100%);
  box-shadow:inset 0 0 0 1px #dbe7fb;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.detail-app-horse-chip:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg,#f2f7ff 0%,#e6f0ff 100%);
  box-shadow:inset 0 0 0 1px #cfdffb, 0 8px 18px rgba(18,44,104,.08);
}

.detail-app-horse-chip:focus-visible{
  outline:2px solid rgba(37,99,235,.38);
  outline-offset:2px;
}

.detail-app-horse-chip-no{
  color:#7b8798;
  font-size:12px;
  font-weight:800;
}

.detail-app-horse-chip-name{
  color:#163a7a;
  font-size:13px;
  font-weight:800;
}

.detail-app-metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.detail-app-metric-grid-tight{
  margin-top:12px;
}

.detail-app-metric-card{
  min-width:0;
  padding:14px 14px 15px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #e1ebfb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.detail-app-metric-card-blue{background:#eef6ff}
.detail-app-metric-card-gold{background:#fff8dd}
.detail-app-metric-card-purple{background:#f5efff}
.detail-app-metric-card-orange{background:#fff2e6}
.detail-app-metric-card-green{background:#eefaf0}
.detail-app-metric-card-cyan{background:#edf9ff}

.detail-app-metric-label{
  font-size:12px;
  font-weight:800;
  color:#7b8798;
}

.detail-app-metric-value{
  margin-top:8px;
  font-size:28px;
  line-height:1.1;
  font-weight:900;
  color:#163a7a;
  word-break:break-word;
}

.detail-app-info-grid-app{
  padding:0 !important;
}

.detail-app-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:120px;
  border-radius:18px;
  border:1px dashed #d6e3f6;
  background:#f8fbff;
  color:#90a0b8;
  font-size:15px;
  font-weight:800;
  text-align:center;
}

.detail-app-loading-note{
  padding:12px 16px;
  border-radius:16px;
  background:#eef4ff;
  color:#5271a7;
  font-size:14px;
  font-weight:700;
  text-align:center;
}

#horseDetailBody .detail-horse-info-top{
  border-top:1px solid #ececec;
}

#horseDetailBody .detail-insight-grid{
  border-top:1px solid #ececec;
  padding-top:8px;
}

#horseDetailBody .detail-summary-grid{
  border-top:1px solid #ececec;
  padding-top:8px;
}

#actorDetailBody .detail-actor-hero{
  border-top:1px solid #ececec;
  background:#fff;
}

#actorDetailBody .detail-section-current .detail-season-strip-current{
  background:#6d6d6d;
}

#actorDetailBody .detail-actor-role{
  font-size:10px;
  letter-spacing:.18px;
}

.detail-horse-link{
  cursor:pointer;
}

@media (max-width: 768px){
  .detail-app-role-tabs{
    padding:3px;
  }

  .detail-app-role-tab{
    min-height:40px;
    font-size:13px;
  }

  .detail-app-hero-card{
    grid-template-columns:72px minmax(0,1fr);
    gap:12px;
    padding:14px;
    border-radius:18px;
  }

  .detail-app-hero-card-horse .detail-app-hero-ibut{
    justify-content:flex-start;
    gap:16px;
  }

  .detail-app-hero-insight{
    width:100%;
    align-items:stretch;
  }

  .detail-app-hero-pingyu-section{
    width:100%;
  }

  .detail-app-hero-pingyu{
    width:100%;
    max-width:100%;
  }

  .detail-app-ibut-ring{
    width:64px;
  }

  .detail-app-ibut-ring-body{
    width:64px;
    height:64px;
  }

  .detail-app-ibut-ring-svg{
    width:64px;
    height:64px;
  }

  .detail-app-ibut-ring-grade{
    font-size:16px;
  }

  .detail-app-hr-meta{
    grid-template-columns:1fr;
  }

  .detail-app-hr-people{
    grid-template-columns:1fr;
  }

  .detail-app-hero-silk-wrap,
  .detail-app-actor-avatar{
    width:94px;
    height:94px;
  }

  .detail-app-hero-silk{
    width:57px;
    height:68px;
  }

  .detail-app-actor-avatar{
    font-size:24px;
  }

  .detail-app-hero-title{
    font-size:24px;
  }

  .detail-app-hero-no{
    min-width:32px;
    height:32px;
    font-size:12px;
  }

  .detail-app-hero-sub{
    font-size:12px;
  }

  .detail-app-hero-chips{
    gap:6px;
  }

  .detail-app-hero-chip{
    min-height:28px;
    padding:0 10px;
  }

  .detail-app-hero-facts{
    gap:6px;
  }

  .detail-app-hero-fact{
    min-height:28px;
    padding:0 10px;
  }

  .detail-app-section-tabs{
    gap:8px;
  }

  .detail-app-section-tab{
    min-height:40px;
    border-radius:14px;
    font-size:14px;
  }

  .detail-app-page-card{
    padding:14px;
    border-radius:18px;
  }

  .detail-app-history-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .detail-app-history-table{
    --history-col-race:68px;
    --history-col-place:32px;
    --history-col-date:88px;
  }

  .detail-app-history-th,
  .detail-app-history-td{
    padding:2px 3px;
    font-size:13px;
  }

  .detail-app-history-season-bar{
    flex-wrap:wrap;
  }

  .detail-app-history-cell-wide{
    grid-column:span 2;
  }

  .detail-app-page-title{
    font-size:18px;
    margin-bottom:10px;
  }

  .detail-app-page-title-row{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .detail-app-page-title-meta{
    width:100%;
    text-align:left;
  }

  .detail-app-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .detail-app-metric-card{
    padding:12px;
    border-radius:16px;
  }

  .detail-app-metric-label{
    font-size:11px;
  }

  .detail-app-metric-value{
    margin-top:6px;
    font-size:22px;
  }

  .detail-season-strip{
    padding:7px 8px;
  }

  .detail-season-title{
    font-size:13px;
  }

  .detail-app-entry-meta{
    padding:4px 8px;
  }

  .detail-app-entry-body{
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:7px;
    padding:7px 8px;
  }

  .detail-app-odds-panel{
    grid-column:auto;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-end;
    margin-top:0;
    min-width:48px;
  }

  .detail-app-title-num{
    font-size:12px;
  }

  .detail-app-title-name{
    font-size:13px;
  }

  .detail-app-fields-line{
    gap:1px 6px;
    font-size:10px;
  }

  .detail-app-odd-value{
    font-size:12px;
  }

  .detail-app-odd-arrow{
    font-size:11px;
  }

  .detail-horse-info-banner{
    grid-template-columns:28px minmax(0,1fr);
    gap:6px;
    padding:6px 8px;
  }

  .detail-horse-info-banner-silk{
    width:36px;
    min-width:36px;
  }

  .detail-horse-info-banner-silk .horse-detail-silk{
    width:31px;
    height:42px;
  }
}


#horseDetailBody .detail-section,
#actorDetailBody .detail-section{
  margin-top:10px;
  border:none;
  border-radius:0;
  background:transparent;
}

#horseDetailBody .detail-section-current,
#actorDetailBody .detail-section-current,
#horseDetailBody .detail-section-detail,
#actorDetailBody .detail-section-detail,
#horseDetailBody .detail-section-history,
#actorDetailBody .detail-section-history{
  box-shadow:none;
}

#horseDetailBody .detail-section-history,
#actorDetailBody .detail-section-history{
  margin-left:0;
}

#horseDetailBody .detail-section-history::before,
#actorDetailBody .detail-section-history::before,
#horseDetailBody .detail-section-history::after,
#actorDetailBody .detail-section-history::after{
  content:none;
}

.detail-season-strip,
.detail-season-strip-current,
.detail-season-strip-muted{
  padding:5px 8px 6px;
  background:#707070;
  color:#fff;
  border-radius:2px;
}

.detail-season-title{
  font-size:11px;
  font-weight:700;
}

.detail-season-detail{
  margin-top:1px;
  font-size:9px;
  color:rgba(255,255,255,.9);
}

#horseDetailBody .detail-horse-info-banner{
  margin-top:0;
  background:#767676;
  border-top:none;
}

.detail-app-entry-current{
  background:#ececec;
  border-color:#d4d4d4;
}

.detail-app-entry-actor-current{
  background:#fbfbfb;
  border-top:none;
  border-radius:8px;
  border:1px solid #d8d8d8;
}

.detail-app-entry-history{
  background:#fff;
  border-color:#e1e1e1;
}

.detail-app-entry{
  border:1px solid #d8d8d8;
  border-top:none;
  border-radius:8px;
}

.detail-app-entry-meta{
  background:#e2e2e2;
  padding:4px 8px;
}

.detail-app-entry-body{
  padding:6px 8px 7px;
  gap:6px;
  align-items:flex-start;
}

.detail-plain-row{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:8px;
  align-items:flex-start;
  padding:7px 8px 8px;
  background:#fff;
  border:1px solid #e3e3e3;
  border-radius:10px;
  box-shadow:none;
}

.detail-plain-row-history + .detail-plain-row-history{
  margin-top:6px;
}

.detail-plain-row .detail-app-leading{
  min-width:36px;
  width:36px;
  justify-content:center;
  padding-top:0;
}

.detail-app-leading-labeled{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  align-self:center;
  gap:2px;
  padding-top:4px;
}

.detail-app-leading-caption{
  font-size:9px;
  line-height:1;
  color:#757575;
  font-weight:600;
  white-space:nowrap;
}

.detail-plain-row-copy{
  min-width:0;
}

.detail-plain-row-title{
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  color:#1b1b1b;
}

.detail-plain-row-sub{
  margin-top:1px;
  font-size:11px;
  line-height:1.22;
  color:#717171;
}

.detail-plain-row .detail-app-fields-line{
  gap:1px 8px;
  margin-top:1px;
  font-size:11px;
  line-height:1.24;
}

.detail-plain-row .detail-app-field{
  color:#5d5d5d;
}

.detail-plain-row .detail-app-field-label{
  color:#454545;
  font-weight:500;
}

.detail-stats-list{
  background:#fff !important;
  border-top:none !important;
}

.detail-stats-row{
  padding:8px 8px 7px;
  border-top:1px solid #ececec;
  background:#fff;
}

.detail-stats-row:first-child{
  border-top:none;
}

.detail-stats-row:nth-child(even){
  background:#f3f3f3;
}

.detail-stats-row-title{
  font-size:12px;
  line-height:1.22;
  font-weight:600;
  color:#1f1f1f;
}

.detail-stats-row-summary{
  margin-top:2px;
  font-size:10px;
  line-height:1.22;
  color:#666;
}

.detail-place-badge{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  min-width:30px;
  padding:0;
  border-radius:999px;
  border:1px solid transparent;
  background:#cfd4db;
  box-shadow:none;
}

.detail-place-badge-num{
  display:inline-block;
  transform:none;
  font-size:12px;
  line-height:1;
  font-weight:700;
  color:#fff;
}

.detail-place-badge-gold{
  background:#ffbf17;
  border-color:#ffbf17;
}

.detail-place-badge-silver{
  background:#b8bcc3;
  border-color:#b8bcc3;
}

.detail-place-badge-copper{
  background:#d58b00;
  border-color:#d58b00;
}

.detail-place-badge-blue{
  background:#0a4db3 !important;
  border-color:#0a4db3 !important;
}

.detail-place-badge-horseshoe{
  background:#0a4db3;
  border-color:#0a4db3;
}

.detail-place-badge-scr{
  background:#e7eaee;
  border-color:#d6dbe1;
}

.detail-place-badge-scr .detail-place-badge-num{
  font-size:11px;
  color:#c94a3e;
}

#horseDetailBody .detail-place-badge,
#actorDetailBody .detail-place-badge{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  min-width:48px;
  padding:0;
  border-radius:999px;
  border:1px solid transparent;
  background:#cfd4db;
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(15,23,42,.12);
}

#horseDetailBody .detail-place-badge .detail-place-badge-num,
#actorDetailBody .detail-place-badge .detail-place-badge-num{
  display:inline-block;
  font-size:18px;
  line-height:1;
  font-weight:900;
  color:#fff;
}

#horseDetailBody .detail-place-badge.detail-place-badge-gold,
#actorDetailBody .detail-place-badge.detail-place-badge-gold{
  background:#ffbf17;
  border-color:#ffbf17;
}

#horseDetailBody .detail-place-badge.detail-place-badge-silver,
#actorDetailBody .detail-place-badge.detail-place-badge-silver{
  background:#b8bcc3;
  border-color:#b8bcc3;
}

#horseDetailBody .detail-place-badge.detail-place-badge-copper,
#actorDetailBody .detail-place-badge.detail-place-badge-copper{
  background:#d58b00;
  border-color:#d58b00;
}

#horseDetailBody .detail-place-badge.detail-place-badge-blue,
#actorDetailBody .detail-place-badge.detail-place-badge-blue,
#horseDetailBody .detail-place-badge.detail-place-badge-horseshoe,
#actorDetailBody .detail-place-badge.detail-place-badge-horseshoe{
  background:#0a4db3 !important;
  border-color:#0a4db3 !important;
}

#horseDetailBody .detail-place-badge.detail-place-badge-scr,
#actorDetailBody .detail-place-badge.detail-place-badge-scr{
  background:#e7eaee;
  border-color:#d6dbe1;
}

#horseDetailBody .detail-place-badge.detail-place-badge-scr .detail-place-badge-num,
#actorDetailBody .detail-place-badge.detail-place-badge-scr .detail-place-badge-num{
  color:#c94a3e;
  font-size:11px;
}

#actorDetailBody .detail-section-current .detail-season-strip-current{
  background:#717171;
}

#horseDetailBody .detail-app-entry-current,
#actorDetailBody .detail-app-entry-actor-current,
#actorDetailBody .detail-app-entry{
  border-radius:3px;
}

#actorDetailBody .detail-section-current,
#actorDetailBody .detail-section-actor-current{
  margin-top:0;
}

#actorDetailBody .detail-section-history{
  margin-top:8px;
}

#actorDetailBody .detail-app-entry + .detail-app-entry{
  margin-top:6px;
}

#actorDetailBody .detail-app-entry-meta{
  padding:4px 8px 3px;
}

#actorDetailBody .detail-app-entry-body{
  padding:6px 8px 7px;
}

#actorDetailBody .detail-app-entry-history,
#actorDetailBody .detail-app-entry-actor-current{
  background:#fff;
  border-color:#dcdcdc;
  box-shadow:none;
}

#actorDetailBody .detail-app-entry-meta{
  background:#dfdfdf;
}

#actorDetailBody .detail-app-entry-meta-title{
  color:#111;
  font-weight:700;
}

#actorDetailBody .detail-app-title-name{
  color:#0c63c7;
}

#actorDetailBody .detail-app-field,
#actorDetailBody .detail-app-field-value{
  color:#494949;
}

#actorDetailBody .detail-app-leading-silk .horse-detail-silk{
  width:28px;
  height:36px;
}

#actorDetailBody .detail-app-odds-panel{
  min-width:54px;
}

#actorDetailBody .detail-app-odd-value{
  font-size:11px;
  font-weight:700;
}

#actorDetailBody .detail-stats-list{
  border-radius:10px;
  overflow:hidden;
}

#actorDetailBody .detail-stats-row{
  padding:9px 9px 8px;
}

#actorDetailBody .detail-stats-row-title{
  font-size:11px;
  font-weight:700;
}

#actorDetailBody .detail-stats-row-summary{
  font-size:10px;
  line-height:1.16;
}

#actorDetailBody .detail-actor-hero{
  padding:6px 8px 5px;
  border-top:none;
}

#actorDetailBody .detail-actor-avatar{
  width:38px;
  height:38px;
  border-radius:7px;
}

#actorDetailBody .detail-actor-name{
  font-size:15px;
}

#actorDetailBody .detail-actor-role{
  font-size:10px;
  color:#767676;
}

@media (max-width: 768px){
  .detail-season-strip,
  .detail-season-strip-current,
  .detail-season-strip-muted{
    padding:5px 7px 6px;
  }

  .detail-app-entry{
    border-left:none;
    border-right:none;
  }

  .detail-plain-row{
    grid-template-columns:34px minmax(0,1fr);
    gap:7px;
    padding:7px 7px 8px;
  }

  .detail-plain-row .detail-app-leading{
    min-width:34px;
    width:34px;
  }

  .detail-app-leading-caption{
    font-size:8px;
  }

  .detail-place-badge{
    width:28px;
    height:28px;
    min-width:28px;
    border-radius:999px;
  }

  .detail-place-badge-num{
    font-size:11px;
  }

  .detail-horse-info-banner-copy{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:3px 8px;
  }

  .detail-horse-info-banner-value{
    font-size:9px;
  }

  .horse-detail-title-main{
    font-size:13px;
  }

  .horse-detail-title-sub{
    font-size:9px;
  }

  .detail-plain-row-title{
    font-size:13px;
  }

  .detail-plain-row-sub,
  .detail-plain-row .detail-app-fields-line{
    font-size:11px;
  }

  .detail-app-fields-line-fixed{
    gap:1px 6px;
  }

  .detail-stats-row{
    padding:8px 7px;
  }

  .detail-stats-row-title{
    font-size:12px;
  }

  .detail-stats-row-summary{
    font-size:10px;
  }

  .detail-app-odd-value{
    font-size:14px;
  }
}

@media (max-width: 768px){
  @supports (height: 100dvh){
    #horseDetailModal.horse-detail-sheet-modal,
    #actorDetailModal.actor-detail-sheet-modal{
      height:calc(100dvh - 12px);
    }
  }
}

#panel-report .report-wrap{width:100%;max-width:100%;min-height:200px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background:#f4f7fb;border:1px solid #e8edf2;border-radius:8px;padding:10px;box-sizing:border-box;color:#1f2937;line-height:1.55}
#panel-report .report-wrap table{max-width:100%;width:100%;border-collapse:collapse;table-layout:fixed}
#panel-report .report-wrap img{max-width:100%;height:auto}
#panel-report .report-wrap .raceReportFull{font-size:14px;color:#1f2937}
#panel-report .report-wrap .commTitlePic,
#panel-report .report-wrap script,
#panel-report .report-wrap style{display:none!important}
#panel-report .report-wrap .data_title,
#panel-report .report-wrap .bg_blue,
#panel-report .report-wrap .bg_blue_zk{display:block;background:#1d4f91!important;color:#fff!important;padding:4px 8px;border-radius:4px;font-weight:700}
#panel-report .report-wrap .data_meeting{display:none}
#panel-report .report-wrap .detail{display:block}
#panel-report .report-wrap .detail .race{margin:0;padding:0;border-bottom:none}
#panel-report .report-wrap .report-stage-list{display:flex;flex-direction:column;gap:12px}
#panel-report .report-wrap .report-stage-card{background:#fff;border:1px solid #d7dde7;border-radius:10px;overflow:hidden;box-shadow:0 3px 10px rgba(14,30,82,.05)}
#panel-report .report-wrap .report-stage-card>div{margin:0}
#panel-report .report-wrap .report-stage-card .bg_blue{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:0!important}
#panel-report .report-wrap .report-race-table thead td,#panel-report .report-wrap .report-race-table thead th{background:#ecd0af;color:#202939;font-weight:700}
#panel-report .report-wrap .report-race-table tbody td{background:#fff}
#panel-report .report-wrap .report-race-table td:nth-child(1),#panel-report .report-wrap .report-race-table th:nth-child(1){width:4.5%}
#panel-report .report-wrap .report-race-table td:nth-child(2),#panel-report .report-wrap .report-race-table th:nth-child(2){width:5%}
#panel-report .report-wrap .report-race-table td:nth-child(3),#panel-report .report-wrap .report-race-table th:nth-child(3){width:6%}
#panel-report .report-wrap .report-race-table td:nth-child(4),#panel-report .report-wrap .report-race-table th:nth-child(4){width:17%}
#panel-report .report-wrap .report-race-table td:nth-child(5),#panel-report .report-wrap .report-race-table th:nth-child(5){width:6%}
#panel-report .report-wrap .report-race-table td:nth-child(6),#panel-report .report-wrap .report-race-table th:nth-child(6){width:10%}
#panel-report .report-wrap .report-race-table td:nth-child(7),#panel-report .report-wrap .report-race-table th:nth-child(7){width:51.5%}
#panel-report .report-wrap .report-race-table td:nth-child(7),#panel-report .report-wrap .report-race-table th:nth-child(7){text-align:left}
#panel-report .report-wrap .report-race-table td:nth-child(4),#panel-report .report-wrap .report-race-table td:nth-child(7){white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important}
#panel-report .report-wrap .report-race-table td:nth-child(3) img{display:block;max-width:26px;margin:0 auto}
#panel-report .report-wrap .detail p,
#panel-report .report-wrap .detail div,
#panel-report .report-wrap .detail span,
#panel-report .report-wrap .f_fs16,
#panel-report .report-wrap .f_fs13{white-space:normal!important;word-break:break-word;overflow-wrap:anywhere}
#panel-report .report-wrap .moreClum{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
#panel-report .report-wrap td,#panel-report .report-wrap th{padding:6px 8px;border:1px solid #d7dde7;font-size:13px;vertical-align:top}
#panel-report .report-wrap th{background:#f8fafc;font-weight:700}
#panel-report .report-wrap .submit{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:30px;padding:0 10px;border:1px solid #1d4f91;background:#2f60bd;color:#fff;border-radius:4px;cursor:pointer}
#panel-report .report-wrap select{height:30px;border:1px solid #cbd5e1;border-radius:4px;padding:0 8px;background:#fff}
#panel-report .report-wrap a{color:#1d4f91;text-decoration:none}
#panel-report .report-wrap a:hover{text-decoration:underline}
@media (max-width:768px){
  #panel-report .report-wrap{padding:0;border:none;background:transparent}
  #panel-report .report-wrap .raceReportFull{font-size:13px}
  #panel-report .report-wrap .report-stage-list{gap:10px}
  #panel-report .report-wrap .report-stage-card{border-radius:10px}
  #panel-report .report-wrap .data_title,
  #panel-report .report-wrap .bg_blue,
  #panel-report .report-wrap .bg_blue_zk{padding:6px 8px;border-radius:6px;font-size:13px;line-height:1.4}
  #panel-report .report-wrap .f_fs16{font-size:12px!important;line-height:1.55}
  #panel-report .report-wrap .f_fs13{font-size:11px!important;line-height:1.5}
  #panel-report .report-wrap .report-race-table,
  #panel-report .report-wrap .report-race-table tbody,
  #panel-report .report-wrap .report-race-table tr,
  #panel-report .report-wrap .report-race-table td{display:block;width:100%!important}
  #panel-report .report-wrap .report-race-table thead{display:none}
  #panel-report .report-wrap .report-race-table tbody{padding:8px}
  #panel-report .report-wrap .report-race-table tr{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px;margin-bottom:8px}
  #panel-report .report-wrap .report-race-table tr:last-child{margin-bottom:0}
  #panel-report .report-wrap .report-race-table td{display:grid;grid-template-columns:4.8em 1fr;gap:8px;align-items:flex-start;padding:3px 0;border:none!important;font-size:12px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;text-align:left}
  #panel-report .report-wrap .report-race-table td::before{content:attr(data-label);font-weight:700;color:#334155}
  #panel-report .report-wrap .report-race-table td:nth-child(3){grid-template-columns:4.8em auto}
  #panel-report .report-wrap .report-race-table td:nth-child(3) img{max-width:28px;margin:0}
}
@media (max-width:420px){
  #panel-report .report-wrap .data_title,
  #panel-report .report-wrap .bg_blue,
  #panel-report .report-wrap .bg_blue_zk{font-size:12px}
  #panel-report .report-wrap .f_fs16{font-size:11px!important;line-height:1.5}
  #panel-report .report-wrap .f_fs13{font-size:10px!important;line-height:1.45}
  #panel-report .report-wrap .report-race-table tbody{padding:7px}
  #panel-report .report-wrap .report-race-table tr{padding:7px}
  #panel-report .report-wrap .report-race-table td{grid-template-columns:4.4em 1fr;font-size:11px}
  #panel-report .report-wrap .report-race-table td:nth-child(3){display:none}
  #panel-report .report-wrap select{max-width:100%;font-size:12px}
  #panel-report .report-wrap .submit{min-width:48px;height:28px;font-size:12px}
}

.panel-disclaimer{margin:16px 0 10px;padding:12px 12px 14px;border-top:1px solid #eceff3;color:#475569;font-size:12px;line-height:1.65}
.panel-disclaimer p{margin:8px 0 0}
.panel-disclaimer p:first-child{margin-top:0}
.panel-disclaimer strong{color:#dc2626;font-weight:800}
.wrap{padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px))}
#ftImgModal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:2200;align-items:center;justify-content:center;padding:12px}
#ftImgModal.show{display:flex}
#ftImgModal img{max-width:96vw;max-height:90vh;width:auto;height:auto;object-fit:contain;background:#111;border-radius:6px}
#ftImgModal .ft-img-close{position:absolute;right:14px;top:10px;border:none;background:rgba(255,255,255,.2);color:#fff;font-size:28px;line-height:1;width:38px;height:38px;border-radius:50%;cursor:pointer}
@media (max-width:768px){
  .panel-disclaimer{margin:14px 0 8px;padding:10px 8px 12px;font-size:11px;line-height:1.6}
}

.bottom-nav.bottom-nav--dock{
  --dock-bar-h:56px;
  --dock-fab:88px;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  max-width:769px;
  margin:0 auto;
  
  height:calc(var(--dock-bar-h) + 0.4 * var(--dock-fab) + 12px + env(safe-area-inset-bottom, 0px));
  padding-bottom:0;
  overflow:visible;
  z-index:100;
  box-sizing:border-box;
  pointer-events:none;
}
.bottom-nav--dock .bottom-nav__plate{
  pointer-events:none;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:var(--dock-bar-h);
  
  background:linear-gradient(332deg,#061124 0%,#0b2144 20%,#133260 52%,#2A4873 82%,#061124 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 -1px 0 rgba(0,0,0,.18);
}
.bottom-nav--dock .bottom-nav__row{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:var(--dock-bar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px max(0px, env(safe-area-inset-bottom, 0px)) 10px;
  z-index:3;
  box-sizing:border-box;
  pointer-events:none;
}
.bottom-nav--dock .bottom-nav__link{
  pointer-events:auto;
  flex:0 1 38%;
  max-width:calc(50% - min(50px, 14vw));
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  font-size:15px;
  font-weight:700;
  color:rgba(255,255,255,.78);
  text-decoration:none;
  border-radius:12px;
  transition:color .18s ease, background .18s ease, transform .18s ease;
}
.bottom-nav--dock .bottom-nav__link:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}
.bottom-nav--dock .bottom-nav__link.active{
  color:#fff;
  font-weight:800;
  font-size:calc(15px * 1.12);
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.bottom-nav--dock .bottom-nav__link[href*="live.php"].active{
  color:#ffce44;
  text-shadow:0 0 12px rgba(255,206,68,.35);
}
.bottom-nav--dock .bottom-nav__fab{
  pointer-events:auto;
  position:absolute;
  left:50%;
  
  bottom:calc(var(--dock-bar-h) - 0.6 * var(--dock-fab));
  transform:translateX(-50%);
  width:var(--dock-fab);
  height:var(--dock-fab);
  border-radius:50%;
  z-index:5;
  display:block;
  overflow:hidden;
  text-decoration:none;
  background:transparent;
  border:0;
  box-shadow:none;
  box-sizing:border-box;
}
.bottom-nav--dock .bottom-nav__fab:active{
  transform:translateX(-50%) scale(.96);
}
.bottom-nav--dock .bottom-nav__link:focus-visible,
.bottom-nav--dock .bottom-nav__fab:focus-visible{
  outline:2px solid #93c5fd;
  outline-offset:2px;
}
.bottom-nav--dock .bottom-nav__fab-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  border-radius:50%;
  display:block;
}

.board-announcement-wrap .sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.board-announcement-wrap{
  margin:0;
  padding:0;
}
.board-announcement-strip{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  width:100%;
  min-height:var(--board-ann-h,32px);
  background:#fecf13;
  border-bottom:1px solid rgba(0,0,0,.06);
  box-sizing:border-box;
}
.board-announcement-bar{
  --board-ann-h:32px;
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  height:var(--board-ann-h);
  min-height:var(--board-ann-h);
  max-height:var(--board-ann-h);
  padding:0 6px 0 8px;
  box-sizing:border-box;
  background:transparent;
  color:#111;
}
.board-announcement-bar[hidden]{
  display:none !important;
}
.board-announcement-horn{
  flex:0 0 32px;
  width:32px;
  height:var(--board-ann-h);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#c62828;
}
.board-announcement-horn svg{
  width:30px;
  height:30px;
  display:block;
}
.board-announcement-viewport{
  flex:1;
  min-width:0;
  height:var(--board-ann-h);
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
}
.board-announcement-track{
  display:inline-flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  height:100%;
  will-change:auto;
}
.board-announcement-track.is-scrolling{
  --board-marquee-sec:80s;
  animation:boardAnnouncementMarqueeX var(--board-marquee-sec) linear infinite;
  will-change:transform;
}
.board-announcement-bar:hover .board-announcement-track.is-scrolling{
  animation-play-state:paused;
}
@media (prefers-reduced-motion: reduce){
  .board-announcement-track.is-scrolling{
    animation:none !important;
  }
}
@keyframes boardAnnouncementMarqueeX{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
.board-announcement-line{
  display:inline-block;
  margin:0;
  padding:0 2.5rem 0 0;
  box-sizing:content-box;
  font-size:15px;
  font-weight:900;
  color:#000;
  line-height:var(--board-ann-h);
  height:var(--board-ann-h);
  white-space:nowrap;
  vertical-align:middle;
}

.board-announcement-strip .board-announcement-time,
.board-announcement-strip #rightState{
  flex:0 0 auto;
  margin-left:auto;
  align-self:center;
  padding:0 10px 0 8px;
  font-size:clamp(13px,3.6vw,16px) !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  color:#102f6c !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:right;
  white-space:nowrap;
  max-width:46vw;
  overflow:hidden;
  text-overflow:ellipsis;
}
.board-announcement-strip #rightState .state-open{
  color:#c62828 !important;
}
.board-announcement-editor{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px 10px 10px;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}
.board-announcement-editor[hidden]{
  display:none !important;
}
.board-announcement-items{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.board-announcement-item-row{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:8px;
}
.board-announcement-item-row textarea{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  resize:vertical;
  min-height:52px;
  max-height:120px;
  padding:8px 10px;
  font-size:14px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  font-family:inherit;
}
.board-announcement-item-remove{
  flex:0 0 auto;
  margin-top:4px;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#64748b;
  font-size:20px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.board-announcement-item-remove:active{ opacity:.9; }
.board-announcement-editor-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
}
.board-announcement-add-btn{
  flex:0 0 auto;
  width:40px;
  height:40px;
  padding:0;
  border:none;
  border-radius:999px;
  background:#122c68;
  color:#fff;
  font-size:26px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
}
.board-announcement-add-btn:active{ opacity:.92; }
.board-announcement-add-hint{
  font-size:12px;
  color:#64748b;
  line-height:1.35;
}
.board-announcement-marquee-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  font-size:13px;
  color:#334155;
}
.board-announcement-marquee-label{
  font-weight:600;
  white-space:nowrap;
}
.board-announcement-marquee-input{
  width:5.5rem;
  max-width:40vw;
  padding:6px 8px;
  font-size:14px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  box-sizing:border-box;
}
.board-announcement-marquee-hint{
  flex:1 1 200px;
  font-size:12px;
  color:#64748b;
  line-height:1.35;
}
.board-announcement-save-btn{
  align-self:flex-end;
  padding:8px 16px;
  border-radius:999px;
  border:none;
  background:#122c68;
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.board-announcement-save-btn:active{
  opacity:.92;
}
/* 全站：僅文字「載入中」占位 — 與首頁 loading-double-spinner 同款 */
.loading-double-spinner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin:0 auto;
  box-sizing:border-box;
  flex-shrink:0;
}
.loading-double-spinner__outer,
.loading-double-spinner__inner{
  position:absolute;
  display:block;
  box-sizing:border-box;
  border:3px solid transparent;
  border-radius:50%;
  pointer-events:none;
}
.loading-double-spinner__outer{
  inset:0;
  border-top-color:#133260;
  border-right-color:#2A4873;
  animation:siteLoadingSpin .85s linear infinite;
}
.loading-double-spinner__inner{
  inset:6px;
  border-bottom-color:#ffce44;
  border-left-color:#ffce44;
  animation:siteLoadingSpinReverse .85s linear infinite;
}
.loading-double-spinner__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffce44;
  animation:siteLoadingPulse 1.2s ease-in-out infinite;
}
@keyframes siteLoadingSpin{to{transform:rotate(360deg)}}
@keyframes siteLoadingSpinReverse{to{transform:rotate(-360deg)}}
@keyframes siteLoadingPulse{
  0%,100%{opacity:.45;transform:scale(.82)}
  50%{opacity:1;transform:scale(1)}
}

.site-text-loading,
.tippost-loading-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:118px;
  padding:18px 14px;
  border:1px solid #dbe7f5;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  box-shadow:0 6px 24px rgba(18,44,104,.08);
  box-sizing:border-box;
}
.site-text-loading__text,
.tippost-loading-text{
  font-size:14px;
  font-weight:800;
  color:#334155;
  text-align:center;
  line-height:1.45;
}

.site-text-loading--compact{
  min-height:88px;
  padding:14px 12px;
  gap:8px;
  border-radius:12px;
}
.site-text-loading--compact .loading-double-spinner{width:36px;height:36px}
.site-text-loading--compact .site-text-loading__text{font-size:13px}

.site-text-loading--inline{
  flex-direction:row;
  min-height:0;
  padding:8px 10px;
  gap:10px;
  border-radius:10px;
  box-shadow:none;
  background:rgba(255,255,255,.65);
}
.site-text-loading--inline .loading-double-spinner{width:28px;height:28px;margin:0}
.site-text-loading--inline .loading-double-spinner__inner{inset:4px;border-width:2px}
.site-text-loading--inline .loading-double-spinner__outer{border-width:2px}
.site-text-loading--inline .site-text-loading__text{font-size:13px;text-align:left}

/* 舊類名：純文字載入容器統一套用 */
.pingyu-panel-empty:empty,
.official-local-loading,
.ticket-inbox-loading-msg,
.rank-placeholder-card .site-text-loading--compact{margin-bottom:0}
.ticket-inbox-empty.ticket-inbox-loading-msg{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:100px;
  padding:16px;
  border:1px dashed #dbe7f5;
  border-radius:12px;
  background:#f8fafc;
  color:#334155;
  font-weight:800;
}
.ticket-inbox-empty.ticket-inbox-loading-msg::before{
  content:'';
  display:block;
  width:36px;
  height:36px;
  border:3px solid #e2e8f0;
  border-top-color:#133260;
  border-right-color:#2A4873;
  border-radius:50%;
  animation:siteLoadingSpin .85s linear infinite;
}
.ticket-inbox-empty.ticket-inbox-loading-msg:has(.site-text-loading){border:none;background:transparent;padding:0;min-height:0}
.ticket-inbox-empty.ticket-inbox-loading-msg:has(.site-text-loading)::before{display:none}

.pingyu-page .site-text-loading{border:none;background:transparent;box-shadow:none;min-height:100px}
.lolofa-empty .site-text-loading,
.lolofa-placeholder-card > .site-text-loading{border:none;background:transparent;box-shadow:none;min-height:72px;width:100%}
.qpp .site-text-loading{min-height:120px;margin:8px 0}

.detail-app-loading-note.site-text-loading--inline,
.detail-loading-copy-wrap.site-text-loading--inline{display:inline-flex;margin-top:6px}
.horse-note-updated.is-loading-text{color:#64748b}

/* 全站：賽果/派彩/貼士等「暫無資料」提示（首屏 bundle 內，避免懶加載 CSS 前無樣式） */
.board-empty-msg,
#panel-result .result-cards .tips-msg,
#panel-dividend .result-cards .tips-msg,
#panel-dividend .dividend-cards .tips-msg{
  position:relative;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin:8px 0;
  padding:20px 18px 20px 24px;
  border:1px solid #c4d4ec;
  border-radius:14px;
  background:linear-gradient(165deg,#ffffff 0%,#f5f8ff 42%,#e9f0fc 100%);
  box-shadow:0 4px 20px rgba(18,44,104,.09),inset 0 1px 0 rgba(255,255,255,.92);
  color:#455a70;
  text-align:center;
  font-size:clamp(14px,3.9vw,16px);
  font-weight:700;
  line-height:1.55;
  letter-spacing:.02em;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.board-empty-msg::before,
#panel-result .result-cards .tips-msg::before,
#panel-dividend .result-cards .tips-msg::before,
#panel-dividend .dividend-cards .tips-msg::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  border-radius:14px 0 0 14px;
  background:linear-gradient(180deg,#3d6fd8 0%,#122c68 100%);
  box-shadow:1px 0 8px rgba(18,44,104,.15);
}
#panel-result .result-cards{
  box-sizing:border-box;
  overflow-x:hidden;
  padding:6px 8px 10px;
}
#panel-result .result-cards > .board-empty-msg,
#panel-result .result-cards > .site-text-loading,
#panel-dividend .result-cards > .board-empty-msg,
#panel-dividend .dividend-cards > .board-empty-msg{
  width:auto;
  max-width:100%;
  align-self:stretch;
  min-width:0;
}
#panel-result .result-cards .board-empty-msg:only-child,
#panel-result .result-cards .site-text-loading:only-child,
#panel-dividend .result-cards .board-empty-msg:only-child,
#panel-dividend .dividend-cards .board-empty-msg:only-child{
  margin:10px 0 14px;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
}
#panel-rank .rank-card-list{
  box-sizing:border-box;
  overflow-x:hidden;
  padding:0 8px;
}
#panel-rank .rank-placeholder-card{
  width:auto;
  max-width:100%;
  margin-left:0;
  margin-right:0;
}
.div-table td,.div-table th{text-align:center}
.div-table thead th{background:#5a5a5a;color:#fff;font-weight:600;border:1px solid #555;padding:8px 10px}
.div-table td,.div-table th{border:1px solid #ddd;padding:8px 10px;vertical-align:middle}
.div-table tbody tr:nth-child(odd){background:#f9f9f9}
.div-table tbody tr:nth-child(even){background:#fff}
.div-table .col-pool{text-align:left}
.div-table .col-combo{text-align:center}
.div-table .col-amount{text-align:right}
.div-table .div-empty-msg,.dividend-cards .div-empty-msg{
  font-weight:700;
  font-size:clamp(14px,4.2vw,17px);
  text-align:center;
  padding:20px 16px;
  color:#455a70;
  background:linear-gradient(180deg,#fbfdff 0%,#eef4fb 100%);
  border-top:1px solid #e2ebf7;
}
.div-combo-nums{font-weight:700;font-size:1.2em}
.div-amount{font-weight:700;color:#1f2d3d;font-size:1.1em}
.div-table tr.row-qinella td{background:#e3f2fd}

.result-cards{display:flex;flex-direction:column;gap:8px;padding:1px 0;font-size:15px}
.result-time-block{margin-bottom:0;padding:7px 9px;background:#f8fbff;border:1px solid #d5e1f2;border-radius:10px;font-size:13px;font-weight:800;color:#334155;line-height:1.35}
.result-time-block .result-time-line{margin-bottom:2px}
.result-time-block .result-time-line:last-child{margin-bottom:0}
.official-panel{border:1px solid #cfd9e8;border-radius:12px;overflow:hidden;background:#fff}
.official-panel-title{padding:8px 12px;background:#2d5fd1;color:#fff;font-size:18px;font-weight:900;line-height:1.2}
.official-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}
.official-table th,.official-table td{border:1px solid #d9dfe8;padding:9px 10px;font-size:15px;line-height:1.25;color:#111827}
.official-table thead th{background:#eef2f7;color:#1f2937;font-weight:800}
.official-result-table th,.official-result-table td{text-align:left}
.official-result-table thead th{font-size:14px;font-weight:900}
.official-result-table tbody td{font-size:16px;font-weight:700}
.official-result-table th:nth-child(1),.official-result-table td:nth-child(1),
.official-result-table th:nth-child(2),.official-result-table td:nth-child(2){width:14%;text-align:center}
.official-result-table th:nth-child(3),.official-result-table td:nth-child(3){width:40%;text-align:left}
.official-result-table th:nth-child(4),.official-result-table td:nth-child(4){width:32%;text-align:left}
.official-dividend-table thead th{font-size:14px;font-weight:900}
.official-dividend-table tbody td{font-size:15px;font-weight:600}
.official-dividend-table .col-pool{width:26%;text-align:left;vertical-align:top;font-weight:900}
.official-dividend-table .col-combo{width:37%;text-align:center;font-weight:700}
.official-dividend-table .col-amount{width:37%;text-align:center;font-weight:800}
.official-dividend-table tbody td.col-pool{background:#fff}
.official-dividend-table tr.row-qinella td,
.official-dividend-table tr.row-qinella td.col-pool{background:#ffd8b2}
.official-dividend-table tr.row-qplace td,
.official-dividend-table tr.row-qplace td.col-pool{background:#fff8db}

#panel-dividend .jkc-block,#panel-dividend .tnc-block{margin-top:18px;border:1px solid #d7e2f1 !important;border-radius:12px;background:#fff;overflow:hidden;padding-top:0 !important}
#panel-dividend #jkcMeta,#panel-dividend #tncMeta{margin:0;padding:10px 12px !important;background:#2d5fd1;color:#fff;font-size:16px;font-weight:900;line-height:1.2}
#panel-dividend .king-meta-wrap{display:flex;flex-direction:column;gap:4px}
#panel-dividend .king-meta-title{font-size:16px;font-weight:900;line-height:1.15}
#panel-dividend .king-meta-sub{font-size:12px;font-weight:600;line-height:1.25;opacity:.96}
#panel-dividend .jkc-block > div:last-child,#panel-dividend .tnc-block > div:last-child{max-height:none !important;overflow:auto;padding:0}
#panel-dividend .jkc-block .div-table,#panel-dividend .tnc-block .div-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0}
#panel-dividend .jkc-block .div-table thead th,#panel-dividend .tnc-block .div-table thead th{background:#eef2f7;color:#1f2937;border-color:#d9dfe8;padding:9px 8px;font-size:14px;font-weight:900}
#panel-dividend .jkc-block .div-table td,#panel-dividend .tnc-block .div-table td{border-color:#d9dfe8;padding:9px 8px;font-size:14px;font-weight:600;color:#111827}
#panel-dividend .jkc-block .div-table tbody tr:nth-child(odd) td,#panel-dividend .tnc-block .div-table tbody tr:nth-child(odd) td{background:#fbfdff}
#panel-dividend .jkc-block .div-table tbody tr:nth-child(even) td,#panel-dividend .tnc-block .div-table tbody tr:nth-child(even) td{background:#fff}
#panel-dividend .jkc-block .div-table th:nth-child(1),#panel-dividend .jkc-block .div-table td:nth-child(1),
#panel-dividend .tnc-block .div-table th:nth-child(1),#panel-dividend .tnc-block .div-table td:nth-child(1){width:10%;text-align:center}
#panel-dividend .jkc-block .div-table th:nth-child(2),#panel-dividend .jkc-block .div-table td:nth-child(2),
#panel-dividend .tnc-block .div-table th:nth-child(2),#panel-dividend .tnc-block .div-table td:nth-child(2){width:26%;text-align:left;font-weight:800}
#panel-dividend .jkc-block .div-table th:nth-child(3),#panel-dividend .jkc-block .div-table td:nth-child(3),
#panel-dividend .tnc-block .div-table th:nth-child(3),#panel-dividend .tnc-block .div-table td:nth-child(3){width:23%;text-align:left}
#panel-dividend .jkc-block .div-table th:nth-child(4),#panel-dividend .jkc-block .div-table td:nth-child(4),
#panel-dividend .tnc-block .div-table th:nth-child(4),#panel-dividend .tnc-block .div-table td:nth-child(4){width:13%;text-align:center}
#panel-dividend .jkc-block .div-table th:nth-child(5),#panel-dividend .jkc-block .div-table td:nth-child(5),
#panel-dividend .tnc-block .div-table th:nth-child(5),#panel-dividend .tnc-block .div-table td:nth-child(5){width:16%;text-align:center}
#panel-dividend .jkc-block .div-table th:nth-child(6),#panel-dividend .jkc-block .div-table td:nth-child(6),
#panel-dividend .tnc-block .div-table th:nth-child(6),#panel-dividend .tnc-block .div-table td:nth-child(6){width:12%;text-align:center}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(6),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(6),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(6),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(6){display:none}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(1),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(1),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(1),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(1){width:11%}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(2),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(2),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(2),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(2){width:29%}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(3),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(3),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(3),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(3){width:26%}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(4),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(4),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(4),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(4){width:14%}
#panel-dividend .jkc-block.king-result-hidden .div-table th:nth-child(5),
#panel-dividend .jkc-block.king-result-hidden .div-table td:nth-child(5),
#panel-dividend .tnc-block.king-result-hidden .div-table th:nth-child(5),
#panel-dividend .tnc-block.king-result-hidden .div-table td:nth-child(5){width:20%}
#panel-dividend .king-name-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#panel-dividend .king-name-main{font-size:14px;font-weight:800;line-height:1.2;color:#111827}
#panel-dividend .king-toggle-line{display:flex;align-items:center}
#panel-dividend .jkc-block .div-table .jkc-other-summary td,#panel-dividend .tnc-block .div-table .tnc-other-summary td{background:#f3f8ff !important}
#panel-dividend .jkc-block .div-table .jkc-other-detail td,#panel-dividend .tnc-block .div-table .tnc-other-detail td{padding:0;border-top:0}
#panel-dividend .jkc-block .div-table .jkc-other-detail .div-table,#panel-dividend .tnc-block .div-table .tnc-other-detail .div-table{border-top:1px solid #d9dfe8}
#panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody tr,
#panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody tr{height:38px}
#panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody td,
#panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody td{padding:7px 8px;line-height:1.15;vertical-align:middle;white-space:nowrap}
#panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody tr:first-child td,
#panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody tr:first-child td{border-top:0}
#panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody td:nth-child(2),
#panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody td:nth-child(2){font-weight:700}
#panel-dividend .jkc-block .div-table .jkc-other-toggle,#panel-dividend .tnc-block .div-table .tnc-other-toggle{border:0;background:transparent;color:#2d5fd1;font-size:12px;font-weight:800;cursor:pointer;padding:0}

#panel-result .result-cards .muted{color:#000}

#panel-dividend .result-cards{margin-bottom:14px}
#panel-dividend .result-cards .muted{color:#000}
#panel-result .result-cards .tips-msg,
#panel-dividend .result-cards .tips-msg,
#panel-dividend .dividend-cards .tips-msg{margin-left:0;margin-right:0}
@media (max-width:768px){
  .official-panel-title{padding:7px 10px;font-size:16px}
  .official-table th,.official-table td{padding:7px 8px;font-size:13px}
  .official-result-table thead th{font-size:13px}
  .official-result-table tbody td{font-size:15px;font-weight:700}
  .official-dividend-table thead th{font-size:13px}
  .official-dividend-table tbody td{font-size:14px}
  .official-result-table th:nth-child(3),.official-result-table td:nth-child(3){width:26%}
  .official-result-table th:nth-child(4),.official-result-table td:nth-child(4){width:22%}
  .official-result-table th:nth-child(5),.official-result-table td:nth-child(5){width:20%}
  .official-dividend-table .col-pool{width:25%}
  .official-dividend-table .col-combo{width:38%}
  .official-dividend-table .col-amount{width:37%}
  #panel-dividend #jkcMeta,#panel-dividend #tncMeta{font-size:15px;padding:9px 10px !important}
  #panel-dividend .king-meta-title{font-size:15px}
  #panel-dividend .king-meta-sub{font-size:11px}
  #panel-dividend .jkc-block .div-table thead th,#panel-dividend .tnc-block .div-table thead th{padding:7px 6px;font-size:13px}
  #panel-dividend .jkc-block .div-table td,#panel-dividend .tnc-block .div-table td{padding:7px 6px;font-size:13px}
  #panel-dividend .king-name-main{font-size:13px}
  #panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody tr,
  #panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody tr{height:34px}
  #panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody td,
  #panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody td{padding:6px 6px}
}

#panel-result.panel{background:#e6f2fb}
#panel-result .result-cards{gap:8px;padding:6px 4px 10px}
.result-meeting-session-wrap{width:100%;box-sizing:border-box;margin:2px 0 6px;padding:0}
.result-meeting-os-sessions.board-os-session-leading{
  padding:10px 4px;
  margin:0;
  border-right:none;
  max-width:none;
  justify-content:flex-start;
}

.result-meeting-os-sessions .board-os-session-btn:not(.is-active){
  border:1px solid #122c68;
}

.result-meeting-list{display:flex;flex-direction:column;gap:8px}
.result-meeting-card{position:relative;display:flex;align-items:center;gap:8px;background:#fff;border-radius:10px;box-shadow:0 1px 4px rgba(30,60,90,.07);padding:8px 10px 8px 8px;border-left:4px solid #94a3b8;cursor:pointer;text-align:left;transition:background .15s,box-shadow .15s,border-color .15s}

.result-meeting-card--surf-turf{border-left-color:#59b814}
.result-meeting-card--surf-aw{border-left-color:#cb7645}
.result-meeting-card--finished{background:#dfe2e6;box-shadow:0 1px 4px rgba(15,23,42,.1)}
.result-meeting-card.is-active{box-shadow:0 2px 10px rgba(37,99,235,.22)}

.result-meeting-card-num{flex-shrink:0;width:32px;height:32px;margin-top:0;border-radius:50%;background:#e2edf6;color:#1e293b;font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;padding:0;line-height:0;box-sizing:border-box}
.result-meeting-card-num-inner{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1;font-variant-numeric:tabular-nums;text-align:center}
.result-meeting-card-num--local-live{background:#e2edf6;color:#1e293b;box-shadow:none}
.result-meeting-card-num--finished{background:#17368b;color:#fff}
.result-meeting-card-num--finished .result-meeting-card-num-inner{color:#fff}
.result-meeting-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:stretch;text-align:left}

.result-meeting-card-title{
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:3px;
  line-height:1.3;
}
.result-meeting-card-meta-bold{
  font-weight:800;
  font-size:18px;
  color:#000;
  line-height:1.35;
}
.result-meeting-card-meta-sub{
  font-weight:400;
  font-size:14px;
  color:#000;
  line-height:1.35;
  word-break:break-word;
}

.result-meeting-card-result-line{width:100%;min-width:0;max-width:100%;text-align:left;overflow-x:auto;-webkit-overflow-scrolling:touch}
.result-meeting-card-result-line .result-meeting-card-payout{
  display:flex;
  flex-wrap:nowrap;
  align-items:baseline;
  justify-content:flex-start;
  gap:4px;
  width:100%;
  min-width:min-content;
  white-space:nowrap;
  overflow:visible;
  line-height:1.35;
  font-size:16px;
  color:#111827;
}
.result-meeting-card-result-line .result-meeting-payout-prefix{
  flex-shrink:0;
  font-size:1em;
  font-weight:400;
  color:#111827;
}
.result-meeting-card-result-line .result-meeting-payout-no{
  font-size:1.0625em;
  font-weight:800;
  color:#dc2626;
}
.result-meeting-card-result-line .result-meeting-payout-sep{
  font-size:1em;
  font-weight:400;
  color:#111827;
}
.result-meeting-card-result-line .result-meeting-payout-name{
  font-size:1em;
  font-weight:400;
  color:#172554;
}
.result-meeting-card-result-line .result-meeting-payout-dot{
  font-size:0.95em;
}
.result-meeting-card-result-line .result-meeting-payout-chips{flex:0 0 auto;min-width:min-content;white-space:nowrap;overflow:visible;word-break:normal}

.result-meeting-card-right{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;gap:6px;margin-left:4px;min-width:28px;padding-top:0}
.result-meeting-card-right--no-chev{min-width:0;margin-left:2px}
.result-meeting-card-right--with-soon{min-width:min(108px,36vw)}
.result-meeting-soon-badge{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-shrink:0;
  padding:5px 11px 5px 7px;
  border-radius:10px;
  background:#e6f4ea;
  color:#2e7d32;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 1px 2px rgba(46,125,50,.08);
}
.result-meeting-soon-badge-icon{
  flex-shrink:0;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#2e7d32;
  display:flex;
  align-items:center;
  justify-content:center;
}
.result-meeting-soon-badge-icon svg{display:block;margin-left:1px}
.result-meeting-soon-badge-text{white-space:nowrap;letter-spacing:.02em}
.result-meeting-card-chev-only{
  font-size:20px;
  font-weight:900;
  color:#111827;
  line-height:1;
  width:100%;
  text-align:center;
  user-select:none;
}

.result-meeting-card-replay-row{display:flex;justify-content:flex-end;align-items:center;width:100%;flex-shrink:0}
.result-meeting-card-payout{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:flex-start;
  gap:4px;
  line-height:1.25;
  font-size:clamp(9px,2.65vw,12px);
  color:#111827;
}
.result-meeting-payout-prefix{font-weight:800;flex-shrink:0;color:#111827}
.result-meeting-payout-chips{min-width:0;flex:1 1 auto;overflow:visible;white-space:normal;word-break:break-word}

.result-meeting-payout-chip{display:inline;white-space:nowrap}

.result-meeting-payout-no{color:#dc2626;font-weight:800;font-size:calc(1em + 2px)}
.result-meeting-payout-sep{color:#111827;font-weight:400}
.result-meeting-payout-name{color:#111827;font-weight:400}
.result-meeting-payout-dot{color:#64748b;font-weight:400;font-size:0.95em}
.result-meeting-payout-note{font-weight:600;color:#111827}
.result-meeting-replay-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #fca5a5;
  background:#fef2f2;
  color:#dc2626;
  font-size:15px;
  font-weight:800;
  border-radius:7px;
  padding:5px 12px 5px 10px;
  cursor:pointer;
  flex-shrink:0;
  line-height:1.2;
  box-shadow:0 1px 3px rgba(220,38,38,.08),0 2px 8px rgba(250,204,21,.28);
}
.result-meeting-replay-btn--icon-only{
  gap:0;
  padding:7px;
  border-radius:50%;
  font-size:0;
  line-height:0;
}
.result-meeting-replay-btn--icon-only .result-meeting-replay-btn-icon svg{
  width:20px;
  height:20px;
}
.result-meeting-replay-btn-icon{
  display:inline-flex;
  flex-shrink:0;
  line-height:0;
  color:#dc2626;
}
.result-meeting-replay-btn-icon svg{display:block}
.result-meeting-replay-btn-label{position:relative;top:0.5px;color:#dc2626}
.result-meeting-replay-btn:active{opacity:.9}

@media (max-width:768px){
  .result-meeting-card-num{
    width:calc(32px * 1.05);
    height:calc(32px * 1.05);
    font-size:calc(15px * 1.05);
  }
}
@media (max-width:420px){
  .result-meeting-card{padding:7px 8px 7px 6px;gap:6px}
  .result-meeting-card-num{width:calc(30px * 1.05);height:calc(30px * 1.05);font-size:calc(14px * 1.05)}
  .result-meeting-soon-badge{font-size:12px;padding:4px 8px 4px 6px;gap:5px}
  .result-meeting-soon-badge-icon{width:16px;height:16px}
  .result-meeting-soon-badge-icon svg{width:8px;height:8px}
  .result-meeting-card-right{min-width:26px}
  .result-meeting-card-right--with-soon{min-width:min(96px,40vw)}
  .result-time-block{padding:5px 7px;font-size:12px}
  .official-panel{border-radius:10px}
  .official-panel-title{padding:7px 10px;font-size:15px}
  .official-table th,.official-table td{padding:6px 6px;font-size:12px}
  .official-result-table thead th{font-size:12px}
  .official-result-table tbody td{font-size:14px}
  .official-dividend-table thead th{font-size:12px}
  .official-dividend-table tbody td{font-size:13px}
  #panel-dividend #jkcMeta,#panel-dividend #tncMeta{font-size:14px}
  #panel-dividend .king-meta-title{font-size:14px}
  #panel-dividend .king-meta-sub{font-size:10px}
  #panel-dividend .jkc-block .div-table thead th,#panel-dividend .tnc-block .div-table thead th{font-size:12px}
  #panel-dividend .jkc-block .div-table td,#panel-dividend .tnc-block .div-table td{font-size:12px}
  #panel-dividend .king-name-main{font-size:12px}
  #panel-dividend .jkc-block .div-table .jkc-other-detail .div-table tbody tr,
  #panel-dividend .tnc-block .div-table .tnc-other-detail .div-table tbody tr{height:32px}
}
.replay-open-btn{border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.12);color:#fff;font-size:17px;font-weight:700;padding:6px 10px;border-radius:8px;cursor:pointer;white-space:nowrap}
.replay-open-btn.replay-open-btn--locked{opacity:.5;cursor:not-allowed}
.replay-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:3200;padding:16px}
.replay-modal.show{display:flex;align-items:center;justify-content:center}
.replay-wrap{position:relative;width:min(96vw,1100px);max-width:100%;margin:0 auto;background:#000;border:1px solid #1f2937;border-radius:16px;overflow:hidden;height:min(86vh,760px)}
.replay-close{position:absolute;right:8px;top:8px;border:none;background:rgba(0,0,0,.55);color:#fff;width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1;z-index:20;cursor:pointer}
.replay-ratio{position:relative;height:100%}
#replayPlayer{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain}
.replay-modal-inline-host{position:absolute;inset:0;z-index:25}
.replay-modal--inline-mode #replayPlayer,
.replay-modal--inline-mode .replay-overlay,
.replay-modal--inline-mode .replay-loading-state{display:none!important}
.replay-modal--inline-mode .replay-close{display:none}
.replay-modal-inline-panel{margin:0;height:100%;border:none;border-radius:0;box-shadow:none;background:#0b1220}
.replay-modal-inline-panel .board-inline-replay-head{
  padding:12px 12px 10px;
  background:#0f172a;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.replay-modal-inline-panel .board-inline-replay-player{height:calc(100% - 56px);min-height:0}
.replay-modal-inline-panel .board-inline-replay-video-host{height:100%;min-height:0}
.replay-modal-inline-panel .board-inline-replay-video-host .video-js,
.replay-modal-inline-panel .board-inline-replay-video-host video.board-inline-replay-native-video{width:100%!important;height:100%!important;min-height:0;object-fit:contain;background:#000}

.replay-loading-state{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.replay-loading-state[hidden]{display:none!important}
.replay-loading-card{min-width:220px;max-width:min(80%,360px);padding:16px 18px;border-radius:14px;background:rgba(20,26,35,.92);color:#fff;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.replay-loading-spinner{width:36px;height:36px;margin:0 auto 12px}
.replay-loading-text{font-size:14px;line-height:1.55;color:rgba(255,255,255,.92)}
.tipsme-double-spinner{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
.tipsme-double-spinner__outer,
.tipsme-double-spinner__inner{
  position:absolute;
  display:block;
  box-sizing:border-box;
  border:3px solid transparent;
  border-radius:50%;
  pointer-events:none;
}
.tipsme-double-spinner__outer{
  inset:0;
  border-top-color:#133260;
  border-right-color:#2A4873;
  animation:tipsme-double-spinner-spin .85s linear infinite;
}
.tipsme-double-spinner__inner{
  inset:6px;
  border-bottom-color:#ffce44;
  border-left-color:#ffce44;
  animation:tipsme-double-spinner-spin-reverse .85s linear infinite;
}
.tipsme-double-spinner__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffce44;
  animation:tipsme-double-spinner-pulse 1.2s ease-in-out infinite;
}
@keyframes tipsme-double-spinner-spin{to{transform:rotate(360deg)}}
@keyframes tipsme-double-spinner-spin-reverse{to{transform:rotate(-360deg)}}
@keyframes tipsme-double-spinner-pulse{
  0%,100%{opacity:.45;transform:scale(.82)}
  50%{opacity:1;transform:scale(1)}
}
.replay-overlay{position:absolute;left:0;right:0;bottom:0;z-index:2}
.replay-progress-wrap{height:4px;background:#8da0b3}
#replayProgress{height:100%;width:0;background:#1f5fff}
.replay-tabs{display:grid;grid-template-columns:repeat(4,1fr);background:rgba(20,28,40,.9)}
.replay-tab{border:none;border-right:1px solid rgba(255,255,255,.15);padding:12px 6px;font-size:16px;color:#fff;background:rgba(30,39,52,.92);cursor:pointer}
.replay-tab:last-child{border-right:none}
.replay-tab.active{background:rgba(132,140,148,.85)}
.replay-tab:disabled{opacity:.35;cursor:not-allowed}
.replay-ctl{display:grid;grid-template-columns:1fr auto auto;align-items:center;background:rgba(10,20,30,.9)}
.replay-left{display:flex;align-items:center;gap:10px;padding:12px 14px}
#replayPlayPause{font-size:28px;border:none;background:transparent;color:#fff;cursor:pointer}
#replayTimeText{font-size:20px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55)}
.replay-ctl-btn{border-left:1px solid rgba(255,255,255,.12);padding:12px 14px;font-size:22px;background:rgba(255,255,255,.06);color:#fff;border-top:none;border-right:none;border-bottom:none;cursor:pointer}
.official-page-modal{display:none;position:fixed;inset:0;background:rgba(6,10,18,.78);z-index:1250;padding:10px}
.official-page-modal.show{display:block}
.official-page-wrap{width:min(100%,980px);height:min(calc(100vh - 20px),900px);margin:0 auto;background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 28px 80px rgba(0,0,0,.34)}
.official-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:linear-gradient(135deg,#0f3b8f 0%,#163a7a 56%,#1e4fb5 100%);color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}
.official-page-head-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.official-page-title{min-width:0;font-size:16px;font-weight:800;line-height:1.3}
.official-page-subtitle{min-width:0;font-size:12px;line-height:1.35;color:rgba(255,255,255,.86)}
.official-page-close{border:none;width:32px;height:32px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.official-page-body{flex:1 1 auto;overflow:auto;background:#f3f4f6;padding:12px 12px calc(28px + env(safe-area-inset-bottom, 0px));-webkit-overflow-scrolling:touch}
.official-local-loading,.official-local-empty{
  position:relative;
  padding:20px 18px 20px 24px;
  border-radius:14px;
  border:1px solid #c4d4ec;
  background:linear-gradient(165deg,#fff 0%,#f5f8ff 50%,#e9f0fc 100%);
  color:#455a70;
  font-size:clamp(14px,3.8vw,15px);
  font-weight:700;
  line-height:1.5;
  text-align:center;
  box-shadow:0 4px 20px rgba(18,44,104,.09),inset 0 1px 0 rgba(255,255,255,.92);
  overflow:hidden;
}
.official-local-loading::before,.official-local-empty::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  border-radius:14px 0 0 14px;
  background:linear-gradient(180deg,#3d6fd8 0%,#122c68 100%);
}
.official-local-empty-inline{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #c8d8ef;
  background:linear-gradient(180deg,#fbfdff 0%,#f0f6ff 100%);
  color:#5a6b80;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  box-shadow:0 2px 10px rgba(18,44,104,.05);
}
.official-local-list{display:flex;flex-direction:column;gap:14px}
.official-local-list-formline{gap:0}
.official-local-card{padding:12px;border-radius:12px;background:#fff;border:1px solid #d5dbe4;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.official-local-card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.official-local-card-head-stack{display:block}
.official-local-card-formline .official-local-card-head{margin:-12px -12px 12px;padding:10px 12px;background:#f0f2f5;border-bottom:1px solid #d6dde6;border-radius:12px 12px 0 0}
.official-local-silk{width:40px;height:40px;object-fit:contain;flex:0 0 auto}
.official-local-card-copy{min-width:0}
.official-local-card-title{font-size:15px;font-weight:800;line-height:1.3;color:#24364f}
.official-local-card-meta{margin-top:4px;font-size:12px;line-height:1.45;color:#637286}
.official-local-card-body{display:flex;flex-direction:column;gap:8px}
.official-local-entry{padding:10px 12px;border-radius:14px;background:#f8fbff;border:1px solid #dbe7fb}
.official-local-entry-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.official-local-inline-btn{margin-left:auto}
.official-local-entry-date{font-size:12px;font-weight:800;color:#163a7a}
.official-local-entry-type{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:linear-gradient(135deg,#ffd84a 0%,#ffc400 100%);color:#142a63;font-size:12px;font-weight:800}
.official-local-entry-sub{margin-top:6px;font-size:13px;line-height:1.55;color:#44536a}
.official-local-card-note{margin-top:10px;font-size:12px;line-height:1.5;color:#6a7a91}
.official-local-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.official-local-result-wrap .official-local-meta-grid{gap:8px}
.official-local-meta-card{padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #d6dde6;box-shadow:none}
.official-local-meta-grid-official{grid-template-columns:1.3fr .7fr}
.official-local-meta-card-official{border-radius:8px;background:#f7f8fa}
.official-local-meta-line+.official-local-meta-line{margin-top:6px}
.official-local-meta-line{font-size:13px;line-height:1.5;color:#334155}
.official-local-table-scroll{overflow:auto;background:#fff}
.official-local-table-scroll::-webkit-scrollbar{height:12px;width:12px}
.official-local-table-scroll::-webkit-scrollbar-track{background:#dde6f3}
.official-local-table-scroll::-webkit-scrollbar-thumb{background:#86a4d5;border:2px solid #dde6f3;border-radius:999px}
.official-local-table-scroll{position:relative}
.official-page-body .official-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:collapse;background:#fff}
.official-page-body .official-table th,
.official-page-body .official-table td{padding:6px 8px;border:1px solid #9fb5d3;font-size:14px;line-height:1.35;color:#111827;white-space:nowrap;font-weight:400}
.official-page-body .official-table thead th{background:#d9ecff;color:#0f3b8f;font-weight:400}
.official-page-body .official-table tbody tr:nth-child(odd) td{background:#fff}
.official-page-body .official-table tbody tr:nth-child(even) td{background:#f5f9ff}
.official-page-body .official-local-table-scroll .official-table th:nth-child(1),
.official-page-body .official-local-table-scroll .official-table td:nth-child(1){position:sticky;left:0;z-index:3}
.official-page-body .official-local-table-scroll .official-table th:nth-child(2),
.official-page-body .official-local-table-scroll .official-table td:nth-child(2){position:sticky;left:var(--official-sticky-col-1,56px);z-index:3}
.official-page-body .official-local-table-scroll .official-table thead th:nth-child(1),
.official-page-body .official-local-table-scroll .official-table thead th:nth-child(2){z-index:6;background:#d9ecff}
.official-page-body .official-local-table-scroll .official-table tbody tr:nth-child(odd) td:nth-child(1),
.official-page-body .official-local-table-scroll .official-table tbody tr:nth-child(odd) td:nth-child(2){background:#fff}
.official-page-body .official-local-table-scroll .official-table tbody tr:nth-child(even) td:nth-child(1),
.official-page-body .official-local-table-scroll .official-table tbody tr:nth-child(even) td:nth-child(2){background:#f5f9ff}
.official-result-table,.official-local-report-table,.official-local-corunning-table{--official-sticky-col-1:56px;--official-sticky-col-2:56px;min-width:100%;width:max-content}
.official-dividend-table{--official-sticky-col-1:96px;--official-sticky-col-2:126px;min-width:100%;width:max-content}
.official-panel-local-meta .official-dividend-table thead th{background:#eef2f7;color:#1f2937;font-size:14px;font-weight:900}
.official-panel-local-meta .official-dividend-table tbody td{font-size:15px;font-weight:600;color:#111827}
.official-panel-local-meta .official-dividend-table .col-pool{width:26%;min-width:96px;text-align:left;vertical-align:top;font-weight:900}
.official-panel-local-meta .official-dividend-table .col-combo{width:37%;min-width:126px;text-align:center;font-weight:700}
.official-panel-local-meta .official-dividend-table .col-amount{width:37%;min-width:118px;text-align:center;font-weight:800}
.official-panel-local-meta .official-dividend-table tbody td.col-pool{background:#fff}
.official-panel-local-meta .official-dividend-table tbody tr:nth-child(odd) td{background:#f9fbff}
.official-panel-local-meta .official-dividend-table tbody tr:nth-child(even) td{background:#fff}

.official-panel-local-meta .official-dividend-table tbody tr.row-qinella td,
.official-panel-local-meta .official-dividend-table tbody tr.row-qinella td.col-pool{background:#ffd8b2}
.official-panel-local-meta .official-dividend-table tbody tr.row-qplace td,
.official-panel-local-meta .official-dividend-table tbody tr.row-qplace td.col-pool{background:#fff8db}
.official-dividend-mobile-list{display:none}
.official-dividend-mobile-card{
  border:1px solid #d9e2ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(15,23,42,.05);
}
.official-dividend-mobile-card + .official-dividend-mobile-card{margin-top:10px}
.official-dividend-mobile-card-title{
  padding:10px 12px;
  background:#eef2f7;
  color:#1f2937;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}
.official-dividend-mobile-card-qinella .official-dividend-mobile-card-title{background:#ffd8b2}
.official-dividend-mobile-card-qplace .official-dividend-mobile-card-title{background:#fff8db}
.official-dividend-mobile-card-qplace .official-dividend-mobile-card-body{background:#fff8db}
.official-dividend-mobile-card-body{display:flex;flex-direction:column}
.official-dividend-mobile-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 12px;
  padding:10px 12px;
  border-top:1px solid #e6edf7;
  align-items:center;
}
.official-dividend-mobile-item:first-child{border-top:none}
.official-dividend-mobile-combo-label,
.official-dividend-mobile-amount-label{
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  color:#6b7b8f;
}
.official-dividend-mobile-combo,
.official-dividend-mobile-amount{
  font-size:14px;
  line-height:1.35;
  color:#111827;
}
.official-dividend-mobile-combo{
  font-weight:700;
  word-break:break-word;
}
.official-dividend-mobile-amount{
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
.official-local-meta-table{--official-sticky-col-1:170px;--official-sticky-col-2:110px;min-width:100%;width:max-content}
.official-local-table-subtitle{padding:10px 12px;border-bottom:1px solid #d9dfe8;background:#f8fafc;font-size:13px;line-height:1.4;color:#475569}
.official-local-table-note{padding:10px 12px;font-size:12px;line-height:1.5;color:#6a7a91}
.official-panel-title-sub{margin:10px 0 0;padding:0 0 8px;font-size:14px;font-weight:400;color:#0f3b8f}
.official-local-meta-block{display:flex;flex-direction:column;gap:6px;padding:2px 0 4px}
.official-local-meta-main{font-size:18px;line-height:1.25;color:#0f3b8f;font-weight:400}
.official-local-meta-sub{font-size:15px;line-height:1.35;color:#24364f;font-weight:400}
.official-local-meta-lines{display:flex;flex-direction:column;gap:4px;padding-top:2px}
.official-local-meta-line-text{font-size:14px;line-height:1.45;color:#475569;font-weight:400}
.official-panel-local-formline{
  border:none;
  border-radius:0;
  overflow:visible;
  background:transparent;
  box-shadow:none;
}
.official-panel-local-formline .official-local-table-scroll,
.official-panel-local-meta .official-local-table-scroll,
.official-panel-local-report .official-local-table-scroll{border-top:1px solid #d9dfe8}
.official-local-formline-meta{
  display:flex;
  align-items:center;
  gap:12px;
  padding:3px 6px 2px;
  background:linear-gradient(135deg,#0f3b8f 0%,#163a7a 56%,#1e4fb5 100%);
  border:1px solid #163a7a;
  border-bottom:none;
  color:#fff;
}
.official-local-formline-meta-main{font-size:14px;font-weight:700;line-height:1.2;color:#fff;white-space:nowrap}
.official-local-formline-meta-sub{margin-top:0;font-size:14px;line-height:1.2;color:rgba(255,255,255,.92)}
.official-local-formline-scroll{padding:0;overflow-x:hidden}
.official-local-formline-grid{
  display:block;
  width:100%;
  min-width:0;
  background:#fff;
  border:1px solid #d9dfe8;
}
.official-local-formline-grid-head,
.official-local-formline-grid-row{
  display:grid;
  grid-template-columns:
    minmax(98px,1.45fr)
    minmax(52px,.78fr)
    minmax(38px,.55fr)
    minmax(44px,.62fr)
    minmax(48px,.72fr)
    minmax(72px,.98fr)
    minmax(38px,.54fr)
    minmax(60px,.82fr)
    minmax(36px,.5fr)
    minmax(36px,.48fr)
    minmax(54px,.76fr)
    minmax(54px,.76fr);
  align-items:stretch;
}
.official-local-formline-grid-head{
  position:sticky;
  top:0;
  z-index:3;
}
.official-local-formline-grid-head>div{
  padding:2px 4px;
  background:#eef2f7;
  color:#1f2937;
  font-size:14px;
  font-weight:800;
  line-height:1.1;
  text-align:center;
  white-space:normal;
  border-right:1px solid #d9dfe8;
  border-bottom:1px solid #d9dfe8;
}
.official-local-formline-grid-head>div:first-child{
  text-align:left;
}
.official-local-formline-grid-head>div:last-child{
  border-right:none;
}
.official-local-formline-grid-body{
  display:flex;
  flex-direction:column;
}
.official-local-formline-grid-row{
  border-bottom:1px solid #d9dfe8;
  background:#fff;
}
.official-local-formline-grid-row.is-current{
  background:#fff;
}
.official-local-formline-grid-row:last-child{
  border-bottom:none;
}
.official-local-formline-grid-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:2px 4px;
  font-size:13px;
  font-weight:600;
  line-height:1.15;
  color:#000;
  text-align:center;
  border-right:1px solid #d9dfe8;
}
.official-local-formline-grid-cell-horse{
  justify-content:flex-start;
  text-align:left;
}
.official-local-formline-grid-cell:nth-child(5),
.official-local-formline-grid-cell:nth-child(6){
  justify-content:flex-start;
  text-align:left;
}
.official-local-formline-grid-cell:last-child{
  border-right:none;
}
.official-local-formline-horse{display:flex;align-items:center;gap:0;min-width:0}
.official-local-formline-name{
  min-width:0;
  font-size:13px;
  font-weight:700;
  color:#000;
  white-space:normal;
  word-break:break-all;
}
.official-local-formline-place-text{display:inline-block;font-size:13px;line-height:1.1;font-weight:700;color:#000}
.official-local-meta-table td{font-size:14px;font-weight:400;line-height:1.45;color:#334155;background:#fff;min-width:110px}
.official-local-meta-table td:nth-child(1){min-width:170px}
.official-local-meta-table td:nth-child(2){min-width:110px}
.official-local-report-table .col-report{text-align:left;min-width:420px;white-space:normal;line-height:1.6}
.official-local-place-top{color:#c62828 !important;font-weight:800 !important}
.official-panel-local-corunning{margin-top:14px;border:1px solid #cfd9e8;border-radius:12px;overflow:hidden;background:#fff}
.official-local-corunning-summary{list-style:none;cursor:pointer;padding:10px 12px;background:#2d5fd1;color:#fff;font-size:14px;font-weight:400;line-height:1.2}
.official-local-corunning-summary::-webkit-details-marker{display:none}
.official-panel-local-corunning[open] .official-local-corunning-summary,
.official-panel-local-report[open] .official-local-corunning-summary{border-bottom:1px solid #d9dfe8}
.official-local-corunning-table th:nth-child(1),.official-local-corunning-table td:nth-child(1),
.official-local-corunning-table th:nth-child(2),.official-local-corunning-table td:nth-child(2){min-width:56px;text-align:center}
.official-local-corunning-table th:nth-child(3),.official-local-corunning-table td:nth-child(3){min-width:150px;text-align:left}
.official-local-corunning-table th:nth-child(4),.official-local-corunning-table td:nth-child(4),
.official-local-corunning-table th:nth-child(5),.official-local-corunning-table td:nth-child(5){min-width:90px;text-align:center}
.official-local-corunning-table .col-comment{min-width:380px;white-space:normal;text-align:left;line-height:1.55}
.official-local-list-trial{gap:16px}
.official-panel-local-trial,
.official-local-btresult-wrap .official-panel-local-result{border-radius:12px;overflow:hidden}
.official-local-trial-table{table-layout:auto}
.official-local-trial-table th,.official-local-trial-table td{vertical-align:middle}
.official-local-trial-table thead th,
.official-local-btresult-wrap .official-result-table thead th{font-size:14px;font-weight:900}
.official-local-trial-table tbody td,
.official-local-btresult-wrap .official-result-table tbody td{font-size:14px;font-weight:600;line-height:1.35}
.official-local-trial-table th:first-child,.official-local-trial-table td:first-child{width:56px;text-align:center}
.official-local-trial-table .col-horse{min-width:220px;text-align:left}
.official-local-trial-table .col-action{width:92px;text-align:center}
.official-local-trial-horse{display:flex;flex-direction:column;gap:4px}
.official-local-trial-horse-name{font-size:14px;font-weight:400;color:#24364f}
.official-local-trial-horse-meta{font-size:11px;line-height:1.4;color:#70819a}
.official-local-trial-empty{padding:18px 12px !important;text-align:center;color:#6b7b8f;font-weight:400}
.official-panel-local-trial .official-panel-title,
.official-local-btresult-wrap .official-local-bt-group-title{padding:8px 12px;background:#2d5fd1;color:#fff;border:1px solid #cfd9e8;border-bottom:none;border-radius:12px 12px 0 0;font-size:16px;font-weight:400;line-height:1.2}
.official-panel-local-trial .official-local-table-scroll,
.official-local-btresult-wrap .official-panel-local-result .official-local-table-scroll{border-top:1px solid #d9dfe8}
.official-local-btresult-wrap .official-local-bt-summary{margin-bottom:0;padding:10px 12px;border-radius:0;border:1px solid #d9dfe8;border-top:none;background:#f8fafc;font-size:13px;line-height:1.5;color:#475569}
.official-local-btresult-wrap .official-panel-local-result{margin-top:0}
.official-local-btresult-wrap .official-panel-local-result .official-result-table{border-top-left-radius:0;border-top-right-radius:0}
.official-result-table th:nth-child(1),.official-result-table td:nth-child(1),
.official-result-table th:nth-child(2),.official-result-table td:nth-child(2),
.official-local-report-table th:nth-child(1),.official-local-report-table td:nth-child(1),
.official-local-report-table th:nth-child(2),.official-local-report-table td:nth-child(2){min-width:56px;text-align:center}
.official-result-table th:nth-child(3),.official-result-table td:nth-child(3),
.official-local-report-table th:nth-child(3),.official-local-report-table td:nth-child(3){min-width:160px;text-align:left}
.official-result-table th:nth-child(4),.official-result-table td:nth-child(4),
.official-result-table th:nth-child(5),.official-result-table td:nth-child(5){min-width:100px;text-align:left}
.official-result-table th:nth-child(6),.official-result-table td:nth-child(6),
.official-result-table th:nth-child(7),.official-result-table td:nth-child(7),
.official-result-table th:nth-child(8),.official-result-table td:nth-child(8),
.official-result-table th:nth-child(9),.official-result-table td:nth-child(9),
.official-result-table th:nth-child(10),.official-result-table td:nth-child(10),
.official-result-table th:nth-child(11),.official-result-table td:nth-child(11),
.official-result-table th:nth-child(12),.official-result-table td:nth-child(12){min-width:88px;text-align:center}
.official-dividend-table .col-pool{min-width:96px;text-align:center;vertical-align:top;font-weight:400}
.official-dividend-table .col-combo{min-width:126px;text-align:center;font-weight:400}
.official-dividend-table .col-amount{min-width:118px;text-align:center;font-weight:400}
.official-local-btresult-wrap .official-result-table th:nth-child(1),.official-local-btresult-wrap .official-result-table td:nth-child(1){min-width:220px;text-align:left}
.official-local-btresult-wrap .official-result-table th:nth-child(2),.official-local-btresult-wrap .official-result-table td:nth-child(2),
.official-local-btresult-wrap .official-result-table th:nth-child(3),.official-local-btresult-wrap .official-result-table td:nth-child(3){min-width:120px;text-align:left}
.official-local-btresult-wrap .official-result-table th:nth-child(4),.official-local-btresult-wrap .official-result-table td:nth-child(4),
.official-local-btresult-wrap .official-result-table th:nth-child(5),.official-local-btresult-wrap .official-result-table td:nth-child(5),
.official-local-btresult-wrap .official-result-table th:nth-child(6),.official-local-btresult-wrap .official-result-table td:nth-child(6),
.official-local-btresult-wrap .official-result-table th:nth-child(8),.official-local-btresult-wrap .official-result-table td:nth-child(8),
.official-local-btresult-wrap .official-result-table th:nth-child(9),.official-local-btresult-wrap .official-result-table td:nth-child(9){min-width:90px;text-align:center}
.official-local-btresult-wrap .official-result-table th:nth-child(7),.official-local-btresult-wrap .official-result-table td:nth-child(7){min-width:120px;text-align:center}
.official-panel-local-trial .official-local-trial-table th:nth-child(2),.official-panel-local-trial .official-local-trial-table td:nth-child(2){min-width:220px}
.official-panel-local-trial .official-local-trial-table th:nth-child(3),.official-panel-local-trial .official-local-trial-table td:nth-child(3){min-width:110px;text-align:center}
.official-panel-local-trial .official-local-trial-table th:nth-child(4),.official-panel-local-trial .official-local-trial-table td:nth-child(4){min-width:100px;text-align:center}
.official-panel-local-trial .official-local-trial-table th:nth-child(5),.official-panel-local-trial .official-local-trial-table td:nth-child(5){min-width:100px;text-align:center}
.official-panel-local-trial .official-local-trial-table th:nth-child(6),.official-panel-local-trial .official-local-trial-table td:nth-child(6){min-width:180px;text-align:left}
.official-panel-local-trial .official-local-trial-table th:nth-child(7),.official-panel-local-trial .official-local-trial-table td:nth-child(7){min-width:90px;text-align:center}
.official-panel-local-trial .official-local-trial-table th:nth-child(8),.official-panel-local-trial .official-local-trial-table td:nth-child(8){min-width:92px;text-align:center}
.official-panel-local-result,.official-panel-local-report{margin-top:14px}
.official-local-report-list{display:flex;flex-direction:column;gap:10px}
.official-local-report-row{padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #d6dde6}
.official-local-report-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.official-local-report-place{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#eef1f5;color:#344256;font-size:12px;font-weight:800}
.official-local-report-name{font-size:14px;font-weight:800;color:#24364f}
.official-local-report-copy{margin-top:8px;font-size:13px;line-height:1.6;color:#475569}
.official-local-bt-summary{margin-bottom:12px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid #dbe6f6;font-size:13px;line-height:1.55;color:#334155}
.official-local-bt-group-title{margin-bottom:0;padding:10px 12px;border:1px solid #cfd6df;border-bottom:none;border-radius:8px 8px 0 0;background:#eceff3;font-size:14px;font-weight:800;line-height:1.35;color:#24364f}
.official-local-btresult-wrap .official-result-table th:last-child,
.official-local-btresult-wrap .official-result-table td:last-child{min-width:220px}
.official-local-btresult-wrap .official-result-table th:last-child,
.official-local-btresult-wrap .official-result-table td:last-child{text-align:left}
.official-local-result-wrap .official-panel + .official-panel{margin-top:14px}
.official-local-panel-title{margin-bottom:10px;font-size:15px;font-weight:400;color:#24364f}
@media(max-width:768px){
  .replay-modal{padding:0}
  .replay-wrap{width:min(100%,720px);height:min(58vh,430px);border-radius:14px;border:1px solid #1f2937}
  .official-page-modal{padding:4px}
  .official-page-wrap{width:100%;height:calc(100vh - 8px);border-radius:12px}
  .official-page-body{padding:10px 10px calc(56px + env(safe-area-inset-bottom, 0px))}
  .official-local-inline-btn{margin-left:0}
  .official-local-table-subtitle,.official-local-table-note{padding:8px 10px}
  .official-local-formline-meta{padding:3px 4px 2px;gap:8px}
  .official-local-formline-meta-main,
  .official-local-formline-meta-sub{font-size:13px}
  .official-local-formline-scroll{position:relative;overflow-x:auto}
  .official-local-formline-grid{
    display:inline-block;
    width:max-content;
    min-width:max-content;
  }
  .official-local-formline-grid-head,
  .official-local-formline-grid-row{grid-template-columns:122px 62px 46px 54px 58px 86px 46px 74px 48px 42px 66px 66px}
  .official-local-formline-grid-head>div{font-size:13px;padding:2px 4px}
  .official-local-formline-grid-cell{font-size:13px;padding:2px 4px}
  .official-local-formline-grid-head>div:first-child{
    position:sticky;
    left:0;
    z-index:6;
    background:#eef2f7;
    box-shadow:1px 0 0 #d9dfe8;
  }
  .official-local-formline-grid-row>.official-local-formline-grid-cell:first-child{
    position:sticky;
    left:0;
    z-index:4;
    background:#fff;
    box-shadow:1px 0 0 #d9dfe8;
  }
  .official-local-formline-grid-row.is-current>.official-local-formline-grid-cell:first-child{
    background:#fff;
  }
  .official-local-trial-table .col-horse{min-width:180px}
  .official-page-body .official-table th,
  .official-page-body .official-table td{font-size:13px}
  .official-panel-local-trial .official-panel-title,
  .official-local-btresult-wrap .official-local-bt-group-title{font-size:16px}
  .official-local-report-table .col-report{min-width:240px}
  .official-local-meta-grid{grid-template-columns:1fr}
  .official-panel-local-meta .official-local-dividend-table-wrap{display:none}
  .official-dividend-mobile-list{display:flex;flex-direction:column;gap:9px;padding:0 4px}
  .official-dividend-mobile-card{border-radius:12px}
  .official-dividend-mobile-card-title{padding:9px 11px;font-size:13px}
  .official-dividend-mobile-item{
    grid-template-columns:minmax(0,1fr);
    gap:4px;
    padding:9px 11px;
  }
  .official-dividend-mobile-combo-label,
  .official-dividend-mobile-amount-label{font-size:10px}
  .official-dividend-mobile-combo,
  .official-dividend-mobile-amount{font-size:13px}
  .official-dividend-mobile-amount{
    text-align:left;
    white-space:normal;
  }
}


.board-inline-replay{
  margin:10px 0 14px;
  border-radius:14px;
  border:1px solid #e2e8f0;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
  overflow:hidden;
}
.replay-modal-inline-panel.board-inline-replay{
  margin:0!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#0b1220!important;
}
.board-inline-replay-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 10px 8px 12px;
  background:#fff;
  border-bottom:1px solid #eef2f7;
}
.board-inline-replay-tabs{
  flex:1;
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  align-items:stretch;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.board-inline-replay-tab{
  flex:1 1 0;
  min-width:0;
  border:none;
  border-radius:10px;
  padding:8px 6px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.board-inline-replay-tab--rew{
  background:#dbeafe;
  color:#1e3a8a;
}
.board-inline-replay-tab--rew.is-active{
  background:#1f5fff;
  color:#fff;
  box-shadow:0 2px 8px rgba(31,95,255,.35);
}
.board-inline-replay-tab--patrol{
  background:#ccfbf1;
  color:#0f766e;
}
.board-inline-replay-tab--patrol.is-active{
  background:#0d9488;
  color:#fff;
  box-shadow:0 2px 8px rgba(13,148,136,.35);
}
.board-inline-replay-tab--lead{
  background:#ede9fe;
  color:#5b21b6;
}
.board-inline-replay-tab--lead.is-active{
  background:#7c3aed;
  color:#fff;
  box-shadow:0 2px 8px rgba(124,58,237,.35);
}
.board-inline-replay-tab--drone{
  background:#ffedd5;
  color:#c2410c;
}
.board-inline-replay-tab--drone.is-active{
  background:#ea580c;
  color:#fff;
  box-shadow:0 2px 8px rgba(234,88,12,.35);
}
.board-inline-replay-tab.is-disabled,
.board-inline-replay-tab:disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.board-inline-replay-close{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#dc2626;
  color:#fff;
  font-size:22px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(220,38,38,.35);
}
.board-inline-replay-close:hover{
  background:#b91c1c;
}
.board-inline-replay-close:active{
  transform:scale(.96);
}
.board-inline-replay-player{
  position:relative;
  background:#000;
  min-height:200px;
}
.board-inline-replay-loading{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:rgba(0,0,0,.45);
}
.board-inline-replay-loading[hidden]{
  display:none!important;
}
.board-inline-replay-spinner{
  width:36px;
  height:36px;
}
.board-inline-replay-loading-text{
  font-size:14px;
  color:rgba(255,255,255,.92);
}
.board-inline-replay-error{
  padding:16px;
  font-size:14px;
  color:#fecaca;
  text-align:center;
}
.board-inline-replay-video-host{
  position:relative;
  z-index:1;
  width:100%;
  min-height:200px;
  background:#000;
}
.board-inline-replay-video-host .video-js,
.board-inline-replay-video-host video.board-inline-replay-native-video{
  width:100%!important;
  height:auto!important;
  min-height:200px;
}
.tips-list{display:flex;flex-direction:column;gap:0;background:#fff;font-size:17px}
.tip-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:stretch;column-gap:8px;padding:8px;background:#fff;font-size:17px}
.tip-row:nth-child(even){background:#eee}
.tip-row:nth-child(odd){background:#fff}
.tip-left{width:46px;display:flex;align-items:center;justify-content:center;align-self:stretch}
.tip-center{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}
.tip-right{display:flex;align-items:stretch;justify-content:flex-end;padding-left:10px;align-self:stretch}
.tip-silks,.tip-place-badge{display:block;width:38px;height:48px}
.tip-silks{object-fit:contain}
.tip-silks-empty{background:transparent}
.tip-place-badge{position:relative;display:inline-flex;align-items:center;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:contain;font-size:14px;font-weight:700;line-height:1;color:#000;user-select:none}
.tip-place-num{position:relative;z-index:2;transform:translateY(1px)}
.tip-place-crown-1{background-image:url("/assets/app-tips-icons/gold.png")}
.tip-place-crown-2{background-image:url("/assets/app-tips-icons/silver.png")}
.tip-place-crown-3{background-image:url("/assets/app-tips-icons/copper.png")}
.tip-place-crown-4{background-image:url("/assets/app-tips-icons/iron.png")}
.tip-place-horseshoe{background-image:url("/assets/app-tips-icons/horseshoe.png")}
.tip-place-empty{background:none}
.tip-place-neutral{background-image:url("/assets/app-tips-icons/horseshoe.png")}
.tip-place-scr{height:26px;margin-top:0;background-image:url("/assets/app-tips-icons/scr.png");font-size:12px}
.tip-place-scr .tip-place-num{transform:translateY(1px)}
.tip-title-line{display:flex;align-items:center;min-width:0;line-height:1.18;color:#000}
.tip-title-number{flex:0 0 auto;font-size:18px;font-weight:700;color:#000}
.tip-name{min-width:0;flex:0 1 auto;font-size:18px;font-weight:700;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tip-status-inline{flex:0 0 auto;font-size:15px;font-weight:700;white-space:nowrap}
.tip-status-inline-scr{color:#f00}
.tip-status-inline-dh{color:#00f}
.tip-detail-stack{display:flex;flex-direction:column;gap:0}
.tip-detail-line{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:1px;font-size:16px;line-height:1.22;color:#616161}
.tip-detail-line-fixed{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;min-height:22px;white-space:nowrap}
.tip-detail-item{display:inline-flex;align-items:baseline;min-width:0}
.tip-detail-item-last6{min-width:0;flex:1}
.tip-detail-item-last6 .tip-detail-value{overflow:hidden;text-overflow:ellipsis}
.tip-detail-label{color:rgba(0,0,0,.87)}
.tip-detail-value{color:rgba(0,0,0,.54)}
.tip-odds-table{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));align-content:stretch;height:100%;min-height:64px;gap:0}
.tip-odds-row{display:grid;grid-template-columns:18px 46px 8px;align-items:center;column-gap:2px;min-height:0;height:100%}
.tip-odds-label{font-size:19px;line-height:1;text-align:center;font-weight:700}
.tip-odds-label-w{color:#0000ff}
.tip-odds-label-p{color:#38a7db}
.tip-odd-val{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:26px;padding:0 2px;font-size:19px;line-height:1;font-weight:700;color:#000;background:transparent}
.tip-odd-val.is-down{background:#f00;color:#fff}
.tip-odd-val.is-up{background:#2aa216;color:#fff}
.tip-odd-val.is-down50{background:#993300;color:#fff}
.tip-odds-arrow{display:inline-flex;align-items:center;justify-content:center;width:8px;height:18px;background-repeat:no-repeat;background-position:center;background-size:contain}
.tip-odds-arrow-empty{background:none}
.tip-odds-arrow-up{background-image:url("/assets/app-tips-icons/arrow-up.png")}
.tip-odds-arrow-down{background-image:url("/assets/app-tips-icons/arrow-down.png")}

.tips-msg{
  position:relative;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin:6px 0;
  padding:20px 18px 20px 24px;
  border:1px solid #c4d4ec;
  border-radius:14px;
  background:linear-gradient(165deg,#ffffff 0%,#f5f8ff 42%,#e9f0fc 100%);
  box-shadow:0 4px 20px rgba(18,44,104,.09),inset 0 1px 0 rgba(255,255,255,.92);
  color:#3d5266;
  text-align:center;
  font-size:clamp(14px,3.9vw,16px);
  font-weight:700;
  line-height:1.55;
  letter-spacing:.02em;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.tips-msg::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  border-radius:14px 0 0 14px;
  background:linear-gradient(180deg,#3d6fd8 0%,#122c68 100%);
  box-shadow:1px 0 8px rgba(18,44,104,.15);
}
.tips-msg.muted{
  color:#455a70 !important;
  font-size:clamp(14px,3.9vw,16px) !important;
}
#panel-tips .tips-list>.tips-msg:only-child{
  margin:10px 8px 14px;
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
}

#panel-tips .tips-subbar{display:flex;gap:8px;padding:8px 10px 10px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}
#panel-tips .tips-sub-btn{flex:1;min-width:120px;padding:10px 8px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;font-size:15px;font-weight:700;color:#334155;cursor:pointer;-webkit-tap-highlight-color:transparent}
#panel-tips .tips-sub-btn.active{background:#122c68;color:#fff;border-color:#122c68}
#panel-tips .tips-sub-panel{display:none}
#panel-tips .tips-sub-panel.active{display:block}
#panel-tips .tips-ai-body{padding:8px 8px 10px;min-height:100px;background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%)}

.tips-ai-stack{display:flex;flex-direction:column;gap:8px}
.tips-ai-card{background:#fff;border:2px solid #f97316;border-radius:10px;box-shadow:0 2px 8px rgba(249,115,22,.08);overflow:hidden}
.tips-ai-card--analysis{border-color:#ea580c;box-shadow:0 2px 8px rgba(234,88,12,.1)}
.tips-ai-card-head{display:flex;align-items:flex-start;gap:8px;padding:8px 10px 6px;background:linear-gradient(90deg,#fff7ed 0%,#fff 55%);border-bottom:1px solid #ffedd5}
.tips-ai-card-head--compact{padding:6px 10px 5px}
.tips-ai-card-head-mark{flex:0 0 3px;width:3px;min-height:26px;border-radius:2px;background:#ea580c;margin-top:1px}
.tips-ai-card-head-mark--teal{background:#0d9488}
.tips-ai-card-head-text{flex:1;min-width:0}
.tips-ai-card-title{margin:0;font-size:15px;font-weight:800;color:#122c68;letter-spacing:.02em;line-height:1.2}
.tips-ai-card-sub{margin:2px 0 0;font-size:11px;font-weight:600;color:#64748b;line-height:1.3}
.tips-ai-pick-list{list-style:none;margin:0;padding:0}
.tips-ai-pick{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:5px 8px 6px 8px;border-top:1px solid #fff7ed}
.tips-ai-pick:first-child{border-top:none}
.tips-ai-pick-rank{position:relative;align-self:center;width:32px;height:40px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:contain;line-height:1}
.tips-ai-pick-rank--1{background-image:url("/assets/app-tips-icons/gold.png")}
.tips-ai-pick-rank--2{background-image:url("/assets/app-tips-icons/silver.png")}
.tips-ai-pick-rank--3{background-image:url("/assets/app-tips-icons/copper.png")}
.tips-ai-pick-rank--4{background-image:url("/assets/app-tips-icons/iron.png")}
.tips-ai-pick-rank-num{position:relative;z-index:1;font-size:12px;font-weight:800;color:#111;line-height:1;transform:translateY(0);text-shadow:0 0 2px #fff,0 0 3px #fff}
.tips-ai-pick-body{min-width:0;align-self:center}
.tips-ai-pick-odds{display:flex;align-items:center;justify-content:flex-end;padding-left:5px;border-left:1px solid #ffedd5;min-width:0}

.tips-ai-pick-odds .tip-odds-table{height:auto;min-height:0;grid-template-rows:auto auto;align-content:center}
.tips-ai-pick-odds .tip-odds-row{grid-template-columns:14px 40px 6px;height:auto;min-height:20px;align-items:center}
.tips-ai-pick-odds .tip-odds-label{font-size:15px}
.tips-ai-pick-odds .tip-odd-val{min-width:40px;height:22px;padding:0 2px;font-size:15px}
.tips-ai-pick-odds .tip-odds-arrow{width:6px;height:14px;background-size:contain}
.tips-ai-pick-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;line-height:1.2}
.tips-ai-pick-no{display:inline-flex;align-items:center;justify-content:center;min-width:1.6em;padding:0 6px;border-radius:4px;font-size:12px;font-weight:800;color:#0e7490;background:#ecfeff;border:1px solid #a5f3fc}
.tips-ai-pick-name{font-size:14px;font-weight:800;color:#0f172a;word-break:break-word}
.tips-ai-wp-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:700;color:#b45309;background:#fffbeb;border:1px solid #fde68a;line-height:1.3}
.tips-ai-pick-note{margin:3px 0 0;font-size:12px;line-height:1.42;color:#475569;word-break:break-word}
.tips-ai-analysis-body{margin:0;padding:8px 10px 10px;font-size:13px;line-height:1.5;color:#334155;white-space:pre-wrap;word-break:break-word;background:#fafafa}
.tips-ai-disclaimer{margin:0;padding:0 2px;font-size:10px;line-height:1.4;color:#94a3b8;text-align:center}
.tips-ai-empty{box-sizing:border-box;padding:20px 12px;text-align:center;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;margin:2px}
.tips-ai-empty-icon{width:36px;height:36px;margin:0 auto 8px;border-radius:50%;background:linear-gradient(145deg,#e0f2fe,#bae6fd);border:1px solid #7dd3fc;position:relative}
.tips-ai-empty-icon::after{content:'';position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:4px;border:2px solid #0e7490;border-top-color:transparent;transform:rotate(-45deg);opacity:.85}
.tips-ai-empty-title{margin:0 0 4px;font-size:15px;font-weight:800;color:#334155}
.tips-ai-empty-desc{margin:0;font-size:12px;color:#64748b;line-height:1.4}

.tips-ai-block{padding:10px 12px;margin-bottom:10px;background:#fff;border:1px solid #e8edf2;border-radius:10px}
.tips-ai-block-title{font-weight:700;margin-bottom:8px;color:#122c68;font-size:15px}
.tips-ai-top4-list{margin:0;padding-left:1.2em;line-height:1.55}
.tips-ai-brief{color:#64748b;font-weight:400;font-size:14px}
.tips-ai-llm{font-size:14px;line-height:1.55;color:#334155;white-space:pre-wrap;word-break:break-word}
.tips-ai-footnote{font-size:12px;color:#64748b;padding:6px 8px;margin-bottom:8px;line-height:1.45}

.th-pingyu-ai{vertical-align:bottom;line-height:1.25}
.th-pingyu-sub{display:block;font-size:11px;font-weight:700;color:#0e7490;margin-top:2px}
.rank-pingyu-line{margin:3px 0;font-size:12px;line-height:1.4;text-align:left}
.rank-pingyu-label{display:inline-block;min-width:3.2em;color:#64748b;font-size:10px;font-weight:600;margin-right:4px;vertical-align:top}
.rank-pingyu-user .rank-pingyu-text{color:#334155}
.rank-pingyu-ai-line .rank-pingyu-text,.rank-pingyu-ai-text{color:#0f172a}
.rank-pingyu-single{font-size:12px;line-height:1.45;text-align:left;color:#334155;word-break:break-word}
.rank-pingyu-ai-suffix{color:#0e7490;font-weight:600}
@media (max-width:420px){
  .tip-row{grid-template-columns:40px minmax(0,1fr) auto;padding:8px 7px}
  .tip-left{width:40px}
  .tip-silks,.tip-place-badge{width:34px;height:42px}
  .tip-place-scr{height:20px;margin-top:7px;font-size:10px}
  .tip-title-number,.tip-name{font-size:16px}
  .tip-status-inline{font-size:13px}
  .tip-detail-line{font-size:14px;column-gap:6px}
  .tip-detail-line-fixed{gap:8px;min-height:20px}
  .tip-odds-table{min-height:48px}
  .tip-odds-row{grid-template-columns:14px 40px 6px}
  .tip-odd-val,.tip-odds-label{font-size:16px}
}
