*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;min-height:100vh;overflow-x:hidden}body{font-family:SF Pro Display,SF Pro Text,-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.5;background-color:#fff;color:#1e293b;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;max-width:100%;min-height:100vh;display:flex;flex-direction:column;align-items:flex-start}.auth-container{min-height:100vh;display:flex;justify-content:center;align-items:center;background-color:#f8fafc;padding:2rem;box-sizing:border-box}.auth-box{background-color:#fff;padding:2rem 2.5rem;border-radius:8px;border:1px solid #e2e8f0;max-width:400px;width:100%;box-shadow:0 1px 3px #0000000f}.auth-title{font-size:1.5rem;font-weight:600;color:#1e293b;text-align:center;margin:0 0 1.5rem}.auth-error{background-color:#fef2f2;color:#b91c1c;padding:.75rem 1rem;border-radius:6px;margin-bottom:1.25rem;border:1px solid #fecaca;font-size:14px}.auth-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.375rem}.form-group label{font-weight:500;color:#1e293b;font-size:14px}.form-group input{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px;color:#1e293b;background-color:#fff;transition:border-color .2s;box-sizing:border-box;height:38px}.form-group input::placeholder{color:#94a3b8}.form-group input:focus{outline:none;border-color:#1e293b}.form-group input:disabled{background-color:#f1f5f9;cursor:not-allowed;color:#64748b}.auth-sex-options{display:flex;gap:1rem;flex-wrap:wrap}.auth-sex-option{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;font-size:14px;color:#1e293b}.auth-sex-option input{width:auto;height:auto;margin:0}.auth-box .btn{padding:8px 16px;font-size:14px;font-weight:500;border-radius:6px;cursor:pointer;transition:all .2s;border:1px solid #1e293b;min-height:38px;display:inline-flex;align-items:center;justify-content:center;text-transform:none;letter-spacing:normal}.auth-box .btn-primary{background-color:#1e293b;color:#fff;border-color:#1e293b}.auth-box .btn-primary:hover:not(:disabled){background-color:#1e293b;border-color:#1e293b}.auth-box .btn-primary:disabled{opacity:.6;cursor:not-allowed}.auth-footer{text-align:center;margin-top:1.25rem;color:#64748b;font-size:14px}.auth-footer a{color:#1e293b;text-decoration:none;font-weight:500}.auth-footer a:hover{color:#1e293b;text-decoration:underline}.auth-divider{text-align:center;color:#64748b;font-size:13px;margin:1rem 0}.auth-social{display:flex;flex-direction:column;gap:10px;margin-bottom:.5rem}.auth-social-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;font-size:14px;font-weight:500;border-radius:6px;border:1px solid #e2e8f0;cursor:pointer;transition:all .2s;min-height:42px;width:100%;box-sizing:border-box}.auth-social-btn:hover:not(:disabled){filter:brightness(.97)}.auth-social-btn:disabled{opacity:.6;cursor:not-allowed}.auth-social-google{background-color:#fff;color:#1f1f1f}.auth-social-facebook{background-color:#1877f2;color:#fff;border-color:#1877f2}.auth-social-apple{background-color:#1e293b;color:#fff;border-color:#1e293b}.auth-error-text{color:#64748b;font-size:14px;margin:0 0 1rem}.auth-image-upload{display:flex;flex-direction:column;gap:.75rem}.auth-image-preview{display:flex;justify-content:center}.auth-avatar-preview{width:80px;height:80px;object-fit:cover;border:2px solid #e2e8f0}.auth-image-actions{display:flex;gap:.5rem;justify-content:center}.auth-box .btn-sm{padding:6px 12px;font-size:13px;min-height:32px}.auth-box .btn-secondary{background-color:#fff;color:#1e293b}.auth-box .btn-secondary:hover:not(:disabled){background-color:#f1f5f9}.auth-box .btn-outline{background-color:transparent;color:#64748b;border-color:#e2e8f0}.auth-box .btn-outline:hover:not(:disabled){background-color:#f8fafc;border-color:#cbd5e1}.auth-image-hint{color:#94a3b8;font-size:12px;text-align:center}:root{--color-primary: #1e293b;--color-primary-light: #0f172a;--color-secondary: #64748b;--color-border: #e2e8f0;--color-bg: #ffffff;--color-bg-light: #f8fafc;--color-bg-lighter: #f1f5f9;--color-text-muted: #94a3b8;--color-success: #1e293b;--color-success-hover: #0f172a;--color-info: #3b82f6;--color-info-light: #eff6ff;--color-info-lighter: #dbeafe;--color-danger: #ef4444;--color-danger-light: #fef2f2;--color-black: #020617;--color-white: #ffffff}:root{--font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: ui-monospace, SFMono-Regular, "SF Mono", monospace}:root{--board-size: 470px;--opponents-width: 130px;--opponents-width-collapsed: 44px;--panel-width: 660px;--avatar-size: 72px;--avatar-small: 40px}:root{--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 12px;--spacing-lg: 16px;--spacing-xl: 20px;--spacing-2xl: 24px}:root{--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px}.dashboard{display:flex;flex-direction:column;height:100vh;min-height:0;background-color:#fff;max-width:1310px;margin:0 auto;width:100%}.dashboard-sidebar{flex-shrink:0;width:100%;display:flex;flex-direction:row;align-items:stretch;background-color:#fff;box-sizing:border-box;position:relative}.dashboard-sidebar:after{content:"";position:absolute;left:0;right:24px;bottom:0;height:1px;background-color:#e2e8f0}.dashboard-sidebar .sidebar-col{display:flex;align-items:center;min-width:0}.dashboard-sidebar .sidebar-col-brand{flex-shrink:0;padding:10px 13px 10px 19px}.dashboard-sidebar .sidebar-col-right{flex:1;flex-direction:column;align-items:stretch;justify-content:space-between;padding:12px 24px 12px 0}.dashboard-sidebar .sidebar-user-info{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0;margin-bottom:8px}.dashboard-sidebar .sidebar-display-name{font-size:14px;font-weight:500;color:#1e293b;margin:0}.dashboard-sidebar .sidebar-menu-row{display:flex;justify-content:flex-end;align-items:center;min-width:0}.dashboard-sidebar .sidebar-menu-row .sidebar-menu{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:flex-end}.dashboard-sidebar .sidebar-brand{display:flex;align-items:center;gap:10px;flex-shrink:0;background-color:#1e293b;padding:5px 11px 5px 19px;margin-left:-24px;border-radius:6px}.dashboard-sidebar .sidebar-logo{display:block;flex-shrink:0;border-radius:40px;margin-left:-10px}.dashboard-sidebar .sidebar-site-name{font-family:SF Pro Display,SF Pro Text,-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:2.2rem;font-weight:400;letter-spacing:.12em;white-space:nowrap;display:inline-flex}.dashboard-sidebar .sidebar-site-name-white{color:#fff}.dashboard-sidebar .sidebar-site-name-chess-wrap{display:inline-flex;background-color:#fff;padding:2px 5px;margin:0 2px;border-radius:3px}.dashboard-sidebar .sidebar-site-name-black{color:#1e293b}.dashboard-sidebar .sidebar-site-name-space{display:inline-block;padding-left:.35em}.dashboard-sidebar .sidebar-menu-row li{padding:4px 16px;cursor:pointer;transition:background-color .2s,color .2s;color:#64748b;font-weight:500;font-size:14px;border-radius:6px;text-align:center}.dashboard-sidebar .sidebar-menu-row li:hover{color:#1e293b;background-color:#f1f5f9}.dashboard-sidebar .sidebar-menu-row li.sidebar-item-active,.dashboard-sidebar .sidebar-menu-row li.sidebar-item-active:hover{color:#fff;background-color:#1e293b}.dashboard-header{flex-shrink:0;background-color:#fff;border-bottom:1px solid #e2e8f0}.dashboard-header-top{padding:16px 24px 0}.dashboard-site-name{margin:0;font-size:1.75rem;font-weight:400;color:#1e293b;letter-spacing:.02em}.dashboard-nav-row{display:flex;align-items:stretch;justify-content:space-between;padding:0 24px}.dashboard-nav{flex:1}.dashboard-user-block{display:flex;align-items:center;gap:12px;padding:0 0 0 16px}.dashboard-user-block .username{display:block;font-size:14px;font-weight:400;color:#1e293b;margin:0}.dashboard-nav ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0}.dashboard-nav li{padding:10px 16px;cursor:pointer;transition:background-color .2s,color .2s;color:#64748b;font-weight:400;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}.dashboard-nav li:hover{color:#1e293b}.dashboard-nav li.dashboard-nav-item-active{color:#1e293b;border-bottom-color:#1e293b}.dashboard-main{flex:1;min-height:0;min-width:0;padding:24px 24px 40px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow-y:auto;overflow-x:hidden}.dashboard-main.dashboard-main-game,.dashboard-main.dashboard-main-tournament{padding-left:0}.dashboard-main.dashboard-main-game-history{padding-left:0;overflow:hidden;display:flex;flex-direction:column}.dashboard-main.dashboard-main-game-history .game-history-view{flex:1 1 0;height:0}.dashboard-main.dashboard-main-game-history-collapsed{padding-left:0;overflow:hidden}.dashboard-main.dashboard-main-game-history-collapsed .game-history-view{flex:1 1 0;height:0}.dashboard-main.dashboard-main-settings{align-items:flex-start;padding-left:0}.dashboard-main.dashboard-main-profile{padding:4px 0 0;align-items:stretch;overflow:hidden;flex:1 1 0;height:0}.dashboard-main.dashboard-main-profile .bot-factory-view{flex:1 1 0;height:0;min-height:0}.bot-factory-view.bot-factory-view-login-only{flex-direction:column;justify-content:flex-start;align-items:center;padding:20px 40px 40px}.bot-factory-view.bot-factory-view-login-only .login-required-notice{margin-top:24px}.dashboard-main.dashboard-main-news{padding:0;overflow:hidden;flex:1 1 0;height:0}.dashboard-main.dashboard-main-news .news-view{flex:1 1 0;height:0;min-height:0}.top-bar{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:12px;margin-bottom:24px}.game-area{display:flex;gap:40px;align-items:stretch;width:100%;justify-content:flex-start;min-height:0}.game-area-three-cols{display:flex;flex-direction:row;gap:12px;align-items:flex-start;width:100%;min-height:0}.game-area.game-area-panel-collapsed.game-area-three-cols{justify-content:center}.game-col{display:flex;flex-direction:column;min-height:0}.game-col-opponents{width:155px;flex-shrink:0;gap:0;align-items:flex-start;position:relative;transition:width .2s ease}.game-col-opponents.game-col-collapsed{width:44px;min-width:44px;margin-right:86px;overflow:visible}.game-col-opponents.game-col-collapsed .game-col-opponents-inner{width:0;min-width:0;overflow:hidden;padding:0}.game-col-opponents-inner{padding-right:36px;min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start}.game-col-opponents .players-names{width:149px;margin-right:0;flex:0 0 470px;height:470px;min-height:470px;padding-bottom:0}.game-col-opponents .fen-buttons-left{margin-top:15px}.game-col-toggle{position:absolute;top:235px;transform:translateY(-50%);width:24px;height:48px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #e2e8f0;background-color:#fff;color:#1e293b;font-size:14px;cursor:pointer;border-radius:6px;transition:background-color .2s,color .2s;z-index:10;flex-shrink:0}.game-col-toggle:hover{background-color:#f1f5f9}.game-col-toggle-left{right:0}.game-col-toggle-right{left:0}.game-col-board{flex-shrink:0;align-items:center}.game-col-panel{flex:1 1 auto;min-width:0;width:660px;max-width:660px;display:flex;flex-direction:column;gap:20px;position:relative;transition:width .2s ease}.game-col-panel.game-col-collapsed{width:44px;min-width:44px;max-width:44px;overflow:hidden}.game-col-panel.game-col-collapsed .game-col-panel-inner{width:0;min-width:0;overflow:hidden;padding:0;flex:none;height:0}.game-col-panel-inner{padding-left:36px;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:20px}.game-col-panel .side-panel-content{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:12px}.chessboard-container{display:flex;flex-direction:row;align-items:stretch;gap:12px}.chessboard-left-column{display:flex;flex-direction:column;align-items:flex-start;width:315px;flex-shrink:0;margin-right:16px;gap:0;align-self:stretch;min-height:0}.chessboard-left-column .players-names{margin-right:0;flex:0 0 470px;height:470px;min-height:470px;padding-bottom:0}.fen-buttons-left{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap;align-self:stretch;margin-top:15px}.chessboard-main{display:flex;flex-direction:column;align-items:center}.chessboard-wrapper{border:1px solid #cbd5e1;border-radius:8px;background:#fff;overflow:visible}.chessboard-wrapper-with-overlay{position:relative}.chessboard-wrapper div[title="Choose promotion piece"]{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:fit-content!important;height:auto!important;border:2px solid #000!important;border-radius:6px!important;padding:5px!important;background-color:#fff!important}.chessboard-wrapper div[title="Choose promotion piece"] img{width:58px!important;height:58px!important}.chessboard-game-result-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#0006;z-index:1001;pointer-events:none}.chessboard-game-result-box{background:#fff;border:3px solid #000000;border-radius:8px;padding:16px 32px;font-size:28px;font-weight:700;color:#000}.chessboard-wrapper-with-overlay:has(div[title="Choose promotion piece"]) .chessboard-highlight-overlay{display:none}.chessboard-highlight-overlay{position:absolute;top:0;left:0;pointer-events:none}.chessboard-highlight-frame{position:absolute;border:2px solid rgb(255,1,1);border-radius:6px;box-sizing:border-box}.chessboard-lastmove-frame{position:absolute;border:2px solid rgb(0,0,0);border-radius:4px;box-sizing:border-box}.chessboard-thinking-frame{position:absolute;border:2px solid rgba(0,108,215,.9);border-radius:6px;box-sizing:border-box;z-index:3}.chessboard-wrapper [style*="fill: #000000"],.chessboard-wrapper [style*="fill:#000000"],.chessboard-wrapper [style*="fill: rgb(0, 0, 0)"],.chessboard-wrapper [style*="fill:rgb(0,0,0)"]{fill:#1e293b!important}.chessboard-with-eval{display:flex;align-items:stretch;position:relative}.chessboard-eval-column{display:flex;flex-direction:column;align-items:center;width:470px;flex-shrink:0}.side-panel{display:flex;flex-direction:column;gap:20px;width:660px;flex:1;min-height:0}.side-panel-content{display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:0}.side-panel-content>.analysis-panel{flex-shrink:0}.side-panel-content>.move-history-section{flex:1 1 auto;min-height:0;max-height:none}.players-names{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;width:315px;margin:0 16px 0 0;flex-shrink:0;align-self:stretch;min-height:0;box-sizing:border-box}.players-names-edge{flex-shrink:0}.player-strip-with-panel{position:relative;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-start}.player-panel-content{width:100%;min-height:200px;display:flex;align-items:stretch;justify-content:flex-start;font-size:14px;color:#64748b;box-sizing:border-box}.player-strip-has-bubble{z-index:1100}.bot-chat-bubble{position:absolute;z-index:1100;max-width:140px;padding:6px 10px;border-radius:10px;background:#1e293b;color:#f8fafc;font-size:12px;line-height:1.3;text-align:center;box-shadow:0 2px 8px #0003;animation:bot-chat-bubble-in .2s ease-out}.bot-chat-bubble-in-card{top:50%;left:58%;margin-left:120px;margin-top:-25px;transform:translate(-50%,-50%);width:max-content;max-width:150px;display:flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;border:1px solid rgba(30,41,59,.2);background:#fffddf;color:#1e293b;box-shadow:0 4px 12px #00000026}.bot-chat-bubble-in-card:after{content:"";position:absolute;width:0;height:0;border:8px solid transparent;bottom:-14px;left:50%;margin-left:-8px;border-top-color:#fffddf}.bot-chat-bubble-portal-wrapper{position:fixed;z-index:99999;pointer-events:none}.bot-chat-bubble-portal .bot-chat-bubble-in-card{position:relative;top:auto;left:auto;margin:0;transform:translate(-50%,-50%)}@keyframes bot-chat-bubble-in{0%{opacity:0}to{opacity:1}}.players-names-edge .player-strip-with-panel:has(.player-opponent-card){align-self:center}.player-name-white,.player-name-black{font-weight:600;font-size:15px;padding:8px 10px;border-radius:8px;border:1px solid #e2e8f0;cursor:pointer;transition:all .2s;flex:0 0 auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;width:315px;height:135px;min-height:135px;background-color:#fff;color:#020617;overflow:visible;text-align:left;position:relative}.player-opponent-card{flex-direction:column!important;width:145px!important;height:145px!important;min-height:145px!important;padding:0!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;overflow:hidden}.player-opponent-card-photo{width:100%;height:95px;min-height:95px;flex-shrink:0;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #e2e8f0;border-radius:8px 8px 0 0}.player-opponent-card-photo .player-name-avatar{width:100%;height:100%;object-fit:contain}.player-opponent-card-photo .player-avatar-placeholder{width:100%;height:100%;min-height:0;background:#fff}.player-opponent-card-info{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:2px 4px;text-align:center}.player-opponent-card-info .player-name-text{font-weight:600;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.2}.player-opponent-card-elo{width:100%;padding:3px 4px 0;font-size:10px;font-weight:500;text-align:center;color:#64748b;text-transform:lowercase;line-height:1.2}.player-opponent-card-translation{font-size:10px;font-weight:400;color:#64748b;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.player-opponent-card-info .player-strip-elo{font-size:9px;font-weight:600;color:#64748b;line-height:1.2}.player-strip-left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;cursor:pointer}.player-strip-right{flex:0 0 auto;width:72px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;cursor:pointer}.player-strip-avatar-wrap{width:72px;height:72px;border-radius:6px;overflow:hidden;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0}.player-strip-avatar-wrap .player-name-avatar{width:100%;height:100%;object-fit:cover}.player-strip-avatar-wrap .player-avatar-placeholder{width:100%;height:100%;min-height:0}.player-strip-elo{font-size:11px;font-weight:600;color:#64748b;line-height:1.2}.player-color-dot{width:14px;height:14px;border-radius:50%;position:absolute;top:6px;left:6px;flex-shrink:0;border:1px solid #0f172a}.player-color-dot-white{background-color:#fff}.player-color-dot-black{background-color:#020617}.player-avatar-wrap{width:80px;height:80px;flex:0 0 auto;overflow:hidden;border-radius:6px;background:#f1f5f9;display:flex;align-items:center;justify-content:center}.player-name-avatar{width:100%;height:100%;object-fit:contain;display:block}.player-avatar-placeholder{width:100%;height:100%;min-height:56px;background:#fff}.player-name-right{flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-start;padding:0 2px 0 8px;margin-left:22px;margin-top:-2px;min-width:0;text-align:left}.player-side-label{font-size:12px;font-weight:500;color:#64748b;line-height:1.2;margin-bottom:2px}.player-name-row{display:flex;align-items:center;justify-content:center;gap:8px}.player-strip-left .player-name-row{width:100%;justify-content:flex-start;gap:4px}.player-strip-left .player-name-row .player-name-text{flex:1;min-width:0}.player-strip-left .player-name-text{font-weight:600;font-size:15px;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;display:block;line-height:1.25}.player-strip-left .player-description{font-weight:400;font-size:12px;color:#64748b;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.player-name-text{flex:1;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis}.player-description{margin-top:4px;font-size:12px;color:#64748b;line-height:1.3;overflow:hidden;text-overflow:ellipsis}.expand-icon{font-size:12px;opacity:.7;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.expand-icon:hover{background-color:#0000001a;opacity:1}.player-name-white:hover,.player-name-black:hover{border-color:#e2e8f0}.opponents-panel{width:320px;background:#fff;border-radius:8px;padding:20px;border:1px solid #e2e8f0;max-height:580px;overflow-y:auto}.opponents-title{margin:0 0 15px;font-size:18px;font-weight:600;color:#1e293b;border-bottom:1px solid #e2e8f0;padding-bottom:10px}.opponents-list{display:flex;flex-direction:column;gap:12px}.opponent-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:15px;cursor:pointer;transition:all .2s;cursor:grab}.opponent-card:active{cursor:grabbing}.opponent-card:hover{border-color:#3b82f6;background:#eff6ff}.opponent-card.selected{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 3px #3b82f633}.opponent-name{font-size:16px;font-weight:600;color:#1e293b;margin-bottom:6px}.opponent-description{font-size:13px;color:#64748b;margin-bottom:8px;line-height:1.4}.opponent-elo{font-size:12px;color:#3b82f6;font-weight:600}.players-names-swap{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:0}.swap-colors-button{width:32px;height:32px;border-radius:50%;border:1px solid #e2e8f0;background:#fff;color:#64748b;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;padding:0}.swap-colors-button:hover{background:#f1f5f9;border-color:#cbd5e1;color:#1e293b}.game-panel{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:20px 24px;display:flex;align-items:flex-start;justify-content:center;box-shadow:0 10px 25px #0f172a0f;max-width:100%;box-sizing:border-box;margin:0}.analysis-panel{background:#fff;border-radius:8px;padding:10px 12px;border:1px solid #e2e8f0}.analysis-panel-unified .analysis-panel-header{margin-bottom:8px}.analysis-panel-unified-content{display:flex;flex-direction:column;gap:4px}.analysis-panel-unified{padding-bottom:0}.analysis-inline-section{margin:0}.analysis-inline-section-label{display:flex;align-items:baseline;flex-wrap:wrap;gap:0;font-size:14px;font-weight:600;color:#1e293b;margin-bottom:4px}.analysis-inline-section-label .analysis-panel-header-title{width:100px;min-width:100px;flex-shrink:0}.analysis-inline-section-label .analysis-panel-header-eval{flex:1 1 auto;min-width:0;font-weight:400}.analysis-inline-section .analysis-panel-content{min-height:1.5em;max-height:36px;padding:2px 0}.analysis-panel-header{display:flex;align-items:baseline;flex-wrap:wrap;gap:0;font-size:14px;font-weight:600;color:#1e293b;margin-bottom:4px}.analysis-panel-header-title{width:100px;min-width:100px;flex-shrink:0}.analysis-panel-header-eval{flex:1 1 auto;min-width:0;font-weight:400}.analysis-panel-content{font-size:13px;font-family:ui-monospace,SFMono-Regular,monospace;color:#64748b;line-height:1.5;word-break:break-word;min-height:1.5em;max-height:52px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}.analysis-panel-content::-webkit-scrollbar{display:none}.analysis-empty{font-size:13px;font-family:ui-monospace,SFMono-Regular,monospace;color:#94a3b8;font-style:italic}.analysis-meta{font-size:12px;color:#64748b;margin-bottom:8px}.analysis-meta strong{font-weight:600;color:#1e293b}.analysis-meta strong{font-weight:700;color:#2d3748}.analysis-opening{font-size:12px;color:#64748b;margin-bottom:6px;font-style:italic}.analysis-best-line{font-weight:600;color:#1e293b;margin-bottom:6px}.analysis-total-time{font-size:12px;color:#64748b;margin-bottom:8px;padding:6px 10px;background-color:#f8fafc;border-radius:6px;border:1px solid #e2e8f0}.analysis-additional-moves{margin-top:10px;padding-top:10px;border-top:1px solid #e5e7eb}.analysis-panel-content .continuous-eval-meta.analysis-panel-line{margin-top:0;margin-bottom:4px;max-width:none}.analysis-panel-content .continuous-eval-meta.analysis-panel-line+.continuous-eval-meta.analysis-panel-line,.analysis-additional-moves .continuous-eval-meta.analysis-panel-line{margin-top:6px}.move-history-section{background:#fff;border-radius:8px;padding:16px;border:1px solid #e2e8f0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:column;min-height:0;box-sizing:border-box;max-width:100%}.move-history-section::-webkit-scrollbar{display:none}.move-history-save-row{display:flex;justify-content:flex-end;margin-top:auto;margin-bottom:-2px;transform:translateY(-2px);flex-shrink:0}.move-history-save-btn{min-width:100px}.move-history-save-btn:disabled{cursor:not-allowed;opacity:.65}.move-history-header{display:flex;align-items:center;justify-content:space-between;position:relative;font-size:14px;font-weight:600;color:#1e293b;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}.move-history-header-left{flex:1;min-width:0;text-align:left}.move-history-header-center{position:absolute;left:50%;transform:translate(-50%);pointer-events:none;font-size:1.15rem}.move-history-header-right{flex:1;min-width:0}.move-history-header-name-desc{margin-bottom:4px}.move-history-header-name{font-weight:600;font-size:14px;color:#1e293b;display:block}.move-history-header-description{font-weight:400;font-size:12px;color:#64748b;display:block;margin-top:2px}.move-history-header-date{font-weight:300;font-size:12px;color:#64748b;margin-bottom:4px}.move-history-header-players{font-weight:600;font-size:14px;color:#1e293b}.move-history-content{position:relative;min-height:2.5em;font-size:13px;font-family:ui-monospace,SFMono-Regular,monospace;color:#64748b;line-height:1.8;word-break:break-word}.move-pair{display:inline-block;margin-right:12px}.move-number{color:#94a3b8;font-size:12px;margin-right:4px}.move-text{color:#1e293b;cursor:pointer;padding:2px 4px;border-radius:4px;transition:background-color .2s}.move-text:hover{background-color:#f1f5f9}.move-text.active-move{background-color:#3b82f6;color:#fff;font-weight:600}.admin-view{width:100%;flex:1;padding:0 40px 40px}.admin-view h2{margin:0 0 16px;font-size:1.5rem;font-weight:600;color:#1e293b}.admin-view-description{margin:0 0 24px;color:#64748b}.admin-opponents-header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.admin-opponents-title{margin:0;font-size:1.2rem;font-weight:600;color:#1e293b}.admin-add-opponent-btn{padding:8px 16px;font-size:.95rem;font-weight:500;color:#fff;background:#1e293b;border:none;border-radius:6px;cursor:pointer}.admin-add-opponent-btn:hover{background:#0f172a}.admin-loading{color:#64748b;margin:0}.admin-opponents-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.admin-opponent-card{display:flex;background:#fff;border-radius:8px;border:1px solid #e2e8f0;overflow:hidden}.admin-opponent-card-image{width:100px;min-width:100px;height:100px;background:#e2e8f0}.admin-opponent-card-image img{width:100%;height:100%;object-fit:cover}.admin-opponent-card-placeholder{width:100%;height:100%;background:#cbd5e0}.admin-opponent-card-body{padding:12px 16px;flex:1;min-width:0}.admin-opponent-card-name{font-weight:600;font-size:1rem;margin-bottom:4px;color:#1e293b}.admin-opponent-card-elo{font-size:.9rem;color:#64748b;margin-bottom:8px}.admin-opponent-card-description{font-size:.85rem;color:#64748b;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.admin-opponent-edit-btn{padding:6px 12px;font-size:.85rem;background:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;cursor:pointer;font-weight:500}.admin-opponent-edit-btn:hover{background:#f8fafc}.admin-edit-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.admin-edit-dialog{background:#fff;border-radius:8px;padding:24px;max-width:1200px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e2e8f0}.admin-edit-dialog h3{margin:0 0 20px;font-size:1.2rem;font-weight:600;color:#1e293b;flex-shrink:0}.admin-edit-dialog-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px 32px;align-items:stretch;flex:1;min-height:0}.admin-edit-dialog-col{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0}.admin-edit-dialog-col .admin-edit-field{margin-bottom:16px}.admin-edit-dialog-col .admin-edit-field:last-child{margin-bottom:0}.admin-edit-dialog-col .admin-edit-translations{flex:1;min-height:0;margin-bottom:0;display:flex;flex-direction:column;overflow:hidden;width:100%}.admin-edit-dialog-col .admin-edit-translations>label{flex-shrink:0}.admin-edit-dialog-col .admin-edit-translations .admin-edit-translations-body{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}.admin-edit-dialog-col .admin-edit-translations .admin-edit-translations-body .admin-edit-translation-block{flex:1;min-height:0;min-width:0;margin-bottom:0;display:flex;flex-direction:column;overflow:hidden}.admin-edit-dialog-col .admin-edit-translations .admin-edit-translation-fields{flex:1;min-height:0;min-width:0;width:100%;display:flex;flex-direction:column;overflow:hidden}.admin-edit-dialog-col .admin-edit-translations .admin-edit-translation-name,.admin-edit-dialog-col .admin-edit-translations .admin-edit-translation-description{min-width:0;width:100%;box-sizing:border-box}.admin-edit-dialog-col .admin-edit-translations .admin-edit-translation-description{flex:1;min-height:4em;resize:vertical;width:100%}.admin-edit-name-row{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.admin-edit-name-row label{margin-bottom:0}.admin-edit-name-input{width:100%;max-width:280px;padding:8px 10px;font-size:1rem;border:1px solid #e2e8f0;border-radius:6px;box-sizing:border-box}.admin-edit-name-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.admin-edit-photo-row,.admin-edit-elo-row{flex-shrink:0;margin-top:12px}.admin-edit-photo-elo-row{display:flex;align-items:flex-start;gap:24px;margin-bottom:16px}.admin-edit-photo-block{flex-shrink:0;margin-bottom:0}.admin-edit-photo-with-button{display:flex;align-items:flex-end;gap:10px}.admin-edit-photo-with-button .admin-edit-image-preview-wrap{margin-bottom:0}.admin-edit-file-input-hidden{position:absolute;width:0;height:0;opacity:0;overflow:hidden;pointer-events:none}.admin-edit-file-label{display:inline-block;padding:6px 12px;font-size:.9rem;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#475569;cursor:pointer}.admin-edit-file-label:hover{background:#f1f5f9;border-color:#cbd5e1}.admin-edit-elo-inline{flex:1;min-width:0;margin-bottom:0;display:flex;align-items:center;gap:10px}.admin-edit-elo-inline label{flex-shrink:0;margin-bottom:0}.admin-edit-elo-inline input{width:100%;max-width:120px}.admin-edit-field-json{display:flex;flex-direction:column;flex:1;min-height:0}.admin-edit-field-json .admin-edit-json{flex:1;min-height:120px;resize:none}.admin-edit-bot-chats{margin-top:16px}.admin-edit-bot-chats-hint{font-size:.8rem;color:#64748b;margin:4px 0 10px}.admin-edit-bot-chats-locale{margin-bottom:12px}.admin-edit-bot-chats-locale-label{display:inline-block;font-weight:600;font-size:.85rem;margin-bottom:6px;color:#475569}.admin-edit-bot-chats-json{width:100%;min-height:120px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-family:ui-monospace,monospace;font-size:.8rem;box-sizing:border-box;resize:vertical}.admin-edit-bot-chats-error{margin:4px 0 0;font-size:.8rem;color:#dc2626}.admin-edit-bot-chats-entries{display:flex;flex-direction:column;gap:6px}.admin-edit-bot-chats-row{display:flex;gap:8px;align-items:center}.admin-edit-bot-chats-key{width:80px;min-width:60px;padding:6px 8px;border:1px solid #e2e8f0;border-radius:6px;font-size:.85rem;box-sizing:border-box}.admin-edit-bot-chats-value{flex:1;min-width:0;padding:6px 8px;border:1px solid #e2e8f0;border-radius:6px;font-size:.85rem;box-sizing:border-box}.admin-edit-bot-chats-remove{flex-shrink:0;width:32px;height:32px;padding:0;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#64748b;font-size:1.2rem;line-height:1;cursor:pointer}.admin-edit-bot-chats-remove:hover{background:#fee2e2;color:#dc2626;border-color:#fecaca}.admin-edit-bot-chats-add{align-self:flex-start;padding:6px 12px;font-size:.85rem;border:1px dashed #cbd5e1;border-radius:6px;background:#f8fafc;color:#475569;cursor:pointer}.admin-edit-bot-chats-add:hover{background:#f1f5f9;border-color:#94a3b8}.admin-edit-field{margin-bottom:16px}.admin-edit-field label{display:block;font-weight:500;margin-bottom:6px;font-size:.9rem;color:#1e293b}.admin-edit-field textarea,.admin-edit-field input[type=text],.admin-edit-field input[type=number]{width:100%;padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;box-sizing:border-box;background-color:#fff}.admin-edit-field input[type=file]{font-size:.9rem}.admin-edit-translations .admin-edit-translation-block{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}.admin-edit-translations .admin-edit-translation-block:last-child{margin-bottom:0}.admin-edit-translation-locale{flex-shrink:0;font-weight:600;width:28px;padding-top:10px;color:#64748b}.admin-edit-translation-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.admin-edit-translation-fields .admin-edit-translation-name{width:100%;box-sizing:border-box}.admin-edit-translation-fields .admin-edit-translation-description{width:100%;min-height:0;resize:vertical;font-size:.9rem;box-sizing:border-box}.admin-edit-json{font-family:ui-monospace,monospace;font-size:.8rem}.admin-edit-image-preview-wrap{margin-bottom:10px}.admin-edit-image-preview{width:100px;height:100px;border-radius:6px;overflow:hidden;background:#f1f5f9;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center}.admin-edit-image-preview img{width:100%;height:100%;object-fit:cover}.admin-edit-image-placeholder{width:100%;height:100%;background:#e2e8f0}.admin-edit-actions{flex-shrink:0;display:flex;gap:12px;justify-content:flex-end;margin-top:24px;padding-top:16px;border-top:1px solid #e2e8f0}.admin-edit-cancel{padding:8px 16px;background:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500}.admin-edit-cancel:hover{background:#f8fafc}.admin-edit-save{padding:8px 16px;background:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500}.admin-edit-save:hover:not(:disabled){background:#f8fafc}.admin-edit-save:disabled{opacity:.7;cursor:not-allowed}.admin-translations-section{margin-top:32px;padding-top:24px;border-top:1px solid #e2e8f0}.admin-translations-section .admin-opponents-title{margin-bottom:4px}.admin-translations-section .admin-view-description{margin-bottom:12px}.admin-translations-table-wrap{overflow-x:auto;margin-top:16px}.admin-translations-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-translations-table th,.admin-translations-table td{padding:8px 10px;border:1px solid #e2e8f0;text-align:left;vertical-align:top}.admin-translations-table th{background:#f1f5f9;font-weight:600;color:#1e293b}.admin-translations-table tbody tr:hover{background:#f8fafc}.admin-translations-opponent-name{font-weight:500;white-space:nowrap}.admin-translations-input{width:100%;min-width:100px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:4px;font-size:.9rem}.admin-translations-input-desc{min-width:140px}.tournament-view{width:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 24px 40px 0}.tournament-view.tournament-view-login-only{justify-content:flex-start;align-items:center}.tournament-view.tournament-view-login-only .login-required-notice{margin-top:24px}.login-required-notice{width:100%;max-width:560px;padding:16px 20px;background-color:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;color:#475569;font-size:14px;line-height:1.5;text-align:center}.tournament-view:not(.tournament-view-login-only) .login-required-notice{margin-bottom:20px}.tournament-view-buttons{display:flex;gap:12px}.tournament-view .new-tournament-button,.tournament-start-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center}.tournament-view .new-tournament-button:hover,.tournament-start-button:hover:not(:disabled){background-color:#f8fafc}.tournament-view .new-tournament-button:disabled,.tournament-start-button:disabled{cursor:not-allowed;opacity:1;background-color:#e2e8f0;color:#94a3b8;border-color:#cbd5e1}.tournament-view .tournament-delete-button{border-color:#1e293b;color:#1e293b;padding:6px}.tournament-view .tournament-delete-button .tournament-delete-icon{display:block;color:#1e293b}.tournament-view .tournament-delete-button:hover:not(:disabled){background-color:#f1f5f9}.tournament-view .tournament-delete-button:disabled{cursor:not-allowed;background-color:#e2e8f0;border-color:#cbd5e1;color:#94a3b8}.tournament-view .tournament-delete-button:disabled .tournament-delete-icon{color:#94a3b8}.tournament-stop-button{background-color:#1e293b;color:#fff;border:1px solid #1e293b;text-align:center;display:inline-flex;align-items:center;justify-content:center}.tournament-stop-button:hover{background-color:#e2e8f0;border-color:#e2e8f0;color:#1e293b}.tournament-view{align-items:stretch;justify-content:flex-start}.tournament-tabs{display:flex;gap:0;margin-top:20px;border-bottom:1px solid #e2e8f0;justify-content:flex-start;width:100%}.tournament-tab{padding:12px 24px;font-size:14px;font-weight:500;color:#64748b;background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .2s,background .2s;margin-bottom:-1px;text-align:center}.tournament-tab:first-child{padding-left:0}.tournament-tab:hover{color:#1e293b;background:#f8fafc}.tournament-tab-active{color:#1e293b;background:transparent;border-bottom-color:#1e293b}.tournament-tab-content{flex:1;min-height:0;overflow:auto;margin-top:0;padding-top:16px}.tournament-empty-tab{flex:1;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:14px;padding:24px;text-align:center}.tournament-board-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:16px}.tournament-board-with-nav{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.tournament-board-center{display:flex;flex-direction:column;align-items:center}.tournament-board-players{margin-bottom:12px;font-size:14px;font-weight:600;color:#2d3748;text-align:center}.tournament-board-players .tournament-board-vs{color:#718096;font-weight:500}.tournament-board-wrap .chessboard-wrapper{flex-shrink:0}.tournament-board-with-notation{flex-direction:row;align-items:flex-start;justify-content:center;gap:16px;padding:16px}.tournament-board-notation{min-width:220px;max-width:320px;display:flex;flex-direction:column;background:#f8fafc;border-radius:8px;padding:12px;border:1px solid #e2e8f0}.tournament-board-notation.tournament-games-notation-same{width:450px;min-width:450px;height:432px;max-width:none;border:1px solid #e2e8f0;background:#fff}.tournament-board-notation.tournament-games-notation-same .tournament-notation-content{flex:1;min-height:0;overflow-y:auto}.tournament-notation-title{font-weight:600;font-size:13px;color:#1e293b;margin-bottom:8px}.tournament-notation-content{flex:1;min-height:0;overflow:auto}.tournament-games-tab{flex:1;display:flex;flex-direction:row;min-height:0;gap:0}.tournament-games-list{width:220px;min-width:220px;border-right:1px solid #e2e8f0;padding:12px;overflow:auto;display:flex;flex-direction:column;gap:8px}.tournament-games-list-title{font-weight:600;font-size:14px;color:#1e293b;margin-bottom:4px}.tournament-games-empty{font-size:13px;color:#94a3b8}.tournament-game-item{text-align:left;padding:10px 12px;font-size:13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;color:#1e293b;transition:background .2s,border-color .2s}.tournament-game-item:hover{background:#f1f5f9;border-color:#cbd5e1}.tournament-game-item-active{background:#3b82f6;color:#fff;border-color:#3b82f6}.tournament-game-item-active:hover{background:#2563eb;border-color:#2563eb;color:#fff}.tournament-games-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:16px;min-width:0}.tournament-replay-players{font-size:14px;font-weight:600;color:#1e293b;margin-bottom:12px;text-align:center}.tournament-replay-board-and-notation{display:flex;flex-direction:row;align-items:flex-start;gap:16px}.tournament-replay-board-and-notation .chessboard-wrapper{flex-shrink:0}.tournament-replay-board-with-nav{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.tournament-replay-board-with-nav .tournament-replay-buttons{margin-top:10px;margin-bottom:0}.tournament-replay-buttons{display:flex;gap:12px;margin-top:12px}.tournament-replay-btn{padding:8px 16px;font-size:13px;background:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;cursor:pointer;font-weight:500}.tournament-replay-btn:hover:not(:disabled){background:#f8fafc}.tournament-replay-btn:disabled{opacity:.5;cursor:not-allowed}.tournament-games-notation{width:450px;min-width:450px;height:432px;flex-shrink:0;border:1px solid #e2e8f0;border-radius:8px;padding:12px;display:flex;flex-direction:column;background:#fff}.tournament-games-right-column{display:flex;flex-direction:column;gap:12px;flex-shrink:0}.tournament-fen-panel{flex-shrink:0;width:450px;min-width:450px;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.tournament-fen-panel .tournament-notation-fen-label{font-size:13px;font-weight:600;color:#1e293b;margin-bottom:6px}.tournament-notation-fen-value{display:block;font-size:11px;font-family:ui-monospace,SFMono-Regular,monospace;color:#1e293b;word-break:break-all;-webkit-user-select:all;user-select:all;line-height:1.4}.tournament-games-notation .tournament-notation-content{flex:1;min-height:0;overflow-y:auto}.tournament-results-with-progress{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.tournament-progress-bar-wrap{flex-shrink:0;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}.tournament-progress-bar-fill{height:100%;background:#1e293b;border-radius:4px;transition:width .3s ease}.tournament-table-wrap{margin-top:0;overflow:auto;flex:1;min-height:0;display:flex;justify-content:center;align-items:flex-start}.tournament-table{width:max-content;border-collapse:collapse;font-size:13px}.tournament-table th,.tournament-table td{border:1px solid #e5e7eb;padding:10px;vertical-align:middle}.tournament-table-corner{width:114px;min-width:114px;height:114px;min-height:114px;box-sizing:border-box;background:#c2c6cc}.tournament-table-header-cell{background:#c2c6cc;color:#1e293b;width:114px;min-width:114px;height:114px;min-height:114px;box-sizing:border-box}.tournament-table-row-label{position:relative;background:#c2c6cc;width:114px;min-width:114px;height:114px;min-height:114px;box-sizing:border-box}.tournament-table-row-score{position:absolute;top:6px;left:6px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#1e293b;color:#fff;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.tournament-table-row-label .tournament-table-opponent-name,.tournament-table-row-label .tournament-table-opponent-elo{color:#1e293b}.tournament-table-opponent{display:flex;flex-direction:column;align-items:center;gap:4px}.tournament-table-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover}.tournament-table-avatar-placeholder{width:40px;height:40px;border-radius:50%;background:#e5e7eb}.tournament-table-opponent-name{font-weight:600;color:#1e293b;text-align:center;line-height:1.2}.tournament-table-opponent-elo{font-size:11px;color:#1e293b;font-weight:600}.tournament-table-result-cell{text-align:center;min-width:50px;color:#64748b}.tournament-table-cell-diagonal{background-color:#f1f5f9}.tournament-table-diagonal,.tournament-table-result-placeholder{color:#cbd5e0}.opponent-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;overflow-x:hidden;overflow-y:auto}.opponent-dialog{font-family:var(--font-sans);background:#fff;border-radius:8px;width:956px;max-width:96vw;min-height:420px;max-height:85vh;display:flex;flex-direction:column;border:1px solid #e2e8f0;overflow-x:hidden;overflow-y:hidden;min-height:0}.opponent-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid #e2e8f0;background:#f8fafc;border-radius:8px 8px 0 0}.opponent-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:#1e293b}.close-dialog{background:none;border:none;font-size:24px;color:#718096;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.close-dialog:hover{background:#e5e7eb;color:#2d3748}.bot-options-dialog{width:560px;max-width:96vw}.bot-options-dialog-body{padding:16px 20px 12px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;max-height:75vh}.bot-options-dialog-footer{display:flex;gap:10px;justify-content:flex-end;padding:12px 20px 16px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 8px 8px}.opponent-dialog-grid{display:grid;grid-template-columns:repeat(3,300px);gap:8px;padding:20px;overflow-x:hidden;overflow-y:auto;flex:1;min-width:0;align-content:flex-start;justify-content:center}.opponent-dialog-loading{grid-column:1 / -1;padding:1rem;text-align:center;color:#64748b}.opponent-dialog-empty{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;color:#64748b}.opponent-dialog-refetch{padding:.5rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem}.opponent-dialog-refetch:hover{background:#2563eb}.dialog-opponent-card{cursor:pointer;transition:all .2s}.dialog-opponent-card-strip{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;gap:10px;width:300px;min-width:0;min-height:120px;padding:8px 10px;background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:8px;box-sizing:border-box}.dialog-opponent-card-strip .player-strip-left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:6px}.dialog-opponent-card-strip .player-strip-left .player-name-text{flex-shrink:0;font-weight:600;font-size:15px;order:1}.dialog-opponent-card-strip .player-strip-left .player-description{order:2;flex:1 1 auto;min-height:0;text-align:center;width:100%;font-size:12px;color:#64748b;margin-top:0;overflow-wrap:break-word}.dialog-opponent-card-strip .player-strip-right{flex-shrink:0}.dialog-opponent-card-strip:hover{border-color:#3b82f6;background:#eff6ff}.dialog-opponent-card.human-card.dialog-opponent-card-strip{background:#eff6ff;border-color:#3b82f6}.dialog-opponent-card.human-card.dialog-opponent-card-strip:hover{background:#dbeafe;border-color:#2563eb}.tournament-dialog{background:#fff;border-radius:8px;width:1400px;max-width:90vw;min-height:420px;max-height:75vh;display:flex;flex-direction:column;border:1px solid #e2e8f0}.tournament-dialog .opponent-dialog-header,.tournament-dialog .tournament-dialog-panel-title{background:#fff}.tournament-name-row{padding:12px 20px 4px;border-bottom:1px solid #e2e8f0}.tournament-dialog .tournament-name-row{border-bottom:none}.tournament-dialog .tournament-name-label{display:flex;flex-direction:row;align-items:center;gap:12px;font-size:14px;font-weight:500;color:#64748b}.tournament-dialog .tournament-name-input{flex:1;min-width:0;background-color:#fff}.tournament-name-label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:#64748b}.tournament-name-input{padding:8px 12px;border-radius:6px;border:1px solid #e2e8f0;font-size:14px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;background-color:#f8fafc}.tournament-name-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626;background-color:#fff}.tournament-dialog-top-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:12px 16px;background:#fff;align-items:center}.tournament-system-select{display:flex;flex-direction:column;gap:4px}.tournament-system-label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#4b5563}.tournament-system-text{font-size:13px;font-weight:600;color:#4b5563}.tournament-system-select-input{padding:8px 12px;border-radius:6px;border:1px solid #cbd5e1;font-size:14px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;background-color:#fff;color:#1e293b}.tournament-system-select-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626;background-color:#fff}.tournament-dialog-footer{padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 8px 8px;display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}.tournament-dialog .tournament-dialog-footer{background:#fff}.tournament-dialog-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.tournament-games-per-pair-container{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#4b5563}.tournament-games-per-pair-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.tournament-games-per-pair-text{font-size:12px;font-weight:600;color:#4b5563}.tournament-games-per-pair-value{font-weight:600;color:#1e293b;font-size:13px;white-space:nowrap}.tournament-games-per-pair-footer{display:flex;align-items:center;gap:8px}.tournament-games-per-pair-slider{flex:1;min-width:0;height:6px;-webkit-appearance:none;appearance:none;background:#e2e8f0;border-radius:3px;outline:none}.tournament-games-per-pair-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#1e293b;cursor:pointer;border:2px solid #fff}.tournament-games-per-pair-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#1e293b;cursor:pointer;border:2px solid #fff}.tournament-dialog-games-count{font-size:12px;font-weight:500;color:#64748b;white-space:nowrap;flex:0 0 auto}.tournament-dialog-update-elo-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#64748b;cursor:pointer}.tournament-dialog-update-elo-checkbox{width:18px;height:18px;cursor:pointer}.tournament-dialog-ok-button{padding:10px 24px;background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.tournament-dialog-ok-button:hover{background-color:#f8fafc}.tournament-result-dialog{min-height:280px}.tournament-result-table-wrap{flex:1;overflow:auto;padding:16px 20px}.tournament-result-table{width:100%;border-collapse:collapse;font-size:14px}.tournament-result-table th,.tournament-result-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #e5e7eb}.tournament-result-table th{font-weight:600;color:#4a5568;background:#f8f9fa}.tournament-result-table th:nth-child(1),.tournament-result-table td:nth-child(1){width:48px;text-align:center}.tournament-result-table th:nth-child(3),.tournament-result-table th:nth-child(4),.tournament-result-table th:nth-child(5),.tournament-result-table td:nth-child(3),.tournament-result-table td:nth-child(4),.tournament-result-table td:nth-child(5){text-align:center}.tournament-dialog-panels{display:flex;flex:1;min-height:0;gap:0}.tournament-dialog .tournament-dialog-panels{gap:12px;padding:8px 12px 12px}.tournament-dialog-panel{flex:1.5;display:flex;flex-direction:column;min-width:0;border-right:1px solid #e2e8f0}.tournament-dialog .tournament-dialog-panel{border-radius:8px;border:1px solid #e2e8f0;overflow:hidden;border-right:1px solid #e2e8f0}.tournament-dialog-panel:last-child{flex:.8;border-left:1px solid #e2e8f0}.tournament-dialog-panel-title{padding:10px 12px;font-size:14px;font-weight:600;color:#1e293b;background:#f8fafc;border-bottom:1px solid #e2e8f0}.tournament-dialog-panel-list{flex:1;overflow-y:auto;padding:8px;display:grid;grid-template-columns:repeat(auto-fill,125px);gap:8px;align-content:flex-start;justify-content:center}.load-tournament-dialog .opponent-dialog-header,.load-tournament-dialog .tournament-dialog-panel{background:#fff}.tournament-panel-card{flex:0 0 auto;min-width:unset;width:125px!important;height:125px!important;min-height:125px!important;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;text-align:center;padding:0!important;background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;box-sizing:border-box;overflow:hidden}.tournament-panel-card:hover{border-color:#3b82f6;background:#eff6ff}.tournament-dialog-panel-list .tournament-panel-card+.tournament-panel-card{border-top:1px solid #e2e8f0;padding-top:12px}.tournament-card-left{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:0;width:100%;height:80px;min-height:80px;flex-shrink:0;overflow:hidden;background:#fff;border-bottom:1px solid #e2e8f0;order:2}.tournament-card-avatar{width:100%;height:100%;border-radius:0;object-fit:contain;flex-shrink:0}.tournament-card-avatar-placeholder{width:100%;height:100%;border-radius:0;background:#fff;flex-shrink:0}.tournament-card-elo{padding:2px 4px;font-size:10px;font-weight:600;text-align:center;color:#64748b;text-transform:lowercase;line-height:1.2;white-space:nowrap;order:1;flex:0 0 auto;width:100%}.tournament-card-right{flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:2px 4px;text-align:center;order:3}.tournament-card-names{display:flex;flex-direction:column;align-items:center;gap:0}.tournament-card-names .tournament-card-name{font-size:10px;font-weight:400;color:#64748b;line-height:1.2;word-break:break-word;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tournament-card-name-secondary{font-size:11px;font-weight:600;color:#1e293b;line-height:1.2;word-break:break-word;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tournament-selected-card{border-color:#3b82f6;background:#eff6ff}.tournament-selected-card:hover{border-color:#2563eb;background:#dbeafe}.tournament-panel-card-disabled{cursor:not-allowed;opacity:.6}.tournament-panel-card-disabled:hover{background:#f8fafc;border-color:#e2e8f0}.tournament-panel-limit-hint{font-weight:500;color:#64748b}.fen-dialog{font-family:var(--font-sans);background:#fff;border-radius:8px;width:600px;display:flex;flex-direction:column;border:1px solid #e2e8f0}.fen-dialog-content{padding:30px;display:flex;flex-direction:column;gap:20px}.fen-input-field{width:100%;padding:12px;font-family:var(--font-sans);font-size:1rem;border:1px solid #e2e8f0;border-radius:6px;outline:none;transition:border-color .2s;background-color:#f8fafc}.fen-input-field:focus{border-color:#3b82f6;background-color:#fff}.fen-dialog-buttons{display:flex;gap:10px;justify-content:flex-end}.fen-cancel-button{padding:10px 20px;background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.fen-cancel-button:hover{background-color:#f8fafc}.fen-load-button{padding:10px 20px;background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.fen-load-button:hover{background-color:#f8fafc}.save-game-dialog-content{gap:16px}.save-game-dialog-field{display:flex;flex-direction:column;gap:6px}.save-game-dialog-field label{font-size:13px;font-weight:500;color:#475569}.save-game-input{min-width:0}.save-game-description{resize:vertical;min-height:60px}.edit-saved-game-dialog.fen-dialog,.edit-saved-game-dialog .edit-saved-game-dialog-header{background:#fff}.edit-saved-game-dialog .fen-input-field,.edit-saved-game-dialog .save-game-input{background-color:#fff}.edit-saved-game-dialog .fen-input-field:focus{background-color:#fff}.confirm-dialog{font-family:var(--font-sans);background:#fff;border-radius:8px;width:400px;max-width:90vw;display:flex;flex-direction:column;border:1px solid #e2e8f0}.confirm-dialog-content{padding:20px;display:flex;flex-direction:column;gap:20px}.confirm-dialog-message{margin:0;font-size:14px;color:#475569;line-height:1.5}.confirm-dialog-buttons{display:flex;gap:10px;justify-content:flex-end}.confirm-dialog-confirm{padding:10px 20px;background-color:#dc2626;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.confirm-dialog-confirm:hover{background-color:#b91c1c}.share-bot-dialog{font-family:var(--font-sans);background:#fff;border-radius:8px;width:500px;max-width:90vw;display:flex;flex-direction:column;border:1px solid #e2e8f0}.share-bot-dialog-content{padding:20px;display:flex;flex-direction:column;gap:16px}.share-bot-dialog-bot-name{margin:0;font-size:16px;font-weight:600;color:#1e293b}.share-bot-dialog-url-container{display:flex;gap:8px}.share-bot-dialog-url-input{flex:1;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;background:#f8fafc;color:#475569;font-family:monospace}.share-bot-dialog-url-input:focus{outline:none;border-color:#3b82f6}.share-bot-dialog-copy-btn{display:flex;align-items:center;gap:6px;padding:10px 16px;background-color:#3b82f6;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s;white-space:nowrap}.share-bot-dialog-copy-btn:hover{background-color:#2563eb}.share-bot-dialog-copy-btn.copied{background-color:#16a34a}.share-bot-dialog-copy-btn.copied:hover{background-color:#15803d}.share-bot-dialog-expires{margin:0;font-size:13px;color:#64748b}.share-bot-dialog-expires strong{color:#1e293b}.share-bot-dialog-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}.eval-bar-container{display:flex;align-items:stretch;justify-content:center;width:8px;position:absolute;top:0;right:100%;margin-right:6px;height:470px}.eval-bar{position:relative;width:100%;height:100%;min-height:470px;border-radius:4px;overflow:hidden;border:1px solid #cbd5e1;background:#1e293b;display:flex;flex-direction:column}.eval-bar.eval-bar-bottom-black{flex-direction:column-reverse}.eval-bar-segment{width:100%;transition:height .25s ease}.eval-bar-white{background-color:#fff}.eval-bar-black{background-color:#020617}.eval-toggle-button{font-size:20px}.nav-button.eval-toggle-button-on{background-color:#1e293b;color:#fff;border-color:#1e293b}.nav-button.eval-toggle-button-on:hover{background-color:#1a1a1a;color:#fff;border-color:#1a1a1a}.continuous-eval-meta{align-self:stretch;margin-top:8px;font-size:13px;font-family:ui-monospace,SFMono-Regular,monospace;color:#64748b;max-width:470px;text-align:left}.continuous-eval-depth{font-weight:400;margin-right:8px;color:#1e293b}.continuous-eval-score{font-weight:600;margin-right:8px;color:#1e293b}.continuous-eval-pv{margin-left:8px;font-size:13px;font-family:ui-monospace,SFMono-Regular,monospace;color:#64748b;line-height:1.5;word-break:break-word;white-space:normal}.navigation-buttons{display:flex;gap:10px;margin-top:15px;justify-content:center;width:470px;max-width:100%;margin-left:auto;margin-right:auto}.nav-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;line-height:1.2;cursor:pointer;transition:all .2s;box-sizing:border-box;height:38px;display:inline-flex;align-items:center;justify-content:center}.nav-button:hover:not(:disabled){background-color:#f8fafc}.nav-button-wide{width:80px;padding:8px 0}.nav-button-icon{width:40px;min-width:40px;padding:0;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center}.nav-button:hover:not(:disabled){background-color:#e5e7eb}.nav-button:disabled{opacity:.4;cursor:not-allowed}.navigation-buttons-right{margin-left:auto;display:flex;align-items:center;position:relative}.fen-menu-dropdown{position:relative;z-index:20}.fen-menu-trigger{width:40px;min-width:40px;height:38px;padding:0;border:1px solid #1e293b;border-radius:6px;background-color:#fff;color:#1e293b;font-size:20px;font-weight:500;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s;box-sizing:border-box}.fen-menu-trigger:hover{background-color:#f8fafc}.fen-menu-trigger:focus{outline:none}.fen-menu-panel{position:absolute;top:100%;right:0;margin-top:4px;min-width:140px;padding:4px 0;background-color:#fff;border:1px solid #1e293b;border-radius:6px;box-shadow:0 2px 8px #00000014}.fen-menu-item{display:block;width:100%;padding:8px 12px;border:none;background:none;font-size:14px;font-weight:500;color:#1e293b;text-align:left;cursor:pointer;transition:background-color .15s}.fen-menu-item:hover{background-color:#f8fafc}.theme-dropdown-container{position:relative;margin-left:10px}.theme-dropdown-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;min-width:140px}.theme-dropdown-button:hover{background-color:#f8fafc}.theme-dropdown-menu{position:absolute;top:100%;left:0;margin-top:6px;background:#fff;border-radius:8px;border:1px solid #e2e8f0;z-index:1000;min-width:180px;max-height:400px;overflow-y:auto}.theme-dropdown-item{display:flex;align-items:center;gap:10px;padding:10px 15px;cursor:pointer;transition:background-color .2s;border-bottom:1px solid #f1f5f9;color:#1e293b}.theme-dropdown-item:last-child{border-bottom:none}.theme-dropdown-item:hover{background-color:#f8fafc}.theme-dropdown-item-selected{background-color:#eff6ff;color:#3b82f6}.theme-dropdown-item-selected:hover{background-color:#dbeafe}.theme-colors-preview{display:flex;gap:3px}.theme-color-square{width:18px;height:18px;border-radius:3px;border:1px solid #ccc}.logout-button{padding:4px 14px;background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;cursor:pointer;font-size:13px;font-weight:400;transition:all .2s;text-align:center}.logout-button:hover{background-color:#f8fafc}.logout-button-black{color:#1e293b;border-color:#1e293b}.logout-button-black:hover{background-color:#f1f5f9}.fen-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;line-height:1.2;cursor:pointer;transition:all .2s;box-sizing:border-box;height:38px;display:inline-flex;align-items:center;justify-content:center}.fen-button:hover{background-color:#f8fafc}.new-game-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;border-radius:6px;padding:10px 16px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.new-game-button:hover{background-color:#f8fafc}.about-auth-buttons{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}.about-btn{padding:8px 16px;font-size:14px;font-weight:500;border-radius:6px;cursor:pointer;transition:all .2s;border:1px solid #1e293b;min-height:38px;display:inline-flex;align-items:center;justify-content:center}.about-btn-white{background-color:#fff;color:#1e293b}.about-btn-white:hover{background-color:#f8fafc}.about-btn-black{background-color:#1e293b;color:#fff;border-color:#1e293b}.about-btn-black:hover{background-color:#1e293b}.dashboard-about-view{max-width:640px;padding:24px 0;text-align:left}.dashboard-about-logo{display:block;margin-bottom:16px;border-radius:8px}.dashboard-about-view h2{margin:0 0 16px;font-size:1.5rem;font-weight:600;color:#1e293b}.dashboard-about-view p{margin:0;font-size:15px;line-height:1.6;color:#64748b}.dashboard-settings-view{max-width:640px;padding:24px 0;text-align:left}.dashboard-settings-view h2{margin:0 0 20px;font-size:1.5rem;font-weight:600;color:#1e293b}.dashboard-settings-list{display:flex;flex-direction:column;gap:12px}.dashboard-settings-item{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px;color:#1e293b}.dashboard-settings-item input{width:18px;height:18px;cursor:pointer}.dashboard-settings-field{display:flex;flex-direction:column;gap:6px}.dashboard-settings-field label{font-size:15px;font-weight:500;color:#1e293b}.dashboard-settings-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-settings-sex-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dashboard-settings-sex-option{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:15px;color:#1e293b}.dashboard-settings-sex-option input{width:auto;height:auto;margin:0}.dashboard-settings-name-input{flex:1;min-width:160px;padding:8px 12px;font-size:15px;border:1px solid #cbd5e1;border-radius:6px;color:#1e293b}.dashboard-settings-name-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.dashboard-settings-save-btn{padding:8px 16px;font-size:14px;font-weight:500;color:#fff;background:#1e293b;border:none;border-radius:6px;cursor:pointer;min-width:7rem;box-sizing:border-box}.dashboard-settings-save-btn:hover:not(:disabled){background:#334155}.dashboard-settings-save-btn:disabled{opacity:1;cursor:wait}.dashboard-settings-save-btn-content{display:inline-block}.dashboard-settings-error{margin:0;font-size:14px;color:#dc2626}.dashboard-settings-avatar-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.dashboard-settings-avatar-preview{width:96px;height:96px;object-fit:cover;border:2px solid #e2e8f0;background:#f1f5f9}.dashboard-settings-avatar-placeholder{border-radius:0}.dashboard-settings-avatar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dashboard-settings-hint{margin:4px 0 0;font-size:13px;color:#64748b}.dashboard-settings-elo-current{margin:0;font-size:14px;color:#64748b}.game-history-view{padding:0 0 24px;display:flex;flex-direction:column;gap:16px;width:100%;max-width:100%;min-width:0;min-height:0;flex:1;box-sizing:border-box;align-self:stretch;overflow:hidden}.game-history-view.game-history-view-login-only{flex:1;justify-content:flex-start;align-items:center;padding:0 40px 40px}.game-history-view.game-history-view-login-only .login-required-notice{margin-top:24px}.game-history-view.game-history-view-list-collapsed{padding-left:0;box-sizing:border-box}.game-history-content{display:flex;flex-direction:row;gap:12px;align-items:stretch;min-width:0;min-height:0;flex:1 1 0;height:0;width:100%;max-width:100%;box-sizing:border-box}.game-history-content.game-history-list-collapsed{justify-content:flex-start}.game-history-table-pane{flex:1.4 1 0;min-width:200px;max-width:100%;min-height:0;padding-right:6px;position:relative;display:flex;flex-direction:column;transition:width .2s ease,min-width .2s ease,max-width .2s ease}.game-history-list-toggle-wrap{flex:0 0 16px;align-self:stretch;position:relative}.game-history-list-toggle-wrap .game-history-list-toggle-btn{position:absolute;top:200px;left:50%;transform:translate(-50%,-50%);margin:0}.game-history-content.game-history-list-collapsed .game-history-list-toggle-wrap{margin-left:-12px}.game-history-content.game-history-list-collapsed .game-history-list-toggle-wrap .game-history-list-toggle-btn{left:0;transform:translateY(-50%)}.game-history-table-pane-collapsed{width:0;min-width:0;max-width:0;flex:0 0 0;padding-right:0;overflow:hidden}.game-history-table-pane-inner{display:flex;flex-direction:column;min-height:0;flex:1 1 0;height:0}.game-history-table-pane-collapsed .game-history-table-pane-inner{width:0;min-width:0;overflow:hidden;padding:0;flex:none}.game-history-board-pane{flex:0 1 420px;min-width:280px;display:flex;flex-direction:column;gap:12px;align-items:center;padding-right:12px}.game-history-moves-pane{flex:1 1 0;min-width:0;overflow:hidden}.game-history-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px 12px;margin-bottom:12px;align-items:end}.game-history-filters-row{display:contents}.game-history-filter{display:flex;flex-direction:column;gap:4px}.game-history-filter-label{font-size:12px;font-weight:600;color:#4b5563}.game-history-filter-input{padding:6px 8px;border-radius:6px;border:1px solid #d1d5db;font-size:13px}.game-history-status{font-size:14px;color:#4b5563}.game-history-status-error{color:#b91c1c}.game-history-table-wrapper{flex:1 1 0;min-height:0;height:0;overflow-y:auto;overflow-x:auto;border-radius:8px;border:1px solid #e2e8f0;background:#fff;max-height:calc(100vh - 220px)}.game-history-table{width:100%;border-collapse:collapse;font-size:13px}.game-history-table-empty{padding:12px;text-align:center;color:#9ca3af}.game-history-table tbody tr.game-history-row{cursor:pointer;transition:background-color .15s ease,color .15s ease}.game-history-table tbody tr.game-history-row:hover td{background-color:#e5e7eb}.game-history-table tbody tr.game-history-row-selected td{background-color:#1e293b;color:#fff}.game-history-table tbody tr.game-history-row-selected:hover td{background-color:#e5e7eb;color:#1e293b}.game-history-board-header{width:100%;text-align:center}.game-history-board-players{display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#1e293b}.game-history-board-player{max-width:none;overflow:visible;text-overflow:initial;white-space:normal}.game-history-board-vs{color:#6b7280;font-weight:500}.game-history-board-meta{margin-top:4px;font-size:12px;color:#6b7280}.game-history-board-wrapper{border:1px solid #cbd5e1;border-radius:4px;background:#fff;overflow:hidden}.game-history-replay-controls{display:flex;align-items:center;justify-content:center;gap:10px}.game-history-replay-info{font-size:12px;color:#4b5563}.game-history-nav-with-load .game-history-load-button,.game-history-nav-with-load .game-history-edit-button{margin-left:12px}.game-history-board-empty{font-size:13px;color:#9ca3af;text-align:center;padding:40px 16px}.tournament-table-bye-badge{margin-left:6px;font-size:11px;font-weight:600;color:#1e293b;background-color:#e2e8f0;padding:1px 6px;border-radius:4px}.game-history-table th,.game-history-table td{padding:8px 12px;border-bottom:1px solid #e5e7eb;text-align:left}.game-history-table th{background:#fff;font-weight:600;color:#4b5563}.game-history-table tr:nth-child(2n) td{background:#fff}.game-history-entry-cell{vertical-align:top}.game-history-entry-line1{font-size:15px;font-weight:600;color:inherit;margin-bottom:2px}.game-history-entry-line2{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;font-weight:400;color:inherit;opacity:.9}.game-history-entry-date{white-space:nowrap}.game-history-entry-sep{color:inherit;opacity:.7}.game-history-entry-name{font-weight:600}.game-history-entry-players{color:inherit}.game-history-entry-result{font-weight:500;flex-shrink:0}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.02)}}.bot-factory-square-tables-view{display:inline-flex;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;max-width:100%}.bot-factory-tables-list{display:flex;flex-direction:column;min-width:180px;border-right:1px solid #cbd5e1;background:#fff}.bot-factory-tables-item{padding:10px 14px;font-size:.9rem;color:#334155;cursor:pointer;transition:background-color .15s}.bot-factory-tables-item:hover{background:#f1f5f9}.bot-factory-tables-item.active{background:#1e293b;color:#fff}.bot-factory-board-panel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}.bot-factory-value-input{display:flex;align-items:center;gap:8px;margin-bottom:8px}.bot-factory-value-input label{font-size:.85rem;color:#64748b}.bot-factory-value-input input{width:80px;padding:6px 10px;font-size:.9rem;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#1e293b;text-align:center;-moz-appearance:textfield}.bot-factory-value-input input::-webkit-outer-spin-button,.bot-factory-value-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.bot-factory-value-input input:focus{outline:none;border-color:#3b82f6}.bot-factory-board-container{display:flex;justify-content:center}.bot-factory-board{display:flex;flex-direction:column;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}.bot-factory-board-row,.bot-factory-board-row-squares,.bot-factory-board-files,.bot-factory-file-labels{display:flex}.bot-factory-label{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500;color:#64748b;background:#f8fafc}.bot-factory-square{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;cursor:pointer}.bot-factory-square:hover{opacity:.8}.bot-factory-square-value{font-size:11px;font-weight:600;text-shadow:0 0 3px rgba(255,255,255,.5)}.bot-factory-settings-view{width:100%;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.bot-factory-tabs{display:flex;gap:0;border-bottom:1px solid #e2e8f0;justify-content:flex-start;width:100%}.bot-factory-tab{padding:12px 24px;font-size:14px;font-weight:500;color:#64748b;background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .2s,background .2s;margin-bottom:-1px;text-align:center}.bot-factory-tab:first-child{padding-left:0}.bot-factory-tab:hover{color:#1e293b;background:#f8fafc}.bot-factory-tab.active{color:#1e293b;background:transparent;border-bottom-color:#1e293b}.bot-factory-tab-content{background:transparent;width:100%;box-sizing:border-box;margin-top:16px;flex:1;min-height:0;overflow-y:auto}.bot-factory-section{margin-bottom:24px;flex-shrink:0}.bot-factory-section:last-child{margin-bottom:0}.bot-factory-section h3{margin:0 0 16px;font-size:1.2rem;font-weight:600;color:#1e293b}.bot-factory-section h4{margin:16px 0 8px;font-size:.95rem;font-weight:600;color:#1e293b;padding-bottom:6px;border-bottom:1px solid #e2e8f0}.bot-factory-section p{margin:0 0 16px;color:#64748b}.bot-factory-subsection{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid #e2e8f0}.bot-factory-subsection:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.bot-factory-subsection h4{margin:0 0 12px;font-size:1rem;font-weight:600;color:#1e293b}.bot-factory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.bot-factory-field{display:flex;flex-direction:column;gap:6px}.bot-factory-field.full-width{grid-column:1 / -1}.bot-factory-field.checkbox{grid-column:auto}.bot-factory-basic-grid{grid-template-columns:repeat(2,1fr)}.bot-factory-field label{font-size:.9rem;color:#1e293b}.bot-factory-field.checkbox label{display:flex;align-items:center;gap:8px;cursor:default}.bot-factory-field input[type=range],.bot-factory-field input[type=text],.bot-factory-field input[type=number]{padding:6px 8px;font-size:13px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#1e293b}.bot-factory-field input[type=range]{width:100%;height:6px;padding:0;-webkit-appearance:none;appearance:none;background:#e2e8f0;border:none;border-radius:3px;outline:none}.bot-factory-field input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:#1e293b;cursor:pointer}.bot-factory-field input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#1e293b;cursor:pointer;border:none}.bot-factory-field input[type=text],.bot-factory-field input[type=number]{width:100px}.bot-factory-view{display:flex;flex-direction:row;gap:12px;width:100%;flex:1 1 0;height:0;min-height:0;padding:0 0 24px}.bot-factory-view h2{margin:0 0 8px;font-size:1.5rem;font-weight:600;color:#1e293b}.bot-factory-description{margin:0 0 24px;color:#64748b}.bot-factory-bots-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;width:220px;flex-shrink:0;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;max-height:100%;min-height:0}.bot-factory-bot-card{position:relative;display:flex;flex-direction:row;align-items:center;width:100%;flex-shrink:0;background:#fff;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden;cursor:pointer;transition:all .2s;padding:6px;gap:8px}.bot-factory-bot-card:hover{border-color:#3b82f6;box-shadow:0 2px 8px #3b82f626}.bot-factory-bot-card.selected{border-color:#1e293b;box-shadow:0 0 0 2px #1e293b33}.bot-factory-bot-card-photo{width:40px;height:40px;flex-shrink:0;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px}.bot-factory-bot-card-avatar{width:100%;height:100%;object-fit:contain}.bot-factory-bot-card-placeholder{width:100%;height:100%;background:#e2e8f0}.bot-factory-bot-card-info{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;overflow:hidden;flex:1}.bot-factory-bot-card-name{font-size:.75rem;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.bot-factory-bot-card-elo{font-size:.7rem;color:#64748b}.bot-factory-bot-card-new{border-style:dashed}.bot-factory-bot-card-photo-new{background:#f1f5f9}.bot-factory-bot-card-new-icon{font-size:1.25rem;font-weight:300;color:#94a3b8}.bot-factory-bot-card-delete{position:absolute;top:6px;right:6px;background:#ffffffe6;border:none;border-radius:4px;padding:4px;cursor:pointer;opacity:0;transition:opacity .15s,color .15s,background .15s;color:#64748b;font-size:12px;display:flex;align-items:center;justify-content:center}.bot-factory-bot-card:hover .bot-factory-bot-card-delete{opacity:1}.bot-factory-bot-card-delete:hover{color:#dc2626;background:#fef2f2}.bot-factory-bot-card-share{position:absolute;top:6px;right:30px;background:#ffffffe6;border:none;border-radius:4px;padding:4px;cursor:pointer;opacity:0;transition:opacity .15s,color .15s,background .15s;color:#64748b;font-size:12px;display:flex;align-items:center;justify-content:center}.bot-factory-bot-card:hover .bot-factory-bot-card-share{opacity:1}.bot-factory-bot-card-share:hover{color:#3b82f6;background:#eff6ff}.bot-factory-bot-card-share:disabled{opacity:.5;cursor:not-allowed}.bot-factory-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.bot-factory-content{display:flex;flex-direction:column;width:100%}.bot-factory-empty-state{display:flex;justify-content:center;align-items:center;padding:60px 20px;background:#f8fafc;border-radius:8px;border:1px dashed #cbd5e1}.bot-factory-empty-state p{margin:0;color:#94a3b8;font-size:.95rem}.bot-factory-save-section{display:flex;justify-content:flex-end;padding-top:24px;border-top:1px solid #e2e8f0;margin-top:24px}.bot-factory-save-button{padding:10px 24px;font-size:.95rem;font-weight:500;color:#fff;background:#1e293b;border:none;border-radius:6px;cursor:pointer;transition:background-color .2s}.bot-factory-save-button:hover:not(:disabled){background:#0f172a}.bot-factory-save-button:disabled{opacity:.5;cursor:not-allowed}.bot-factory-table{width:100%;border-collapse:collapse;font-size:.9rem}.bot-factory-table thead th{text-align:left;padding:12px 16px;background:#f8fafc;border-bottom:2px solid #e2e8f0;font-weight:600;color:#1e293b}.bot-factory-table thead th:first-child{width:40%}.bot-factory-table thead th:last-child{width:60%}.bot-factory-table tbody td{padding:8px 16px;border-bottom:1px solid #f1f5f9;color:#334155}.bot-factory-table tbody td:first-child{font-weight:500}.bot-factory-table tbody tr:hover{background:#f8fafc}.bot-factory-table tbody tr.section-header td{padding:12px 16px 6px;font-weight:600;color:#1e293b;border-bottom:1px solid #e2e8f0;background:transparent}.bot-factory-table input[type=text]{width:100%;max-width:200px;padding:6px 10px;font-size:.9rem;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#334155}.bot-factory-table input[type=text]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.bot-factory-weights-list{max-height:500px;overflow-y:auto}.bot-factory-weights-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.bot-factory-weights-column{display:flex;flex-direction:column}.bot-factory-weights-group-header{padding:10px 12px 6px;font-weight:600;color:#1e293b;font-size:.95rem}.bot-factory-weights-item{display:grid;grid-template-columns:180px 1fr;align-items:center;padding:6px 12px}.bot-factory-weights-item span{font-size:.85rem;color:#334155}.bot-factory-weights-item input[type=text]{width:80px;padding:4px 8px;font-size:.85rem;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#334155}.bot-factory-weights-item input[type=text]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.bot-factory-weights-item input[type=text]{flex:1;max-width:200px;padding:4px 8px;font-size:.85rem;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#334155}.bot-factory-weights-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 20px}.bot-factory-weights-group{display:flex;flex-direction:column;gap:2px}.bot-factory-weights-group-title{font-size:.8rem;font-weight:600;color:#1e293b;margin-bottom:2px;margin-top:4px}.bot-factory-weights-group-title:first-child{margin-top:0}.bot-factory-weights-group .bot-factory-field{gap:1px}.bot-factory-weights-group .bot-factory-field label{font-size:.75rem}.bot-factory-eval-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-height:calc(100vh - 280px);overflow-y:auto}.bot-factory-eval-column{display:flex;flex-direction:column;gap:16px}.bot-factory-eval-group{display:flex;flex-direction:column;gap:4px}.bot-factory-eval-group-title{font-size:.95rem;font-weight:600;color:#1e293b;padding-bottom:4px;border-bottom:1px solid #e2e8f0;margin-bottom:2px}.bot-factory-eval-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}.bot-factory-eval-row span{font-size:.9rem;color:#334155}.bot-factory-eval-row input[type=number]{width:80px;padding:4px 8px;font-size:.9rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#1e293b}.bot-factory-search-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.bot-factory-search-grid .bot-factory-field.full-width{grid-column:1 / -1}.bot-factory-search-description{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px}.bot-factory-search-description p{margin:0 0 12px;font-size:.9rem;color:#334155}.bot-factory-search-description ul{margin:0;padding-left:20px}.bot-factory-search-description li{margin-bottom:8px;font-size:.85rem;color:#64748b;line-height:1.5}.bot-factory-search-description li:last-child{margin-bottom:0}.bot-factory-search-description strong{color:#1e293b}.bot-factory-bot-data-grid{display:flex;gap:24px}.bot-factory-column{flex:1;display:flex;flex-direction:column;gap:16px;min-width:0}.bot-factory-column .bot-factory-field.full-width{grid-column:1 / -1}.bot-factory-column .bot-factory-field textarea{width:100%;padding:8px 12px;font-size:.9rem;font-family:inherit;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#1e293b;resize:vertical;min-height:80px;box-sizing:border-box}.bot-factory-column .bot-factory-field textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.bot-factory-column .bot-factory-field textarea:disabled{background:#f8fafc;color:#94a3b8}.bot-factory-column .bot-factory-field input[type=text],.bot-factory-column .bot-factory-field input[type=number]{width:100%;padding:8px 12px;font-size:.9rem;font-family:inherit;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#1e293b;box-sizing:border-box}.bot-factory-column .bot-factory-field input[type=text]:focus,.bot-factory-column .bot-factory-field input[type=number]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.bot-factory-translations-table{width:100%;border-collapse:collapse}.bot-factory-translations-table td{padding:4px 0;vertical-align:middle}.bot-factory-locale-cell{width:40px;font-weight:600;color:#475569}.bot-factory-translations-table input[type=text]{width:100%;padding:8px 12px;font-size:.9rem;font-family:inherit;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#1e293b;box-sizing:border-box}.bot-factory-translations-table input[type=text]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.bot-factory-visibility-options{display:flex;flex-direction:column;gap:10px}.bot-factory-radio-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:10px 12px;border:1px solid #e2e8f0;border-radius:6px;transition:all .2s}.bot-factory-radio-label:hover{border-color:#cbd5e1;background:#f8fafc}.bot-factory-radio-label input[type=radio]{margin-top:2px;cursor:pointer}.bot-factory-radio-label input[type=radio]:disabled{cursor:not-allowed}.bot-factory-radio-text{display:flex;flex-direction:column;gap:2px}.bot-factory-radio-text strong{font-size:.9rem;color:#1e293b}.bot-factory-radio-text small{font-size:.8rem;color:#64748b}.bot-factory-image-section{display:flex;align-items:center;gap:16px}.bot-factory-image-preview{width:100px;height:100px;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0;background:#f8fafc;display:flex;align-items:center;justify-content:center;flex-shrink:0}.bot-factory-image-preview img{width:100%;height:100%;object-fit:cover}.bot-factory-image-placeholder{width:100%;height:100%;background:#e2e8f0}.bot-factory-image-btn{padding:8px 16px;font-size:.9rem;font-weight:500;color:#1e293b;background:#fff;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s}.bot-factory-image-btn:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}.bot-factory-image-btn:disabled{opacity:.5;cursor:not-allowed}.bot-factory-create-button{background:#1e293b}.bot-factory-create-button:hover:not(:disabled){background:#334155}.bot-factory-column .bot-factory-field input:disabled{background:#f8fafc;color:#94a3b8}.bot-factory-texts-header{margin-bottom:16px}.bot-factory-texts-locale-switch{display:flex;gap:4px;margin-bottom:12px}.bot-factory-texts-locale-btn{padding:6px 16px;font-size:.875rem;font-weight:500;color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s}.bot-factory-texts-locale-btn:hover{background:#e2e8f0}.bot-factory-texts-locale-btn.active{color:#fff;background:#1e293b;border-color:#1e293b}.bot-factory-texts-hint{margin:0;font-size:.875rem;color:#64748b}.bot-factory-texts-rows{display:flex;flex-direction:column;gap:8px}.bot-factory-texts-buttons{display:flex;gap:8px;margin-top:8px}.bot-factory-texts-row{display:flex;align-items:center;gap:8px}.bot-factory-texts-row-number{width:24px;font-size:.75rem;font-weight:600;color:#94a3b8;text-align:center;flex-shrink:0}.bot-factory-texts-input-min,.bot-factory-texts-input-max{width:60px;padding:8px 10px;font-size:.875rem;border:1px solid #e2e8f0;border-radius:6px;text-align:center}.bot-factory-texts-input-min:focus,.bot-factory-texts-input-max:focus{outline:none;border-color:#1e293b}.bot-factory-texts-separator{color:#64748b;font-weight:500;flex-shrink:0}.bot-factory-texts-input-text{flex:1;padding:8px 12px;font-size:.875rem;border:1px solid #e2e8f0;border-radius:6px}.bot-factory-texts-input-text:focus{outline:none;border-color:#1e293b}.bot-factory-texts-input-text::placeholder{color:#94a3b8}.bot-factory-texts-remove-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:#94a3b8;background:transparent;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;flex-shrink:0}.bot-factory-texts-remove-btn:hover{color:#ef4444;border-color:#fecaca;background:#fef2f2}.bot-factory-texts-add-btn{padding:8px 16px;font-size:.875rem;font-weight:500;color:#1e293b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:6px;cursor:pointer;transition:all .2s}.bot-factory-texts-add-btn:hover{background:#f1f5f9;border-color:#94a3b8}.bot-factory-texts-sort-btn{padding:8px 16px;font-size:.875rem;font-weight:500;color:#1e293b;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;transition:all .2s}.bot-factory-texts-sort-btn:hover{background:#f1f5f9;border-color:#94a3b8}.news-view{width:100%;height:100%;display:flex;gap:0;background:#f8fafc}.news-list-pane{width:360px;min-width:280px;max-width:400px;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e2e8f0}.news-list-header{padding:20px 24px;border-bottom:1px solid #e2e8f0}.news-list-header h2{margin:0;font-size:1.25rem;font-weight:600;color:#1e293b}.news-list{flex:1;overflow-y:auto}.news-list-item{padding:16px 24px;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:background-color .15s ease}.news-list-item:hover{background:#f8fafc}.news-list-item-selected{background:#eff6ff;border-left:3px solid #3b82f6;padding-left:21px}.news-list-item-selected:hover{background:#dbeafe}.news-item-meta{display:flex;gap:8px;margin-bottom:6px;font-size:.75rem;color:#64748b}.news-item-source{font-weight:500;color:#3b82f6}.news-item-title{font-size:.9rem;font-weight:500;color:#1e293b;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-content-pane{flex:1;display:flex;flex-direction:column;background:#fff;overflow:hidden}.news-content{flex:1;display:flex;flex-direction:column;padding:32px 40px;overflow-y:auto}.news-content-header{margin-bottom:24px}.news-content-title{margin:0 0 12px;font-size:1.5rem;font-weight:600;color:#1e293b;line-height:1.3}.news-content-meta{display:flex;gap:12px;font-size:.85rem;color:#64748b}.news-content-source-link{color:#3b82f6;text-decoration:underline;font-weight:500}.news-content-source-link:hover{color:#1d4ed8;text-decoration:none}.news-content-body{flex:1;font-size:1rem;line-height:1.7;color:#334155}.news-content-body p{margin:0 0 16px}.news-content-body p:last-child{margin-bottom:0}.news-content-inline-link{color:#3b82f6;text-decoration:underline;font-weight:500}.news-content-inline-link:hover{color:#1d4ed8;text-decoration:none}.news-content-empty{flex:1;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:1rem}.news-loading,.news-error,.news-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#64748b;font-size:1rem}.news-error{color:#ef4444}.success-toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%);z-index:2000;animation:slideUpFadeIn .3s ease-out}@keyframes slideUpFadeIn{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}.success-toast-content{display:flex;align-items:center;gap:10px;padding:14px 24px;background:#fff;border:1px solid #1e293b;border-radius:8px;box-shadow:0 4px 12px #00000026;font-family:var(--font-sans);color:#1e293b}.success-toast-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;font-size:18px;font-weight:700;background:#1e293b;color:#fff;border-radius:50%;flex-shrink:0}.success-toast-message{font-size:14px;font-weight:500;color:#1e293b}.news-guest-view{display:flex;height:100%;overflow:hidden}.news-guest-main{flex:1;padding:1.5rem;overflow-y:auto;max-width:800px}.news-guest-title{font-size:1.5rem;font-weight:600;margin-bottom:1.5rem}.news-guest-sidebar{width:320px;flex-shrink:0;padding:1.5rem;border-left:1px solid var(--color-border, #e2e8f0);background:var(--color-bg-secondary, #f8fafc);overflow-y:auto}.news-login-panel{display:flex;flex-direction:column}.news-login-title{font-size:1.25rem;font-weight:600;margin-bottom:1rem}.news-login-error{background:var(--color-error-bg, #fef2f2);color:var(--color-error, #dc2626);padding:.75rem;border-radius:6px;margin-bottom:1rem;font-size:.9rem}.news-login-form{display:flex;flex-direction:column;gap:1rem}.news-login-field{display:flex;flex-direction:column;gap:.25rem}.news-login-field label{font-size:.85rem;font-weight:500;color:var(--color-text-secondary, #64748b)}.news-login-field input{padding:.625rem .75rem;border:1px solid var(--color-border, #e2e8f0);border-radius:6px;font-size:.95rem;background:var(--color-bg-primary, #ffffff);color:var(--color-text-primary, #1e293b)}.news-login-field input:focus{outline:none;border-color:var(--color-primary, #667eea);box-shadow:0 0 0 2px #667eea26}.news-login-field input:disabled{opacity:.6;cursor:not-allowed}.news-login-btn{padding:.625rem 1rem;font-size:.95rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;background-color:var(--color-primary, #667eea);color:#fff;transition:all .2s ease;margin-top:.5rem}.news-login-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea40}.news-login-btn:disabled{opacity:.6;cursor:not-allowed}.news-login-divider{height:1px;background:var(--color-border, #e2e8f0);margin:1.25rem 0}.news-login-register-text{font-size:.9rem;color:var(--color-text-secondary, #64748b);margin-bottom:.75rem;text-align:center}.news-register-btn{padding:.625rem 1rem;font-size:.95rem;font-weight:600;border:2px solid var(--color-primary, #667eea);border-radius:6px;cursor:pointer;background:transparent;color:var(--color-primary, #667eea);transition:all .2s ease}.news-register-btn:hover{background-color:var(--color-primary, #667eea);color:#fff}.news-view{padding:1.5rem;max-width:800px;margin:0 auto;height:100%;overflow-y:auto}.news-articles-list{display:flex;flex-direction:column;gap:1.5rem}.news-article-card{background:var(--color-bg-secondary, #ffffff);border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.news-article-header{margin-bottom:1rem}.news-article-title{font-size:1.25rem;font-weight:600;margin:0 0 .5rem;color:var(--color-text-primary, #1e293b);line-height:1.4}.news-article-meta{display:flex;align-items:center;gap:1rem;font-size:.85rem}.news-article-date{color:var(--color-text-secondary, #64748b)}.news-article-source{color:var(--color-primary, #667eea);text-decoration:none}.news-article-source:hover{text-decoration:underline}.news-article-content{color:var(--color-text-primary, #334155);line-height:1.7}.news-article-content p{margin:0 0 .75rem}.news-article-content p:last-child{margin-bottom:0}.news-content-inline-link{color:var(--color-primary, #667eea);text-decoration:none}.news-content-inline-link:hover{text-decoration:underline}.news-loading,.news-error,.news-empty{text-align:center;padding:3rem;color:var(--color-text-secondary, #64748b);font-size:1.1rem}.news-error{color:var(--color-error, #dc2626)}.news-logged-view{display:flex;height:100%;overflow:hidden}.news-logged-main{flex:1;padding:1.5rem;overflow-y:auto;max-width:800px}.news-logged-title{font-size:1.5rem;font-weight:600;margin-bottom:1.5rem}.news-logged-sidebar{width:280px;flex-shrink:0;padding:1.5rem;border-left:1px solid var(--color-border, #e2e8f0);overflow-y:auto}.news-random-bot{display:flex;flex-direction:column}.news-random-bot-title{font-size:1rem;font-weight:600;margin-bottom:1rem;color:var(--color-text-secondary, #64748b)}.news-random-bot-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--color-bg-primary, #ffffff);border-radius:12px;cursor:pointer;transition:all .2s ease;box-shadow:0 1px 3px #0000001a}.news-random-bot-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.news-random-bot-image{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0}.news-random-bot-info{display:flex;flex-direction:column;gap:.25rem;min-width:0}.news-random-bot-name{font-size:1rem;font-weight:600;color:var(--color-text-primary, #1e293b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.news-random-bot-elo{font-size:.85rem;color:var(--color-text-secondary, #64748b)}.news-random-bot-empty{text-align:center}.news-random-bot-no-bots{font-size:.9rem;color:var(--color-text-secondary, #64748b);line-height:1.5}.app{width:100%;max-width:1580px;min-height:100vh;margin:0 auto;padding:0 1rem;font-family:SF Pro Display,SF Pro Text,-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.chess-container{display:flex;justify-content:center;margin-bottom:2rem}.chessboard{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);width:480px;height:480px;border:1px solid #cbd5e1;border-radius:2px}.square{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;position:relative}.square:hover{opacity:.8}.square.selected{background-color:#7b61ff!important;opacity:.8}.square.valid-move:before{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background-color:#00ff0080;border:2px solid #00ff00}.piece{font-size:2.5rem;font-weight:700;-webkit-user-select:none;user-select:none;pointer-events:none}.controls{display:flex;flex-direction:column;align-items:center;gap:1rem}.reset-button{background-color:#fff;color:#1e293b;border:1px solid #1e293b;padding:12px 24px;font-size:16px;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s}.reset-button:hover{background-color:#f8fafc}.ai-controls{display:flex;align-items:center;gap:.5rem;margin:1rem 0}.ai-select{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px;background-color:#fff;outline:none}.ai-select:focus{border-color:#3b82f6}.game-info{display:flex;gap:2rem;justify-content:center;margin-top:1rem}.game-info p{margin:0;padding:8px 16px;background-color:#f8fafc;border-radius:6px;font-weight:600;color:#1e293b}.check-warning{color:#ff6b35!important;background-color:#fff3cd!important;border:1px solid #ffeaa7!important}.checkmate-warning{color:#d63031!important;background-color:#ffebee!important;border:1px solid #ffcdd2!important}.draw-warning{color:#6c5ce7!important;background-color:#f3e5f5!important;border:1px solid #e1bee7!important}input[type=checkbox],input[type=radio],input[type=range]{accent-color:#1e293b}
