@import "https://fonts.googleapis.com/css2?family=Oxanium:wght@400;600&display=swap&subset=latin-ext";.btn{cursor:pointer;border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:9px 16px;font-size:14px;font-weight:700;line-height:1;transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s,transform .12s;display:inline-flex;box-shadow:0 4px 12px #0f172a12}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0);box-shadow:0 2px 7px #0f172a17}.btn-primary{color:#fff;background:linear-gradient(135deg,#2563eb,#0b5fe0);border-color:#2563eb;box-shadow:0 7px 16px #2563eb33}.btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#064db8);border-color:#1d4ed8;box-shadow:0 9px 20px #2563eb42}.btn-primary:active{background:#0b5fe0}.btn-secondary{border-color:var(--border,#d8e2ee);background:var(--surface,#fff);color:var(--text,#334155)}.btn-secondary:hover{border-color:var(--accent-border,#bfdbfe);background:var(--surface-hover,#f0f7ff);color:var(--accent-text,#1d4ed8)}.btn-error{border-color:var(--danger-border,#fecdd3);background:var(--danger-soft,#fff1f2);color:var(--danger-text,#be123c);box-shadow:none}.btn-error:hover{border-color:var(--danger-border,#fda4af);background:var(--danger-soft,#ffe4e6);color:var(--danger-text,#9f1239)}.btn:disabled{opacity:.52;cursor:not-allowed;box-shadow:none;transform:none}.btn:focus-visible{outline-offset:2px;outline:3px solid #3ba9fc4d}.page-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px;padding:8px 2px;display:flex}.page-header__content{min-width:0;max-width:760px}.page-eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.1em;text-transform:uppercase;font-size:11px;font-weight:700;display:block}.page-title{color:var(--text,#172554);letter-spacing:-.025em;margin:4px 0 5px;font-size:clamp(30px,4vw,42px);line-height:1.1}.page-description{color:var(--text-muted,#64748b);margin:0;font-size:14px;line-height:1.5}.page-header__actions{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:10px;display:flex}@media (width<=700px){.page-header{flex-direction:column;align-items:stretch;gap:16px;padding-top:4px}.page-header__actions{justify-content:stretch}.page-header__actions>.btn{width:100%}}.compact-list-card{border:1px solid var(--border,#e5e7eb);background:var(--surface,#fff);border-radius:8px;flex-direction:column;width:min(100%,560px);height:414px;padding:26px 28px;display:flex;box-shadow:0 10px 28px #0f172a14}.compact-list-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.compact-list-header h1{color:var(--text,#0f172a);margin:0;font-size:20px;font-weight:700;line-height:1.2}.compact-list-view-all{color:var(--accent-text,#2563eb);flex-shrink:0;font-size:14px;font-weight:700}.compact-list-view-all:hover{color:var(--accent-text,#1d4ed8)}.compact-list{flex-direction:column;flex:1;display:flex}.compact-list-row{border:0;border-bottom:1px solid var(--border,#e5e7eb);width:100%;min-height:62px;color:inherit;font:inherit;text-align:left;background:0 0;grid-template-columns:34px minmax(0,1fr) max-content max-content;align-items:center;gap:14px;padding:12px 0;display:grid}.compact-list-row:last-child{border-bottom:0}.compact-list-row:hover .compact-list-title{color:var(--accent-text,#2563eb)}.compact-list-icon{background:var(--accent-soft-strong,#dbeafe);border-radius:7px;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.compact-list-icon svg{fill:none;stroke:#2563eb;stroke-width:2.25px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.compact-list-icon-fill{fill:#2563eb;stroke:none}.compact-list-friends-icon{background:var(--purple-soft,#ede9fe)}.compact-list-friends-icon svg{stroke:#7c3aed}.compact-list-friends-icon.is-featured{border-radius:20px;width:72px;height:72px;box-shadow:0 12px 24px #7c3aed24}.compact-list-friends-icon.is-featured svg{stroke-width:1.8px;width:44px;height:44px}.compact-list-title{color:var(--text,#1e293b);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;transition:color .15s;overflow:hidden}.compact-list-meta,.compact-list-date{color:var(--text-secondary,#475569);white-space:nowrap;font-size:14px;font-weight:500}.compact-list-date{text-align:right;min-width:76px}.compact-list-state{color:var(--text-muted,#64748b);margin:0;padding:18px 0;font-size:14px}.compact-list-error{color:var(--danger-text,#b91c1c)}.friends-overview-card{position:relative;overflow:hidden}.friends-overview-card:after{content:"";pointer-events:none;border:28px solid #7c3aed0f;border-radius:50%;width:170px;height:170px;position:absolute;bottom:-70px;right:-55px}.friends-overview-content{z-index:1;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;max-width:390px;padding-bottom:12px;display:flex;position:relative}.friends-overview-content h2{color:var(--text,#1e293b);margin:20px 0 8px;font-size:18px;line-height:1.25}.friends-overview-content p{max-width:360px;color:var(--text-muted,#64748b);margin:0;font-size:14px;line-height:1.65}.friends-overview-action{color:#fff;background:#2563eb;border-radius:9px;align-items:center;gap:8px;margin-top:22px;padding:10px 16px;font-size:14px;font-weight:700;transition:background-color .15s,transform .15s;display:inline-flex}.friends-overview-action:hover{color:#fff;background:#1d4ed8;transform:translateY(-1px)}.friends-overview-action:focus-visible{outline-offset:3px;outline:3px solid #3b82f64d}.friends-overview-arrow{font-size:17px;line-height:1}@media (width<=640px){.compact-list-card{height:390px;padding:20px}.compact-list-row{grid-template-columns:34px minmax(0,1fr) max-content;gap:12px}.compact-list-meta{display:none}.compact-list-date{min-width:64px}}.home-page{width:100%;padding:24px}.home-dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),560px));align-items:stretch;gap:24px;display:grid}@media (width<=640px){.home-page{padding:16px}}.navbar{color:#fff;z-index:20;background:linear-gradient(110deg,#0b5fe0 0%,#2563eb 56%,#3ba9fc 100%);width:100%;padding:.75rem 0;position:relative;box-shadow:0 8px 24px #1e40af2e}.navbar-container{justify-content:space-between;align-items:center;min-height:48px;margin:0 auto;padding:0 1.5rem;display:flex;position:relative}.navbar-logo{pointer-events:none;margin:0;font-size:1.65rem;font-weight:700;position:absolute;left:50%;transform:translate(-50%)}.sidebar-toggle{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #ffffff3d;border-radius:12px;place-items:center;width:42px;height:42px;margin-left:.15rem;font-size:1.35rem;transition:background-color .18s,transform .12s;display:grid}.sidebar-toggle:hover{background:#ffffff2e;transform:translateY(-1px)}.sidebar-toggle:focus-visible,.profile-button:focus-visible{outline-offset:2px;outline:3px solid #fff6}.navbar-right{align-items:center;gap:1rem;margin-left:auto;display:flex}.navbar-link{color:#fff;font-weight:600;text-decoration:none}.navbar-btn{padding:.45rem 1.2rem}.profile-area{position:relative}.profile-button{background:var(--surface-glass,#fffffff5);min-width:178px;color:var(--text,#172554);cursor:pointer;border:1px solid #ffffff47;border-radius:14px;align-items:center;gap:.65rem;padding:.35rem .55rem .35rem .4rem;transition:background-color .18s,box-shadow .18s,transform .12s;display:flex;box-shadow:0 6px 18px #1e40af2e}.profile-button:hover{background:var(--surface,#fff);transform:translateY(-1px);box-shadow:0 9px 23px #1e40af3b}.profile-button__avatar{border:1px solid var(--accent-border,#bfdbfe);background:linear-gradient(145deg, var(--accent-soft,#eff6ff), var(--accent-soft-strong,#dbeafe));width:36px;height:36px;color:var(--accent-text,#1d4ed8);border-radius:11px;flex:0 0 36px;place-items:center;font-size:12px;font-weight:800;display:grid}.profile-button__identity{flex-direction:column;flex:1;align-items:flex-start;min-width:0;line-height:1.15;display:flex}.profile-button__identity strong{text-overflow:ellipsis;white-space:nowrap;max-width:130px;font-size:13px;overflow:hidden}.profile-button__identity small{max-width:130px;color:var(--text-muted,#64748b);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:10px;font-weight:600;overflow:hidden}.arrow{color:var(--text-muted,#64748b);font-size:1rem;transition:transform .18s}.arrow--open{transform:rotate(180deg)}.profile-dropdown{z-index:40;border:1px solid var(--border,#dbe5f0);background-color:var(--surface,white);color:var(--text,#1e293b);border-radius:15px;width:250px;margin-top:.55rem;padding:7px;position:absolute;right:0;overflow:hidden;box-shadow:0 18px 45px #0f172a2e}.profile-dropdown button{text-align:left;cursor:pointer;width:100%;min-height:42px;color:var(--text,#1e293b);background:0 0;border:none;border-radius:9px;align-items:center;gap:10px;padding:.7rem .8rem;font-size:.9rem;font-weight:600;display:flex}.profile-dropdown button:hover{background-color:var(--surface-hover,#f0f7ff);color:var(--accent-text,#1d4ed8)}.profile-dropdown__header{align-items:center;gap:10px;padding:8px 8px 12px;display:flex}.profile-dropdown__header>span:last-child{flex-direction:column;min-width:0;display:flex}.profile-dropdown__header strong,.profile-dropdown__header small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.profile-dropdown__header strong{color:var(--text,#172554);font-size:13px}.profile-dropdown__header small{color:var(--text-muted,#64748b);margin-top:3px;font-size:10px}.profile-dropdown hr{background:var(--border,#e8eef5);border:0;height:1px;margin:5px 4px}.profile-dropdown .logout-btn{color:var(--danger-text,#e11d48)}.profile-dropdown .logout-btn:hover{background-color:var(--danger-soft,#ffe4e6);color:var(--danger-text,#be123c)}@media (width<=640px){.navbar-container{padding:0 12px}.navbar-logo{font-size:1.2rem}.profile-button{min-width:0;padding-right:.4rem}.profile-button__identity{display:none}}.sidebar{background:radial-gradient(circle at 0 0, #2563eb14, transparent 210px), var(--surface,#fff);border-right:1px solid var(--border,#e2e8f0);scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;flex-direction:column;flex-shrink:0;width:272px;min-height:100%;padding:1.25rem 1rem;transition:transform .25s;display:flex;overflow-y:auto;box-shadow:8px 0 30px #0f172a09}.sidebar-user,.sidebar-nav,.sidebar-appearance{flex-shrink:0}.sidebar-appearance{margin-top:auto;padding-top:1.5rem}.sidebar-appearance>.sidebar-section{margin:0 .65rem .65rem;display:block}.theme-switch{border:1px solid var(--border,#e2e8f0);background:var(--surface-muted,#f8fafc);width:100%;min-height:48px;color:var(--text-secondary,#475569);text-align:left;border-radius:.85rem;align-items:center;gap:.75rem;padding:.75rem;font-size:.85rem;font-weight:600;transition:background-color .18s,border-color .18s;display:flex}.theme-switch:hover{border-color:var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff)}.theme-switch:focus-visible{outline-offset:3px;outline:3px solid #60a5fa}.theme-switch-label{flex:1}.theme-switch-track{background:#94a3b8;border-radius:20px;flex:0 0 36px;align-items:center;height:22px;padding:3px;transition:background-color .18s;display:flex}.theme-switch-track>span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .18s;box-shadow:0 1px 3px #0003}.theme-switch[aria-checked=true] .theme-switch-track{background:#2563eb}.theme-switch[aria-checked=true] .theme-switch-track>span{transform:translate(14px)}.sidebar-closed{transform:translate(-272px)}.sidebar-open{transform:translate(0)}@media (width>=721px){.sidebar{align-self:stretch;height:100%;min-height:0;max-height:100%;position:static}}.sidebar-user{background:var(--accent-soft,#eff6ffc2);border:1px solid #bfdbfee6;border-radius:1rem;align-items:center;gap:.8rem;margin-bottom:1.5rem;padding:.75rem;display:flex}.sidebar-avatar{color:#fff;background:linear-gradient(145deg,#2563eb,#1d4ed8);border-radius:50%;flex:0 0 2.75rem;justify-content:center;align-items:center;width:2.75rem;height:2.75rem;font-size:1rem;font-weight:700;display:flex;position:relative;box-shadow:0 5px 14px #2563eb3d}.sidebar-status-dot{background:#22c55e;border:2px solid #eff6ff;border-radius:50%;width:.65rem;height:.65rem;position:absolute;bottom:1px;right:-1px}.user-info{flex-direction:column;gap:.12rem;min-width:0;display:flex}.sidebar-welcome{color:var(--text-muted,#64748b);letter-spacing:.02em;font-size:.72rem;line-height:1}.sidebar-name{color:var(--text,#0f172a);text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:700;line-height:1.35;overflow:hidden}.sidebar-section{color:var(--text-muted,#94a3b8);letter-spacing:.11em;text-transform:uppercase;margin:1.1rem .65rem .3rem;font-size:.68rem;font-weight:700}.sidebar-nav{flex-direction:column;gap:.3rem;display:flex}.nav-item{min-height:2.75rem;color:var(--text-secondary,#475569);border:1px solid #0000;border-radius:.75rem;align-items:center;gap:.75rem;padding:.45rem .65rem;font-size:.92rem;font-weight:600;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s,transform .18s;display:flex;position:relative}.nav-item:hover{background-color:var(--surface-muted,#f1f5f9);color:var(--text,#0f172a);transform:translate(2px)}.nav-item.active{border-color:var(--accent-border,#bfdbfe);background:linear-gradient(90deg, var(--accent-soft-strong,#dbeafe), var(--accent-soft,#eff6ff));color:var(--accent-text,#1d4ed8);box-shadow:0 4px 12px #2563eb14}.nav-item.active:after{content:"";background:#2563eb;border-radius:50%;width:.3rem;height:.3rem;position:absolute;right:.55rem}.nav-icon-wrap{background:var(--surface-muted,#f1f5f9);width:2rem;height:2rem;color:var(--text-muted,#64748b);border-radius:.55rem;flex:0 0 2rem;place-items:center;transition:background-color .18s,color .18s;display:grid}.nav-item:hover .nav-icon-wrap,.nav-item:focus-visible .nav-icon-wrap{background:var(--surface-hover,#e2e8f0);color:var(--text,#334155)}.nav-item.active .nav-icon-wrap{background:var(--surface,#fff);color:var(--accent-text,#2563eb);box-shadow:0 2px 8px #2563eb1a}.sidebar-icon{display:block}.sidebar-subnav{border-left:1px solid var(--accent-border,#dbeafe);flex-direction:column;gap:.15rem;margin:.15rem 0 .35rem 1.65rem;padding:.25rem 0 .15rem 1rem;display:flex}.sidebar-subnav-label{color:var(--text-muted,#94a3b8);letter-spacing:.08em;text-transform:uppercase;margin:.1rem 0 .2rem .5rem;font-size:.65rem;font-weight:700}.subnav-item{min-width:0;color:var(--text-muted,#64748b);border-radius:.5rem;align-items:center;gap:.55rem;padding:.4rem .5rem;font-size:.8rem;font-weight:500;text-decoration:none;transition:background-color .15s,color .15s,transform .15s;display:flex}.subnav-item:hover,.subnav-item.active{background-color:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);transform:translate(2px)}.subnav-dot{border:1px solid #94a3b8;border-radius:50%;flex:0 0 .35rem;width:.35rem;height:.35rem}.subnav-item.active .subnav-dot{background:#2563eb;border-color:#2563eb}.subnav-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nav-item:focus-visible,.subnav-item:focus-visible{outline-offset:2px;outline:3px solid #3b82f647}@media (width<=900px){.sidebar{z-index:19;width:min(272px,86vw);height:calc(100dvh - 72px);min-height:0;max-height:none;position:fixed;top:72px;bottom:0;left:0}}.site-shell{background:var(--canvas,#f8fafc);flex-direction:column;height:100vh;min-height:100vh;display:flex;overflow:hidden auto}.site-main{background:var(--canvas,#f8fafc);flex:auto;align-items:stretch;min-height:0;display:flex;overflow:hidden}.sidebar-backdrop{display:none}@media (width<=900px){.sidebar-backdrop{z-index:18;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#080f1c80;border:0;display:block;position:fixed;inset:72px 0 0}}.site-page-scroll{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden auto}.site-content{flex:1 0 auto;min-width:0;overflow:visible}.site-footer{color:#eff6ff;background:#1d4ed8;border-top:1px solid #ffffff29;flex-shrink:0}.site-footer-container{grid-template-columns:1fr auto auto;align-items:center;gap:24px;width:100%;max-width:1180px;margin:0 auto;padding:18px 24px;display:grid}.site-footer-brand{color:#fff;margin:0 0 4px;font-size:18px;font-weight:700}.site-footer-text,.site-footer-copy{color:#dbeafe;margin:0;font-size:14px;line-height:1.5}.site-footer-links{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.site-footer-links button{color:#eff6ff;background:0 0;border:0;padding:6px 0;font-weight:600}.site-footer-links button:hover{color:#bfdbfe}@media (width<=760px){.site-shell{height:auto;overflow-y:auto}.site-main,.site-page-scroll{overflow:visible}.site-footer-container{grid-template-columns:1fr;gap:12px}}.data-table-wrapper{border:1px solid var(--border,#dbe5f0);background:var(--surface,#fff);border-radius:16px;width:100%;overflow-x:auto;box-shadow:0 10px 30px #0f172a0e}.data-table{border-collapse:separate;border-spacing:0;width:100%;color:var(--text,#334155)}.data-table th{border-bottom:1px solid var(--border,#dbe5f0);background:var(--surface-muted,#f8fbff);color:var(--text-muted,#64748b);letter-spacing:.075em;text-align:left;text-transform:uppercase;white-space:nowrap;padding:14px 16px;font-size:11px;font-weight:700}.data-table td{border-bottom:1px solid var(--border,#edf2f7);color:var(--text,#334155);vertical-align:middle;padding:15px 16px;font-size:14px;line-height:1.45}.data-table tbody tr{transition:background-color .18s,box-shadow .18s}.data-table tbody tr:not(.data-table__empty-row):hover{background:var(--surface-hover,#f7fbff)}.data-table tbody tr:last-child td{border-bottom:0}.data-table__interactive-row{cursor:pointer}.data-table__checkbox-cell{text-align:center;width:52px}.data-table__checkbox-cell input{accent-color:#2563eb;border-radius:5px;width:17px;height:17px;margin:0}.data-table__selected-row{background:var(--accent-soft,#eff6ff);box-shadow:inset 3px 0 #3ba9fc}.data-table__selected-row:hover{background:var(--accent-soft,#e9f3ff)!important}.data-table__empty-row td{height:220px;color:var(--text-muted,#64748b);text-align:center;padding:36px 24px}.data-table__empty-row td:before{display:none}.data-table__empty-row strong{color:var(--text-secondary,#475569);margin-top:10px;font-size:14px;display:block}.data-table__empty-icon{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);width:48px;height:48px;color:var(--accent-text,#2563eb);border-radius:15px;place-items:center;margin:0 auto;font-size:28px;display:grid}.data-table-pagination{border-top:1px solid var(--border,#edf2f7);background:var(--surface-muted,#fbfdff);justify-content:space-between;align-items:center;gap:18px;min-width:100%;padding:14px 16px;display:flex}.data-table-pagination__info{color:var(--text-muted,#64748b);text-align:left;white-space:nowrap;font-size:13px;font-weight:600}.data-table-pagination__buttons{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.data-table-pagination__buttons .btn{min-width:38px;min-height:36px;box-shadow:none;padding:7px 11px}@media (width<=640px){.data-table-pagination{flex-direction:column;align-items:stretch}.data-table-pagination__info,.data-table-pagination__buttons{text-align:center;justify-content:center}}.row-actions{justify-content:flex-end;display:flex}.row-actions__trigger{width:36px;height:36px;color:var(--text-muted,#64748b);background:0 0;border:1px solid #0000;border-radius:10px;place-items:center;padding:0;font-size:22px;font-weight:800;line-height:1;transition:border-color .18s,background-color .18s,color .18s;display:grid}.row-actions__trigger:hover,.row-actions__trigger.is-open{border-color:var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8)}.row-actions__trigger:focus-visible{outline-offset:2px;outline:3px solid #3ba9fc47}.row-actions__menu{z-index:5000;border:1px solid var(--border,#dbe5f0);background:var(--surface,#fff);border-radius:13px;width:184px;padding:6px;animation:.14s ease-out row-actions-enter;position:fixed;box-shadow:0 18px 45px #0f172a2e}.row-actions__menu button{width:100%;min-height:40px;color:var(--text,#334155);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;font-size:13px;font-weight:650;display:flex}.row-actions__menu button:hover,.row-actions__menu button:focus-visible{background:var(--surface-hover,#f0f7ff);color:var(--accent-text,#1d4ed8);outline:none}.row-actions__menu .row-actions__item--danger{color:var(--danger-text,#be123c)}.row-actions__menu .row-actions__item--danger:hover,.row-actions__menu .row-actions__item--danger:focus-visible{background:var(--danger-soft,#fff1f2);color:var(--danger-text,#9f1239)}.row-actions__item-icon{color:currentColor;place-items:center;width:22px;height:22px;font-size:15px;display:inline-grid}.row-actions__trigger:disabled,.row-actions__menu button:disabled{opacity:.45;cursor:not-allowed}@keyframes row-actions-enter{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.row-actions__menu{animation:none}}.scope-tabs{margin-bottom:18px}.scope-tabs__track{border:1px solid var(--border,#dbe5f0);background:var(--surface-muted,#eef5fc);scrollbar-width:none;border-radius:14px;max-width:100%;padding:5px;display:inline-flex;overflow-x:auto}.scope-tabs__track::-webkit-scrollbar{display:none}.scope-tabs button{min-height:40px;color:var(--text-muted,#64748b);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;padding:8px 17px;font-size:13px;font-weight:700;transition:color .18s,background-color .18s,box-shadow .18s}.scope-tabs button:hover{background:var(--surface-glass,#ffffffa6);color:var(--accent-text,#1d4ed8)}.scope-tabs button:focus-visible{outline-offset:1px;outline:3px solid #3b82f647}.scope-tabs button.is-active{background:var(--surface,#fff);color:var(--accent-text,#1d4ed8);box-shadow:0 3px 10px #0f172a14}@media (width<=700px){.scope-tabs__track{width:100%;display:flex}}.share-game-dialog{color:var(--text,#0f172a)}.share-game-dialog__game{border:1px solid var(--border,#dbe5f0);background:linear-gradient(135deg, var(--surface-muted,#f8fbff), var(--accent-soft,#eff6ff));border-radius:13px;align-items:center;gap:11px;padding:13px;display:flex}.share-game-dialog__game-icon{border:1px solid var(--accent-border,#bfdbfe);background:var(--surface,#fff);width:42px;height:42px;color:var(--accent-text,#2563eb);border-radius:12px;flex:0 0 42px;place-items:center;font-size:25px;display:grid}.share-game-dialog__game-details{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.share-game-dialog__game-details strong,.share-game-dialog__game-details small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.share-game-dialog__game-details strong{color:var(--text,#172554);font-size:13px}.share-game-dialog__game-details small{color:var(--text-muted,#64748b);font-size:11px}.share-game-dialog__result{border:1px solid var(--accent-border,#bfdbfe);background:var(--surface,#fff);color:var(--accent-text,#1d4ed8);border-radius:999px;flex:none;padding:5px 8px;font-size:11px;font-weight:800}.share-game-dialog__form{margin-top:18px}.share-game-dialog__input{background:var(--canvas,#f8fafc);width:100%;min-height:42px;border-color:var(--border,#cbd5e1)!important;border-radius:10px!important;min-width:0!important}.share-game-dialog__input:focus,.share-game-dialog__select:focus{outline:3px solid #3ba9fc29;border-color:#3ba9fc!important}.share-game-dialog__search-status{border:1px dashed var(--border,#cbd5e1);min-height:58px;color:var(--text-muted,#64748b);text-align:center;border-radius:10px;justify-content:center;align-items:center;gap:9px;margin:-8px 0 16px;padding:11px 12px;display:flex}.share-game-dialog__search-status>span{color:#3b82f6;font-size:19px}.share-game-dialog__search-status p{margin:0;font-size:12px;line-height:1.4}.share-game-dialog__search-results{flex-direction:column;gap:4px;width:100%;max-height:174px;display:flex;overflow-y:auto}.share-game-dialog__search-result,.share-game-dialog__selected-user{width:100%;color:var(--text,#0f172a);font:inherit;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:9px;padding:7px;display:flex}.share-game-dialog__search-result{cursor:pointer}.share-game-dialog__search-result:hover,.share-game-dialog__search-result:focus-visible{background:var(--accent-soft,#eaf4ff);outline:none}.share-game-dialog__search-result>span:last-child,.share-game-dialog__selected-user>span:nth-child(2){flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.share-game-dialog__search-result strong,.share-game-dialog__selected-user strong{color:var(--text,#172554);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.share-game-dialog__search-result small,.share-game-dialog__selected-user small{color:var(--text-muted,#64748b);font-size:10px}.share-game-dialog__selected-user{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);cursor:pointer}.share-game-dialog__selected-user i{color:var(--text-muted,#64748b);font-size:18px;font-style:normal}.share-game-dialog__select{border:1px solid var(--border,#cbd5e1);background:var(--canvas,#f8fafc);width:100%;min-height:42px;color:var(--text,#0f172a);font:inherit;border-radius:10px;padding:9px 36px 9px 12px;font-size:14px}.share-game-dialog__permission-note{background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);border-radius:10px;align-items:flex-start;gap:10px;margin:-7px 0 20px;padding:11px 12px;display:flex}.share-game-dialog__permission-note>span{flex:0 0 24px;place-items:center;width:24px;height:24px;font-size:14px;display:grid}.share-game-dialog__permission-note p{color:var(--text-secondary,#475569);flex-direction:column;gap:2px;margin:0;font-size:11px;line-height:1.45;display:flex}.share-game-dialog__permission-note strong{color:var(--accent-text,#1d4ed8);font-size:12px}.share-game-dialog__permissions{border:0;gap:8px;margin:0 0 20px;padding:0;display:grid}.share-game-dialog__permissions legend{color:var(--text,#334155);margin-bottom:8px;font-size:12px;font-weight:700}.share-game-dialog__permission-option{border:1px solid var(--border,#dbe5f0);background:var(--canvas,#f8fafc);cursor:pointer;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.share-game-dialog__permission-option:has(input:checked){border-color:var(--accent-border,#93c5fd);background:var(--accent-soft,#eff6ff)}.share-game-dialog__permission-option input{accent-color:#2563eb;margin-top:3px}.share-game-dialog__permission-option span{flex-direction:column;gap:2px;display:flex}.share-game-dialog__permission-option strong{color:var(--text,#172554);font-size:12px}.share-game-dialog__permission-option small{color:var(--text-muted,#64748b);font-size:10px;line-height:1.4}.share-game-dialog__section-heading{border-top:1px solid var(--border,#e2e8f0);justify-content:space-between;align-items:center;gap:12px;padding-top:17px;display:flex}.share-game-dialog__section-heading h3{color:var(--text,#172554);margin:0;font-size:14px}.share-game-dialog__section-heading p{color:var(--text-muted,#64748b);margin:3px 0 0;font-size:11px}.share-game-dialog__section-heading>span{background:var(--accent-soft,#eaf4ff);min-width:24px;height:24px;color:var(--accent-text,#1d4ed8);border-radius:999px;place-items:center;padding:0 6px;font-size:11px;font-weight:700;display:grid}.share-game-dialog__person{border:1px solid var(--border,#e2e8f0);border-radius:11px;align-items:center;gap:10px;margin-top:12px;padding:10px;display:flex}.share-game-dialog__people{flex-direction:column;gap:8px;margin-top:12px;display:flex}.share-game-dialog__people .share-game-dialog__person{margin-top:0}.share-game-dialog__people-status{border:1px dashed var(--border,#cbd5e1);color:var(--text-muted,#64748b);text-align:center;border-radius:10px;margin:0;padding:11px;font-size:11px}.share-game-dialog__people-status--error{border-color:var(--danger-border,#fecaca);background:var(--danger-soft,#fff7f7);color:var(--danger-text,#b91c1c);text-align:left;justify-content:space-between;align-items:center;gap:8px;display:flex}.share-game-dialog__people-status button{background:var(--danger-soft,#fee2e2);color:var(--danger-text,#991b1b);cursor:pointer;font:inherit;white-space:nowrap;border:0;border-radius:7px;padding:4px 7px;font-weight:700}.share-game-dialog__avatar{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);width:36px;height:36px;color:var(--accent-text,#1d4ed8);border-radius:11px;flex:0 0 36px;place-items:center;font-size:11px;font-weight:800;display:grid}.share-game-dialog__identity{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.share-game-dialog__identity strong,.share-game-dialog__identity small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.share-game-dialog__identity strong{color:var(--text,#172554);font-size:12px}.share-game-dialog__identity small{color:var(--text-muted,#64748b);font-size:10px}.share-game-dialog__person--database{flex-wrap:wrap}.share-game-dialog__person-permissions{border-top:1px solid var(--border,#eef2f7);gap:13px;width:100%;padding:9px 0 0 46px;display:flex}.share-game-dialog__person-permissions label{color:var(--text-secondary,#475569);cursor:pointer;align-items:center;gap:5px;font-size:10px;font-weight:700;display:inline-flex}.share-game-dialog__person-permissions input{accent-color:#2563eb}.share-game-dialog__person-permissions input:disabled{cursor:wait}.share-game-dialog__role-select{border:1px solid var(--border,#cbd5e1);background:var(--canvas,#f8fafc);max-width:78px;min-height:30px;color:var(--text,#334155);font:inherit;border-radius:8px;flex:none;padding:4px 22px 4px 7px;font-size:10px;font-weight:700}.share-game-dialog__role-select:focus{border-color:#3ba9fc;outline:3px solid #3ba9fc29}.share-game-dialog__remove{width:28px;height:28px;color:var(--text-muted,#94a3b8);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:0 0 28px;place-items:center;padding:0;font-size:18px;display:grid}.share-game-dialog__remove:hover:not(:disabled),.share-game-dialog__remove:focus-visible{background:var(--danger-soft,#fee2e2);color:var(--danger-text,#dc2626);outline:none}.share-game-dialog__remove:disabled,.share-game-dialog__role-select:disabled{cursor:wait;opacity:.55}.share-game-dialog__actions{border-top:1px solid var(--border,#e2e8f0);justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;display:flex}.share-game-dialog__actions--share{border-top:0;margin:-5px 0 18px;padding-top:0}@media (width<=480px){.share-game-dialog__game{gap:8px;padding:10px}.share-game-dialog__game-icon{flex-basis:36px;width:36px;height:36px;font-size:21px}.share-game-dialog__person{grid-template-columns:36px minmax(0,1fr) auto;gap:7px 8px;display:grid}.share-game-dialog__person>.share-game-dialog__avatar{grid-area:1/1/span 2}.share-game-dialog__person>.share-game-dialog__identity{grid-area:1/2}.share-game-dialog__person>.share-game-dialog__role-select{grid-area:2/2/auto/4;width:100%;max-width:none}.share-game-dialog__person>.share-game-dialog__remove{grid-area:1/3}.share-game-dialog__person--database>.share-game-dialog__person-permissions{flex-wrap:wrap;grid-area:3/1/auto/4;width:auto;padding:9px 0 0}.share-game-dialog__actions .btn{width:100%}}.databases-page{width:min(1180px,100%);color:var(--text,#0f172a);margin:0 auto;padding:32px}.databases-page__toolbar p{color:var(--text-muted,#64748b);margin:0;font-size:14px;line-height:1.5}.databases-page__eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:700}.databases-page__panel{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:20px;overflow:hidden;box-shadow:0 12px 34px #0f172a0f}.databases-page__toolbar{border-bottom:1px solid var(--border,#eaf0f6);justify-content:space-between;align-items:center;gap:20px;padding:23px 26px;display:flex}.databases-page__toolbar h2{color:var(--text,#172554);margin:3px 0 4px;font-size:20px}.databases-page__toolbar-actions{flex:none;align-items:center;gap:10px;display:flex}.databases-page__count{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700}.databases-page__table{padding:20px 24px 24px}.databases-page__table .data-table{min-width:800px}.databases-page__status{min-height:220px;color:var(--text-muted,#64748b);place-items:center;font-size:14px;font-weight:600;display:grid}.databases-page__status--error{color:var(--danger-text,#b91c1c)}.databases-page__database-name{grid-template-rows:auto auto;grid-template-columns:38px minmax(0,1fr);align-items:center;column-gap:11px;min-width:180px;display:grid}.databases-page__database-name>span{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);width:38px;height:38px;color:var(--accent-text,#2563eb);border-radius:11px;grid-row:1/3;place-items:center;font-size:21px;display:grid}.databases-page__database-name strong{color:var(--text,#172554);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.databases-page__database-name small{color:var(--text-muted,#94a3b8);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.databases-page__description{max-width:320px;color:var(--text-secondary,#475569);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.databases-page__visibility{border:1px solid var(--border,#cbd5e1);background:var(--canvas,#f8fafc);color:var(--text-secondary,#475569);text-transform:capitalize;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700;display:inline-flex}.databases-page__visibility--public{background:var(--success-soft,#f0fdf4);color:var(--success-text,#15803d);border-color:#bbf7d0}.databases-page__visibility--shared{border-color:var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8)}.databases-page__row-actions{justify-content:flex-end;gap:7px;display:flex}.databases-page__icon-button{min-height:35px;box-shadow:none;padding:7px 10px;font-size:12px}@media (width<=700px){.databases-page{padding:16px}.databases-page__panel{border-radius:16px}.databases-page__toolbar{flex-direction:column;align-items:flex-start;padding:19px}.databases-page__toolbar-actions{justify-content:space-between;width:100%}.databases-page__table{padding:12px}}.chessboardContainer{position:relative}.promotionOverlay{z-index:20;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a9e;border-radius:10px;place-items:center;display:grid;position:absolute;inset:10px 0 0}.promotionDialog{background:var(--surface,#fff);text-align:center;border:1px solid #ffffffa6;border-radius:16px;width:min(390px,100% - 28px);padding:20px;box-shadow:0 18px 48px #0f172a4d}.promotionDialog h2{font-size:1.25rem}.promotionDialog p{color:var(--text-muted,#64748b);margin-top:4px;font-size:.85rem}.promotionChoices{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px;display:grid}.promotionChoice{border:1px solid var(--border,#dbe3ee);background:var(--canvas,#f8fafc);min-width:0;color:var(--text,#334155);border-radius:11px;flex-direction:column;align-items:center;gap:4px;padding:8px 5px 7px;font-size:.68rem;font-weight:700;transition:border-color .16s,background-color .16s,transform .16s;display:flex}.promotionChoice svg{width:min(54px,100%);height:auto}.promotionChoice:hover{border-color:var(--accent-border,#93c5fd);background:var(--accent-soft,#eff6ff);transform:translateY(-1px)}.promotionChoice:focus-visible,.promotionCancel:focus-visible{outline-offset:2px;outline:3px solid #3b82f64d}.promotionCancel{color:var(--text-muted,#64748b);background:0 0;border:0;margin-top:15px;font-size:.8rem;font-weight:700}.promotionCancel:hover{color:var(--accent-text,#1d4ed8)}@media (width<=480px){.promotionDialog{padding:14px}.promotionChoices{gap:5px}.promotionChoice{font-size:.6rem}}.moveControls{border:1px solid var(--border,#dbe3ee);background:var(--surface-glass,#fffffff0);border-radius:14px;align-items:center;gap:4px;margin-top:14px;padding:5px;display:inline-flex;box-shadow:0 8px 24px #0f172a1a}.moveControlButton{width:52px;height:42px;color:var(--text,#334155);background:0 0;border:0;border-radius:10px;place-items:center;transition:color .16s,background-color .16s,transform .16s;display:grid;position:relative}.moveControlButton:hover{background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);transform:translateY(-1px)}.moveControlButton:active{background:var(--accent-soft-strong,#dbeafe);transform:translateY(0)}.moveControlButton:focus-visible{outline-offset:2px;outline:3px solid #3b82f647}.moveControlIcon{width:22px;height:22px}.flipBoardButton{border-left:1px solid var(--border,#dbe3ee);border-radius:0 10px 10px 0;margin-left:4px}.moveControlButton:disabled{opacity:.35;cursor:default;transform:none}.moveControlButton:disabled:hover{color:var(--text,#334155);background:0 0}.pageLayout{height:var(--game-workspace-height,calc(100dvh - 72px));box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(320px,370px);gap:20px;min-height:0;padding:20px;display:grid}.leftColumn{flex-direction:column;align-items:center;height:100%;display:flex;overflow:hidden}.boardWrapper{justify-content:center;align-items:center;width:min(90vw,1600px);height:min(75vh,1600px);display:flex}.rightColumn{flex-direction:column;gap:10px;min-width:0;min-height:0;padding-right:5px;display:flex;overflow:hidden}.gameViewToolbar{flex-shrink:0;align-items:center;gap:6px;display:flex}.gameViewToolbar .row-actions__trigger{border-radius:7px;width:30px;height:30px}.gameViewToolbar>.row-actions{margin-left:auto}.gameViewTabs{border:1px solid var(--border,#e2e8f0);background:var(--surface-muted,#f1f5f9);border-radius:8px;place-self:flex-start start;gap:2px;width:fit-content;padding:2px;display:inline-flex}.gameViewTabs>button{min-height:26px;color:var(--text-muted,#64748b);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:3px 10px;font-size:11px;font-weight:600;line-height:18px}.gameViewTabs>button:hover{color:var(--accent-text,#1d4ed8)}.gameViewTabs>button[aria-selected=true]{background:var(--surface,#fff);color:var(--accent-text,#1d4ed8);box-shadow:0 1px 3px #0f172a14}.gameViewTabs>button:focus-visible{outline-offset:1px;outline:2px solid #3b82f6}.gameDataPanel:not([hidden]){flex-direction:column;gap:10px;display:flex}.pgnEditor{border:1px solid var(--border,#dbe3ee);background:var(--surface,#fff);border-radius:14px;padding:16px}.pgnEditorText{box-sizing:border-box;resize:vertical;border:1px solid var(--border,#cbd5e1);width:100%;min-height:420px;max-height:70vh;color:var(--text,#0f172a);background:var(--canvas,#f8fafc);border-radius:8px;padding:12px;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;display:block}.pgnEditorText:focus-visible{outline-offset:2px;outline:3px solid #3b82f647}.pgnEditorHint{color:var(--text-muted,#64748b);font-size:.8rem;line-height:1.5}.pgnEditorError{color:var(--danger-text,#b91c1c);font-size:.85rem}.pgnEditorActions{flex-wrap:nowrap;align-items:center;gap:4px;display:flex}.pgnEditorActions .btn{white-space:nowrap;min-height:28px;box-shadow:none;border-radius:6px;gap:4px;padding:5px;font-size:11px;font-weight:600;line-height:16px}.pgnEditorActions .btn:hover{box-shadow:none;transform:none}.pgnEditorReset{min-height:28px;color:var(--text-muted,#64748b);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:4px;flex-shrink:0;align-items:center;padding:4px 3px;font-size:11px;line-height:16px;display:inline-flex}.pgnEditorReset:hover{color:var(--accent-text,#1d4ed8);background:var(--accent-soft,#eff6ff)}.pgnEditorReset:focus-visible{outline-offset:2px;outline:2px solid #3b82f6}.gameInfoCard{border:1px solid var(--border,#dbe3ee);background:var(--surface,#fff);border-radius:14px;flex:none;overflow:hidden;box-shadow:0 8px 24px #0f172a0f}.gameInfoHeader{border-bottom:1px solid var(--border,#edf2f7);color:var(--text-muted,#64748b);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;align-items:center;padding:7px 11px;font-size:.65rem;font-weight:800;display:flex}.gameInfoHeader strong{color:var(--text,#0f172a);font-size:.78rem}.gameInfoPlayers{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;padding:8px 11px;display:grid}.gameInfoPlayer{grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;min-width:0;display:grid}.gameInfoPlayer>span{color:var(--text-muted,#94a3b8);text-transform:uppercase;grid-column:1/-1;font-size:.6rem;font-weight:800}.gameInfoPlayer strong{color:var(--text,#0f172a);white-space:normal;overflow-wrap:anywhere;grid-column:1/-1;font-size:.78rem}.gameInfoPlayer small{color:var(--text-muted,#64748b);font-size:.66rem}.gameInfoPlayer .gameInfoTitle{color:var(--text-muted,#64748b);font-size:.7rem}.gameInfoPlayer .gameInfoFideId{overflow-wrap:anywhere;grid-column:1/-1}.gameInfoPlayerBlack{text-align:right}.gameInfoVersus{color:#cbd5e1;text-transform:uppercase;font-size:.62rem;font-weight:800}.gameInfoMeta{border-top:1px solid var(--border,#edf2f7);grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 10px;padding:6px 11px 8px;display:grid}.gameInfoMeta span{min-width:0;color:var(--text-muted,#94a3b8);justify-content:space-between;gap:6px;font-size:.61rem;display:flex}.gameInfoMeta strong{color:var(--text-secondary,#475569);text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.gameInfoOwnership{border-top:1px solid var(--border,#edf2f7);color:var(--text-muted,#94a3b8);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 11px;font-size:.65rem;font-weight:700;display:grid}.gameInfoOwnership a,.gameInfoOwnership strong{color:var(--accent-text,#1d4ed8);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;font-weight:800;text-decoration:none;overflow:hidden}.gameInfoOwnership a:hover{text-decoration:underline}.gameInfoOwnership a:focus-visible{outline-offset:2px;border-radius:3px;outline:2px solid #2563eb4d}.gameInfoOwnership small{border:1px solid var(--accent-border,#dbeafe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#2563eb);white-space:nowrap;border-radius:999px;padding:3px 6px;font-size:.57rem;font-weight:800}.gameInfoState{color:var(--text-muted,#64748b);padding:11px;font-size:.75rem}.gameInfoError{color:var(--danger-text,#be123c)}.scoreSheet{z-index:4;border:1px solid var(--border,#dbe3ee);background:var(--surface,#fff);border-radius:14px;flex-direction:column;flex:0 0 min(52vh,470px);min-height:290px;max-height:min(52vh,470px);display:flex;position:sticky;top:0;overflow:hidden;box-shadow:0 12px 30px #0f172a1a}.scoreSheetHeader{border-bottom:1px solid var(--border,#e8eef5);background:var(--surface,#fff);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 12px;display:flex}.scoreSheetEyebrow{color:var(--text-muted,#94a3b8);letter-spacing:.1em;text-transform:uppercase;margin-bottom:2px;font-size:.65rem;font-weight:800;display:block}.scoreSheetHeader h3{color:var(--text,#0f172a);margin:0;font-size:1.05rem}.scoreSheetMoves{min-height:0;color:var(--text,#334155);scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin;flex:1;padding:14px 16px;font-size:.92rem;line-height:1.85;overflow-y:auto}.scoreSheetMove{color:var(--text,#334155);cursor:pointer;border-radius:5px;margin-right:2px;padding:3px 2px;transition:color .15s,background-color .15s}.scoreSheetMove:hover{background:var(--surface-muted,#f1f5f9);color:var(--text,#0f172a)}.scoreSheetMove.isCurrent{background:var(--accent-soft-strong,#dbeafe);color:var(--accent-text,#1d4ed8);font-weight:800}.scoreSheetMove:focus-visible{outline-offset:1px;outline:2px solid #2563eb59}.scoreSheetAnnotations{vertical-align:middle;flex-wrap:wrap;gap:4px;margin-left:5px;display:inline-flex}.scoreSheetAnnotation{background:var(--surface-muted,#f1f5f9);color:var(--text-muted,#64748b);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:5px;align-items:center;gap:4px;padding:2px 5px;font-size:.7rem;font-style:normal;font-weight:500;line-height:1.4;display:inline-flex}.scoreSheetAnnotation svg{flex-shrink:0}.scoreSheetInlineComment{color:var(--text-muted,#64748b);white-space:pre-wrap;margin-left:4px;font-style:italic}.scoreSheetStartingComment{color:var(--text-muted,#64748b);white-space:pre-wrap;margin-right:4px;font-style:italic}.scoreSheetOpeningComment{border-bottom:1px solid var(--border,#e8eef5);color:var(--text-muted,#64748b);margin-bottom:12px;padding-bottom:12px;font-size:.85rem}.scoreSheetOpeningComment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 8px}.moveCommentFields{gap:16px;display:grid}.moveCommentTextarea{box-sizing:border-box;resize:vertical;border:1px solid var(--border,#cbd5e1);width:100%;min-height:100px;font:inherit;border-radius:8px;padding:10px;line-height:1.4}.moveCommentHint{color:var(--text-muted,#64748b);font-size:.82rem;line-height:1.5}.moveCommentActions{justify-content:flex-end;gap:8px;display:flex}.scoreSheetTable .scoreSheetAnnotations{flex-wrap:nowrap}.scoreSheetTable td>.scoreSheetMove{white-space:nowrap}.scoreSheetEmpty{color:var(--text-muted,#94a3b8);margin:0;font-size:.86rem}.scoreSheetTools{border-top:1px solid var(--border,#e8eef5);background:var(--surface-muted,#fbfdff);flex:none;padding:10px 12px 12px}.gameActions{flex-wrap:wrap;flex:none;gap:10px;display:flex}.gameSaveWarning{background:var(--warning-soft,#fffbeb);color:var(--warning-text,#92400e);border:1px solid #fde68a;border-radius:8px;flex-basis:100%;margin:0;padding:10px 12px;font-size:.8rem;line-height:1.5}.gameDataDialogForm{width:100%}.gameDataFieldRow{gap:12px;display:grid}.gameDataFieldRowPlayer{grid-template-columns:minmax(0,1fr) minmax(96px,140px)}.gameDataFieldRowPlayerDetails{grid-template-columns:minmax(96px,140px) minmax(0,1fr)}.gameDataFieldRowEvent{grid-template-columns:minmax(0,1fr) minmax(96px,140px)}.scoreSheetNagBar{grid-template-columns:auto minmax(0,1fr) auto;gap:6px;display:grid}.scoreSheetNagScroller{grid-column:2;gap:5px;min-width:0;display:flex;overflow-x:hidden}.scoreSheetNagButton{border:1px solid var(--border,#d7dee8);background:var(--canvas,#f8fafc);min-width:31px;height:28px;color:var(--text,#0f172a);cursor:pointer;border-radius:6px;flex:none;padding:0 7px;font-size:.78rem;font-weight:800;line-height:1}.scoreSheetNagButton:hover:not(:disabled){background:var(--success-soft,#f0fdfa);border-color:#0f766e}.scoreSheetNagButton.isActive{background:var(--success-soft,#ccfbf1);color:var(--success-text,#134e4a);border-color:#0f766e}.scoreSheetNagButton:disabled{cursor:not-allowed;opacity:.45}.scoreSheetNagMore{min-width:30px;padding:0;font-size:1.1rem}.scoreSheetNagLeft{grid-column:1}.scoreSheetNagRight{grid-column:3}.scoreSheetCommentActions{justify-content:flex-start;gap:6px;margin-top:9px;display:flex}.scoreSheetCommentButton,.scoreSheetPromoteButton,.scoreSheetDeleteButton{border:1px solid var(--border,#d7dee8);background:var(--canvas,#f8fafc);min-height:28px;color:var(--text,#0f172a);cursor:pointer;border-radius:6px;padding:0 10px;font-size:.78rem;font-weight:700}.scoreSheetPromoteButton,.scoreSheetDeleteButton{justify-content:center;align-items:center;width:30px;min-width:30px;padding:0;display:inline-flex}.scoreSheetPromoteButton{border-color:var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8)}.scoreSheetDeleteButton{border-color:var(--danger-border,#fecdd3);background:var(--danger-soft,#fff1f2);color:var(--danger-text,#be123c)}.scoreSheetCommentButton:hover:not(:disabled){background:var(--accent-soft,#eff6ff);border-color:#2563eb}.scoreSheetPromoteButton:hover:not(:disabled){background:var(--accent-soft-strong,#dbeafe);border-color:#3b82f6}.scoreSheetDeleteButton:hover:not(:disabled){background:var(--danger-soft,#ffe4e6);border-color:#f43f5e}.scoreSheetCommentButton:disabled,.scoreSheetPromoteButton:disabled,.scoreSheetDeleteButton:disabled{cursor:not-allowed;opacity:.45}.analysisWorkspace{border:1px solid var(--border,#dbe3ee);background:var(--surface,#fff);border-radius:16px;flex:none;overflow:hidden;box-shadow:0 12px 30px #0f172a14}.analysisCompactToolbar{background:var(--canvas,#f8fafc);justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}.analysisCompactToolbar>strong{color:var(--text-secondary,#475569);letter-spacing:.04em;text-transform:uppercase;font-size:.7rem}.analysisCompactActions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.analysisCompactButton.btn{white-space:nowrap;border-radius:7px;min-width:0;padding:.3rem .48rem;font-size:.62rem;line-height:1.1}.analysisCompactContent{border-top:1px solid var(--border,#e8eef5);background:var(--surface,#fff);flex-direction:column;gap:4px;padding:4px 8px;display:flex}.analysisBookContent{padding-block:3px}.analysisEmpty,.analysisLine p,.bestMove,.analysisError{margin:0}.analysisLines{flex-direction:column;gap:0;min-height:72px;display:flex}.analysisLine{border:0;border-bottom:1px solid var(--border,#e8eef5);background:0 0;border-radius:0;grid-template-columns:auto auto auto minmax(0,1fr);align-items:center;gap:8px;min-height:24px;padding:2px 0;display:grid}.analysisLine:last-child{border-bottom:0}.analysisLineMeta{font-size:.72rem;display:contents}.analysisLineMeta span{color:var(--text,#334155);font-weight:700}.analysisLineMeta strong{color:var(--success-text,#0f766e)}.analysisLineMeta small{color:var(--text-muted,#64748b)}.analysisLine p{min-width:0;color:var(--text,#1e293b);scrollbar-width:none;white-space:nowrap;font-size:.75rem;line-height:1.2;overflow-x:auto}.analysisLine p::-webkit-scrollbar{display:none}.analysisEmpty{color:var(--text-muted,#64748b);font-size:.9rem}.analysisError{color:var(--danger-text,#be123c);font-size:.9rem}.bestMove{color:var(--text,#334155);font-size:.9rem;font-weight:600}.openingBookMoves{scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin;flex-direction:column;gap:0;max-height:150px;display:flex;overflow-y:auto}.openingBookMove{border:0;border-bottom:1px solid var(--border,#edf2f7);background:var(--surface,#fff);border-radius:0;grid-template-columns:54px minmax(55px,1fr) auto;align-items:center;gap:7px;min-height:27px;padding:3px 2px;display:grid}.openingBookMove:last-child{border-bottom:0}.openingBookMoveHeader{gap:0;min-width:0;margin:0;display:grid}.openingBookMoveHeader strong{color:var(--text,#0f172a);text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;overflow:hidden}.openingBookMoveHeader span,.openingBookResultLabels{color:var(--text-muted,#64748b);font-size:.58rem;font-weight:700}.openingBookStats{background:#e2e8f0;border-radius:999px;width:100%;height:5px;display:flex;overflow:hidden}.openingBookStat{min-width:0;height:100%}.openingBookStatWhite{background:#2563eb}.openingBookStatDraw{background:#94a3b8}.openingBookStatBlack{background:#dc2626}.openingBookResultLabels{white-space:nowrap;gap:5px;margin:0;display:flex}@media (width>=901px){.pageLayout{gap:16px;padding:14px}.leftColumn{--game-board-size:min(calc(100cqw - 4px), calc(100cqh - 90px));min-width:0;min-height:0;container-type:size}.boardWrapper{flex:1;width:100%;height:auto;min-height:0}.leftColumn>.moveControls{flex-shrink:0;margin-bottom:4px}.gameViewTabs{flex-shrink:0}.gameDataPanel:not([hidden]),#game-pgn-panel:not([hidden]){flex:1;min-height:0}.gameDataPanel>.scoreSheet{flex:1 1 0;min-height:0;max-height:none;position:relative;top:auto}.gameDataPanel>.analysisWorkspace{scrollbar-width:thin;flex-shrink:1;min-height:40px;max-height:35%;overflow-y:auto}.scoreSheetHeader{padding:8px 12px}.scoreSheetTools{padding:7px 10px}.scoreSheetMoves{padding:10px 12px}.pgnEditor{box-sizing:border-box;flex-direction:column;height:100%;min-height:0;padding:12px;display:flex}.pgnEditorField{flex:1;min-height:0}.pgnEditorText{resize:none;flex:1;min-height:0;max-height:none}.pgnEditor>.pgnEditorHint{flex-shrink:0;margin:0 0 8px}.pgnEditor>.pgnEditorHint:last-child{margin:8px 0 0}.pgnEditor>.pgnEditorHint:empty{display:none}.pgnEditorActions{flex-shrink:0}}@media (width<=900px){html,body,#root{min-height:100%}.pageLayout{grid-template-columns:1fr;height:auto;min-height:100vh;overflow:visible}.rightColumn{display:contents}.pageLayout .gameInfoCard{order:-1}.scoreSheet{flex-basis:430px;height:430px;max-height:70vh;position:relative;top:auto}.leftColumn{height:auto}.boardWrapper{width:100%;height:auto}}@media (width<=520px){.pageLayout{gap:14px;padding:12px}.rightColumn{gap:14px;padding-right:0}.gameDataFieldRow{grid-template-columns:1fr;gap:0}.analysisCompactButton.btn{padding-inline:.4rem}}.scoreSheetLayoutSwitch{border:1px solid var(--border,#e2e8f0);background:var(--canvas,#f8fafc);border-radius:8px;padding:3px;display:flex}.scoreSheetLayoutSwitch button{color:var(--text-muted,#64748b);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:5px 9px;font-size:.75rem}.scoreSheetLayoutSwitch button[aria-pressed=true]{background:var(--surface,#fff);color:var(--accent-text,#1d4ed8);font-weight:700;box-shadow:0 1px 4px #0f172a1a}.scoreSheetTable{border-collapse:collapse;table-layout:fixed;width:100%}.scoreSheetTable th,.scoreSheetTable td{border-bottom:1px solid var(--border,#e8eef5);text-align:left;vertical-align:top;padding:6px 8px}.scoreSheetTable thead th{color:var(--text-muted,#64748b);font-size:.72rem;font-weight:700}.scoreSheetTable th:first-child{width:32px;color:var(--text-muted,#94a3b8);font-size:.75rem;font-weight:500}.scoreSheetTable td>.scoreSheetMove{overflow-wrap:anywhere;padding:2px 6px;display:block}.scoreSheetDetailRow td{background:var(--canvas,#f8fafc);overflow-wrap:anywhere;font-size:.8rem}.scoreSheetComment{color:var(--text-muted,#64748b);white-space:pre-wrap;padding:4px 0}.scoreSheetComment strong{color:var(--text-secondary,#475569);margin-right:5px;font-size:.73rem}.scoreSheetVariation{border-left:2px solid var(--border,#cbd5e1);margin:6px 0;padding-left:10px}.gameBackButton{border:1px solid var(--border,#dbe3ee);background:var(--surface,#fff);width:36px;height:36px;color:var(--text,#334155);cursor:pointer;border-radius:10px;flex-shrink:0;align-self:flex-start;place-items:center;margin-bottom:4px;display:grid}.gameBackButton:hover{background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8)}.gameBackButton:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}@media (width>=901px){.leftColumn:has(.gameBackButton){--game-board-size:min(calc(100cqw - 4px), calc(100cqh - 130px))}}.player-matchup{gap:8px;min-width:220px;max-width:360px;display:grid}.player-matchup__row{grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;display:grid}.player-matchup__badge{border:1px solid #cbd5e1;border-radius:8px;place-items:center;width:24px;height:24px;font:700 10px/1 system-ui,sans-serif;display:grid}.player-matchup__badge--white{color:#334155;background:#f1f5f9}.player-matchup__badge--black{color:#e5edf8;background:#24344d;border-color:#627b9c}.player-matchup__name{color:var(--text,#172554);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;line-height:1.4;overflow:hidden}.player-matchup__rating{background:var(--surface-muted,#f1f5f9);min-width:40px;color:var(--text-secondary,#475569);font-variant-numeric:tabular-nums;text-align:center;border-radius:6px;padding:3px 6px;font-size:11px;font-weight:600}.player-matchup__side{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.game-search-workspace{align-items:start;gap:20px;display:grid}.game-search-workspace--split{grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);max-width:1358px;margin-inline:auto}.game-search-workspace__results{min-width:0}.game-search-workspace .data-table{min-width:620px}.game-search-workspace--split .data-table th,.game-search-workspace--split .data-table td{padding:12px 10px}.game-search-workspace .data-table__preview-row{background:var(--accent-soft,#eff6ff);box-shadow:inset 3px 0 #2563eb}.game-preview{border:1px solid var(--border,#dbe5f0);background:var(--surface-muted,#f8fbff);min-width:0;color:var(--text,#334155);border-radius:16px;padding:18px;position:sticky;top:16px}.game-preview__header{justify-content:space-between;align-items:center;display:flex}.game-preview__eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.08em;text-transform:uppercase;font-size:10px;font-weight:700}.game-preview h3{color:var(--text,#172554);margin:3px 0 0;font-size:18px}.game-preview button{cursor:pointer;border:1px solid var(--border,#dbe5f0);background:var(--surface,white);color:var(--text,#334155);border-radius:7px;padding:7px 10px}.game-preview button:hover{background:var(--accent-soft-strong,#dbeafe);color:var(--accent-text,#1d4ed8)}.game-preview button:focus-visible,.game-preview:focus-visible,.game-search-workspace .data-table__interactive-row:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.game-preview button:disabled{opacity:.35;cursor:default}.game-preview__players{overflow-wrap:anywhere;gap:5px;margin:16px 0 8px;display:grid}.game-preview__players strong{font-size:14px}.game-preview__players small{color:var(--text-muted,#64748b);font-weight:400}.game-preview__players>span{color:var(--text-muted,#64748b);margin-top:4px;font-size:12px}.game-preview__board{--game-board-size:100%;aspect-ratio:1;width:100%}.game-preview__board .chessboardContainer{width:100%}.game-preview__controls{box-shadow:none;justify-content:space-between;align-items:center;gap:3px;margin:14px 0;display:flex}.game-preview__controls .moveControlButton{background:0 0;border:0;flex:1;width:auto;min-width:0;height:36px;padding:4px 6px}.game-preview__controls .moveControlIcon{width:18px;height:18px}.game-preview__controls span{white-space:nowrap;font-size:11px}.game-preview__moves{background:var(--surface,white);border:1px solid var(--border,#e2e8f0);border-radius:10px;flex-wrap:wrap;align-content:start;gap:3px;max-height:150px;padding:8px;display:flex;position:relative;overflow-y:auto}.game-preview__moves button{border-color:#0000;padding:6px;font-size:13px}.game-preview__moves small{color:var(--text-muted,#94a3b8);margin-right:5px}.game-preview__moves button[aria-current]{color:#fff;background:#2563eb}.game-preview__moves button[aria-current] small{color:#dbeafe}.game-preview__open{color:#fff;background:#2563eb;border-radius:9px;justify-content:space-between;margin-top:16px;padding:11px 12px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.game-preview__open:hover,.game-preview__open:focus,.game-preview__open:active{color:#fff;background:#1d4ed8}.game-preview__open:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.game-search-hint{color:var(--text-muted,#64748b);margin:0 0 12px;font-size:12px}@media (width<=1050px){.game-search-workspace--split{grid-template-columns:minmax(0,1fr)}.game-preview{box-sizing:border-box;grid-row:1;justify-self:center;width:100%;max-width:440px;position:static}}@media (width>=1051px){.game-search-workspace.game-search-workspace--split .data-table{min-width:460px}.game-search-workspace--split [data-column=event],.game-search-workspace--split [data-column=round],.game-search-workspace--split [data-column=owner]{display:none}}.game-library-results,.chess-db-games-panel{overflow:clip}@media (width>=1051px){.game-library-page.game-search-page--split,.chess-db-page.game-search-page--split{width:min(1472px,100%)}.game-search-workspace--split .game-search-workspace__results{width:100%;max-width:700px}.game-preview{max-height:calc(100dvh - 112px);overflow-y:auto}.game-preview__board{width:min(100%,clamp(240px,100dvh - 510px,600px));margin-inline:auto}.game-preview__moves{max-height:90px}}.game-filters{color:var(--text,#0f172a)}.game-filters-intro{padding:2px 2px 16px}.game-filters-intro__heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.game-filters-clear{color:var(--accent-text,#2563eb);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;flex-shrink:0;font-size:12px;font-weight:700;text-decoration:underline}.game-filters-clear:focus-visible{outline-offset:3px;border-radius:3px;outline:2px solid #2563eb}.game-filters-intro__eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.09em;text-transform:uppercase;font-size:11px;font-weight:800}.game-filters-intro p{color:var(--text-secondary,#475569);margin:5px 0 12px;font-size:14px;line-height:1.5}.game-filters .scope-tabs__track{box-sizing:border-box;width:100%}.game-filters .scope-tabs button{flex:50%}.game-filters-preview-note{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1e40af);border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.5}.game-filters-section{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:14px;min-width:0;margin:0 0 14px;padding:17px}.game-filters-section legend{color:var(--text,#172554);padding:0 6px;font-size:15px;font-weight:800}.game-filters-section__description{color:var(--text-muted,#64748b);margin:0 0 14px;font-size:12px;line-height:1.5}.game-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.game-filters-field{flex-direction:column;gap:6px;min-width:0;display:flex}.game-filters-field__label{color:var(--text,#334155);font-size:12px;font-weight:700}.game-filters-field input,.game-filters-field select,.game-filters-field textarea{box-sizing:border-box;border:1px solid var(--border,#cbd5e1);background:var(--surface,#fff);width:100%;min-width:0;min-height:42px;color:var(--text,#0f172a);font:inherit;border-radius:9px;padding:10px 11px;font-size:14px}.game-filters-field textarea{resize:vertical;min-height:68px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5}.game-filters-field input:focus-visible,.game-filters-field select:focus-visible,.game-filters-field textarea:focus-visible{outline-offset:1px;border-color:#2563eb;outline:3px solid #2563eb33}.game-filters-field__hint{color:var(--text-muted,#64748b);font-size:11px;line-height:1.45}.game-filters-toggle{border:1px solid var(--accent-border,#dbeafe);background:var(--surface-muted,#f8fbff);cursor:pointer;border-radius:10px;align-items:flex-start;gap:10px;margin-top:14px;padding:11px 12px;display:flex}.game-filters-toggle input{accent-color:#2563eb;width:17px;height:17px;margin:2px 0 0}.game-filters-toggle:has(input:disabled){cursor:not-allowed;opacity:.65}.game-filters-toggle span{flex-direction:column;gap:2px;display:flex}.game-filters-toggle strong{font-size:13px}.game-filters-toggle small{color:var(--text-muted,#64748b);font-size:11px;line-height:1.4}.game-filters-rating-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.game-filters-rating-group{border:1px solid var(--border,#e2e8f0);background:var(--canvas,#f8fafc);border-radius:10px;min-width:0;padding:13px}.game-filters-rating-group h3{color:var(--text,#334155);margin:0 0 10px;font-size:12px;font-weight:800}.game-filters-actions{border-top:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);justify-content:flex-end;gap:10px;padding:14px 2px 2px;display:flex;position:sticky;bottom:0}.position-builder-layout{grid-template-columns:minmax(0,1fr) 158px;align-items:start;gap:16px;display:grid}.position-builder-board{aspect-ratio:1;border:1px solid var(--border,#cbd5e1);border-radius:11px;width:100%;max-width:420px;overflow:hidden}.position-builder-tools{flex-direction:column;gap:12px;display:flex}.position-builder-tool-row,.position-builder-presets{flex-wrap:wrap;gap:7px;display:flex}.position-builder-tool-row button,.position-builder-presets button{border:1px solid var(--border,#cbd5e1);background:var(--surface,#fff);min-height:34px;color:var(--text,#334155);font:inherit;cursor:pointer;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700}.position-builder-tool-row button.is-selected,.position-builder-pieces button.is-selected{background:var(--accent-soft-strong,#dbeafe);color:var(--accent-text,#1d4ed8);border-color:#2563eb;box-shadow:0 0 0 2px #2563eb21}.position-builder-palette__title{color:var(--text-secondary,#475569);margin-bottom:6px;font-size:11px;font-weight:800;display:block}.position-builder-pieces{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;display:grid}.position-builder-pieces button{aspect-ratio:1;border:1px solid var(--border,#dbe5f0);background:var(--canvas,#f8fafc);cursor:pointer;border-radius:8px;place-items:center;padding:3px;display:grid}.position-builder-pieces button svg{width:100%;height:100%}.position-builder-presets{margin-top:14px}.position-builder-presets button:last-child{color:var(--danger-text,#be123c)}.position-builder-rules,.position-builder-fen{border:1px solid var(--border,#e2e8f0);background:var(--canvas,#f8fafc);border-radius:11px;flex-direction:column;gap:7px;margin-top:15px;padding:14px;display:flex}.position-builder-rules>label,.position-builder-fen>label{color:var(--text,#334155);font-size:12px;font-weight:700}.position-builder-rules select,.position-builder-rules input[type=text],.position-builder-fen textarea{box-sizing:border-box;border:1px solid var(--border,#cbd5e1);background:var(--surface,#fff);width:100%;min-height:36px;color:var(--text,#0f172a);font:inherit;border-radius:8px;padding:7px 9px;font-size:12px}.position-builder-fen textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}.position-builder-rules details{color:var(--text-secondary,#475569);margin-top:3px;font-size:12px}.position-builder-rules summary{cursor:pointer;font-weight:700}.position-builder-rules details>label{margin:10px 0 5px;display:block}.position-builder-castling{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.position-builder-castling label{align-items:center;gap:5px;display:flex}.position-builder-valid,.position-builder-invalid,.position-builder-fen p{margin:0;font-size:11px;line-height:1.45}.position-builder-valid{color:var(--success-text,#15803d)}.position-builder-invalid{color:var(--danger-text,#be123c)}.position-builder button:focus-visible,.position-builder select:focus-visible,.position-builder input:focus-visible,.position-builder textarea:focus-visible{outline-offset:2px;outline:3px solid #2563eb4d}@media (width<=600px){.position-builder-layout{grid-template-columns:minmax(0,1fr)}.position-builder-board{margin:0 auto}.position-builder-pieces{grid-template-columns:repeat(6,minmax(0,1fr))}.game-filters-section{padding:13px}.game-filters-grid,.game-filters-rating-groups{grid-template-columns:minmax(0,1fr)}.game-filters-rating-group .game-filters-grid,.game-filters-grid--dates{grid-template-columns:repeat(2,minmax(0,1fr))}.game-filters-actions{flex-direction:column-reverse}.game-filters-actions .btn{width:100%}}@media (width<=380px){.game-filters-rating-group .game-filters-grid,.game-filters-grid--dates{grid-template-columns:minmax(0,1fr)}}.chess-db-page{width:min(1240px,100%);color:var(--text,#0f172a);margin:0 auto;padding:32px}.chess-db-hero{border:1px solid var(--border,#d8e3f2);background:radial-gradient(circle at 92% 12%, #93c5fd4d, transparent 25%), linear-gradient(135deg, var(--surface,#fff) 0%, var(--accent-soft,#eef5ff) 100%);border-radius:20px;margin-bottom:22px;padding:28px 30px;box-shadow:0 12px 34px #0f172a0f}.chess-db-hero__eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:700}.chess-db-hero__title{color:var(--text,#0f172a);margin:0 0 10px;font-size:32px;line-height:1.1}.chess-db-hero__description{max-width:720px;color:var(--text-secondary,#475569);margin:0 0 18px;font-size:15px;line-height:1.6}.chess-db-hero__meta{flex-wrap:wrap;gap:12px;display:flex}.chess-db-hero__meta-item{background:var(--surface-glass,#fffc);border:1px solid #94a3b840;border-radius:12px;min-width:180px;padding:12px 14px}.chess-db-hero__meta-label{color:var(--text-muted,#64748b);letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px;font-size:12px;font-weight:600;display:block}.chess-db-hero__meta-value{color:var(--text,#0f172a);font-size:14px;font-weight:500}.chess-db-games-panel{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:20px;overflow:hidden;box-shadow:0 12px 34px #0f172a0f}.chess-db-games-toolbar{border-bottom:1px solid var(--border,#eaf0f6);justify-content:space-between;align-items:center;gap:24px;padding:24px 26px;display:flex}.chess-db-games-eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.09em;text-transform:uppercase;font-size:11px;font-weight:700}.chess-db-games-toolbar h2{color:var(--text,#172554);margin:3px 0 2px;font-size:22px}.chess-db-games-toolbar p{color:var(--text-muted,#64748b);margin:0;font-size:13px}.chess-db-games-actions{flex-wrap:wrap;justify-content:flex-end;gap:9px;display:flex}.chess-db-selection-count{background:#be123c1c;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:11px;display:inline-grid}.chess-db-filter-count{background:var(--accent-soft-strong,#dbeafe);min-width:20px;height:20px;color:var(--accent-text,#1d4ed8);border-radius:999px;place-items:center;padding:0 5px;font-size:11px;display:inline-grid}.chess-db-games-table{padding:20px 24px 24px}.chess-db-games-table .data-table{min-width:880px}.chess-db-result{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);min-width:56px;color:var(--accent-text,#1d4ed8);border-radius:999px;justify-content:center;padding:6px 9px;font-size:12px;font-weight:800;display:inline-flex}.chess-db-event{flex-direction:column;gap:3px;max-width:200px;display:flex}.chess-db-event strong,.chess-db-event small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chess-db-event strong{color:var(--text,#334155);font-size:13px}.chess-db-event small{color:var(--text-muted,#94a3b8);font-size:11px}.chess-db-import-intro{margin-bottom:16px}.chess-db-import-intro__title{color:var(--text,#0f172a);margin:0 0 4px;font-size:16px;font-weight:700}.chess-db-import-intro__text{color:var(--text-muted,#64748b);margin:0;font-size:13px;line-height:1.5}.chess-db-dialog-actions{justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.chess-db-import-status-header{align-items:center;gap:14px;margin-bottom:18px;display:flex}.chess-db-import-status-header__title{color:var(--text,#0f172a);margin:0 0 4px;font-size:18px}.chess-db-import-status-header__description{color:var(--text-muted,#64748b);margin:0;font-size:13px;line-height:1.5}.chess-db-import-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.chess-db-import-stat{border:1px solid var(--border,#e2e8f0);background:var(--canvas,#f8fafc);border-radius:10px;padding:12px}.chess-db-import-stat__label{color:var(--text-muted,#64748b);letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;font-size:11px;font-weight:700;display:block}.chess-db-import-stat__value{color:var(--text,#0f172a);text-transform:capitalize;font-size:18px;line-height:1.2;display:block}.chess-db-import-dropzone{border:1px dashed var(--accent-border,#93c5fd);background:var(--surface-muted,#f8fbff);cursor:pointer;border-radius:12px;align-items:center;gap:14px;width:100%;padding:16px;transition:border-color .2s,background-color .2s,transform .1s;display:flex}.chess-db-import-dropzone:hover{background:var(--accent-soft,#eef6ff);border-color:#3ba9fc;transform:translateY(-1px)}.chess-db-import-file-input{display:none}.chess-db-import-dropzone__icon{background:var(--accent-soft-strong,#dbeafe);width:48px;height:48px;color:var(--accent-text,#1d4ed8);letter-spacing:.04em;border-radius:10px;justify-content:center;align-items:center;font-size:13px;font-weight:800;display:inline-flex}.chess-db-import-dropzone__content{min-width:0;color:var(--text,#0f172a);flex-direction:column;display:flex}.chess-db-import-dropzone__content strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.chess-db-import-dropzone__content small{color:var(--text-muted,#64748b);margin-top:4px;font-size:12px}.chess-db-import-status-icon{color:#fff;border-radius:999px;flex:none;justify-content:center;align-items:center;width:46px;height:46px;font-weight:800;display:inline-flex;position:relative}.chess-db-import-status-icon--active{background:#3ba9fc}.chess-db-import-status-icon--active:before,.chess-db-import-status-icon--active:after{content:"";background:var(--surface,#fff);border-radius:999px;animation:1.2s ease-in-out infinite chess-db-import-pulse;position:absolute}.chess-db-import-status-icon--active:before{width:9px;height:9px;left:12px}.chess-db-import-status-icon--active:after{width:9px;height:9px;animation-delay:.2s;right:12px}.chess-db-import-status-icon--success{background:#16a34a}.chess-db-import-status-icon--error{background:#e11d48}.chess-db-import-progress{background:#e2e8f0;border-radius:999px;height:10px;position:relative;overflow:hidden}.chess-db-import-progress span{border-radius:inherit;position:absolute;inset:0}.chess-db-import-progress--active span{background:linear-gradient(90deg,#3ba9fc,#0b5fe0);width:45%;animation:1.2s ease-in-out infinite chess-db-import-progress-slide}.chess-db-import-progress--success span{background:#16a34a;width:100%}.chess-db-import-progress--error span{background:#e11d48;width:100%}@keyframes chess-db-import-progress-slide{0%{transform:translate(-110%)}to{transform:translate(230%)}}@keyframes chess-db-import-pulse{0%,to{opacity:.65;transform:translateY(0)}50%{opacity:1;transform:translateY(-5px)}}@media (width<=520px){.chess-db-page{padding:14px}.chess-db-hero{border-radius:16px;padding:22px 18px}.chess-db-games-panel{border-radius:16px}.chess-db-games-toolbar{flex-direction:column;align-items:stretch;padding:20px 18px}.chess-db-games-actions{justify-content:stretch}.chess-db-games-actions .btn{flex:auto}.chess-db-games-table{padding:12px}.chess-db-import-dropzone{align-items:flex-start}}@media (width>=521px) and (width<=900px){.chess-db-page{padding:24px}.chess-db-games-toolbar{flex-direction:column;align-items:flex-start}.chess-db-games-actions{justify-content:flex-start}}.friends-page{width:min(1180px,100%);color:var(--text,#0f172a);margin:0 auto;padding:32px}.friends-page__hero{color:#fff;background:radial-gradient(circle at 86% 15%,#7dd3fc57,#0000 25%),linear-gradient(135deg,#0b5fe0 0%,#2563eb 50%,#3ba9fc 100%);border:1px solid #93c5fd47;border-radius:24px;justify-content:space-between;align-items:center;min-height:190px;padding:36px 40px;display:flex;position:relative;overflow:hidden;box-shadow:0 20px 45px #1e40af2e}.friends-page__hero:after{content:"";border:44px solid #ffffff14;border-radius:50%;width:250px;height:250px;position:absolute;bottom:-105px;right:-75px}.friends-page__hero>div:first-child{z-index:1;max-width:660px;position:relative}.friends-page__eyebrow{color:#dbeafe;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px;font-size:12px;font-weight:700;display:inline-block}.friends-page__hero h1{color:#fff;margin:0;font-size:clamp(32px,5vw,48px);line-height:1.05}.friends-page__hero p{color:#eaf4ff;max-width:560px;margin:12px 0 0;font-size:16px;line-height:1.65}.friends-page__hero-mark{z-index:1;background:#ffffff24;border:1px solid #ffffff3d;border-radius:28px;flex:none;place-items:center;width:104px;height:104px;margin-right:30px;font-size:60px;display:grid;position:relative;transform:rotate(4deg);box-shadow:inset 0 1px #ffffff38}.friends-page__tabs{border:1px solid var(--border,#dbe5f0);background:var(--surface-muted,#eef5fc);scrollbar-width:none;border-radius:16px;gap:6px;margin-top:28px;padding:6px;display:flex;overflow-x:auto}.friends-page__tabs::-webkit-scrollbar{display:none}.friends-page__tabs button{min-height:46px;color:var(--text-muted,#64748b);background:0 0;border:0;border-radius:11px;flex:1 0 auto;justify-content:center;align-items:center;gap:9px;padding:10px 18px;font-size:14px;font-weight:700;transition:color .2s,background-color .2s,box-shadow .2s;display:inline-flex}.friends-page__tabs button:hover{color:var(--accent-text,#1d4ed8);background:var(--surface-glass,#ffffffa6)}.friends-page__tabs button:focus-visible{outline-offset:2px;outline:3px solid #3ba9fc59}.friends-page__tabs button.is-active{background:var(--surface,#fff);color:var(--accent-text,#0b5fe0);box-shadow:0 4px 14px #0f172a14}.friends-page__tabs button span{background:var(--accent-soft-strong,#dbeafe);min-width:23px;height:23px;color:var(--accent-text,#1d4ed8);border-radius:999px;place-items:center;padding:0 6px;font-size:11px;display:inline-grid}.friends-page__panel{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:20px;margin-top:18px;overflow:hidden;box-shadow:0 12px 34px #0f172a0f}.friends-page__panel-heading{border-bottom:1px solid var(--border,#eaf0f6);justify-content:space-between;align-items:center;gap:24px;padding:25px 28px;display:flex}.friends-page__panel-heading h2{color:var(--text,#172554);margin:0;font-size:20px}.friends-page__panel-heading p{color:var(--text-muted,#64748b);margin:5px 0 0;font-size:14px;line-height:1.5}.friends-page__count{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);border-radius:999px;flex:none;padding:7px 11px;font-size:12px;font-weight:700}.friends-page__panel-heading--search{align-items:flex-end}.friends-page__search-form{flex:0 540px;align-items:flex-end;gap:10px;display:flex}.friends-page__search-form>div{flex:1;margin-bottom:0!important}.friends-page__search-form input{background:var(--canvas,#f8fafc);width:100%;min-height:42px;color:var(--text,#0f172a);border-color:var(--border,#cbd5e1)!important;border-radius:10px!important;min-width:0!important}.friends-page__search-form input:focus{outline:3px solid #3ba9fc29;border-color:#3ba9fc!important}.friends-page__search-form .btn{white-space:nowrap;min-height:42px}.friends-table{width:100%;padding:0 28px 22px}.friends-table .data-table-wrapper{overflow-x:auto}.friends-table .data-table{border-collapse:separate;border-spacing:0;min-width:560px}.friends-table .data-table th{border-bottom:1px solid var(--border,#dbe5f0);background:var(--surface-muted,#f8fbff);color:var(--text-muted,#64748b);letter-spacing:.08em;text-transform:uppercase;padding:14px 16px;font-size:11px;font-weight:700}.friends-table .data-table th:first-child{border-top-left-radius:10px}.friends-table .data-table th:last-child{border-top-right-radius:10px}.friends-table .data-table td{border-bottom:1px solid var(--border,#edf2f7);color:var(--text,#334155);vertical-align:middle;padding:15px 16px}.friends-table .data-table tbody tr{transition:background-color .18s}.friends-table .data-table tbody tr:hover{background:var(--surface-hover,#f7fbff)}.friends-table .data-table tbody tr:last-child td{border-bottom:0}.friends-page__user-cell{align-items:center;gap:12px;min-width:0;display:flex}.friends-page__avatar{border:1px solid var(--accent-border,#bfdbfe);background:linear-gradient(145deg, var(--accent-soft,#eff6ff), var(--accent-soft-strong,#dbeafe));width:42px;height:42px;color:var(--accent-text,#1d4ed8);border-radius:13px;flex:0 0 42px;place-items:center;font-size:13px;font-weight:800;display:grid}.friends-page__user-copy{flex-direction:column;gap:3px;min-width:0;display:flex}.friends-page__user-copy strong{color:var(--text,#172554);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.friends-page__user-copy small,.friends-page__username,.friends-page__date{color:var(--text-muted,#64748b);font-size:13px}.friends-page__username{width:fit-content;text-decoration:none}.friends-page__username:hover{color:var(--accent-text,#1d4ed8);text-decoration:underline}.friends-page__username:focus-visible{outline-offset:2px;border-radius:3px;outline:2px solid #2563eb}.friends-page__invite-button{background:var(--accent-soft,#eaf4ff);min-height:38px;color:var(--accent-text,#0b5fe0);white-space:nowrap;padding:8px 14px}.friends-page__invite-button:hover{background:var(--accent-soft-strong,#dbeafe)}.friends-page__request-actions{justify-content:center;gap:8px;display:flex}.friends-page__friend-actions{justify-content:flex-end;display:flex}.friends-page__friend-actions .btn{white-space:nowrap;min-height:38px;padding:8px 14px}.friends-page__request-actions .btn{min-height:38px;padding:8px 14px}.friends-page__empty,.friends-page__status{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:260px;padding:42px 24px;display:flex}.friends-page__empty-icon{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);width:58px;height:58px;color:var(--accent-text,#2563eb);border-radius:18px;place-items:center;margin-bottom:14px;font-size:34px;display:grid}.friends-page__empty strong{color:var(--text,#172554);font-size:16px}.friends-page__empty p{max-width:340px;color:var(--text-muted,#64748b);margin:7px 0 0;font-size:14px;line-height:1.55}.friends-page__status{color:var(--text-muted,#64748b);font-weight:600}.friends-page__status--error{color:var(--danger-text,#be123c)}@media (width<=900px){.friends-page{padding:24px}.friends-page__hero{min-height:170px;padding:30px}.friends-page__hero-mark{width:82px;height:82px;margin-right:8px;font-size:48px}.friends-page__panel-heading--search{flex-direction:column;align-items:stretch}.friends-page__search-form{flex-basis:auto;width:100%}}@media (width<=640px){.friends-page{padding:16px}.friends-page__hero{border-radius:18px;min-height:0;padding:26px 22px}.friends-page__hero p{font-size:14px}.friends-page__hero-mark{display:none}.friends-page__tabs{justify-content:flex-start;margin-top:18px}.friends-page__tabs button{flex:none;min-height:42px;padding:9px 14px}.friends-page__panel{border-radius:16px}.friends-page__panel-heading{align-items:flex-start;padding:20px}.friends-page__count{display:none}.friends-page__search-form{flex-direction:column;align-items:stretch}.friends-page__search-form .btn{width:100%}.friends-table{padding:12px}.friends-table .data-table-wrapper{overflow:visible}.friends-table .data-table,.friends-table .data-table tbody{width:100%;min-width:0;display:block}.friends-table .data-table thead{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.friends-table .data-table tr{border:1px solid var(--border,#dbe5f0);background:var(--surface,#fff);border-radius:13px;margin-bottom:12px;display:block;overflow:hidden;box-shadow:0 4px 14px #0f172a0a}.friends-table .data-table tr:last-child{margin-bottom:0}.friends-table .data-table td{text-align:right;justify-content:space-between;align-items:center;gap:18px;width:100%;padding:12px 14px;display:flex}.friends-table .data-table td:before{content:attr(data-label);color:var(--text-muted,#64748b);letter-spacing:.07em;text-transform:uppercase;flex:none;font-size:10px;font-weight:700}.friends-table .data-table td:first-child{background:var(--surface-muted,#f8fbff);text-align:left;flex-direction:column;align-items:flex-start;gap:9px}.friends-table .data-table td:first-child:before{display:none}.friends-page__invite-button{width:auto}.friends-page__request-actions{flex-wrap:wrap;justify-content:center}.friends-page__friend-actions{justify-content:flex-end}.friends-page__empty,.friends-page__status{min-height:230px}}@media (width<=390px){.friends-page{padding:12px}.friends-page__hero{padding:23px 18px}.friends-page__panel-heading{padding:18px 16px}}.game-library-page{width:min(1180px,100%);color:var(--text,#0f172a);margin:0 auto;padding:32px}.game-library-results{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:20px;overflow:hidden;box-shadow:0 12px 34px #0f172a0f}.game-library-results__header{border-bottom:1px solid var(--border,#eaf0f6);justify-content:space-between;align-items:center;gap:20px;padding:23px 26px;display:flex}.game-library-results__eyebrow{color:var(--accent-text,#2563eb);letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:700}.game-library-results__header h2{color:var(--text,#172554);margin:3px 0 4px;font-size:20px}.game-library-results__header p{color:var(--text-muted,#64748b);margin:0;font-size:14px;line-height:1.5}.game-library-results__count{border:1px solid var(--accent-border,#bfdbfe);background:var(--accent-soft,#eff6ff);color:var(--accent-text,#1d4ed8);border-radius:999px;flex:none;padding:7px 11px;font-size:12px;font-weight:700}.game-library-results__actions{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:12px;display:flex}.game-library-results__filter-indicator{background:var(--accent-soft-strong,#dbeafe);color:var(--accent-text,#1d4ed8);border-radius:999px;margin-left:5px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-flex}.game-library-results__table{padding:20px 24px 24px}.game-library-results__table .data-table{min-width:760px}.game-library-results__status{min-height:220px;color:var(--text-muted,#64748b);place-items:center;font-size:14px;font-weight:600;display:grid}.game-library-results__status--error{color:var(--danger-text,#b91c1c)}.game-library-result{border:1px solid var(--border,#cbd5e1);background:var(--canvas,#f8fafc);min-width:58px;color:var(--text,#334155);border-radius:999px;justify-content:center;padding:5px 9px;font-size:12px;font-weight:700;display:inline-flex}.game-library-owner{flex-direction:column;gap:2px;min-width:130px;display:flex}.game-library-owner strong{color:var(--text,#172554);font-size:13px}.game-library-owner small{color:var(--text-muted,#94a3b8);font-size:11px}@media (width<=700px){.game-library-page{padding:16px}.game-library-results{border-radius:16px}.game-library-results__header{flex-direction:column;align-items:flex-start;padding:19px}.game-library-results__actions{justify-content:space-between;width:100%}.game-library-results__table{padding:12px}}body{background-color:var(--canvas,#f8fafc);color:var(--text,#1e293b);flex-direction:column;min-height:100vh;margin:0;padding:0;font-family:Oxanium,sans-serif;display:flex}*{box-sizing:border-box;scroll-behavior:smooth}.card{background-color:var(--surface,white);border-radius:1rem;padding:1.5rem;box-shadow:0 2px 10px #0000000d}*{box-sizing:border-box;margin:0;padding:0}:root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text,#1a1a1a);background-color:var(--canvas,#f8fafc);font-family:Oxanium,system-ui,Avenir,Helvetica,Arial,sans-serif}body{background-color:var(--canvas,#f8fafc);min-height:100vh;margin:0;overflow:hidden}@media (width<=900px){body{overflow:hidden auto}}a{color:var(--accent-text,#2563eb);text-decoration:none}a:hover{color:var(--accent-text,#1d4ed8)}button{cursor:pointer;font-family:inherit}h1,h2,h3,h4{color:var(--text,#1e293b)}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--canvas:#111c2e;--surface:#19273b;--surface-glass:#1c2c43;--surface-muted:#152236;--surface-hover:#223550;--text:#e5edf8;--text-secondary:#c0cee0;--text-muted:#9aacc4;--border:#30425c;--accent-soft:#1c3354;--accent-soft-strong:#25446c;--accent-border:#365b89;--accent-text:#8bbcff;--danger-soft:#412739;--danger-border:#784055;--danger-text:#fda4af;--success-text:#6ee7b7;--success-soft:#193e3e;--warning-soft:#413720;--warning-text:#fcd679;--purple-soft:#352e54;--purple-text:#c4b5fd}input,select,textarea{color:var(--text,#1e293b);background-color:var(--surface,#fff);accent-color:#2563eb;font-family:inherit}input::placeholder,textarea::placeholder{color:var(--text-muted,#64748b);opacity:1}:root[data-theme=dark]{scrollbar-color:#415776 #152236}.navbar-logo{color:#fff}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
