:root{--vibe-primary: #14b8a6;--vibe-secondary: #0f766e;--vibe-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);--vibe-gradient-hover: linear-gradient(135deg, #0d9488 0%, #115e59 100%);--bg-primary: #020617;--bg-secondary: #0f172a;--bg-tertiary: #1e293b;--bg-elevated: #1e293b;--bg-hover: #334155;--text-primary: #f8fafc;--text-secondary: #94a3b8;--text-tertiary: #64748b;--text-inverse: #020617;--success: #2dd4bf;--success-light: rgba(45, 212, 191, .1);--warning: #fb7185;--warning-light: rgba(251, 113, 133, .1);--info: #818cf8;--info-light: rgba(129, 140, 248, .1);--error: #f87171;--error-light: rgba(248, 113, 113, .1);--border-light: #1e293b;--border-medium: #334155;--border-strong: #475569;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .3);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .3), 0 2px 4px -2px rgb(0 0 0 / .3);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .3), 0 4px 6px -4px rgb(0 0 0 / .3);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .3), 0 8px 10px -6px rgb(0 0 0 / .3);--space-0-5: .125rem;--space-1: .25rem;--space-1-5: .375rem;--space-2: .5rem;--space-2-5: .625rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-8: 2rem;--space-10: 2.5rem;--space-12: 3rem;--space-16: 4rem;--space-20: 5rem;--radius-none: 0;--radius-sm: .375rem;--radius-md: .5rem;--radius-lg: .75rem;--radius-xl: 1rem;--radius-2xl: 1.5rem;--radius-full: 9999px;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "Space Grotesk", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--font-normal: 400;--font-medium: 500;--font-semibold: 600;--font-bold: 700;--leading-tight: 1.25;--leading-normal: 1.5;--leading-relaxed: 1.625;--z-base: 0;--z-dropdown: 10;--z-sticky: 20;--z-fixed: 30;--z-modal-backdrop: 40;--z-modal: 50;--z-tooltip: 60;--transition-fast: .15s ease;--transition-base: .25s ease;--transition-slow: .5s ease;--breakpoint-sm: 640px;--breakpoint-md: 768px;--breakpoint-lg: 1024px;--breakpoint-xl: 1280px;--breakpoint-2xl: 1536px}*,*:before,*:after{box-sizing:border-box}*{margin:0}html{height:100%}body{line-height:var(--leading-normal);-webkit-font-smoothing:antialiased;font-family:var(--font-sans);background-color:var(--bg-primary);color:var(--text-primary);min-height:100vh}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word;font-family:var(--font-heading);letter-spacing:-.02em}#app{isolation:isolate;min-height:100vh;display:flex;flex-direction:column}.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}.container{width:100%;max-width:100%;margin:0 auto;padding:0}main#content{margin:0;padding:0;border-top:none}.container-wide{width:100%;max-width:100%;margin:0 auto;padding:0 var(--space-2)}@media (max-width: 768px){.container-wide{padding:0 var(--space-2)}main#content{margin:0;padding:0;border-top:none}}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.flex-1{flex:1 1 0%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:var(--space-1)}.gap-2{gap:var(--space-2)}.gap-3{gap:var(--space-3)}.gap-4{gap:var(--space-4)}.gap-6{gap:var(--space-6)}.gap-8{gap:var(--space-8)}.text-xs{font-size:var(--text-xs)}.text-sm{font-size:var(--text-sm)}.text-base{font-size:var(--text-base)}.text-lg{font-size:var(--text-lg)}.text-xl{font-size:var(--text-xl)}.text-2xl{font-size:var(--text-2xl)}.font-medium{font-weight:var(--font-medium)}.font-semibold{font-weight:var(--font-semibold)}.font-bold{font-weight:var(--font-bold)}.text-primary{color:var(--text-primary)}.text-secondary{color:var(--text-secondary)}.text-tertiary{color:var(--text-tertiary)}.rounded{border-radius:var(--radius-md)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-full{border-radius:var(--radius-full)}.shadow-sm{box-shadow:var(--shadow-sm)}.shadow-md{box-shadow:var(--shadow-md)}.shadow-lg{box-shadow:var(--shadow-lg)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-2) var(--space-4);border:1px solid transparent;border-radius:var(--radius-md);font-size:var(--text-sm);font-weight:var(--font-medium);line-height:1;cursor:pointer;transition:all var(--transition-fast);text-decoration:none;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--vibe-gradient);color:var(--text-inverse);border-color:transparent}.btn-primary:hover:not(:disabled){background:var(--vibe-gradient-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border-color:var(--border-medium)}.btn-secondary:hover:not(:disabled){background:var(--bg-tertiary);border-color:var(--border-strong)}.btn-ghost{background:transparent;color:var(--text-secondary);border-color:transparent}.btn-ghost:hover:not(:disabled){background:var(--bg-tertiary);color:var(--text-primary)}.input{width:100%;padding:var(--space-2) var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-secondary);color:var(--text-primary);font-size:var(--text-sm);transition:all var(--transition-fast)}.input:focus{outline:none;border-color:var(--vibe-primary);box-shadow:0 0 0 3px #8b5cf61a}.input::placeholder{color:var(--text-tertiary)}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right var(--space-2) center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:var(--space-8)}.card{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;background:#0f172acc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.card-header{padding:var(--space-4);border-bottom:1px solid var(--border-light)}.card-body{padding:var(--space-4)}.card-footer{padding:var(--space-4);border-top:1px solid var(--border-light);background:var(--bg-tertiary)}.badge{display:inline-flex;align-items:center;padding:var(--space-1) var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);font-weight:var(--font-medium);line-height:1}.badge-success{background:var(--success-light);color:var(--success)}.badge-warning{background:var(--warning-light);color:var(--warning)}.badge-info{background:var(--info-light);color:var(--info)}.spinner{width:20px;height:20px;border:2px solid var(--border-light);border-top:2px solid var(--vibe-primary);border-radius:50%;animation:spin 1s linear infinite}@media (max-width: 768px){.container{padding:0 var(--space-3)}.btn{padding:var(--space-2) var(--space-3);font-size:var(--text-xs)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn var(--transition-base)}.animate-slide-up{animation:slideUp var(--transition-base)}.status-banner{margin:0 16px 12px;padding:12px 16px;border-radius:8px;border:1px solid #fcd34d;background:#fff7ed;color:#92400e;font-size:14px;display:none}.status-banner-offline{border-color:#fecdd3;background:#fef2f2;color:#991b1b}.status-banner-degraded{border-color:#e0f2fe;background:#eff6ff;color:#1d4ed8}.toast-container{position:fixed;top:var(--space-4);right:var(--space-4);z-index:1000;display:flex;flex-direction:column;gap:var(--space-2);pointer-events:none}.toast{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-width:300px;max-width:400px;opacity:0;transform:translate(100%);transition:all var(--transition-base);pointer-events:auto}.toast.toast-show{opacity:1;transform:translate(0)}.toast-content{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.toast-icon{font-size:20px;flex-shrink:0}.toast-message{flex:1;font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--text-primary);line-height:1.4}.toast-close{background:none;border:none;cursor:pointer;color:var(--text-tertiary);padding:var(--space-1);border-radius:var(--radius-sm);transition:all var(--transition-fast);flex-shrink:0}.toast-close:hover{background:var(--bg-hover);color:var(--text-secondary)}.toast-close .material-icons{font-size:16px}.toast-success{border-left:4px solid #16a34a}.toast-success .toast-icon{color:#16a34a}.toast-error{border-left:4px solid #dc2626}.toast-error .toast-icon{color:#dc2626}.toast-warning{border-left:4px solid #ea580c}.toast-warning .toast-icon{color:#ea580c}.toast-info{border-left:4px solid var(--vibe-primary)}.toast-info .toast-icon{color:var(--vibe-primary)}.compact-mode .race-card{padding:var(--space-2)}.compact-mode .race-header{padding:var(--space-2) var(--space-3)}.compact-mode .race-time,.compact-mode .race-venue{font-size:var(--text-sm)}.compact-mode .runner-count{font-size:var(--text-xs);padding:var(--space-0-5) var(--space-2)}.compact-mode .runner-row{padding:var(--space-2);gap:var(--space-2)}.compact-mode .runner-name{font-size:var(--text-sm)}.compact-mode .runner-details{font-size:var(--text-xs)}.compact-mode .runner-odds{font-size:var(--text-base)}.compact-mode .jockey-silk{width:32px!important;height:32px!important}.compact-mode .value-table th,.compact-mode .value-table td{padding:var(--space-2) var(--space-3);font-size:var(--text-sm)}.compact-mode .odds-table th,.compact-mode .odds-table td{padding:var(--space-2);font-size:var(--text-sm)}.compact-mode .runner-silk{width:32px;height:32px}.compact-mode .modal-header{padding:var(--space-4)}.compact-mode .race-header-info h2{font-size:var(--text-xl)}.auto-refresh-indicator{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-lg);font-size:var(--text-sm);color:var(--text-secondary);transition:all var(--transition-fast)}.auto-refresh-indicator.enabled{border-color:var(--vibe-primary);color:var(--vibe-primary);background:#8b5cf61a}.auto-refresh-indicator .material-icons{font-size:16px;animation:none}.auto-refresh-indicator.enabled .material-icons{animation:pulse 2s infinite}.countdown-timer{font-weight:var(--font-semibold);color:var(--text-primary);min-width:20px;text-align:center}.countdown-timer.warning{color:#ea580c}.countdown-timer.urgent{color:#dc2626;animation:pulse .5s infinite}@media (max-width: 768px){.toast-container{top:var(--space-2);right:var(--space-2);left:var(--space-2)}.toast{min-width:auto;max-width:none}.toast-content{padding:var(--space-3)}.toast-message{font-size:var(--text-xs)}}.auto-refresh-indicator.refreshing .material-icons{animation:spin 1s linear infinite}[data-theme=dark] .toast{background:var(--bg-secondary);border-color:var(--border-medium)}[data-theme=dark] .toast-close:hover{background:var(--bg-hover)}[data-theme=dark] .auto-refresh-indicator{background:var(--bg-secondary);border-color:var(--border-medium)}[data-theme=dark] .auto-refresh-indicator.enabled{background:#8b5cf626}@media (prefers-reduced-motion: reduce){.toast{transition:opacity var(--transition-fast)}.toast.toast-show{transform:none}.auto-refresh-indicator .material-icons,.countdown-timer.urgent{animation:none}}.header-controls{display:flex;align-items:center;gap:var(--space-2)}.control-button{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-3);background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);font-size:var(--text-sm);color:var(--text-secondary);white-space:nowrap}.control-button:hover{background:var(--bg-hover);border-color:var(--border-medium);color:var(--text-primary)}.control-button.active{background:var(--vibe-primary);border-color:var(--vibe-primary);color:#fff}.control-button .material-icons{font-size:16px}@media (max-width: 768px){.header-controls{gap:var(--space-1)}.control-button{padding:var(--space-1) var(--space-2);font-size:var(--text-xs)}.control-button .material-icons{font-size:14px}.control-button span:not(.material-icons){display:none}}.vibe-header{background:var(--bg-secondary);color:var(--text-primary);box-shadow:var(--shadow-lg);position:sticky;top:0;z-index:var(--z-sticky);border-bottom:none}.vibe-header .container{padding:0!important}.header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) 0;min-height:52px}.header-brand{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}.brand-title{display:flex;align-items:center;margin:0;line-height:1}.brand-logo{height:32px;width:auto;display:block}.brand-tagline{font-size:var(--text-xs);color:var(--text-secondary);font-weight:var(--font-medium);margin-left:calc(2rem + var(--space-2))}.header-nav{flex:1;display:flex;justify-content:flex-start;padding-left:var(--space-4)}.view-toggle{display:flex;background:transparent;border:none;padding:0;gap:var(--space-2);height:40px}.view-btn{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1-5) var(--space-4);background:transparent;border:1px solid transparent;border-radius:var(--radius-lg);color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap}.view-btn:hover{color:var(--text-primary);background:var(--bg-hover)}.view-btn.active{background:#2dd4bf1a;color:#2dd4bf;border-color:#2dd4bf;box-shadow:none}.view-btn .material-icons{font-size:1.25rem}.header-stats{display:flex;gap:var(--space-4);align-items:center;height:40px}.stat-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 var(--space-2);min-width:50px;border-right:1px solid var(--border-light)}.stat-pill:last-child{border-right:none}.stat-label{font-size:9px;color:var(--text-secondary);font-weight:var(--font-bold);text-transform:uppercase;letter-spacing:.05em;line-height:1;margin-top:2px}.stat-value{font-size:var(--text-sm);font-weight:var(--font-bold);line-height:1;color:var(--vibe-primary)}.header-controls{display:flex;align-items:center;gap:var(--space-4)}.mobile-actions{display:none}.connection-status{display:flex;align-items:center;gap:var(--space-2);background:var(--bg-tertiary);border-radius:var(--radius-lg);padding:var(--space-1) var(--space-2-5);border:1px solid var(--border-medium);font-size:var(--text-xs);height:36px}.status-indicator{width:8px;height:8px;border-radius:50%;animation:pulse 2s infinite}.status-indicator.online{background:var(--success);box-shadow:0 0 8px var(--success)}.status-indicator.offline{background:var(--error);box-shadow:0 0 8px var(--error);animation:none}.status-text{font-weight:var(--font-medium);color:var(--text-primary)}.last-update{color:var(--text-secondary);font-size:var(--text-xs)}.control-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--bg-tertiary);border:1px solid var(--border-medium);border-radius:var(--radius-lg);color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast)}.control-btn:hover{background:var(--bg-hover);color:var(--text-primary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.control-btn:active{transform:translateY(0)}.control-btn .material-icons{font-size:1.125rem}.race-status-group{display:flex;align-items:center;gap:var(--space-2)}.race-status-pill{display:none;align-items:center;height:36px;padding:0 var(--space-3);border-radius:var(--radius-lg);font-size:var(--text-xs);font-weight:var(--font-medium);border:1px solid transparent}.race-status-pill.status-ready,.race-status-pill.status-soon{background:var(--info-light);color:var(--info);border-color:var(--info)}.race-status-pill.status-delayed{background:#f59e0b33;color:#fbbf24;border-color:#f59e0b66}.race-status-pill.status-abandoned{background:var(--error-light);color:var(--error);border-color:var(--error)}@media (max-width: 1024px){.header-content{gap:var(--space-4);padding:var(--space-3) 0}.header-stats{gap:var(--space-4);padding:var(--space-2) var(--space-4)}.stat-item{min-width:50px}.brand-title{font-size:var(--text-xl)}.brand-icon{font-size:1.5rem;padding:var(--space-1-5)}}@media (max-width: 768px){.header-content{flex-wrap:wrap;gap:var(--space-2);padding:var(--space-2) 0}.header-brand{order:1}.header-controls{order:2;gap:var(--space-2)}.header-nav{position:fixed;bottom:0;left:0;width:100%;background:var(--bg-secondary);border-top:1px solid var(--border-medium);padding:var(--space-2) var(--space-4);z-index:var(--z-fixed);box-shadow:0 -4px 6px -1px #0000001a;justify-content:center}.view-toggle{order:3;width:100%;max-width:480px;justify-content:space-between;margin:0 auto;height:auto;background:transparent;border:none;gap:0}.view-btn{flex:1;flex-direction:column;justify-content:center;padding:var(--space-2) 0;gap:var(--space-1);border:none;border-radius:var(--radius-md);font-size:10px;color:var(--text-secondary);background:transparent!important}.view-btn:hover{background:transparent;color:var(--text-primary)}.view-btn.active{color:#2dd4bf;background:transparent!important;box-shadow:none;border:none}.view-btn .material-icons{font-size:1.5rem;margin-bottom:2px}.view-btn span:not(.material-icons){display:block}body{padding-bottom:80px}.header-stats{display:none!important}.brand-tagline,.connection-status .last-update{display:none}}@media (max-width: 480px){.header-stats{display:none!important}.mobile-actions{display:flex;gap:var(--space-2);align-items:center}.action-chip{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--bg-tertiary);border:1px solid var(--border-medium);color:var(--text-secondary);position:relative;cursor:pointer}.action-chip:hover,.action-chip:active{background:var(--bg-hover);color:var(--text-primary)}.notification-dot{position:absolute;top:0;right:0;width:8px;height:8px;background:var(--vibe-primary);border-radius:50%;border:1px solid var(--bg-secondary)}.control-btn{width:36px;height:36px}.brand-title{font-size:var(--text-lg)}}.filter-bar{background:var(--bg-secondary);border-bottom:none;position:sticky;top:52px;z-index:var(--z-sticky);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding-bottom:0;margin-bottom:0}.filter-content{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-4) 0 0;flex-wrap:nowrap;overflow-x:auto}.date-selector-wrapper{display:flex;align-items:center}.date-selector{display:flex;gap:var(--space-1);background:var(--bg-tertiary);padding:0 var(--space-1);border-radius:var(--radius-lg);border:1px solid var(--border-light);height:40px;align-items:center}.date-btn{display:flex;align-items:center;padding:0 var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;height:100%;min-width:fit-content}.date-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.date-btn.active,.date-btn.active:hover,.date-btn.active:focus{background:var(--vibe-primary);color:#fff;box-shadow:var(--shadow-sm)}.search-section{flex:0 1 320px;min-width:220px;margin-left:auto}.search-wrapper{position:relative;display:flex;align-items:center;width:40px;transition:width .3s cubic-bezier(.4,0,.2,1);background:var(--bg-secondary);border-radius:var(--radius-full);overflow:hidden;border:1px solid transparent}.search-wrapper.expanded{width:240px;border-color:var(--vibe-primary);background:var(--bg-primary);box-shadow:0 0 0 4px #8b5cf61a}.search-icon{position:absolute;left:10px;color:var(--text-secondary);font-size:1.25rem;z-index:2;cursor:pointer;pointer-events:none}.search-wrapper.expanded .search-icon{color:var(--vibe-primary)}.search-input{width:100%;height:40px;padding:0 var(--space-10) 0 var(--space-10);border:none;background:transparent;font-size:var(--text-sm);color:var(--text-primary);opacity:0;cursor:pointer}.search-wrapper.expanded .search-input{opacity:1;cursor:text}.search-input:focus{outline:none}.search-input::placeholder{color:var(--text-tertiary)}.search-clear{position:absolute;right:var(--space-2);width:32px;height:32px;border:none;background:var(--text-tertiary);color:var(--bg-secondary);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}.search-clear:hover{background:var(--text-secondary);transform:scale(1.1)}.search-clear .material-icons{font-size:1rem}.filter-section{display:flex;align-items:center;gap:var(--space-3);flex-wrap:nowrap;margin:0 auto}.filter-label .material-icons{font-size:1rem}.filter-chip-wrapper{position:relative}.filter-chip{display:flex;align-items:center;gap:var(--space-2);height:40px;padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-full);background:var(--bg-secondary);color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap}.filter-chip:hover{border-color:var(--border-strong);color:var(--text-primary);background:var(--bg-hover)}.filter-chip.active{background:var(--vibe-primary-light);color:var(--vibe-primary);border-color:var(--vibe-primary)}.filter-chip .material-icons{font-size:1.125rem;transition:transform var(--transition-fast)}.filter-chip-wrapper.open .filter-chip .material-icons{transform:rotate(180deg)}.filter-dropdown{display:none;position:absolute;top:calc(100% + var(--space-1));left:0;min-width:200px;background:var(--bg-secondary);border:1px solid var(--border-medium);border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);z-index:var(--z-dropdown);padding:var(--space-1);max-height:300px;overflow-y:auto}.filter-chip-wrapper.open .filter-dropdown{display:block;animation:slideDown .2s ease-out}.filter-option{display:flex;align-items:center;justify-content:space-between;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--text-primary);font-size:var(--text-sm);cursor:pointer;transition:background var(--transition-fast)}.filter-option:hover{background:var(--bg-hover)}.filter-option.selected{color:var(--vibe-primary);background:var(--vibe-primary-light);font-weight:var(--font-medium)}.filter-option .material-icons{font-size:1rem;color:var(--vibe-primary)}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.quick-filters{display:flex;gap:var(--space-2);align-items:center;padding-left:var(--space-3);border-left:1px solid var(--border-light)}.quick-filter-btn{display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-lg);background:var(--bg-secondary);color:var(--text-secondary);font-size:var(--text-xs);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;height:40px}.quick-filter-btn:hover{border-color:var(--vibe-primary);color:var(--vibe-primary);transform:translateY(-1px)}.quick-filter-btn.active{background:var(--vibe-gradient);color:#fff;border-color:transparent;box-shadow:var(--shadow-sm)}.quick-filter-btn .material-icons{font-size:1rem}.results-summary{display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-4);background:var(--bg-tertiary);border-radius:var(--radius-lg);font-size:var(--text-sm);color:var(--text-secondary);border:1px solid var(--border-light);height:40px}#results-count{font-weight:var(--font-bold);color:var(--vibe-primary);font-size:var(--text-base)}.filter-actions{display:flex;gap:var(--space-2);align-items:center}.action-btn{display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-secondary);color:var(--text-secondary);font-size:var(--text-xs);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);text-decoration:none;white-space:nowrap;height:40px}.action-btn:hover{border-color:var(--border-strong);color:var(--text-primary);transform:translateY(-1px)}.action-btn.secondary{background:var(--bg-tertiary)}.action-btn.success{background:var(--success);color:#fff;border-color:var(--success)}.action-btn .material-icons{font-size:1rem}.active-filters{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) 0;border-top:1px solid var(--border-light);margin-top:var(--space-2);flex-wrap:wrap}.active-filters-label{font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em}.active-filters-list{display:flex;gap:var(--space-2);flex-wrap:wrap}.active-filter-tag{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);background:var(--vibe-primary);color:#fff;border-radius:var(--radius-full);font-size:var(--text-xs);font-weight:var(--font-medium);white-space:nowrap}.remove-filter{display:flex;align-items:center;justify-content:center;width:16px;height:16px;background:#fff3;border:none;border-radius:50%;color:#fff;cursor:pointer;transition:all var(--transition-fast)}.remove-filter:hover{background:#ffffff4d;transform:scale(1.1)}.remove-filter .material-icons{font-size:.75rem}.mobile-filter-toggle{display:none;width:100%;margin-bottom:var(--space-2)}#mobile-filter-btn{width:100%;justify-content:center}#mobile-filter-btn.active{background:var(--bg-hover);border-color:var(--border-strong)}@media (min-width: 769px){.filter-dropdowns-container{display:contents}}@media (max-width: 1024px){.filter-content{gap:var(--space-4);flex-wrap:wrap}.search-section{min-width:240px}.filter-section{gap:var(--space-3)}.quick-filters{padding-left:var(--space-3)}}.sheet-header,.filter-sheet-overlay{display:none}.filter-bottom-sheet{display:flex;align-items:center;position:static;transform:none;background:transparent;padding:0;width:auto;box-shadow:none;z-index:auto}.sheet-content{display:flex;align-items:center;gap:var(--space-2)}.sheet-close{display:none}@media (max-width: 1024px){.filter-bar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform:none!important;perspective:none!important;filter:none!important}.filter-content{flex-direction:column;align-items:flex-start;gap:var(--space-2);padding-bottom:var(--space-2);margin-bottom:0!important}.view-toggle{order:1;width:100%;display:flex;justify-content:space-between;padding:var(--space-1);margin-bottom:var(--space-1)}.view-btn{flex:1;justify-content:center;padding:var(--space-2) 0}.filter-section{order:2;display:flex;flex-direction:column;gap:var(--space-2);width:100%;margin:0}.filter-bottom-sheet{position:fixed!important;bottom:0!important;left:0!important;width:100%!important;background:var(--bg-secondary);border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl);padding:var(--space-4);z-index:19!important;transform:translateY(100%)!important;visibility:hidden;transition:transform var(--transition-normal) cubic-bezier(.4,0,.2,1),visibility 0s linear .3s;box-shadow:var(--shadow-xl);max-height:80vh;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-4)}.filter-bottom-sheet.open{transform:translateY(0)!important;visibility:visible;transition:transform var(--transition-normal) cubic-bezier(.4,0,.2,1),visibility 0s linear 0s}.sheet-handle-bar{width:40px;height:4px;background:var(--border-strong);border-radius:var(--radius-full);margin:0 auto var(--space-2);opacity:.5}.filter-sheet-overlay{display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:18!important;opacity:0;pointer-events:none;transition:opacity var(--transition-normal);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.filter-sheet-overlay.open{opacity:1;pointer-events:auto}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--space-2);border-bottom:1px solid var(--border-light)}.sheet-title{font-size:var(--text-lg);font-weight:var(--font-bold);color:var(--text-primary);margin:0}.sheet-reset-btn{background:transparent;border:none;color:var(--text-secondary);font-size:var(--text-xs);font-weight:var(--font-bold);cursor:pointer;padding:var(--space-1) var(--space-2);text-transform:uppercase;letter-spacing:.05em}.sheet-close{display:none}.sheet-content{display:flex;flex-direction:column}.filter-dropdowns-container{display:contents}.mobile-filter-toggle{display:none}.date-selector-wrapper{width:100%;order:1;margin-bottom:var(--space-2)}.date-selector{width:100%;justify-content:space-between;padding:var(--space-1)}.date-btn{flex:1;justify-content:center}.filter-group{min-width:0;width:100%}.filter-select,.filter-number-input{width:100%}.filter-label{display:none}.search-section{order:3;width:100%;min-width:auto;margin:0;flex:0 0 auto;display:none}.search-section.mobile-visible{display:block;position:fixed;top:52px;left:0;width:100%;background:var(--bg-secondary);padding:var(--space-2);z-index:18;border-bottom:1px solid var(--border-light);box-shadow:var(--shadow-md);animation:slideDown .2s ease-out}.search-section.mobile-visible .search-wrapper{width:100%;background:var(--bg-primary);border-color:var(--vibe-primary)}.search-section.mobile-visible .search-input{opacity:1;cursor:text}.inline-stats,.quick-filters{display:none}.filter-actions{justify-content:center;order:4;display:none}.results-summary{justify-content:center;order:5;display:none}}@media (max-width: 640px){.filter-section{flex-direction:column;gap:var(--space-3)}.filter-group{min-width:auto}.filter-select{width:100%}.quick-filters{flex-wrap:wrap;justify-content:center}.quick-filter-btn span:not(.material-icons){display:none}.action-btn span:not(.material-icons){display:none}}.odds-grid{flex:1;padding:var(--space-6) 0;min-height:60vh}.races-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:var(--space-4);animation:fadeIn var(--transition-base)}@media (min-width: 1600px){.races-grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}}.race-card{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-xl);overflow:hidden;transition:all var(--transition-fast);cursor:pointer;box-shadow:var(--shadow-sm)}.race-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--vibe-primary)}.race-card.watched{border-color:#e9126a;box-shadow:0 0 0 2px #e9126a1a}.race-header{background:var(--vibe-gradient);color:#fff!important;padding:.4rem;display:flex;justify-content:space-between;align-items:center;min-height:28px}.race-header *{color:#fff!important}.race-title{font-size:.8rem;font-weight:600;color:inherit;white-space:nowrap;line-height:1.2}.race-countdown{display:inline-block;text-align:center;vertical-align:middle;min-width:48px;height:24px;padding:5px 6px 0;margin-left:8px;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:12px;font-size:.7rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:countdown-pulse 2s ease-in-out infinite}@keyframes countdown-pulse{0%,to{background:#fff3;transform:scale(1)}50%{background:#ffffff4d;transform:scale(1.05)}}.runner-count{background:#fff3;height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;display:inline-flex;align-items:center}.non-runner-count{background:#e9126a;color:#fff;height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center}.status-badge{height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;color:#fff}.status-badge.status-ready{background:#16a34a}.status-badge.status-soon{background:#2563eb}.status-badge.status-delayed{background:#f59e0b}.status-badge.status-abandoned{background:#ec4899}.race-card.abandoned{opacity:.6;filter:grayscale(30%)}.favorite-btn{width:24px;height:24px;border:none;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius-lg);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}.favorite-btn .material-icons{font-size:16px;line-height:1}.favorite-btn:hover{background:#fff3;transform:scale(1.05)}.favorite-btn.active{background:#e9126a33;color:#e9126a}.race-content{padding:0}.runners-preview{display:flex;flex-direction:column;gap:0}.runner-row{display:flex!important;align-items:stretch!important;padding:8px 12px!important;border-bottom:1px solid var(--border-light);transition:background-color .2s ease;gap:12px!important;flex-direction:row!important;width:100%!important;box-sizing:border-box!important}.runner-row:hover{background-color:var(--bg-hover)}.runner-row:last-child{border-bottom:none}.runner-identity{display:flex;align-items:center;gap:var(--space-1);flex-shrink:0}.runner-number{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:var(--vibe-primary);color:#fff;border-radius:var(--radius-sm);font-size:var(--text-xs);font-weight:var(--font-bold);flex-shrink:0}.jockey-silk{flex-shrink:0!important;width:32px!important;height:32px!important;border-radius:var(--radius-sm);object-fit:cover;display:flex!important;align-items:center}.runner-details{font-size:13px;color:var(--text-secondary);line-height:1.1}.runner-odds{flex-shrink:0!important;font-size:18px;font-weight:700;color:var(--success);min-width:60px!important;text-align:center;display:flex;align-items:center;justify-content:center;background:#2dd4bf1a;border:1px solid var(--success);border-radius:var(--radius-md);padding:4px 8px;cursor:pointer;transition:all var(--transition-fast)}.runner-odds:hover{background:var(--success);color:var(--text-inverse);transform:translateY(-1px);box-shadow:0 0 8px #2dd4bf66}.odds-btn{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);background:var(--bg-primary);border:1px solid var(--border-medium);border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);min-width:80px}.odds-content{display:flex;align-items:center;gap:var(--space-2);width:100%}.bookmaker-info{display:flex;align-items:center;gap:var(--space-1)}.runner-bookmaker{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:55px}.odds-btn:hover{background:var(--vibe-primary);color:#fff;border-color:var(--vibe-primary);transform:scale(1.05)}.odds-decimal{font-size:var(--text-sm);font-weight:var(--font-bold);line-height:1}.bookmaker-short{font-size:var(--text-xs);opacity:.8;text-transform:uppercase;font-weight:var(--font-medium)}.odds-unavailable{display:flex;align-items:center;justify-content:center;width:60px;height:48px;color:var(--text-tertiary);font-size:var(--text-lg);font-weight:var(--font-bold)}.no-runners{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-6);color:var(--text-secondary);font-size:var(--text-sm)}.no-runners .material-icons{font-size:1.25rem;opacity:.7}@media (max-width: 1024px){.races-grid{grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:var(--space-3)}.odds-grid{padding:var(--space-4) 0}}@media (max-width: 768px){.races-grid{grid-template-columns:1fr;gap:var(--space-4)}.race-header{padding:.5rem}.race-time,.race-venue{font-size:1rem}.runner-count{font-size:.7rem;padding:.2rem .4rem}.runner-row{padding:8px;gap:8px}.jockey-silk{width:26px!important;height:26px!important}.runner-name{font-size:14px}.runner-details{font-size:12px}.runner-odds{font-size:16px;min-width:50px!important}.runner-bookmaker{min-width:50px}.bookmaker-logo{height:16px;max-width:45px}}@media (max-width: 768px){.odds-grid{flex:none;padding-top:0!important;padding-bottom:0!important;margin-top:0!important;min-height:auto!important;display:block}.races-grid{margin-top:0!important;padding-top:0;align-content:start;grid-template-columns:1fr}.loading-state,.error-state,.empty-state{min-height:12vh;padding-top:var(--space-2);padding-bottom:var(--space-2)}.loading-content,.error-content,.empty-content{padding:var(--space-3)}.odds-grid .container-wide{padding-top:0;padding-bottom:0;margin-top:0}.race-header{flex-direction:row;align-items:center;gap:var(--space-2);padding:.4rem;flex-wrap:nowrap}.race-left{flex-direction:row;align-items:center;gap:var(--space-1);width:auto;margin-bottom:0;flex:1 1 auto;min-width:120px;max-width:60%}.race-title{flex:1 1 0%;min-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem}.race-countdown{order:unset;height:20px;padding:2px 4px;font-size:.65rem;min-width:auto}.race-right{width:auto;display:flex;flex-wrap:nowrap;gap:var(--space-1);justify-content:flex-end;align-items:center;flex:0 1 auto;max-width:40%;margin-left:auto}.runner-count,.non-runner-count,.status-badge{height:20px;padding:0 .8rem;font-size:.65rem;line-height:1;white-space:nowrap}.favorite-btn{width:20px;height:20px;padding:0}.favorite-btn .material-icons{font-size:14px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.race-card{animation:fadeIn var(--transition-base) ease-out}.race-card:nth-child(1){animation-delay:0ms}.race-card:nth-child(2){animation-delay:50ms}.race-card:nth-child(3){animation-delay:.1s}.race-card:nth-child(4){animation-delay:.15s}.race-card:nth-child(5){animation-delay:.2s}.race-card:nth-child(6){animation-delay:.25s}.reserve-indicator{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;background-color:#f59e0b;color:#fff;border-radius:50%;font-size:10px;font-weight:600;flex-shrink:0}.results-grid{min-height:400px;padding:var(--space-6) 0}.results-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--space-6);padding:0 var(--space-4)}.results-title h2{margin:0 0 var(--space-2) 0;font-size:var(--text-2xl);font-weight:var(--font-bold);color:var(--text-primary)}.results-title p{margin:0;color:var(--text-secondary);font-size:var(--text-base)}.results-stats{display:flex;gap:var(--space-4)}.stat{display:flex;flex-direction:column;align-items:center;text-align:center}.stat-value{font-size:var(--text-2xl);font-weight:var(--font-bold);color:var(--vibe-primary);line-height:1}.stat-label{font-size:var(--text-sm);color:var(--text-secondary);margin-top:var(--space-1)}.results-content{display:flex;gap:var(--space-6);align-items:flex-start}.results-list{flex:2;display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:var(--space-4);animation:fadeIn var(--transition-base)}@media (min-width: 1600px){.results-list{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}}.value-sidebar{flex:1;min-width:300px;background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-sm);position:sticky;top:var(--space-4);max-height:calc(100vh - 200px)}.value-header{padding:var(--space-4);background:var(--vibe-gradient);color:#fff}.value-header h3{margin:0 0 var(--space-1) 0;font-size:var(--text-lg);font-weight:var(--font-semibold);color:#fff}.value-header p{margin:0;font-size:var(--text-sm);color:#ffffffe6}.value-list{max-height:400px;overflow-y:auto;padding:var(--space-2)}.value-item{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);margin-bottom:var(--space-2);background:var(--bg-primary);border:1px solid var(--border-light);border-radius:var(--radius-lg);cursor:pointer;transition:all var(--transition-fast)}.value-item:hover{transform:translateY(-1px);box-shadow:var(--shadow-md);border-color:var(--vibe-primary)}.value-item.high{border-left:4px solid #16a34a}.value-item.medium{border-left:4px solid #ea580c}.value-item.low{border-left:4px solid #6b7280}.value-header{display:flex;justify-content:space-between;align-items:center}.value-ev{font-weight:var(--font-bold);font-size:var(--text-lg);line-height:1}.value-ev.high{color:#16a34a}.value-ev.medium{color:#ea580c}.value-ev.low{color:#6b7280}.value-confidence{display:flex;gap:1px}.star{font-size:14px;color:#d1d5db}.star.filled{color:#fbbf24}.value-details{display:flex;flex-direction:column;gap:var(--space-1)}.value-race{font-size:var(--text-xs);color:var(--text-secondary);font-weight:var(--font-medium)}.value-runner{font-size:var(--text-sm);font-weight:var(--font-semibold);color:var(--text-primary)}.value-bookmaker{display:flex;justify-content:space-between;align-items:center;font-size:var(--text-sm)}.bookmaker-name{color:var(--text-secondary)}.odds{font-weight:var(--font-bold);color:var(--vibe-primary)}.value-footer{display:flex;justify-content:space-between;align-items:center;font-size:var(--text-xs);color:var(--text-tertiary);border-top:1px solid var(--border-light);padding-top:var(--space-2)}.no-value-opportunities{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-8);text-align:center;color:var(--text-secondary)}.no-value-opportunities .material-icons{font-size:3rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.no-value-opportunities p{margin:0;font-size:var(--text-sm)}.result-card{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-xl);overflow:hidden;transition:all var(--transition-fast);cursor:pointer;box-shadow:var(--shadow-sm)}.result-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--vibe-primary)}.result-header{background:var(--vibe-gradient);color:#fff!important;padding:.4rem;display:flex;justify-content:space-between;align-items:center;min-height:28px}.result-header *{color:#fff!important}.race-left{display:flex;align-items:center;gap:.25rem}.race-time-venue{display:flex;align-items:center;gap:.5rem}.race-time{font-size:.8rem;font-weight:700;color:inherit;white-space:nowrap;line-height:1.2}.race-venue{font-size:.8rem;font-weight:600;color:inherit;white-space:nowrap;line-height:1.2}.max-places{background:#fff3;height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;color:#fff;white-space:nowrap;line-height:1}.race-right{display:flex;align-items:center;gap:.5rem}.runner-count{background:#fff3;height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;color:#fff;line-height:1}.race-meta{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.race-meta>span{display:flex;align-items:center;gap:.25rem;font-size:.875rem;color:#fff}.race-meta .material-icons{font-size:16px;color:#ffffffd9}.result-status{background:#fff3;height:24px;padding:0 .5rem;border-radius:12px;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;gap:.25rem;color:#fff;line-height:1}.status-indicator{width:6px;height:6px;border-radius:50%;background:#fffc}.result-content{padding:0}.finishing-positions{display:flex;flex-direction:column;gap:0;width:100%}.finisher-row{display:flex!important;align-items:stretch!important;padding:8px 12px!important;border-bottom:1px solid var(--border-light);transition:background-color .2s ease;gap:12px!important;flex-direction:row!important;width:100%!important;box-sizing:border-box!important}.finisher-row:hover{background-color:var(--bg-hover)}.finisher-row:last-child{border-bottom:none}.finisher-row.non-runner{opacity:.5;background-color:#f3f4f6!important}.finisher-row.non-runner:hover{background-color:#e5e7eb!important;opacity:.6}.finisher-row.non-runner .runner-name{color:#6b7280}.non-runner-indicator{display:inline-flex;align-items:center;justify-content:center;width:20px;height:16px;margin-left:6px;background-color:#e9126a;color:#fff;border-radius:4px;font-size:9px;font-weight:700;flex-shrink:0;letter-spacing:.5px}.position{display:flex;align-items:center;flex-shrink:0;min-width:15px;gap:.5rem}.position-number{display:flex;align-items:center;justify-content:center;min-width:24px;padding:.25rem;color:var(--text-primary);font-size:.875rem;font-weight:600}.runner-info{flex:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center}.runner-main{display:flex;align-items:center;gap:var(--space-2);flex:1}.runner-details{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}.runner-name{font-weight:600;font-size:15px;color:var(--text-primary);margin-bottom:2px;line-height:1.2}.connections{font-size:13px;color:var(--text-secondary);line-height:1.1}.runner-silk{flex-shrink:0!important;width:32px!important;height:32px!important;border-radius:var(--radius-sm);object-fit:cover;display:flex!important;align-items:center}.finish-details{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;min-width:46px;gap:.5rem}.odds-distance{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.starting-price{font-size:18px;font-weight:700;color:#16a34a}.distance{font-size:13px;color:var(--text-secondary)}.no-results{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2rem;color:var(--text-secondary);text-align:center}.no-results .material-icons{font-size:48px;color:var(--text-tertiary);margin-bottom:.5rem}.more-finishers{text-align:center;padding:.75rem;margin-top:.5rem;background:var(--bg-tertiary);border-radius:var(--border-radius);font-size:.875rem;color:var(--text-secondary)}.result-footer{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.25rem;background:var(--bg-secondary);border-top:1px solid var(--border-light);border-radius:0 0 var(--border-radius-lg) var(--border-radius-lg);font-size:.875rem}.winning-margin,.starting-price{color:var(--text-secondary)}@media (max-width: 1024px){.results-content{flex-direction:column;gap:var(--space-4)}.value-sidebar{position:static;max-height:300px;min-width:auto}}@media (max-width: 768px){.results-grid{padding:var(--space-2) 0;min-height:auto}.result-header{flex-direction:row;align-items:center;gap:var(--space-2);padding:.4rem;flex-wrap:nowrap}.race-left{flex-direction:row;align-items:center;gap:var(--space-1);width:auto;margin-bottom:0;flex:1 1 auto;min-width:120px;max-width:60%}.race-time-venue{display:flex;flex-direction:row;gap:var(--space-1);align-items:center}.race-time,.race-venue{font-size:.85rem}.race-right{width:auto;display:flex;flex-wrap:nowrap;gap:var(--space-1);justify-content:flex-end;align-items:center;flex:0 1 auto;max-width:40%;margin-left:auto}.runner-count,.result-status,.max-places{background:#fff3;height:20px;padding:0 .8rem;border-radius:10px;font-size:.65rem;font-weight:700;line-height:1;display:inline-flex;align-items:center;color:#fff;white-space:nowrap}.results-header{flex-direction:column;gap:var(--space-2);padding:0 var(--space-2);margin-bottom:var(--space-3)}.results-title h2{font-size:var(--text-lg)}.results-stats{justify-content:flex-start;gap:var(--space-4);width:100%;overflow-x:auto;padding-bottom:var(--space-1)}.stat-value{font-size:var(--text-lg)}.stat-label{font-size:var(--text-xs)}.value-sidebar{display:none}.results-content{flex-direction:column;gap:var(--space-3)}.results-list{width:100%;grid-template-columns:1fr;gap:var(--space-3)}.result-card{margin:0;border-radius:var(--radius-lg)}.result-header,.result-content,.result-footer{padding-left:var(--space-3);padding-right:var(--space-3)}.race-meta{flex-direction:column;align-items:flex-start;gap:.5rem}}@media (max-width: 480px){.result-card{margin:0 -.5rem;border-radius:var(--border-radius)}.result-header,.result-content,.result-footer{padding-left:1rem;padding-right:1rem}.race-meta{flex-direction:column;align-items:flex-start;gap:.5rem}}.runner-name-container{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1}.runner-name-container .runner-name{min-width:0;flex:1}.value-indicator{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;cursor:pointer;flex-shrink:0;transition:all .2s ease}.value-indicator:hover{transform:scale(1.05)}.value-badge{background:linear-gradient(135deg,#15803d,#16a34a);color:#fff;padding:.125rem .375rem;border-radius:.25rem;font-weight:600;font-size:.625rem;letter-spacing:.05em;text-transform:uppercase;transition:all .2s ease}.value-badge-orange{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff;padding:.125rem .375rem;border-radius:.25rem;font-weight:600;font-size:.625rem;letter-spacing:.05em;text-transform:uppercase;transition:all .2s ease}.value-indicator:hover .value-badge{background:linear-gradient(135deg,#16a34a,#22c55e)}.value-indicator:hover .value-badge-orange{background:linear-gradient(135deg,#f97316,#fb923c)}.value-percent{color:var(--success-color);font-weight:600;transition:all .2s ease}.value-indicator:hover .value-percent{color:#16a34a}.value-indicator.ev-below-100 .value-percent{color:#ea580c}.value-indicator.ev-below-100:hover .value-percent{color:#f97316}body.dark-mode .value-badge{background:linear-gradient(135deg,#166534,#15803d)}body.dark-mode .value-badge-orange{background:linear-gradient(135deg,#92400e,#b45309)}body.dark-mode .value-percent{color:#4ade80}body.dark-mode .value-indicator:hover .value-percent{color:#22c55e}body.dark-mode .value-indicator.ev-below-100 .value-percent{color:#f97316}body.dark-mode .value-indicator.ev-below-100:hover .value-percent{color:#fbbf24}.value-grid{flex:1;display:flex;flex-direction:column;height:100%;min-height:0;padding:0 0 var(--space-6)}.loading-state,.error-state,.empty-state{display:flex;align-items:center;justify-content:center;min-height:60vh;text-align:center}.loading-content,.error-content,.empty-content{max-width:400px;padding:var(--space-8)}.loading-content h3,.error-content h3,.empty-content h3{margin:var(--space-4) 0 var(--space-2);font-size:var(--text-xl);font-weight:var(--font-semibold);color:var(--text-primary)}.loading-content p,.error-content p,.empty-content p{margin:0 0 var(--space-6);color:var(--text-secondary);line-height:var(--leading-relaxed)}.error-icon,.empty-icon{font-size:4rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.error-icon{color:var(--error)}.value-header-bar{background:var(--bg-secondary);border-bottom:1px solid var(--border-light);position:sticky;top:52px;z-index:var(--z-sticky);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:var(--space-3) var(--space-4);margin:0 auto;overflow:visible;width:100%;box-sizing:border-box}.value-header-controls-row{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.display-mode-toggle label{display:flex;align-items:center;justify-content:center;padding:0 var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;height:32px;min-width:60px}.display-mode-toggle label:hover{background:var(--bg-hover);color:var(--text-primary)}.display-mode-toggle input[type=radio]:checked+label{background:var(--vibe-gradient);color:#fff;box-shadow:var(--shadow-sm)}.display-mode-toggle input[type=radio]:checked+label:hover{background:var(--vibe-gradient-hover);color:#fff}.value-filters{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}.filter-group{display:flex;align-items:center;gap:var(--space-2);min-width:110px}.filter-label{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-1);font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--text-secondary);white-space:nowrap;min-width:60px}.filter-select{height:40px;padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);font-size:var(--text-sm);cursor:pointer;transition:all var(--transition-fast)}.filter-number-input{height:40px;padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);font-weight:var(--font-medium);transition:all var(--transition-fast);width:70px}.value-header-stats{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}.header-stat{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--text-secondary);white-space:nowrap}.header-stat select{padding:var(--space-1) var(--space-2);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);height:32px}.header-stat-separator{color:var(--text-tertiary)}.value-table-card{background:var(--bg-secondary);border:1px solid var(--border-light);border-top:none;border-radius:0 0 var(--radius-xl) var(--radius-xl);margin:0 auto;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;flex:1;min-height:0;width:100%;box-sizing:border-box}.value-table-container{background:var(--bg-primary);display:flex;flex-direction:column;flex:1;min-height:0}.value-cards-wrapper{display:none;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.value-mobile-card{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:0;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;overflow:hidden;gap:var(--space-1);width:100%;box-sizing:border-box}.value-mobile-card.selected-card{border-color:var(--vibe-primary)}.value-mobile-card.selected-card .value-mobile-card-header{background:var(--vibe-gradient);color:#fff}.value-mobile-card:not(.selected-card) .value-mobile-card-header{background:var(--bg-secondary);color:var(--text-secondary);border-bottom:1px solid var(--border-light)}.value-mobile-card-header{background:var(--bg-primary);color:var(--text-secondary);padding:var(--space-2) var(--space-3);display:flex;justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:nowrap;min-height:40px;white-space:nowrap}.value-mobile-card-header-left{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:var(--space-2);flex-wrap:nowrap;flex:1;min-width:0}.value-mobile-card-header-right{display:flex;align-items:center;gap:var(--space-2);flex-shrink:0;white-space:nowrap}.value-mobile-card-header-left>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value-mobile-card-header-colored,.value-mobile-card-header-colored .value-mobile-card-runner,.value-mobile-card-header-colored .value-mobile-card-race,.value-mobile-card-header-colored .value-mobile-card-book{color:#fff}.value-mobile-card-header-dark-text .value-mobile-card-runner,.value-mobile-card-header-dark-text .value-mobile-card-race,.value-mobile-card-header-dark-text .value-mobile-card-book{color:#000}.value-mobile-card-race{font-weight:var(--font-semibold);font-size:.8rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.value-mobile-card-runner{font-weight:var(--font-bold);font-size:var(--text-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;text-align:center;color:inherit;background:none;border:none;padding:0;margin:0;cursor:pointer;font-family:inherit;text-transform:none}.value-mobile-card-book{display:inline-flex;align-items:center;gap:var(--space-1)}.value-mobile-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2);padding:var(--space-3);border-top:1px solid var(--border-light);grid-auto-rows:minmax(0,auto);align-items:center}.value-mobile-card-item{display:flex;flex-direction:column;gap:.25rem;text-align:center;justify-content:center}.value-mobile-card-confidence{justify-content:center;min-height:40px}.value-mobile-card-confidence .confidence-dots{justify-content:center;width:100%}.value-mobile-card-updated{justify-content:center;min-height:40px}.card-action-item{grid-column:span 1;display:flex;align-items:flex-end;justify-content:flex-end;justify-self:end;align-self:end}.value-mobile-card-label{font-size:var(--text-2xs);color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.3px;font-variant:small-caps;font-weight:var(--font-medium)}.value-mobile-card-value{font-size:16px;font-weight:var(--font-semibold);font-family:Space Mono,SFMono-Regular,Roboto Mono,Menlo,monospace;font-variant-numeric:tabular-nums;color:var(--text-primary);line-height:1.2;min-height:32px;display:inline-flex;align-items:center;justify-content:center}.value-mobile-card-value-updated{color:var(--text-secondary);font-size:14px;font-weight:var(--font-medium);gap:var(--space-2);white-space:nowrap;letter-spacing:.2px}.updated-icon{font-size:14px;line-height:1;margin-right:.2rem}.confidence-dots{display:flex;gap:.25rem}.confidence-dot{width:6px;height:6px;border-radius:999px;background:var(--border-light)}.confidence-dot.filled{background:#16a34a}.value-mobile-card-add{margin-top:0;align-self:flex-end;background:var(--bg-primary);border:1px solid rgba(148,163,184,.6);color:var(--text-primary);border-radius:var(--radius-full);padding:.25rem .7rem;font-size:var(--text-xs);font-weight:var(--font-semibold);display:inline-flex;align-items:center;gap:var(--space-1);transition:all var(--transition-fast);min-width:32px}.value-mobile-card-add:hover:not(.selected){background:#ffffff40}.value-mobile-card-add-symbol{font-size:18px;line-height:1}.value-mobile-card-add.selected{background:var(--vibe-primary);border-color:var(--vibe-primary);color:#fff;box-shadow:var(--shadow-md)}.value-mobile-result-pill{display:inline-flex;align-items:center;justify-content:center;padding:.15rem .6rem;border-radius:var(--radius-full);color:#fff;font-size:var(--text-2xs);letter-spacing:.5px;text-transform:uppercase}.value-mobile-result-pill.result-win{background:#16a34a}.value-mobile-result-pill.result-place{background:#ea580c}.value-mobile-result-pill.result-loss{background:#dc2626}.value-mobile-result-pill.result-nonrunner{background:#6b7280}.value-mobile-result-pill.result-torun{background:#8b5cf6}.value-mobile-view-toggle{display:none;position:fixed;bottom:1.25rem;right:1.25rem;background:var(--bg-primary);border:1px solid var(--border-light);border-radius:var(--radius-full);padding:var(--space-2);align-items:center;gap:var(--space-2);cursor:pointer;box-shadow:var(--shadow-md);z-index:100}.value-mobile-view-toggle .material-icons{font-size:16px}.value-mobile-view-toggle{display:none}@media (max-width: 768px){.value-cards-wrapper{padding-bottom:5rem}.value-mobile-view-toggle{display:inline-flex}}.value-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-16);gap:var(--space-4);color:var(--text-secondary);flex:1;width:100%}.loading-spinner{width:40px;height:40px;border:3px solid var(--border-light);border-top:3px solid var(--vibe-primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.value-table-controls{display:flex;justify-content:center;align-items:center;padding:var(--space-3) var(--space-4);background:var(--bg-secondary);border-bottom:1px solid var(--border-light);flex-wrap:wrap;gap:var(--space-3);flex-shrink:0}.entries-control{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--text-secondary)}.entries-control select{padding:var(--space-1) var(--space-2);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm)}.summary-stats-inline{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm)}.stat-compact{color:var(--text-secondary);font-weight:var(--font-medium)}.stat-separator{color:var(--text-tertiary)}.selection-counter-clickable{cursor:pointer;color:var(--vibe-primary);font-weight:var(--font-semibold);padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);transition:all var(--transition-fast)}.selection-counter-clickable:hover{background:#8b5cf61a;text-decoration:underline;transform:scale(1.05)}.search-control{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--text-secondary)}.search-control input{padding:var(--space-1) var(--space-2);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);width:200px}.value-no-data{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-16);color:var(--text-secondary);flex:1;width:100%}.no-data-message{text-align:center}.no-data-message .material-icons{font-size:4rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.no-data-message p{margin:0 0 var(--space-2);font-size:var(--text-lg);color:var(--text-primary)}.no-data-message small{color:var(--text-tertiary)}.value-table-wrapper{flex:1;min-height:0;overflow-x:auto;overflow-y:auto}.value-table{width:100%;border-collapse:collapse;background:var(--bg-primary);min-width:1000px}.value-table-header{background:var(--vibe-primary);position:sticky;top:0;z-index:10}.value-table th{padding:var(--space-1) var(--space-3);text-align:center;font-weight:var(--font-bold);font-size:var(--text-sm);color:var(--text-inverse);border-bottom:1px solid var(--border-medium);border-right:1px solid var(--border-light);white-space:nowrap;cursor:pointer}.value-table th.col-race,.value-table th.col-runner{text-align:center}.col-race .header-content,.col-runner .header-content{justify-content:center}.value-table th.sortable:hover{background:var(--bg-hover);color:var(--text-primary)}.header-text{flex:1}.sort-indicator{font-size:var(--text-xs);color:var(--text-tertiary);opacity:0;transition:opacity var(--transition-fast)}.value-table th.sortable:hover .sort-indicator{opacity:1}.value-table th.sorted .sort-indicator{opacity:1;color:var(--vibe-primary)}.value-table th.sorted .header-text{color:var(--text-tertiary)}.value-table th:last-child{border-right:none}.value-table td{padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-light);border-right:1px solid var(--border-light);vertical-align:middle;text-align:center;font-size:var(--text-sm)}.value-table td:last-child{border-right:none}.value-table tbody tr{transition:background-color var(--transition-fast);cursor:pointer}.value-table tbody tr:hover{background:var(--bg-hover)}.value-row{transition:background-color var(--transition-fast);cursor:pointer}.value-row:hover{background:var(--bg-hover)}.value-row.selected-row{background:#8b5cf614;border-left:3px solid var(--vibe-primary)}.value-row.selected-row:hover{background:#8b5cf61f}.select-column{width:40px;min-width:40px;text-align:center}.select-cell{width:40px;min-width:40px;text-align:center;padding:var(--space-2)}.selection-checkbox{cursor:pointer;width:16px;height:16px;accent-color:var(--vibe-primary)}.selections-panel-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.selections-panel{background:var(--bg-primary);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);width:90%;max-width:800px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.selections-panel-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-4);border-bottom:1px solid var(--border-light);background:var(--bg-secondary)}.selections-panel-title{font-size:var(--text-lg);font-weight:var(--font-semibold);color:var(--text-primary);display:flex;align-items:center;gap:var(--space-2)}.selections-panel-close{background:none;border:none;cursor:pointer;color:var(--text-secondary);padding:var(--space-2);border-radius:var(--radius-md);transition:all var(--transition-fast);display:flex;align-items:center}.selections-panel-close:hover{background:var(--bg-hover);color:var(--text-primary)}.selections-panel-body{flex:1;overflow-y:auto;padding:var(--space-4)}.bookmaker-section{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-md);margin-bottom:var(--space-4);overflow:hidden}.bookmaker-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding:var(--space-3);background:var(--bg-tertiary);border-bottom:1px solid var(--border-light)}.bookmaker-info{display:flex;align-items:center;gap:var(--space-3)}.bookmaker-count{color:var(--text-tertiary);font-size:var(--text-sm)}.clear-bookmaker-selections{background:var(--error);color:#fff;border:none;padding:var(--space-1) var(--space-3);border-radius:var(--radius-md);cursor:pointer;font-size:var(--text-sm);font-weight:var(--font-medium);transition:all var(--transition-fast)}.clear-bookmaker-selections:hover{background:#c53030}.selections-table{width:100%;border-collapse:collapse}.selections-table thead{background:var(--bg-tertiary)}.selections-table th{padding:var(--space-2) var(--space-3);text-align:center;font-size:var(--text-xs);font-weight:var(--font-semibold);color:var(--text-secondary);text-transform:uppercase;border-bottom:1px solid var(--border-light)}.selections-table th.sortable-selection{cursor:pointer;transition:background-color var(--transition-fast);-webkit-user-select:none;user-select:none}.selections-table th.sortable-selection:hover{background:var(--bg-hover);color:var(--text-primary)}.selections-table th.sortable-selection .header-content{display:flex;align-items:center;justify-content:center;gap:var(--space-2)}.selections-table th.sortable-selection .sort-indicator-selection{font-size:var(--text-sm);color:var(--text-tertiary);opacity:0;transition:opacity var(--transition-fast);min-width:12px;text-align:center}.selections-table th.sortable-selection:hover .sort-indicator-selection{opacity:.5}.selections-table th.sortable-selection.sorted{color:var(--text-primary);background:#8b5cf614}.selections-table th.sortable-selection.sorted .sort-indicator-selection{opacity:1;color:var(--vibe-primary);font-weight:var(--font-bold)}.selections-table tbody tr{transition:background-color var(--transition-fast)}.selections-table tbody tr:hover{background:var(--bg-hover)}.selections-table td{padding:var(--space-2) var(--space-3);font-size:var(--text-sm);border-bottom:1px solid var(--border-light)}.selections-table tbody tr:last-child td{border-bottom:none}.race-cell-compact{color:var(--text-primary);font-weight:var(--font-medium);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.runner-cell-compact{color:var(--text-primary);font-weight:var(--font-semibold);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.odds-cell-compact{color:var(--vibe-primary);font-weight:var(--font-bold);text-align:center}.ev-cell-compact{text-align:center}.time-cell-compact{color:var(--text-tertiary);font-size:var(--text-xs);text-align:center}.odds-taken-cell-compact{color:var(--text-primary);font-weight:var(--font-bold);text-align:center}.live-odds-cell-compact{color:var(--vibe-primary);font-weight:var(--font-bold);text-align:center}.pos-cell-compact,.result-cell-compact,.sp-cell-compact{color:var(--text-tertiary);font-size:var(--text-xs);text-align:center}.odds-original{color:var(--text-secondary);font-weight:var(--font-medium)}.odds-current{font-weight:var(--font-bold)}.odds-unchanged{color:var(--text-primary);font-weight:var(--font-bold)}.odds-unavailable{color:var(--text-tertiary);font-style:italic;font-size:var(--text-xs)}.odds-arrow{font-size:var(--text-sm);margin:0 var(--space-1)}.remove-cell-compact{text-align:center;width:40px}.selection-remove-btn{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:var(--space-1);border-radius:var(--radius-sm);transition:all var(--transition-fast);display:inline-flex;align-items:center;justify-content:center}.selection-remove-btn:hover{background:var(--error);color:#fff}.selection-remove-btn .material-icons{font-size:18px}.selections-empty{text-align:center;padding:var(--space-8);color:var(--text-secondary)}.selections-empty .material-icons{font-size:3rem;color:var(--text-tertiary);margin-bottom:var(--space-3)}.selections-panel-footer{padding:var(--space-4);border-top:1px solid var(--border-light);background:var(--bg-secondary);display:flex;justify-content:space-between;align-items:center}.selections-count{font-size:var(--text-sm);color:var(--text-secondary);font-weight:var(--font-medium);display:flex;gap:var(--space-3);align-items:center}.selections-count .stat-value{font-weight:var(--font-bold);color:var(--text-primary)}.selections-count .winners-stat{color:#16a34a}.selections-count .placed-stat{color:#ea580c}.selections-count .torun-stat{color:#8b5cf6}.clear-all-selections{background:var(--error);color:#fff;border:none;padding:var(--space-2) var(--space-4);border-radius:var(--radius-md);cursor:pointer;font-weight:var(--font-medium);transition:all var(--transition-fast)}.clear-all-selections:hover{background:#c53030}.clear-all-selections:disabled{opacity:.5;cursor:not-allowed}.col-race{min-width:120px}.col-runner{min-width:180px}.col-bookmaker{min-width:120px}.col-odds{min-width:80px;text-align:center}.col-fair-odds{min-width:90px;text-align:center}.col-ev,.col-win-ev,.col-place-ev{min-width:80px;text-align:center}.col-win-volume,.col-place-volume{min-width:100px;text-align:center}.col-win-lay,.col-place-lay{min-width:80px;text-align:center}.col-confidence,.col-volume{min-width:100px;text-align:center}.col-timestamp{min-width:120px;text-align:center}.book-cell,.race-cell,.runner-cell,.odds-cell,.fair-odds-cell,.ev-cell,.win-ev-cell,.place-ev-cell,.places-cell,.terms-cell,.runners-cell,.win-volume-cell,.place-volume-cell,.win-lay-cell,.place-lay-cell,.confidence-cell,.updated-cell{padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-light);border-right:1px solid var(--border-light);vertical-align:middle;font-size:var(--text-sm)}.book-cell:last-child,.race-cell:last-child,.runner-cell:last-child,.odds-cell:last-child,.fair-odds-cell:last-child,.ev-cell:last-child,.win-ev-cell:last-child,.place-ev-cell:last-child,.places-cell:last-child,.terms-cell:last-child,.runners-cell:last-child,.win-volume-cell:last-child,.place-volume-cell:last-child,.win-lay-cell:last-child,.place-lay-cell:last-child,.confidence-cell:last-child,.updated-cell:last-child{border-right:none}.book-cell{font-weight:var(--font-medium)}.bookmaker-name{color:var(--text-primary);font-size:var(--text-sm)}.bookmaker-logo-wrapper{display:inline-block;border-radius:3px;padding:2px 6px;line-height:0;background-color:var(--bg-primary)}.bookmaker-logo{height:18px;width:auto;max-width:60px;object-fit:contain;display:block}.race-cell{font-weight:var(--font-medium);color:var(--text-primary);text-align:left}.race-info{display:flex;flex-direction:column;gap:var(--space-1)}.race-time{color:var(--text-primary);font-weight:var(--font-medium)}.runner-cell{font-weight:var(--font-semibold);color:var(--text-primary);text-align:left}.runner-name{color:var(--text-primary);cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none;padding:2px 4px;border-radius:3px;position:relative}.runner-name:hover{color:var(--vibe-primary);background-color:rgba(var(--color-primary-rgb, 99, 102, 241),.1);text-decoration:underline}.runner-name:active{transform:scale(.98)}.odds-cell{text-align:center;font-weight:var(--font-bold)}.odds-value{color:var(--vibe-primary);font-weight:var(--font-bold)}.ev-cell{text-align:center;font-weight:var(--font-bold)}.ev-value{font-weight:var(--font-bold);padding:var(--space-1) var(--space-2);border-radius:12px}.ev-value.below{color:#6b7280}.ev-value.marginal{color:#16a34a}.ev-value.good{color:#16a34a;background:#16a34a26}.ev-value.exceptional{color:#9b59b6;background:#9b59b626}.places-cell,.terms-cell,.runners-cell{text-align:center;color:var(--text-secondary)}.places-value,.terms-value,.runners-value{color:var(--text-primary);font-weight:var(--font-medium)}.confidence-cell{text-align:center;vertical-align:middle}.updated-cell{text-align:center}.updated-time{color:var(--text-tertiary);font-size:var(--text-xs)}.confidence-cell-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);width:100%}.confidence-stars{display:flex;justify-content:center;gap:var(--space-1)}.confidence-dot{width:8px;height:8px;border-radius:var(--radius-full);background:var(--vibe-secondary);opacity:.25;transition:opacity var(--transition-fast),transform var(--transition-fast)}.confidence-dot.filled{opacity:1}.confidence-dot.filled:hover{transform:scale(1.2)}.confidence-level{font-size:var(--text-xs);color:var(--text-tertiary)}.volume-cell{color:var(--text-secondary);font-size:var(--text-xs)}.timestamp-cell{color:var(--text-tertiary);font-size:var(--text-xs)}.value-pagination{display:flex;justify-content:space-between;align-items:center;padding:var(--space-4);background:var(--bg-tertiary);border-top:1px solid var(--border-light)}.pagination-info{font-size:var(--text-sm);color:var(--text-secondary)}.pagination-controls{display:flex;gap:var(--space-2)}.pagination-btn{padding:var(--space-2) var(--space-3);border:1px solid var(--border-medium);background:var(--bg-primary);border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);font-size:var(--text-sm);color:var(--text-primary)}.pagination-btn:hover:not(:disabled){background:var(--bg-hover);border-color:var(--vibe-primary)}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.pagination-btn.active{background:var(--vibe-primary);color:#fff;border-color:var(--vibe-primary)}.no-opportunities{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-16);text-align:center;color:var(--text-secondary)}.no-opportunities .material-icons{font-size:4rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.no-opportunities h3{margin:0 0 var(--space-2);color:var(--text-primary);font-size:var(--text-xl)}.no-opportunities p{margin:0;font-size:var(--text-base)}@media (max-width: 1200px){.settings-grid{grid-template-columns:repeat(2,1fr);gap:var(--space-3)}.value-table{min-width:900px}}@media (max-width: 768px){.value-grid{padding:0;margin:0;border-top:none}.value-header-bar{padding:var(--space-2) var(--space-2) 0 var(--space-2);border-top:none;border-bottom:none;margin-top:0}.value-table-card{border:none;border-radius:0;box-shadow:none}.value-header-container{flex-direction:column;gap:var(--space-4);align-items:stretch}.value-title{text-align:center}.value-table-container{margin:0 var(--space-2)}.value-table{min-width:800px}.value-table th,.value-table td{padding:var(--space-2) var(--space-3)}.pagination-controls{gap:var(--space-1)}.pagination-btn{padding:var(--space-1) var(--space-2);font-size:var(--text-xs)}}.runner-copy-notification{position:fixed;bottom:80px;right:20px;display:flex;flex-direction:column;gap:8px;pointer-events:none;z-index:1000}.copy-toast{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:6px;background:#fff;box-shadow:0 4px 12px #00000026;font-size:14px;font-weight:500;transform:translate(400px);opacity:0;transition:all .3s ease;pointer-events:auto;cursor:default;max-width:280px}.copy-toast.show{transform:translate(0);opacity:1}.copy-toast.success{border-left:4px solid #10b981}.copy-toast.success .material-icons{color:#10b981}.copy-toast.error{border-left:4px solid #ef4444}.copy-toast.error .material-icons{color:#ef4444}.copy-toast .material-icons{flex-shrink:0;font-size:20px;line-height:1}.copy-message{word-break:break-word}@media (max-width: 640px){.value-table{min-width:100%;font-size:var(--text-xs)}.value-table th{padding:2px;font-size:.7rem;line-height:1;vertical-align:middle;font-weight:var(--font-semibold);height:auto}.value-table td{padding:2px;font-size:var(--text-xs);line-height:1.1;vertical-align:middle}.header-content{gap:2px;min-height:auto}.sort-indicator{font-size:.6rem}.select-column{width:36px;min-width:36px;padding:0}.selection-checkbox{width:18px;height:18px;cursor:pointer;-webkit-tap-highlight-color:transparent;padding:13px;margin:-13px}.book-cell{width:60px;min-width:60px;max-width:60px;padding:0;overflow:hidden}.bookmaker-logo-wrapper{width:60px;height:28px;overflow:hidden;display:flex;align-items:center;justify-content:center}.bookmaker-logo{max-width:55px;max-height:24px;object-fit:contain}.col-bookmaker{min-width:60px!important;width:60px!important;max-width:60px!important}.col-race{min-width:70px!important;width:70px!important;max-width:70px!important}.col-runner{min-width:50px!important;max-width:90px!important}.race-cell{width:70px!important;min-width:70px!important;max-width:70px!important;padding:2px!important;font-size:var(--text-xs)!important}.race-info{gap:1px}.race-time{font-size:var(--text-xs)!important;line-height:1.2}.runner-cell{width:auto!important;min-width:50px!important;max-width:90px!important;padding:2px!important;text-align:left!important}.runner-name{font-size:var(--text-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;display:block;max-width:100%}.odds-cell{width:40px!important;min-width:40px!important;max-width:40px!important;text-align:center}.ev-cell{width:40px;min-width:40px;padding:var(--space-1)}.ev-cell .ev-value{display:inline-block;width:16px;height:16px;border-radius:50%;font-size:0;text-indent:-9999px;overflow:hidden}.ev-value.below{background-color:#999}.ev-value.marginal{background-color:#90ee90}.ev-value.good{background-color:#28a745}.ev-value.excellent{background-color:#006400}.ev-value.exceptional{background-color:#9b59b6}.places-cell,.terms-cell,.runners-cell,.confidence-cell,.updated-cell{min-width:60px}.col-fair-odds{min-width:80px}.col-win-ev,.col-place-ev{min-width:70px}.col-win-volume,.col-place-volume{min-width:80px}.col-win-lay,.col-place-lay{min-width:70px}.col-volume{min-width:80px}.value-table-controls{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;gap:.25rem;padding:var(--space-2) 0;align-items:center}.summary-stats-inline{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;font-size:9px;gap:.15rem .3rem;justify-content:center;overflow-x:auto}.summary-stats-inline .stat-compact{white-space:nowrap}.summary-stats-inline .stat-separator{margin:0 .1rem}.summary-stats-inline .stat-compact:nth-child(3){cursor:pointer;-webkit-user-select:none;user-select:none}.summary-stats-inline .stat-compact:nth-child(3) #selected-count-inline{text-decoration:underline;text-decoration-style:dotted;color:var(--vibe-primary)}.summary-stats-inline .stat-compact:nth-child(3):hover #selected-count-inline{text-decoration-style:solid}.summary-stats-inline .stat-separator{display:none}.summary-stats-inline .stat-compact:last-child{display:none}.checkbox-label,.entries-control{display:none}.search-control{grid-column:1;grid-row:2;display:flex;align-items:center;gap:.5rem;width:100%}.search-control label{display:none}.search-control input{min-height:32px;font-size:var(--text-xs);padding:.25rem .5rem;width:100%}.value-table-controls{display:flex;flex-direction:column;gap:.5rem}.value-load-more-btn{width:100%;min-height:44px;padding:.75rem;margin-top:.5rem;background:var(--bg-tertiary);border:1px solid var(--border-medium);border-radius:var(--radius-lg);color:var(--text-primary);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:all var(--transition-fast);-webkit-tap-highlight-color:transparent;touch-action:manipulation}.value-load-more-btn:active{background:var(--bg-secondary);transform:scale(.98)}.value-load-more-btn:disabled{opacity:.5;cursor:not-allowed}.hide-toggle-toast{position:fixed;bottom:80px;left:50%;transform:translate(-50%);background:var(--bg-primary);border:1px solid var(--border-medium);border-radius:var(--radius-lg);padding:.5rem 1rem;font-size:var(--text-sm);box-shadow:0 4px 12px #00000026;z-index:1000;opacity:0;transition:opacity var(--transition-fast);pointer-events:none}.hide-toggle-toast.show{opacity:1}.runner-copy-notification{bottom:40px;right:10px}.copy-toast{max-width:220px;font-size:13px;padding:10px 12px}}.multi-cards-load-more-container{display:flex;justify-content:center;align-items:center;padding:var(--space-8) var(--space-6);margin-top:var(--space-4)}.multi-cards-load-more-btn{padding:var(--space-3) var(--space-8);background-color:var(--primary-blue);color:#fff;border:none;border-radius:var(--radius-md);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:background-color .2s ease,transform .1s ease;white-space:nowrap}.multi-cards-load-more-btn:hover{background-color:var(--primary-blue-dark);transform:translateY(-1px)}.multi-cards-load-more-btn:active{transform:translateY(0)}.multi-cards-load-more-btn:disabled{background-color:var(--bg-tertiary);color:var(--text-tertiary);cursor:not-allowed;transform:none}.value-multi-grid{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;background:var(--bg-primary);min-height:100%}.multi-grid-header{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:1rem;border:1px solid var(--border-medium);box-shadow:var(--shadow-sm)}.multi-filter-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.multi-filter-bar .filter-group{display:flex;align-items:center;gap:.5rem}.multi-filter-bar .filter-select,.multi-filter-bar .filter-number-input{padding:.5rem .75rem;border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:.875rem;min-width:120px}.multi-filter-bar .filter-number-input{width:100px}.multi-filter-bar .filter-label{font-size:.875rem;font-weight:500;color:var(--text-secondary)}.multi-stats-inline{margin-left:auto;display:flex;align-items:center;gap:1rem;padding-left:1rem;border-left:1px solid var(--border-medium)}.stat-compact{font-size:.875rem;color:var(--text-secondary)}.stat-compact span{font-weight:600;color:var(--text-primary);margin-left:.25rem}.multi-cards-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:1.5rem;animation:fadeIn .3s ease-in}@media (max-width: 768px){.multi-cards-container{grid-template-columns:1fr}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.multi-bet-card{background:var(--bg-secondary);border-radius:var(--radius-lg);border:1px solid var(--border-medium);box-shadow:var(--shadow-md);transition:all .2s ease;overflow:hidden;display:flex;flex-direction:column}.multi-bet-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px);border-color:var(--vibe-primary)}.card-header{display:flex;align-items:center;justify-content:flex-start;padding:1rem;background:var(--bg-tertiary);border-bottom:1px solid var(--border-medium);gap:1rem}.card-header-left{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.card-bet-type{display:flex;align-items:center;gap:.5rem}.bet-type-badge{display:inline-block;background:var(--vibe-primary);color:#fff;padding:.375rem .75rem;border-radius:var(--radius-md);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.card-bookmaker{display:flex;align-items:center}.card-bookmaker-logo{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);overflow:hidden;flex-shrink:0}.card-bookmaker-logo img{width:100%;height:100%;object-fit:contain;padding:2px}.card-bookmaker-name{font-size:.75rem;font-weight:600;color:var(--text-secondary);padding:0 .75rem}.card-stats{display:flex;align-items:center;flex:1;margin-left:auto}.stats-table{display:flex;flex-direction:column;gap:.25rem}.stats-header,.stats-values{display:grid;grid-template-columns:repeat(4,minmax(55px,1fr));gap:.5rem}.stat-col-header{font-size:.65rem;font-weight:600;text-transform:uppercase;color:var(--text-secondary);letter-spacing:.3px;text-align:center}.stat-col-value{font-size:.9rem;font-weight:700;color:var(--text-primary);text-align:center}.stat-col-value.ev-positive{color:var(--success)}.stat-col-value.ev-neutral{color:var(--warning)}.stat-col-value.ev-negative{color:var(--error)}.card-selections{display:flex;flex-direction:column;padding:0;gap:0;background:var(--bg-secondary);flex:1}.card-selections .selection-row{display:grid;grid-template-columns:5px 1fr 1.5fr .25fr .25fr;gap:.75rem;padding:.75rem 1rem;align-items:center;border-bottom:1px solid var(--border-medium)}.card-selections .selection-row:last-child{border-bottom:none}.card-selections .selection-row.selected-row{background:#0000000d;opacity:.65}.card-selections .selection-checkbox-col{display:flex;align-items:center;justify-content:center}.card-selections .selection-checkbox{cursor:pointer;width:16px;height:16px;accent-color:var(--vibe-primary)}.card-selections .selection-race-col{font-size:.85rem;color:var(--text-secondary);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-selections .selection-runner-col{font-weight:600;color:var(--text-primary);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-selections .selection-runner-col.runner-name{cursor:pointer;transition:all var(--transition-fast)}.card-selections .selection-runner-col.runner-name:hover{color:var(--vibe-primary);text-decoration:underline}.card-selections .selection-odds-col{font-size:.95rem;align-items:center;gap:1rem;color:var(--text-secondary)}.no-data-message .material-icons{font-size:3rem;opacity:.5}.no-data-message p{font-size:1.1rem;font-weight:500;margin:0}.no-data-message small .stat-value.ev-positive{background:var(--success-light)}.no-data-message small .stat-value.ev-neutral{background:var(--warning-light)}.no-data-message small .stat-value.ev-negative{background:var(--error-light)}.mobile-filter-header{display:none;width:100%;margin-bottom:var(--space-2)}#mobile-filter-toggle{width:100%;justify-content:center}#mobile-filter-toggle.active{background:var(--bg-hover);border-color:var(--border-strong)}.value-header-filters{overflow:hidden;transition:max-height var(--transition-normal),opacity var(--transition-fast);padding:.75rem 0}.value-header-grid-desktop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;align-items:flex-start;width:75%;margin:0 auto}.view-column{grid-column:1;grid-row:1;align-items:center}.view-column{grid-column:1;grid-row:1}.place-column{grid-column:4;grid-row:1}.bet-column{grid-column:1;grid-row:2}.value-header-grid-mobile{display:none;flex-direction:column;gap:.75rem;width:100%}.value-header-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;width:100%;align-items:center}.value-header-row-units{grid-template-columns:repeat(3,minmax(70px,1fr));justify-content:center;gap:.4rem}.value-header-row-units .filter-select,.value-header-row-units .filter-number-input{font-size:.8rem;min-height:36px;padding:0 var(--space-2);width:100%}.value-header-row-units .filter-column{min-width:70px;max-width:120px;margin:0;padding:0 .1rem}@media (max-width: 768px){.value-header-grid-desktop{display:none}.value-header-grid-mobile{display:flex}}.filter-column{display:flex;flex-direction:column;gap:.75rem;min-width:150px}.filter-inline-field{display:flex;align-items:center;gap:.5rem}.filter-inline-field .filter-label{margin:0;width:64px;text-align:right;color:var(--text-secondary)}.display-column{grid-column:1;grid-row:1}.book-column{grid-column:2;grid-row:1}.race-column{grid-column:2;grid-row:2}.ev-column{grid-column:3;grid-row:1}.odds-column{grid-column:3;grid-row:2}.places-column{grid-column:4;grid-row:1}.start-column{grid-column:4;grid-row:2}.filter-column .filter-select,.filter-column .filter-number-input{width:100%}.display-mode-toggle{display:flex;gap:var(--space-1);background:var(--bg-tertiary);padding:0 var(--space-1);border-radius:var(--radius-lg);border:1px solid var(--border-light);height:40px;align-items:center}.display-mode-toggle input[type=radio]{display:none}.display-mode-toggle label{display:flex;align-items:center;justify-content:center;padding:0 var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;height:32px;-webkit-user-select:none;user-select:none}.display-mode-toggle label:hover{background:var(--bg-secondary);color:var(--text-primary)}.display-mode-toggle input[type=radio]:checked+label{background:#fff;color:var(--vibe-primary);font-weight:var(--font-semibold)}.display-mode-toggle input[type=radio]:checked+label:hover{background:#fff;opacity:.95}.bet-type-selector{display:flex}.bet-type-selector .filter-select{width:100%}.filter-group{display:flex;align-items:center;gap:.5rem}.filter-select{height:40px;padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast)}.filter-select:hover{border-color:var(--vibe-primary)}.filter-select:focus{outline:none;border-color:var(--vibe-primary);box-shadow:0 0 0 3px #8b5cf61a}.filter-select-narrow{max-width:65px;min-width:55px;padding:0 var(--space-2)}.filter-number-input{height:40px;padding:0 var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);font-weight:var(--font-medium);transition:all var(--transition-fast);width:90px}.filter-number-input:hover{border-color:var(--vibe-primary)}.filter-number-input:focus{outline:none;border-color:var(--vibe-primary);box-shadow:0 0 0 3px #8b5cf61a}.filter-label{font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--text-secondary);white-space:nowrap;text-align:center}.filter-label-mobile{font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--text-secondary);text-align:center;margin-bottom:.15rem}@media (max-width: 640px){.mobile-filter-header{display:block;margin-bottom:var(--space-2)}.value-header-filters{max-height:0;opacity:0;overflow:hidden;pointer-events:none}.value-header-filters.expanded{max-height:fit-content;opacity:1;padding-top:var(--space-2);overflow:visible;pointer-events:auto}.value-header-grid{grid-template-columns:1fr}.display-mode-toggle{display:none}.bet-type-selector .filter-select{min-height:44px}.filter-group{display:flex;flex-direction:column;align-items:stretch;gap:.375rem}.filter-select,.filter-number-input{width:100%;min-height:44px;font-size:var(--text-base)}.filter-label{font-size:var(--text-sm);font-weight:var(--font-semibold)}}@media (min-width: 641px) and (max-width: 768px){.value-header-grid{grid-template-columns:repeat(2,1fr)}.display-mode-toggle{width:100%;justify-content:space-around}.filter-select,.filter-number-input{width:100%}}.selections-grid{flex:1;display:flex;flex-direction:column;height:100%;min-height:0;padding:0 0 var(--space-6);margin-top:0;width:100%;align-self:stretch;gap:0}.selections-header{background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-xl) var(--radius-xl) 0 0;padding:var(--space-4);display:flex;justify-content:space-between;align-items:center;gap:var(--space-6);flex-wrap:wrap;margin-bottom:0}.selections-stats{flex:0 1 auto;width:100%}.stats-summary{display:flex;flex-direction:column;gap:var(--space-3)}.performance-summary{display:flex;gap:var(--space-2);align-items:center;flex-wrap:wrap}.performance-pill{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-3);background:var(--bg-primary);border:1px solid var(--border-light);border-radius:var(--radius-md);text-align:center;min-width:55px}.perf-label{font-size:var(--text-xs);color:var(--text-secondary);font-weight:var(--font-medium);min-width:16px;text-align:center}.perf-value{font-size:var(--text-lg);font-weight:var(--font-bold);color:var(--text-primary);line-height:1;min-width:20px}.performance-pill.stat-win .perf-value{color:#16a34a}.performance-pill.stat-place .perf-value{color:#ea580c}.performance-pill.stat-loss .perf-value{color:#dc2626}.performance-pill.stat-torun .perf-value{color:#8b5cf6}.selections-header-bar{display:flex;flex-direction:column;align-items:stretch;background:var(--bg-secondary);border:none;border-radius:0;z-index:50;overflow:visible;margin:0;box-sizing:border-box;width:100%}.floating-stat{display:flex;align-items:center;justify-content:center;height:100%;font-size:var(--text-sm);font-weight:var(--font-semibold);color:var(--text-primary);text-align:center;padding:0 var(--space-2);position:absolute;top:0;white-space:nowrap;overflow:visible;cursor:help;transition:all .2s ease}.floating-stat:hover{transform:scale(1.05)}.floating-stat:after{content:attr(data-tooltip);position:absolute;top:100%;left:50%;transform:translate(-50%);background:#1f2937f2;color:#fff;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);font-size:var(--text-xs);font-weight:var(--font-medium);white-space:nowrap;pointer-events:none;z-index:10001;border:1px solid rgba(139,92,246,.3);opacity:0;visibility:hidden;transition:all .2s ease;margin-top:var(--space-2)}.floating-stat:hover:after{opacity:1;visibility:visible}.header-controls-row{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-1);background:transparent;border-bottom:1px solid rgba(139,92,246,.1);flex-wrap:wrap}.floating-performance-pills{display:flex;gap:var(--space-2);align-items:center}.floating-perf-pill{padding:var(--space-1) var(--space-3);border-radius:var(--radius-md);font-size:var(--text-xs);font-weight:var(--font-bold);background:var(--bg-primary);border:1px solid var(--border-light);min-width:50px;text-align:center}.floating-perf-label{display:inline-flex;align-items:center;justify-content:center;font-size:var(--text-sm)}.floating-perf-label .material-icons{font-size:var(--text-sm);line-height:1}.floating-perf-value{font-size:var(--text-sm);font-weight:var(--font-semibold)}.floating-perf-pill.stat-win{color:#16a34a;border-color:#16a34a33}.floating-perf-pill.stat-place{color:#ea580c;border-color:#ea580c33}.floating-perf-pill.stat-loss{color:#dc2626;border-color:#dc262633}.floating-perf-pill.stat-torun{color:#8b5cf6;border-color:#8b5cf633}.floating-divider{width:1px;height:24px;background:var(--border-light);order:2}.filter-block{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--space-2);min-width:280px;order:1}.mobile-filter-header{display:none;width:100%;margin-bottom:var(--space-0)}#selections-mobile-filter-toggle{width:100%;justify-content:center}#selections-mobile-filter-toggle.active{background:var(--bg-hover);border-color:var(--border-strong)}.selections-mobile-filters{display:flex;gap:var(--space-2);align-items:stretch}.filter-grid{display:flex;gap:var(--space-2);align-items:stretch;width:100%}.filter-grid select{width:100%;min-width:0}.header-search-wrapper{flex:1;min-width:200px;order:2}.performance-actions-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-1);flex:1;order:3;flex-wrap:wrap}.filter-select-floating,.search-input-floating{height:32px;padding:var(--space-1) var(--space-2);font-size:var(--text-xs);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary)}.filter-select-floating{min-width:120px}.search-input-floating{flex:1;min-width:150px}.floating-search-input-floating::placeholder{color:var(--text-tertiary)}.floating-actions{display:flex;gap:var(--space-1);align-items:center}.floating-btn{height:32px;padding:0 .5rem;font-size:var(--text-xs);font-weight:var(--font-medium);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:var(--space-1);white-space:nowrap;min-width:32px}.floating-btn:hover{background:var(--bg-tertiary);border-color:var(--vibe-primary);color:var(--vibe-primary)}.floating-btn.danger{color:#dc2626;border-color:#dc26264d}.floating-btn.danger:hover{background:#dc26261a;border-color:#dc2626}.floating-btn.toggle{padding:var(--space-1);min-width:auto}.floating-btn.toggle .material-icons{font-size:20px}.header-search-wrapper{flex:1;min-width:200px}.header-search-wrapper .search-input-floating{width:100%}.mobile-filter-details summary{display:none}.mobile-filter-details summary .material-icons{transition:transform var(--transition-fast)}.mobile-filter-details[open] summary .material-icons{transform:rotate(180deg)}.header-stats-row{display:flex;padding:0 0 0 var(--space-4);background:transparent;position:relative;height:40px;overflow:visible}.floating-stat-pill{display:flex;align-items:center;justify-content:center;height:100%;font-size:var(--text-sm);font-weight:var(--font-bold);color:#fff;text-align:center;padding:var(--space-1) var(--space-3);position:absolute;top:0;white-space:nowrap;overflow:visible;background:#8b5cf633;border:1px solid rgba(139,92,246,.4);border-radius:var(--radius-full);margin:0 var(--space-1);cursor:help;transition:all .2s ease}.floating-stat-pill:hover{background:#8b5cf64d;transform:scale(1.05)}.floating-stat-pill:after{content:attr(data-tooltip);position:absolute;top:100%;left:50%;transform:translate(-50%);background:#1f2937f2;color:#fff;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);font-size:var(--text-xs);font-weight:var(--font-medium);white-space:nowrap;pointer-events:none;z-index:10001;border:1px solid rgba(139,92,246,.3);opacity:0;visibility:hidden;transition:all .2s ease;margin-top:var(--space-2)}.floating-stat-pill:hover:after{opacity:1;visibility:visible}.floating-stat-pill.stat-movement-positive{color:#16a34a;background:#16a34a33;border:1px solid rgba(22,163,74,.4)}.floating-stat-pill.stat-movement-positive:hover{background:#16a34a4d}.floating-stat-pill.stat-movement-negative{color:#dc2626;background:#dc262633;border:1px solid rgba(220,38,38,.4)}.floating-stat-pill.stat-movement-negative:hover{background:#dc26264d}.floating-stat-pill.stat-movement-neutral{color:#9ca3af;background:#9ca3af33;border:1px solid rgba(156,163,175,.4)}.floating-stat-pill.stat-movement-neutral:hover{background:#9ca3af4d}.floating-stat:empty{opacity:.3}.floating-stat[data-column=live-odds],.floating-stat.movement{font-weight:var(--font-bold)}.floating-stat.movement.stat-movement-positive{color:#16a34a}.floating-stat.movement.stat-movement-negative{color:#dc2626}.floating-stat.movement.stat-movement-neutral{color:var(--text-tertiary)}.stat-item.stat-movement-positive .stat-value{color:#16a34a}.stat-item.stat-movement-negative .stat-value{color:#dc2626}.stat-item.stat-movement-neutral .stat-value{color:var(--text-tertiary)}.selections-controls{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center;justify-content:flex-end}.control-group{display:flex;align-items:center;gap:var(--space-2)}.control-group label{font-size:var(--text-sm);color:var(--text-secondary);font-weight:var(--font-medium);white-space:nowrap}.filter-select{padding:var(--space-2) var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);min-width:150px}.search-input{padding:var(--space-2) var(--space-3);border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:var(--text-sm);min-width:200px}.action-btn{padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-md);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:all var(--transition-fast)}.action-btn.danger{background:var(--error);color:#fff}.action-btn.danger:hover{background:#c53030}.action-btn.primary{background:var(--vibe-primary);color:#fff;display:inline-flex;align-items:center;gap:var(--space-2)}.action-btn.primary:hover{background:#6366f1;opacity:.9}.action-btn.primary .material-icons{font-size:18px;line-height:1}.selections-table-container{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;background:var(--bg-secondary);border:1px solid var(--border-light);border-top:none;border-radius:0 0 var(--radius-xl) var(--radius-xl);padding:var(--space-2);margin-top:0}.selections-data-table{width:100%;border-collapse:collapse;background:var(--bg-primary);min-width:1200px}.selections-data-table thead{background:var(--vibe-primary);position:sticky;top:0;z-index:10}.selections-data-table th{padding:var(--space-1) var(--space-3);text-align:center;font-weight:var(--font-bold);font-size:var(--text-sm);color:var(--text-inverse);border-bottom:1px solid var(--border-medium);white-space:nowrap}.selections-data-table th.sortable{cursor:pointer;transition:background-color var(--transition-fast);-webkit-user-select:none;user-select:none}.selections-data-table th.sortable:hover{background:var(--bg-hover);color:var(--text-primary)}.header-content{display:flex;align-items:center;justify-content:center;gap:var(--space-2)}.sort-indicator{font-size:var(--text-sm);color:var(--vibe-primary);font-weight:var(--font-bold);min-width:12px}.selections-data-table td{padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-light);vertical-align:middle;text-align:center;font-size:var(--text-sm);height:44px}.selections-data-table tbody tr{transition:background-color var(--transition-fast);height:44px}.selections-data-table tbody tr:hover{background:var(--bg-hover)}.selection-row.win-result-row{background-color:#16a34a1a!important;border-left:4px solid #2dd4bf!important;padding-left:calc(var(--space-3) - 4px)}.selection-row.win-result-row:hover{background-color:#16a34a33!important}.selection-row.place-result-row{background-color:#ea580c1a!important;border-left:4px solid #fb923c!important;padding-left:calc(var(--space-3) - 4px)}.selection-row.place-result-row:hover{background-color:#ea580c33!important}.selection-row.loss-result-row{background-color:#dc26261a!important;border-left:4px solid #f87171!important;padding-left:calc(var(--space-3) - 4px)}.selection-row.loss-result-row:hover{background-color:#dc262633!important}.selection-row.torun-result-row{background-color:#8b5cf61a!important;border-left:4px solid #818cf8!important;padding-left:calc(var(--space-3) - 4px)}.selection-row.torun-result-row:hover{background-color:#8b5cf633!important}.race-cell{color:var(--text-primary);font-weight:var(--font-medium);text-align:left;max-width:200px}.runner-cell{color:var(--text-primary);font-weight:var(--font-semibold);text-align:left;max-width:200px}.selections-grid .runner-name{display:inline-block;padding:.375rem .75rem;border-radius:999px;font-weight:var(--font-semibold);transition:all var(--transition-fast)}.selections-grid .selection-row.win-result-row .runner-name{background:#16a34a;color:#fff}.selections-grid .selection-row.place-result-row .runner-name{background:#ea580c;color:#fff}.selections-grid .selection-row.loss-result-row .runner-name{color:#9ca3af;background:transparent}.selections-grid .selection-row.torun-result-row .runner-name{background:transparent}.bookmaker-cell{color:var(--text-secondary);font-size:var(--text-sm)}.bookmaker-logo-wrapper{display:inline-block;padding:4px 8px;border-radius:4px;line-height:0}.bookmaker-logo{height:20px;width:auto;display:block}.bookmaker-name{font-size:var(--text-sm);color:var(--text-secondary)}.odds-cell{color:var(--vibe-primary);font-weight:var(--font-bold)}.live-odds-cell{font-weight:var(--font-bold)}.odds-arrow{font-size:var(--text-sm);margin-right:var(--space-1)}.odds-improved{color:#16a34a}.odds-worsened{color:#dc2626}.odds-unchanged{color:var(--text-primary)}.odds-unavailable{color:var(--text-tertiary);font-style:italic;font-size:var(--text-xs);display:inline-flex;align-items:center}.odds-unavailable.sp-value{color:var(--text-secondary);font-style:normal}.movement-cell{text-align:center;font-weight:var(--font-semibold)}.movement-value{font-weight:var(--font-bold);display:inline-block;min-width:60px}.movement-positive{color:#16a34a}.movement-negative{color:#dc2626}.movement-neutral{color:var(--text-tertiary)}.movement-unavailable{color:var(--text-tertiary);font-style:italic;font-size:var(--text-xs)}.ev-cell{text-align:center}.ev-badge{display:inline-block;padding:var(--space-1) var(--space-2);border-radius:12px;font-weight:var(--font-bold);font-size:var(--text-xs)}.ev-badge.below{color:#6b7280}.ev-badge.marginal{color:#16a34a}.ev-badge.good{color:#16a34a;background:#16a34a26}.ev-badge.exceptional{color:#9b59b6;background:#9b59b626}.card-value.card-value-ev .ev-badge{font-size:16px;padding:var(--space-1) var(--space-2)}.places-cell{color:var(--text-secondary);text-align:center;font-weight:var(--font-medium)}.editable-cell{position:relative;cursor:text}.editable-cell:after{content:"✏️";position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:.7rem;opacity:0;transition:opacity var(--transition-fast);pointer-events:none}.editable-cell:hover:after{opacity:.4}.editable-input{width:100%;border:none;background:transparent;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;padding:0;margin:0;outline:none;cursor:text}.odds-cell .editable-input{color:var(--vibe-primary);font-weight:var(--font-bold)}.places-cell .editable-input{color:var(--text-secondary);font-weight:var(--font-medium)}.editable-input:hover{background:#8b5cf60d}.editable-input:focus{background:#8b5cf61a;border:1px solid var(--vibe-primary);border-radius:4px;padding:2px 4px}.editable-input::-webkit-outer-spin-button,.editable-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.editable-input[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.terms-cell{color:var(--text-secondary);text-align:center;font-weight:var(--font-medium)}.roi-cell{color:var(--text-tertiary);text-align:center;font-style:italic}.time-cell{color:var(--text-tertiary);font-size:var(--text-xs)}.pos-cell{color:var(--text-secondary)}.selections-grid .result-cell{font-weight:var(--font-bold);text-transform:uppercase;padding:0!important}.selections-grid .result-content{display:flex;align-items:center;justify-content:center;gap:.5rem;height:100%;padding:var(--space-2) var(--space-3)}.selections-grid .result-icon{font-size:20px!important;display:flex;align-items:center;flex-shrink:0}.selections-grid .result-cell.result-win,.selections-grid .result-cell.result-win .result-icon{color:#16a34a}.selections-grid .result-cell.result-place,.selections-grid .result-cell.result-place .result-icon{color:#ea580c}.selections-grid .result-cell.result-loss,.selections-grid .result-cell.result-loss .result-icon{color:#dc2626}.selections-grid .selection-row.torun-result-row .result-cell,.selections-grid .selection-row.torun-result-row .result-icon{color:#8b5cf6}.selections-grid .selection-row.nonrunner-result-row{opacity:.4;background-color:#f3f4f6}.selections-grid .selection-row.nonrunner-result-row .result-cell,.selections-grid .selection-row.nonrunner-result-row .result-icon{color:#6b7280}.sp-cell{color:var(--text-secondary)}.action-cell{width:50px}.remove-btn{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:var(--space-1);border-radius:var(--radius-sm);transition:all var(--transition-fast);display:inline-flex;align-items:center;justify-content:center;position:relative;font-size:1.1rem}.remove-btn:hover{background:var(--error);color:#fff}.remove-btn .material-icons{font-size:18px}.remove-btn.confirm-pending{background:#dc262633;border:1px solid rgba(220,38,38,.6);color:#dc2626}.selections-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-16);color:var(--text-secondary);text-align:center;background:var(--bg-secondary);border:1px solid var(--border-light);border-radius:var(--radius-xl)}.selections-empty .material-icons{font-size:4rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.selections-empty p{margin:0 0 var(--space-2);font-size:var(--text-lg);color:var(--text-primary)}.selections-empty small{color:var(--text-tertiary)}@media (max-width: 1200px){.selections-header{gap:var(--space-4)}.stat-item{min-width:60px;padding:var(--space-2)}.selections-data-table{min-width:1000px}}@media (max-width: 968px){.selections-header{flex-direction:column;align-items:stretch}.selections-stats{width:100%}.stats-card{justify-content:space-between}.selections-controls{width:100%;justify-content:flex-start}}@media (max-width: 768px){.selections-grid{padding:0 var(--space-2) var(--space-4);font-size:15px}.selections-controls,.control-group{flex-direction:column;align-items:stretch}.filter-select,.search-input{width:100%}.filter-block{order:1}.filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}.mobile-filter-header{display:flex}.selections-mobile-filters{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transition:max-height var(--transition-normal),opacity var(--transition-fast);width:100%;flex-direction:column}.selections-mobile-filters.expanded{max-height:200px;opacity:1;pointer-events:auto}.header-search-wrapper{order:2}.floating-divider,.header-stats-row{display:none}.selections-data-table{min-width:0;width:100%;display:block}.selections-table-container{display:flex;flex-direction:column;gap:var(--space-3);padding:0;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.selection-card{background:var(--bg-primary);border:1px solid var(--border-light);border-radius:var(--radius-lg);margin:0;overflow:hidden;box-shadow:var(--shadow-sm);width:100%;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;min-height:220px}.card-header{background:var(--vibe-gradient);color:#fff;padding:var(--space-1) var(--space-2);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--space-1);flex-wrap:wrap;min-height:0;text-shadow:0 2px 4px rgba(0,0,0,.7)}.card-header *{line-height:1.2;font-weight:500;color:#fff}.card-race{font-size:var(--text-sm);font-weight:var(--font-semibold);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-runner{font-size:var(--text-sm);font-weight:var(--font-medium);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-bookmaker{flex-shrink:0;margin-left:auto}.card-result{flex-shrink:0;display:flex;align-items:center}.card-result-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .75rem;border-radius:var(--radius-full);font-size:var(--text-xs);font-weight:var(--font-semibold);text-transform:uppercase;color:#fff}.card-result-pill .result-pill-text{display:inline-block}.card-result-pill.result-win{background:#16a34a}.card-result-pill.result-place{background:#ea580c}.card-result-pill.result-loss{background:#dc2626}.card-result-pill.result-nonrunner{background:#6b7280}.card-result-pill.result-torun{background:#8b5cf6}.card-content{padding:var(--space-3);flex:1;display:flex;flex-direction:column;justify-content:space-between}.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-2);place-items:start center}.card-item{display:flex;flex-direction:column;gap:var(--space-1);text-align:center;width:100%}.card-spacer{visibility:hidden;height:0;margin:0;padding:0;pointer-events:none}.card-action-cell{justify-self:end;align-self:end;padding:0}.card-action-cell .card-value{display:flex;justify-content:flex-end;width:100%;padding-right:var(--space-1)}.card-action-cell .card-label{display:none}.card-action-cell .remove-btn{color:var(--error);border:1px solid rgba(220,38,38,.6);border-radius:var(--radius-sm);padding:.35rem .65rem}.card-label{font-size:.7rem;font-weight:400;color:var(--text-secondary);font-variant:small-caps;text-transform:uppercase;letter-spacing:1px}.card-value{font-size:16px;color:var(--text-primary);word-break:break-word;font-family:Space Mono,SFMono-Regular,Roboto Mono,Menlo,monospace;font-variant-numeric:tabular-nums;font-weight:600;display:flex;align-items:center;justify-content:center;min-height:28px}.card-value.card-value-odds,.card-value.card-value-live,.card-value.card-value-change,.card-value.card-value-ev,.card-value.card-value-odds.editable-cell input{font-size:18px;font-weight:700}.card-value.card-value-ev{color:var(--text-primary)}.card-value.card-value-live .odds-current,.card-value.card-value-live .odds-arrow{font-variant-numeric:tabular-nums}.remove-btn{background:none;border:none;color:var(--error);cursor:pointer;padding:var(--space-1);border-radius:var(--radius-sm);transition:all var(--transition-fast)}.remove-btn:hover{background:var(--error);color:#fff}.win-result-card,.place-result-card,.loss-result-card,.nonrunner-result-card,.torun-result-card{border-left:none}}:root{--race-modal-silk-width: 56px}body .race-details-modal .odds-table th,body .race-details-modal .odds-table td{margin:0;box-sizing:border-box}.race-details-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:var(--z-modal);opacity:0;transition:opacity var(--transition-base)}.race-details-modal.show{opacity:1}.race-details-content{background:var(--bg-secondary);border-radius:var(--radius-2xl);box-shadow:var(--shadow-xl);width:fit-content;max-width:min(1600px,96vw);max-height:85vh;display:flex;flex-direction:column;align-self:center;padding:0;box-sizing:border-box;transform:translateY(10px);transition:transform var(--transition-base);overflow:hidden}.race-details-modal.show .race-details-content{transform:translateY(0)}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;padding:var(--space-2) 0;background:var(--vibe-gradient);color:#fff;border-radius:var(--radius-2xl) var(--radius-2xl) 0 0}.race-header-info{padding:0 var(--space-6)}.race-header-info h2{margin:0 0 var(--space-2);font-size:var(--text-2xl);font-weight:var(--font-bold);color:#fff}.race-meta{display:flex;gap:var(--space-4);flex-wrap:wrap}.meta-item{background:#fff3;padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);font-size:var(--text-sm);font-weight:var(--font-medium);color:#fff}.modal-actions{display:flex;gap:var(--space-2);padding:0 var(--space-6)}.modal-btn{width:44px;height:44px;border:1px solid rgba(255,255,255,.3);background:#ffffff80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius-lg);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}.modal-btn:hover{background:#fff9;border-color:#fff6;transform:scale(1.05)}.modal-close{background:#00000080;border:1px solid rgba(255,255,255,.3);color:#fff;width:44px;height:44px;border-radius:var(--radius-lg);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}.modal-close:hover{background:#000000b3;border-color:#ffffff80;transform:scale(1.05)}.modal-body{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0;overflow-y:auto;border-radius:0;background:var(--bg-primary);position:relative;max-height:calc(85vh - 140px)}.odds-table-container{flex:1;width:100%;overflow:hidden;padding:0;min-height:0;display:flex;flex-direction:column}.odds-table-scroll{height:100%;overflow-x:auto;overflow-y:auto;border-radius:0;background:var(--bg-primary);position:relative;max-height:calc(85vh - 140px)}.race-details-modal table.odds-table{width:auto;width:max-content;table-layout:fixed!important;border-collapse:collapse;background:var(--bg-primary);box-sizing:border-box}.race-details-modal .odds-table *{box-sizing:border-box}.race-details-modal .odds-table thead{background:var(--bg-tertiary);display:table-header-group!important}.race-details-modal .odds-table tbody{display:table-row-group!important}.race-details-modal .odds-table tr{display:table-row!important}.race-details-modal .odds-table th{font-weight:600;font-size:13px;color:#6b7280;vertical-align:middle;height:50px}.race-details-modal .odds-table td{vertical-align:middle;min-height:50px;height:50px}.odds-table tbody tr:hover{background:var(--bg-hover)}.race-details-modal .odds-table th,.race-details-modal .odds-table td{padding:0!important;margin:0!important;position:static!important;float:none!important;display:table-cell!important}.race-details-modal .odds-table th.col-runner,.race-details-modal .odds-table td.col-runner{width:230px!important;min-width:230px!important;max-width:230px!important;padding:10px!important;margin:0!important;position:relative;text-align:left!important;box-sizing:border-box!important;overflow:visible!important;display:table-cell!important}.race-details-modal .odds-table th.col-runner{background:var(--bg-tertiary);font-weight:600}.race-details-modal .odds-table td.col-runner{background:var(--bg-primary)}.race-details-modal .odds-table th.col-odds,.race-details-modal .odds-table td.col-odds{width:110px!important;min-width:110px!important;max-width:110px!important;padding:0!important;margin:0!important;text-align:center!important;vertical-align:middle!important;box-sizing:border-box!important;display:table-cell!important}.race-details-modal .odds-table th.col-odds{background:var(--bg-tertiary)}.race-details-modal .odds-table td.col-odds{background:var(--bg-primary);text-align:center!important;vertical-align:middle!important;height:50px}.runner-name-line{display:flex;align-items:center;max-width:100%;overflow:hidden}.runner-content{display:flex;align-items:center;gap:8px;width:100%;max-width:210px;padding:0;box-sizing:border-box;overflow:visible}.runner-silk-wrapper{flex-shrink:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center;background:var(--bg-tertiary);border-radius:var(--radius-sm)}.runner-details-block{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;overflow:visible;position:relative}.runner-name{font-size:13px;font-weight:600;color:var(--text-primary);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.runner-meta-line{font-size:11px;color:var(--text-tertiary);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bookmaker-header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:var(--space-1);width:100%;height:100%;text-align:center}.bookmaker-logo-container{display:flex;align-items:center;justify-content:center;width:100%}.bookmaker-logo{height:20px;width:auto;max-width:60px;display:block;margin:0 auto;object-fit:contain}.bookmaker-terms{font-size:10px;font-weight:var(--font-medium);color:var(--vibe-primary);background:var(--bg-tertiary);padding:1px 4px;border-radius:var(--radius-full);white-space:nowrap}.bookmaker-timestamp{font-size:10px;color:var(--text-tertiary);white-space:nowrap;line-height:1}.col-odds.best-offer{background:#16a34a1a!important;padding:0!important}.col-odds.best-offer .win-odds{font-weight:600;color:#15803d;font-size:var(--text-base);line-height:1}.col-odds:not(.best-offer) .win-odds{font-weight:var(--font-semibold);color:var(--text-secondary);font-size:var(--text-base);line-height:1}.win-odds{font-size:var(--text-base);line-height:1;font-variant-numeric:tabular-nums}.place-odds{display:none!important}.col-odds.unavailable{color:var(--text-tertiary);font-weight:400}.no-runners-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-16);text-align:center;color:var(--text-secondary)}.no-runners-icon{font-size:4rem;color:var(--text-tertiary);margin-bottom:var(--space-4)}.no-runners-state h3{margin:0 0 var(--space-2);color:var(--text-primary);font-size:var(--text-xl)}.no-runners-state p{margin:0;font-size:var(--text-base)}.runner-tooltip{position:absolute;top:50%;left:100%;transform:translateY(-50%);margin-left:10px;z-index:9999;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s}.col-runner:hover{z-index:1}.col-runner:hover .runner-tooltip{opacity:1;visibility:visible}.tooltip-content{background:var(--bg-primary);border-radius:var(--radius-md);padding:var(--space-3);box-shadow:var(--shadow-xl);min-width:200px;max-width:250px}.tooltip-grid{display:flex;flex-direction:column;gap:2px}.tooltip-item{display:flex;justify-content:space-between;align-items:center;font-size:11px}.tooltip-label{color:var(--text-secondary);font-weight:var(--font-medium)}.tooltip-value{color:var(--text-primary);font-weight:var(--font-semibold);text-align:right}.tooltip-stats{display:flex;gap:var(--space-2);margin-top:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--border-color)}.stat-item{flex:1;text-align:center;padding:var(--space-1)}.stat-label{display:block;font-size:var(--text-xs);color:var(--text-secondary);margin-bottom:var(--space-1)}.stat-value{display:block;font-size:var(--text-lg);font-weight:var(--font-bold);color:var(--vibe-primary)}.runner-silk,.silk-placeholder{width:30px;height:30px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0;background:var(--bg-tertiary)}.bookmaker-logo-wrapper{display:inline-block;border-radius:3px;padding:2px 4px;line-height:0}.bookmaker-logo{height:20px;width:auto;max-width:55px;object-fit:contain;display:block}@media (max-width: 1200px){.race-details-content{width:98vw;max-width:none}.odds-table-container{width:100%}.odds-table{table-layout:fixed}}@media (max-width: 768px){.race-details-content{width:98vw;max-height:90vh}.odds-table-container{width:100%;padding:var(--space-3)}.modal-header{padding:var(--space-4)}.race-header-info h2{font-size:var(--text-xl)}.race-meta{gap:var(--space-2)}.meta-item{font-size:var(--text-xs);padding:var(--space-0-5) var(--space-2)}.modal-actions{gap:var(--space-1)}.modal-btn,.modal-close{width:36px;height:36px}.odds-table th:not(.col-runner),.odds-table td:not(.col-runner){padding:var(--space-1) var(--space-2)}.runner-silk,.silk-placeholder{width:28px;height:28px}.runner-name{font-size:var(--text-xs)}.runner-details,.runner-connections{font-size:10px}.bookmaker-logo{height:18px}.win-odds{font-size:var(--text-sm)}}.runner-row.reserve-runner{background-color:#f59e0b1a!important}.runner-row.reserve-runner:hover{background-color:#f59e0b33!important}.reserve-indicator{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:8px;background-color:#f59e0b;color:#fff;border-radius:50%;font-size:12px;font-weight:600;flex-shrink:0}.runner-row.non-runner{opacity:.5;background-color:#ffffff0d!important}.runner-row.non-runner:hover{background-color:#ffffff1a!important;opacity:.6}.runner-row.non-runner .runner-name{color:#6b7280}.non-runner-indicator{display:inline-flex;align-items:center;justify-content:center;width:20px;height:16px;margin-left:8px;background-color:#e9126a;color:#fff;border-radius:4px;font-size:9px;font-weight:700;flex-shrink:0;letter-spacing:.5px}.col-odds.non-runner-odds{color:#9ca3af;font-weight:600}.value-analysis-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1rem}.value-analysis-modal{background:var(--bg-primary);border-radius:16px;box-shadow:0 25px 50px -12px #00000080;width:100%;max-width:450px;max-height:90vh;overflow:hidden;position:relative;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.25rem .5rem;border-bottom:1px solid var(--border-color)}.modal-title{margin:0;font-size:1rem;font-weight:600;color:#fff}.modal-close{background:none;border:none;color:#fff;cursor:pointer;padding:.25rem;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;font-size:1.25rem}.modal-close:hover{background:var(--bg-secondary);color:#fff}.modal-content{max-height:calc(90vh - 200px);overflow-y:auto;padding:0 1.25rem 1.25rem}.runner-summary{display:flex;align-items:flex-start;justify-content:space-between;padding:1.5rem 0;border-bottom:1px solid var(--border-color);margin-bottom:1.5rem}.runner-info h3{margin:0 0 .5rem;font-size:1.25rem;font-weight:600;color:var(--text-primary)}.value-analysis-modal .runner-details{display:flex;align-items:center;gap:.5rem;color:var(--text-secondary);font-size:.875rem}.finish-position{font-weight:600;color:var(--accent-primary)}.value-analysis-modal .section-title{font-size:.875rem;font-weight:600;color:var(--text-primary);margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}.value-analysis-modal .bookmaker-detail{margin-bottom:1rem;border-bottom:1px solid var(--border-color);padding-bottom:.75rem}.value-analysis-modal .bookmaker-detail:last-child{border-bottom:none;margin-bottom:0}.value-analysis-modal .bookmaker-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;background:var(--bg-secondary);border-radius:6px;padding:.5rem .75rem;margin-bottom:.5rem}.value-analysis-modal .bookmaker-name{font-weight:600;color:var(--text-primary);font-size:.875rem;display:flex;align-items:center;gap:.5rem}.value-analysis-modal .bookmaker-logo-wrapper{display:inline-block;border-radius:3px;padding:2px 4px;line-height:0}.value-analysis-modal .bookmaker-logo{height:24px;width:auto;max-width:60px;object-fit:contain;display:block}.value-analysis-modal .bookmaker-best-ev{font-weight:700;color:var(--success-color);font-size:1rem}.value-analysis-modal .bookmaker-places{font-size:.75rem;color:var(--text-secondary)}.value-analysis-modal .bookmaker-appearances{padding:0}.value-analysis-modal .appearances-header{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem;padding:.375rem .5rem;font-size:.65rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;background:var(--bg-tertiary);border-radius:4px;margin-bottom:.25rem}.value-analysis-modal .appearance-item{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem;padding:.25rem .5rem;font-size:.8rem;border-radius:3px}.value-analysis-modal .appearance-item:nth-child(2n){background:var(--bg-secondary)}.value-analysis-modal .appearance-time{color:var(--text-secondary)}.value-analysis-modal .appearance-ev{font-weight:600;color:var(--success-color)}.value-analysis-modal .appearance-odds{font-weight:500;color:var(--text-primary)}.value-analysis-modal .more-appearances{text-align:center;padding:.375rem 0;font-size:.7rem;color:var(--text-muted);font-style:italic}.value-analysis-modal .no-data{text-align:center;padding:1.5rem;color:var(--text-secondary);font-style:italic;font-size:.875rem}.outcome-card{background:var(--bg-secondary);border-radius:12px;padding:1rem}.outcome-result{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.outcome-icon{font-size:1.5rem}.outcome-text{font-weight:600;font-size:1rem}.outcome-details{color:var(--text-secondary);font-size:.875rem}.outcome-win{color:var(--success-color)}.outcome-place{color:var(--info-color)}.outcome-loss{color:var(--error-color)}.timeline-info{background:var(--bg-secondary);border-radius:12px;padding:1rem;display:flex;justify-content:space-between;align-items:center}.timeline-period{font-weight:600;color:var(--text-primary)}.timeline-range{color:var(--text-secondary);font-size:.875rem}.bookmakers-list{display:flex;flex-direction:column;gap:.75rem}.bookmaker-card{background:var(--bg-secondary);border-radius:12px;padding:1rem;transition:all .2s ease}.bookmaker-card:hover{background:var(--bg-tertiary)}.bookmaker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.bookmaker-info{display:flex;align-items:center;gap:.75rem}.bookmaker-info .bookmaker-name{font-weight:600;color:var(--text-primary)}.bookmaker-odds{font-weight:600;color:var(--accent-primary);font-size:.875rem}.ev-badge{padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;color:#fff}.ev-excellent{background:linear-gradient(135deg,#059669,#10b981)}.ev-high{background:linear-gradient(135deg,#0d9488,#14b8a6)}.ev-good{background:linear-gradient(135deg,#0ea5e9,#3b82f6)}.ev-okay{background:linear-gradient(135deg,#6366f1,#8b5cf6)}.bookmaker-details{display:flex;align-items:center;gap:.5rem;color:var(--text-secondary);font-size:.75rem}.places-info{font-weight:500}@media (max-width: 640px){.value-analysis-modal{margin:1rem;max-width:calc(100% - 2rem)}.modal-header{padding:1rem 1rem .75rem}.modal-content{padding:0 1rem 1rem}.bookmaker-header{flex-direction:column;align-items:flex-start;gap:.5rem}}body.dark-mode .value-analysis-modal{background:var(--bg-primary-dark);color:var(--text-primary-dark)}body.dark-mode .modal-header,body.dark-mode .runner-summary{border-bottom-color:var(--border-color-dark)}body.dark-mode .outcome-card,body.dark-mode .timeline-info,body.dark-mode .bookmaker-card{background:var(--bg-secondary-dark)}body.dark-mode .bookmaker-card:hover{background:var(--bg-tertiary-dark)}.value-analysis-modal:focus-within{outline:none}.modal-close:focus{outline:2px solid var(--accent-primary);outline-offset:2px}@media (max-width: 640px){@keyframes modalSlideIn{0%{opacity:0;transform:translateY(100px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}}
