/* Generated by scripts/build-styles.js. Edit the source stylesheets. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#202620;background:#f6f6f1;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit}
button,input,select{font:inherit}
[hidden]{display:none!important}
.site-header{min-height:88px;padding:0 clamp(22px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d9ddd3}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:27px;font-weight:700;letter-spacing:-1.5px;text-decoration:none}
.brand span{font-size:32px;line-height:1}
.site-header nav{display:flex;align-items:center;gap:25px}
.site-header nav a{text-decoration:none;font-size:14px;color:#465145}
.site-header nav a:hover,.site-header nav a[aria-current]{color:#1f2b20;text-decoration:underline;text-underline-offset:6px}
main{max-width:1200px;margin:auto;padding:58px clamp(22px,4vw,52px) 68px}
.intro{margin-bottom:45px}
.eyebrow,.section-index{font:500 12px 'DM Mono',monospace;letter-spacing:2px;color:#6b6250}
.intro h1{margin:19px 0 12px;font-size:clamp(56px,8vw,88px);font-weight:500;letter-spacing:-5px;line-height:1}
.intro h1 span{color:#7b886e}
.intro>p:last-child{max-width:660px;margin:0;color:#5b6559;font-size:17px;line-height:1.65}
.directory{overflow:hidden;border:1px solid #d5dbcf;border-radius:20px;background:#fff;box-shadow:0 12px 35px #2838270b}
.directory-top{padding:30px 34px 22px;display:flex;justify-content:space-between;align-items:end;gap:20px}
.section-index{margin:0 0 9px;letter-spacing:1.4px}
.directory h2{margin:0;font-size:28px;letter-spacing:-.8px}
.total-count{margin:0;color:#687266;font-size:14px}
.controls{display:grid;grid-template-columns:minmax(230px,1fr) 190px 190px;gap:14px;padding:0 34px 27px}
.controls label{display:grid;gap:8px;color:#485347;font-size:12px;font-weight:600}
.controls input,.controls select{min-width:0;height:44px;padding:0 13px;border:1px solid #cdd5c9;border-radius:9px;background:#fafbf8;color:#263126;outline:none}
.controls input:focus-visible,.controls select:focus-visible,.show-more:focus-visible,a:focus-visible{outline:3px solid #9cba88;outline-offset:2px}
.table-head,.player-row{display:grid;grid-template-columns:minmax(230px,2.5fr) repeat(4,minmax(95px,1fr));align-items:center;gap:12px}
.table-head{min-height:44px;padding:0 34px;background:#e8ede4;color:#556153;font:500 11px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.5px}
.player-row{min-height:70px;padding:10px 34px;border-top:1px solid #e7ebe4}
.player-row:nth-child(even){background:#fbfcfa}
.player-cell{min-width:0}
.player-name{display:block;width:fit-content;max-width:100%;font-weight:700;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-name:hover{text-decoration:underline;text-underline-offset:3px}
.player-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:3px;font-size:11px;color:#63735e}
.player-links a{text-decoration:none}
.player-links a:hover{text-decoration:underline}
.rating{font-weight:700}
.rating small{display:block;margin-top:2px;font-weight:400;color:#667361;font-size:11px}
.metric{font-variant-numeric:tabular-nums;color:#435043}
.missing{color:#9aa298}
.empty-message{padding:25px 34px;color:#5c6759}
.show-more{display:block;margin:24px auto 30px;padding:11px 21px;border:1px solid #556951;border-radius:8px;background:#fff;color:#2a3829;cursor:pointer}
.show-more:hover{background:#edf1e9}
.source-note{max-width:920px;margin:24px 4px 0;color:#697466;font-size:12px;line-height:1.7}
.source-note a{text-underline-offset:2px}
footer{padding:25px clamp(22px,4vw,52px);border-top:1px solid #d9ddd3;color:#667164;font:11px 'DM Mono',monospace;letter-spacing:.5px}
@media(max-width:760px){.site-header{min-height:74px}.brand{font-size:24px}.site-header nav{gap:15px}.site-header nav a{font-size:12px}main{padding-top:40px}.intro{margin-bottom:30px}.intro h1{letter-spacing:-3px}.intro>p:last-child{font-size:15px}.directory-top{padding:24px 20px 19px;align-items:start;flex-direction:column;gap:8px}.directory h2{font-size:24px}.controls{grid-template-columns:1fr 1fr;padding:0 20px 20px}.search-field{grid-column:1/-1}.table-head{display:none}.player-row{grid-template-columns:1fr 1fr;gap:9px 14px;padding:15px 20px}.player-cell:first-child{grid-column:1/-1}.player-cell:not(:first-child)::before{display:block;content:attr(data-label);margin-bottom:2px;color:#768274;font:10px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.5px}}
.profile-main{max-width:1050px;min-height:calc(100vh - 160px)}
.back-link{display:inline-block;margin-bottom:42px;color:#52634f;text-decoration:none;font-size:13px;font-weight:600}
.back-link:hover{text-decoration:underline;text-underline-offset:4px}
.profile-loading{color:#667164}
.profile-hero{display:flex;align-items:center;gap:28px;margin-bottom:40px}
.profile-avatar{display:grid;place-items:center;flex:0 0 106px;width:106px;height:106px;border-radius:24px;background:#dfe8d8;color:#41523c;font-size:36px;font-weight:700;letter-spacing:-2px}
.profile-hero .eyebrow{margin:0 0 9px}
.profile-hero h1,.profile-missing h1{margin:0;font-size:clamp(36px,5vw,62px);font-weight:600;letter-spacing:-2.5px;line-height:1.12}
.profile-subtitle{margin:12px 0 0;color:#64705e;font-size:15px}
.profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stat-card{min-height:155px;padding:24px;border:1px solid #d5dbcf;border-radius:16px;background:#fff;box-shadow:0 8px 25px #28382708}
.stat-card>span{display:block;color:#64705e;font:500 11px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:1px}
.stat-card strong{display:block;margin:12px 0 5px;font-size:38px;line-height:1;letter-spacing:-1px}
.stat-card small{display:block;color:#788376;font-size:11px;line-height:1.4}
.profile-details{margin-top:28px;padding:28px 32px;border:1px solid #d5dbcf;border-radius:17px;background:#fff}
.profile-details h2{margin:0 0 22px;font-size:24px;letter-spacing:-.6px}
.profile-details dl{display:grid;grid-template-columns:1fr 1fr;gap:0 36px;margin:0}
.profile-details dl div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #e9ede6}
.profile-details dt{color:#6c7769}
.profile-details dd{margin:0;font-weight:600;text-align:right}
.official-link{display:inline-block;margin-top:20px;color:#3c5939;font-size:13px;font-weight:600;text-underline-offset:4px}
.profile-missing{padding:35px 0}
.profile-missing p{color:#64705e}
.profile-missing a{color:#3c5939}
.profile-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.profile-grid.profile-fide-only{grid-template-columns:minmax(190px,260px)}
@media(max-width:760px){.profile-main{padding-top:30px}.back-link{margin-bottom:28px}.profile-hero{align-items:flex-start;gap:18px}.profile-avatar{flex-basis:76px;width:76px;height:76px;border-radius:18px;font-size:26px}.profile-hero h1{font-size:clamp(30px,8vw,48px);letter-spacing:-1.5px}.profile-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:132px;padding:18px}.stat-card strong{font-size:31px}.profile-details{padding:24px 20px}.profile-details dl{grid-template-columns:1fr}}
/* Player profiles */
.profile-main{max-width:1120px;padding-top:38px}
.profile-main .back-link{margin-bottom:24px}
.profile-hero{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:28px;margin:0 0 42px;padding:36px;border:1px solid #d5dbcf;border-radius:22px;background:linear-gradient(130deg,#fff 0%,#f0f4ed 100%);box-shadow:0 16px 38px #2838270a}
.profile-avatar{width:112px;height:112px;flex-basis:auto;border-radius:22px;background:#d8e4d0;color:#344a34}
.profile-identity{min-width:0}
.profile-hero h1{overflow-wrap:anywhere}
.profile-subtitle{margin-top:8px}
.profile-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.profile-tags span{padding:7px 10px;border:1px solid #c5d6bb;border-radius:999px;background:#e9f1e5;color:#344d33;font:500 11px 'DM Mono',monospace;letter-spacing:.1px}
.profile-hero .official-link{align-self:end;white-space:nowrap;margin:0;padding:11px 14px;border:1px solid #b9cbb1;border-radius:9px;background:#fff;text-decoration:none}
.profile-hero .official-link:hover{background:#e9f1e5}
.profile-section-heading{margin-bottom:18px}
.profile-section-heading h2{margin:0;font-size:27px;letter-spacing:-.7px}
.profile-grid,.profile-grid.profile-fide-only{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.stat-card{min-height:150px;box-shadow:none}
.rating-card{background:#243429;border-color:#243429;color:#fff}
.rating-card>span,.rating-card small{color:#d4dfd1}
.stat-card strong{font-size:44px}
.profile-details{margin-top:30px;padding:30px 34px}
.profile-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-details dl div{min-width:0}
.profile-details dd{overflow-wrap:anywhere}
.profile-main .source-note{margin-top:26px}
@media(max-width:900px){.profile-hero{grid-template-columns:92px minmax(0,1fr)}.profile-avatar{width:92px;height:92px}.profile-hero .official-link{grid-column:2;justify-self:start}}
@media(max-width:600px){.profile-hero{grid-template-columns:1fr;gap:17px;padding:25px 22px}.profile-avatar{width:76px;height:76px;font-size:27px}.profile-hero .official-link{grid-column:1}.profile-grid,.profile-grid.profile-fide-only{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{min-height:126px;padding:17px}.stat-card strong{font-size:33px}.profile-details{padding:25px 21px}.profile-details dl{grid-template-columns:1fr}}
.profile-activity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:30px}
.activity-panel{min-width:0;padding:27px 29px;border:1px solid #d5dbcf;border-radius:17px;background:#fff}
.activity-panel h2{margin:0 0 18px;font-size:23px;letter-spacing:-.6px}
.activity-list{padding:0;margin:0;list-style:none}
.activity-list li{display:flex;justify-content:space-between;align-items:center;gap:15px;min-width:0;padding:13px 0;border-top:1px solid #e9ede6}
.activity-list li>div{min-width:0}
.activity-list strong{display:block;font-size:13px;line-height:1.45}
.activity-list small{display:block;margin-top:4px;color:#72806e;font-size:11px;line-height:1.4}
.activity-result{flex-shrink:0;color:#435d40;font-size:12px;font-weight:700;text-align:right}
.activity-pgn{color:#385a34;font-size:11px;white-space:nowrap}
.activity-note{grid-column:1/-1;margin:0 2px;color:#72806e;font-size:11px;line-height:1.6}
@media(max-width:760px){.profile-activity{grid-template-columns:1fr}.activity-panel{padding:23px 20px}}
.profile-ratings{margin-bottom:35px}
.ratings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ratings-grid .rating-card{min-height:136px}
.rating-period{margin:10px 2px 0;color:#72806e;font-size:11px}
.record-results{margin-top:17px;padding:18px 22px;border:1px solid #d5dbcf;border-radius:13px;background:#fff}
.record-bar{display:flex;height:12px;overflow:hidden;border-radius:999px;background:#e7ebe4}
.record-bar span{min-width:0}
.record-bar #wins-bar{background:#587e52}
.record-bar #draws-bar{background:#cfb874}
.record-bar #losses-bar{background:#b97b73}
.record-results p{display:flex;gap:18px;flex-wrap:wrap;margin:11px 0 0;color:#556153;font-size:12px;font-weight:600}
.record-results p span:before{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#587e52;content:''}
.record-results p #draws-count:before{background:#cfb874}
.record-results p #losses-count:before{background:#b97b73}
@media(max-width:600px){.ratings-grid{gap:8px}.ratings-grid .stat-card{min-height:112px;padding:15px 11px}.ratings-grid .stat-card>span{font-size:10px}.ratings-grid .stat-card strong{font-size:27px}.ratings-grid .stat-card small{font-size:10px}.record-results{padding:16px}}
.external-results{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-top:26px;padding:27px 30px;border:1px solid #d5dbcf;border-radius:17px;background:#eef3ea}
.external-results h2{margin:0 0 8px;font-size:23px;letter-spacing:-.5px}
.external-results p:not(.section-index){max-width:650px;margin:0;color:#5d6d5a;font-size:13px;line-height:1.55}
.external-results-links{display:flex;flex-direction:column;align-items:flex-start;gap:9px;flex-shrink:0}
.external-results-links a{color:#2e512d;font-size:13px;font-weight:700;text-underline-offset:3px}
@media(max-width:760px){.external-results{align-items:flex-start;flex-direction:column;padding:24px 20px}.external-results-links{gap:12px}}
/* Shared pill navigation for the player directory and profiles. */
.site-header nav{gap:9px}
.site-header nav a.nav-pill,.site-header nav a.nav-pill[aria-current]{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:8px 14px;border:1px solid #203027;border-radius:999px;background:#203027;color:#fff;font-size:13px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;transition:background .2s,transform .2s}
.site-header nav a.nav-pill:hover,.site-header nav a.nav-pill[aria-current]:hover{background:#395641;color:#fff;text-decoration:none;transform:translateY(-1px)}
.site-header nav a.nav-pill:focus-visible{outline:3px solid #769878;outline-offset:3px}
.nav-feature-badge{display:inline-block;padding:5px 7px;border-radius:999px;background:#d9ff43;color:#203027;font:700 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.05em;text-transform:uppercase}
@media(max-width:580px){.site-header{flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:10px}.site-header nav{width:100%;justify-content:flex-end}.site-header nav a.nav-pill,.site-header nav a.nav-pill[aria-current]{font-size:12px}}
.profile-photo-column{width:112px;align-self:start}
.profile-photo-column .profile-avatar{overflow:hidden}
.profile-photo-column .profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.photo-editor{display:grid;gap:7px;margin-top:10px}
.photo-editor button{padding:7px 4px;border:1px solid #c5d6bb;border-radius:7px;background:#fff;color:#344d33;font-size:11px;font-weight:700;cursor:pointer}
.photo-editor button:hover{background:#e9f1e5}
.photo-editor button:disabled{opacity:.6;cursor:wait}
.photo-editor #remove-photo{border-color:#e2caca;color:#8b3535}
.photo-editor p{margin:0;color:#556153;font-size:10px;line-height:1.4}
@media(max-width:900px){.profile-photo-column{width:92px}}
@media(max-width:600px){.profile-photo-column{width:76px}.photo-editor{width:112px}}
.profile-inline-ratings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;max-width:470px;margin-top:23px;padding-top:17px;border-top:1px solid #d7dfd1}
.profile-inline-ratings>div{min-width:0;padding:0 17px;border-left:1px solid #d7dfd1}
.profile-inline-ratings>div:first-child{padding-left:0;border-left:0}
.profile-inline-ratings span,.profile-inline-ratings small{display:block;color:#64705e;font-size:11px}
.profile-inline-ratings span{font:500 10px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.7px}
.profile-inline-ratings strong{display:block;margin:5px 0 1px;font-size:25px;line-height:1.15;letter-spacing:-.7px}
.profile-hero{margin-bottom:35px}
@media(max-width:600px){.profile-inline-ratings{margin-top:19px}.profile-inline-ratings>div{padding:0 10px}.profile-inline-ratings strong{font-size:22px}.profile-inline-ratings small{font-size:10px}}
.profile-tags .is-unavailable{border-color:#d9ddd3;background:#f3f5f0;color:#6b7668}
.profile-tags #fide-tag.fide-verified{display:inline-flex;align-items:center;gap:7px;border-color:#203b2a;background:#203b2a;color:#fff;font-weight:700}
.profile-tags #fide-tag.fide-verified::before{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#d9ff43;color:#203b2a;content:'✓';font:800 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.saved-games-panel{grid-column:1/-1}
.saved-games-description{margin:-8px 0 18px;color:#64705e;font-size:12px;line-height:1.55}
.saved-games-panel .activity-list li{align-items:flex-start}
.saved-games-panel .activity-list a{color:#385a34;font-size:12px;font-weight:700;text-underline-offset:3px}
.saved-games-panel .activity-list small{font-size:12px}
.data-unavailable{margin:0;color:#72806e;font-size:13px;line-height:1.55}
.nav-feature-badge,.profile-tags #fide-tag.fide-verified::before{background:#c8ad7a}
.controls input:focus-visible,.controls select:focus-visible,.show-more:focus-visible,a:focus-visible{outline-color:#a78b59}
.record-results>.data-unavailable{margin:0}
.record-bar-empty{background:#e7ebe4}
.record-bar-empty+.data-unavailable{margin-top:12px}
.profile-fide-id{display:flex;align-items:center;gap:8px;margin:4px 0 0;color:#64705e;font-size:13px;line-height:1.5;flex-wrap:wrap}
#fide-id{font-variant-numeric:tabular-nums;user-select:all}
#copy-fide-id{min-height:44px;min-width:52px;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:#52634f;font:600 11px 'DM Sans',Arial,sans-serif;cursor:pointer}
#copy-fide-id:hover{background:#e7eddf}
#copy-fide-id:focus-visible{outline:2px solid #a78b59;outline-offset:1px}
@media(max-width:600px){.profile-fide-id{font-size:12px;gap:4px}#copy-fide-id{min-width:48px}}
.site-header {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 88px;
  height: auto;
  margin: 0;
  padding: 12px clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d9ddd3;
  background: #f6f6f1;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: #202620;
  font: 750 27px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .brand span { font: 32px/1 Georgia, serif; margin: 0; }
.site-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-left: auto;
}
.site-header .site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.site-header .nav-account-slot{display:flex;align-items:center;margin-left:auto}
.site-header .nav-google-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:40px;height:auto;margin:0;padding:7px 14px;border:1px solid #203027;border-radius:999px;background:#203027;color:#fff;font:600 13px/1 system-ui,sans-serif;white-space:nowrap;box-shadow:none;cursor:pointer;letter-spacing:normal;transition:background .2s,transform .2s}
.site-header .nav-google-button:hover{background:#395641;transform:translateY(-1px)}
.site-header .nav-google-button:disabled{opacity:.65;cursor:wait}
.site-header .nav-google-button .nav-google-mark{display:grid;place-items:center;width:23px;height:23px;background:#fff;color:#4285f4;border-radius:50%;font:bold 17px/1 Arial,sans-serif;letter-spacing:0}
.site-header .nav-user-menu{display:flex;align-items:center;gap:7px;min-height:40px;padding:4px 7px;border:1px solid #cfd5ca;border-radius:999px;background:#fff;color:#203027;font:500 12px/1 system-ui,sans-serif}
.site-header .nav-user-menu #user-avatar{width:26px;height:26px;object-fit:cover;border-radius:50%}
.site-header .nav-user-menu #user-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .nav-user-menu #sign-out{width:auto;min-height:30px;height:auto;margin:0;padding:6px 8px;border:0;border-radius:999px;background:#edf0e8;color:#203027;font:600 11px/1 system-ui,sans-serif;letter-spacing:normal;box-shadow:none;text-decoration:none;cursor:pointer}
.site-header .nav-user-menu #sign-out:hover{background:#dfe4d8;transform:none}
.site-header .nav-account-slot [hidden]{display:none!important}
.site-header .nav-google-button:focus-visible,.site-header .nav-user-menu button:focus-visible{outline:3px solid #a78b59;outline-offset:3px}
.site-header .nav-auth-status{position:absolute;top:calc(100% + 6px);right:22px;z-index:20;width:max-content;max-width:min(360px,calc(100vw - 44px));min-height:0;margin:0;padding:9px 12px;border-radius:9px;background:#203027;color:#f6f6f1;font:13px/1.5 system-ui,sans-serif;text-align:left;box-shadow:0 5px 16px #20302724}
.site-header .nav-auth-status:empty{display:none}
.site-header .site-nav a.nav-pill,
.site-header .site-nav a.nav-pill[aria-current="page"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #203027;
  border-radius: 999px;
  background: #203027;
  color: #fff;
  font: 600 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.site-header .site-nav a.nav-pill:hover,
.site-header .site-nav a.nav-pill[aria-current="page"]:hover {
  background: #395641;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.site-header .site-nav a.nav-pill[aria-current="page"] { box-shadow: inset 0 0 0 2px #c8ad7a; }
.site-header .site-nav a.nav-pill:focus-visible,
.site-header .brand:focus-visible { outline: 3px solid #769878; outline-offset: 3px; }
.site-header .nav-feature-badge {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 999px;
  background: #c8ad7a;
  color: #203027;
  font: 700 10px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-header .utility { margin: 0; color: #61705f; font-size: 13px; line-height: 1.35; text-align: right; }
@media(max-width:600px){.mobile-bottom-nav{transition:transform .2s ease;transform:translateY(0)}.mobile-bottom-nav.is-scroll-hidden{transform:translateY(calc(100% + 4px));pointer-events:none}.mobile-bottom-nav:focus-within{pointer-events:auto}}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.mobile-bottom-nav{transition:none}}
.mobile-bottom-nav{display:none}
.mobile-account-dialog{width:min(400px,calc(100% - 32px));padding:20px;border:1px solid #cfd5ca;border-radius:16px;background:#f6f6f1;color:#203027;box-shadow:0 12px 50px #14201744}
.mobile-account-dialog::backdrop{background:#14201788}
.mobile-account-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.mobile-account-heading h2{margin:0;font:600 20px/1.4 system-ui,sans-serif}
.mobile-account-dialog button{height:auto;min-height:48px;margin:0;padding:10px 14px;border:1px solid #203027;border-radius:8px;background:#203027;color:#fff;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer}
.mobile-account-heading button{width:44px;min-height:44px;padding:8px;background:transparent;color:#203027;border-color:#cfd5ca}
.mobile-account-name{margin:18px 0;overflow-wrap:anywhere;font:14px/1.6 system-ui,sans-serif}
.mobile-account-sign-in,.mobile-account-sign-out{width:100%}
.mobile-account-dialog [hidden]{display:none!important}
.mobile-account-dialog button:focus-visible{outline:3px solid #a78b59;outline-offset:3px}
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header .brand { font-size: 24px; }
  .site-header .header-actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .site-header .site-nav a.nav-pill,
  .site-header .site-nav a.nav-pill[aria-current="page"] { font-size: 12px; }
}
@media(max-width:600px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.site-header{min-height:64px;padding:14px 20px;flex-wrap:nowrap}.site-header .header-actions{display:none}.mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid #cfd5ca;background:#f6f6f1;box-shadow:0 -3px 16px #2030270d}.mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:56px;height:auto;margin:0;padding:6px;border:0;border-radius:10px;background:transparent;color:#5b685b;text-decoration:none;font:500 11px/1.3 system-ui,sans-serif;cursor:pointer;letter-spacing:normal;box-shadow:none}.mobile-bottom-nav svg{display:block;width:23px;height:23px;flex:none}.mobile-bottom-nav [aria-current="page"],.mobile-bottom-nav [aria-expanded="true"]{background:#e7ebdf;color:#203027;font-weight:700}.mobile-bottom-nav a:focus-visible,.mobile-bottom-nav button:focus-visible{outline:2px solid #a78b59;outline-offset:-2px}.mobile-account-dialog{margin:auto auto calc(86px + env(safe-area-inset-bottom,0px))}}
@media(max-width:600px){html{scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}button,a,input,select{scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom,0px))}.mobile-bottom-nav{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}.mobile-bottom-nav a,.mobile-bottom-nav button{font-size:12px;touch-action:manipulation}.mobile-bottom-nav svg{width:24px;height:24px}.mobile-account-dialog{max-height:calc(100dvh - 120px - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain}body:has(.mobile-account-dialog[open]){overflow:hidden}}
/* Mobile navigation: opaque Chessfile green, readable white labels and gold selection. */
@media(max-width:600px){
  .mobile-bottom-nav{background:#203027;border-top-color:#62745f;box-shadow:0 -4px 18px #10201733}
  .mobile-bottom-nav a,.mobile-bottom-nav button{color:#fff}
  .mobile-bottom-nav [aria-current="page"],.mobile-bottom-nav [aria-expanded="true"]{background:#2c3e30;color:#c8ad7a;box-shadow:inset 0 0 0 1px #c8ad7a80}
  .mobile-bottom-nav a:focus-visible,.mobile-bottom-nav button:focus-visible{outline-color:#e4d5ad}
}
.account-settings-dialog{--settings-bg:#f7f6f2;--settings-panel:#fffefa;--settings-text:#20252a;--settings-muted:#62686a;--settings-line:#d5dbcf;width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--settings-line);border-radius:16px;background:var(--settings-bg);color:var(--settings-text);font:14px/1.5 'DM Sans',Arial,sans-serif;box-shadow:0 16px 60px #10181544}
html[data-theme="dark"] .account-settings-dialog{--settings-bg:#18211d;--settings-panel:#202b25;--settings-text:#f0f2ed;--settings-muted:#b3bdb5;--settings-line:#425341}
.account-settings-dialog::backdrop{background:#101815aa}
.account-settings-dialog .settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-settings-dialog h2{margin:16px 0 22px;color:var(--settings-text);font:600 24px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:-.5px}
.account-settings-dialog h3{margin:0 0 14px;color:var(--settings-text);font:600 15px/1.4 'DM Sans',Arial,sans-serif}
.account-settings-dialog button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:auto;width:auto;margin:0;padding:8px 12px;border:1px solid var(--settings-line);border-radius:7px;background:var(--settings-panel);color:var(--settings-text);font:500 13px/1.4 'DM Sans',Arial,sans-serif;box-shadow:none;transform:none;cursor:pointer}
.account-settings-dialog .settings-heading button{border:0;background:transparent;padding:8px 0}
.account-settings-dialog [data-settings-close]{width:44px;padding:8px}
.account-settings-dialog button:focus-visible{outline:2px solid #769e88;outline-offset:3px}
.account-settings-dialog .settings-theme-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--settings-line)}
.account-settings-dialog .theme-toggle{width:44px;height:44px;padding:13px;border:0;background:transparent}
.account-settings-dialog .theme-choice{box-sizing:border-box;width:auto;max-width:100%;min-height:44px;padding:8px 30px 8px 10px;border:1px solid var(--settings-line);border-radius:6px;background:var(--settings-panel);color:var(--settings-text);font:500 13px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
.account-settings-dialog .theme-choice:focus-visible{outline:2px solid #769e88;outline-offset:3px}
.account-settings-dialog .board-palette-options{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;border:0;min-width:0}
.account-settings-dialog .board-palette-options legend{margin:0 0 10px;padding:0;color:var(--settings-text);font-size:13px}
.account-settings-dialog .board-palette-options button{gap:8px;flex:1;padding:10px 8px;min-width:90px}
.account-settings-dialog .board-palette-options button[aria-pressed="true"]{outline:2px solid #769e88;outline-offset:1px;font-weight:700}
.account-settings-dialog .palette-icon{display:block;flex:none;width:22px;height:22px;border:1px solid #7e8c7c;border-radius:3px;background:conic-gradient(#8b9c7f 25%,#e8e9d9 0 50%,#8b9c7f 0 75%,#e8e9d9 0)}
.account-settings-dialog .palette-green{background:conic-gradient(#769656 25%,#eeeed2 0 50%,#769656 0 75%,#eeeed2 0)}
.account-settings-dialog .palette-brown{background:conic-gradient(#b58863 25%,#f0d9b5 0 50%,#b58863 0 75%,#f0d9b5 0)}
html[data-theme="dark"] .account-settings-dialog .palette-current{background:conic-gradient(#607e6c 25%,#c4cbb5 0 50%,#607e6c 0 75%,#c4cbb5 0)}
.account-settings-dialog .settings-device-note{margin:20px 0 0;color:var(--settings-muted);font-size:12px;line-height:1.6}
.mobile-account-dialog .account-settings-button{display:flex;justify-content:space-between;width:100%;margin:12px 0;border:1px solid #63745c;background:transparent;color:inherit;text-align:left}
.mobile-account-dialog .account-settings-button::after{content:'›';font-size:20px}
.mobile-account-dialog .account-review-link{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:48px;margin:12px 0;padding:10px 14px;border:1px solid #63745c;border-radius:8px;background:transparent;color:inherit;text-decoration:none;font:600 14px/1.4 system-ui,sans-serif}
.mobile-account-dialog .account-review-link>svg{width:20px;height:20px;flex:none}
.mobile-account-dialog .account-review-link>span:last-child{margin-left:auto;font-size:20px}
.mobile-account-dialog .account-review-link[hidden]{display:none!important}
.mobile-account-dialog .account-review-link:focus-visible{outline:2px solid #769e88;outline-offset:3px}
.google-signin-icon{display:block;flex:none;width:22px;height:22px;padding:2px;box-sizing:border-box;border-radius:50%;background:#fff}
.mobile-account-dialog .mobile-account-sign-in{display:flex;align-items:center;justify-content:center;gap:10px}
.site-header .nav-account-slot{gap:6px}
.site-header .desktop-account-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-height:44px;height:44px;margin:0;padding:8px;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;font:500 13px/1.4 'DM Sans',Arial,sans-serif;cursor:pointer}
.site-header .desktop-account-button:focus-visible{outline:2px solid #769e88;outline-offset:2px}
.site-header .nav-user-menu #sign-out{display:none}
@media(max-width:600px){.site-header .desktop-account-button{display:none}.account-settings-dialog{padding:20px;max-height:calc(100dvh - 40px)}body:has(.account-settings-dialog[open]){overflow:hidden}}
#chess-signin-loader{box-sizing:border-box;width:min(360px,calc(100vw - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:36px 28px 24px;border:1px solid #d5dbcf;border-radius:24px;background:#f6f6f1;color:#202620;text-align:center;box-shadow:0 24px 80px #20302724;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#chess-signin-loader::backdrop{background:#f6f6f1e8;backdrop-filter:blur(5px)}
#chess-signin-loader .signin-board{box-sizing:border-box;position:relative;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);width:144px;height:144px;margin:0 auto 26px;border:8px solid #203027;border-radius:12px;box-shadow:0 8px 22px #20302718;overflow:hidden}
#chess-signin-loader .signin-board>i{background:#e8e4d7}
#chess-signin-loader .signin-board>i:nth-child(8n+2),#chess-signin-loader .signin-board>i:nth-child(8n+4),#chess-signin-loader .signin-board>i:nth-child(8n+5),#chess-signin-loader .signin-board>i:nth-child(8n+7){background:#87947d}
#chess-signin-loader .signin-knight{position:absolute;left:0;top:64px;display:grid;place-items:center;width:32px;height:32px;color:#203027;font:38px/1 Georgia,serif;filter:drop-shadow(0 1px 0 #f6f6f1);animation:signin-knight-move 3.2s ease-in-out infinite}
#chess-signin-loader .signin-kicker{margin:0 0 10px;color:#6b6250;font:500 10px/1.5 monospace;letter-spacing:.18em}
#chess-signin-loader h2{margin:0;color:#202620;font:400 32px/1.15 Georgia,serif;letter-spacing:-.04em}
#chess-signin-loader .signin-stage{min-height:42px;margin:14px 0 0;color:#5b6559;font-size:13px;line-height:1.6}
#chess-signin-loader .signin-dots{display:flex;justify-content:center;gap:6px;margin:18px 0 24px}
#chess-signin-loader .signin-dots i{width:5px;height:5px;border-radius:50%;background:#a78b59;animation:signin-dot-pulse 1.2s ease-in-out infinite}
#chess-signin-loader .signin-dots i:nth-child(2){animation-delay:.15s}
#chess-signin-loader .signin-dots i:nth-child(3){animation-delay:.3s}
#chess-signin-loader .signin-close{display:inline-block;width:auto;height:auto;min-height:32px;margin:0;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#64705e;font:500 12px/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;box-shadow:none;cursor:pointer}
#chess-signin-loader .signin-close:hover{background:#e8ede4;color:#203027;transform:none}
#chess-signin-loader .signin-close:focus-visible{outline:2px solid #a78b59;outline-offset:3px}
@keyframes signin-knight-move{0%,15%,100%{transform:translate(0,0)}35%,55%{transform:translate(64px,-32px)}75%,85%{transform:translate(0,0)}}
@keyframes signin-dot-pulse{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){#chess-signin-loader .signin-knight,#chess-signin-loader .signin-dots i{animation:none}}
.profile-bio{max-width:600px;margin:16px 0 0;color:#52634f;font-size:14px;line-height:1.65;white-space:pre-line}
.profile-update-link{display:inline-block;margin-top:18px;color:#52634f;font-size:12px;font-weight:600;text-underline-offset:4px}
.profile-contributions{margin-top:36px;padding:30px 34px;border:1px solid #d5dbcf;border-radius:17px;background:#fff}
.profile-contributions h2{margin:0 0 12px;font-size:25px;letter-spacing:-.6px}
.profile-contributions>p:not(.section-index){max-width:720px;color:#5b6559;font-size:14px;line-height:1.65}
.request-account{margin:20px 0}
.request-account button,.request-submit{min-height:42px;padding:10px 17px;border:1px solid #203027;border-radius:9px;background:#203027;color:#fff;font:600 13px system-ui,sans-serif;cursor:pointer}
.request-account .request-google{display:inline-flex;align-items:center;gap:10px;background:#4285f4;border-color:#2e70d4;color:#fff;border-radius:999px}
.google-g{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#4285f4;font:bold 19px Arial,sans-serif}
.request-account #user-menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.request-account #user-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%}
.request-account #user-name{overflow-wrap:anywhere}
.request-account #sign-out{background:#f6f6f1;color:#203027;border-color:#d5dbcf;min-height:34px;padding:6px 11px}
.request-account #auth-status,#profile-request-status{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.profile-contributions [hidden]{display:none!important}
.profile-contributions summary{cursor:pointer;font-weight:650;font-size:14px;line-height:1.5;padding:14px 0;border-top:1px solid #d5dbcf}
.profile-contributions form{max-width:660px;padding:5px 0 15px}
.profile-contributions label{display:block;margin:18px 0 7px;font-size:13px;font-weight:600}
.profile-contributions label span{font-weight:400}
.profile-contributions input:not([type=checkbox]),.profile-contributions select,.profile-contributions textarea{width:100%;min-height:44px;padding:11px 12px;border:1px solid #cdd5c9;border-radius:8px;background:#fafbf8;color:#263126;font:14px 'DM Sans',Arial,sans-serif}
.profile-contributions textarea{resize:vertical;line-height:1.5}
.profile-contributions input[type=file]{font-size:12px}
.request-note{color:#64705e;font-size:12px;line-height:1.6}
.profile-contributions .request-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.5;font-weight:400}
.request-consent input{margin:3px 0;width:17px;height:17px;accent-color:#203027;flex:none}
.request-submit{margin-top:20px}
.request-submit:hover{background:#395641}
.request-submit:disabled{opacity:.6;cursor:wait}
.request-photo-preview{display:block;width:150px;height:150px;object-fit:cover;border-radius:12px;margin:15px 0}
.my-profile-requests{margin-top:24px;border-top:1px solid #d5dbcf;padding-top:20px}
.my-profile-requests h3{font-size:17px;margin:0 0 8px}
.profile-request-history{padding:14px 0;border-top:1px solid #e7ebe4}
.profile-request-history p{margin:6px 0;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-request-history small{color:#64705e}
.request-state{display:inline-block;margin-left:8px;padding:4px 8px;border-radius:99px;background:#eee7d7;color:#574b31;font-size:11px}
.request-state.approved{background:#e3ecdf;color:#344d33}
.request-state.rejected{background:#f3e4e1;color:#803c33}
@media(max-width:600px){.profile-contributions{padding:24px 20px}.profile-contributions h2{font-size:22px}}
.saved-games-retry{min-height:44px;padding:10px 16px;border:1px solid #c5d0bd;border-radius:8px;background:#fff;color:#203027;font:600 13px 'DM Sans',Arial,sans-serif;cursor:pointer;margin:0 0 12px}
.saved-games-retry:focus-visible{outline:2px solid #a78b59;outline-offset:3px}
.saved-games-retry{min-width:145px;font-variant-numeric:tabular-nums}
.saved-games-retry:disabled{opacity:.65;cursor:wait}
#photo-crop-controls{max-width:320px;margin:12px 0 20px}
#photo-crop-controls .request-photo-preview{width:180px;height:180px;max-width:100%;border:1px solid #9ba795}
.profile-contributions #photo-crop-controls input[type=range]{padding:0;min-height:44px;background:transparent;border:0;accent-color:#a78b59}
#photo-crop-controls label{margin-top:8px}
.photo-crop-reset{min-height:40px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
#photo-crop-status{color:inherit}
.directory-avatar{display:none}
.mobile-photo-add{display:none}
@media(max-width:600px){
  .profile-photo-column .profile-avatar{position:relative}
  .mobile-photo-add{position:absolute;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:flex-end;width:44px;height:44px;padding:3px;border:0;background:transparent;color:#202b22;cursor:pointer;z-index:1}
  .mobile-photo-add span{display:grid;place-items:center;width:26px;height:26px;border:2px solid #f6f6f1;border-radius:50%;background:#c8ad7a;font:500 23px/1 Arial,sans-serif;letter-spacing:0;box-shadow:0 1px 4px #15211730}
  .mobile-photo-add:focus-visible{outline:2px solid #a78b59;outline-offset:-2px;border-radius:10px}
  .profile-photo-column .photo-editor{width:64px}
  .profile-photo-column #change-photo{display:none}
}
@media(max-width:600px){.external-results-links a{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}.external-results-links{gap:4px}.player-row .player-links{font-size:11px;line-height:1.5}}
@media(max-width:600px){
  main{padding:24px 16px 36px}.intro{margin-bottom:24px}.intro .eyebrow{font-size:10px;letter-spacing:1.2px}.intro h1{font-size:42px;letter-spacing:-2px;margin:12px 0}.intro>p:last-child{font-size:14px;line-height:1.6}
  .directory{border:0;border-radius:12px;background:#fff;box-shadow:none}.directory-top{padding:18px 16px 14px;flex-direction:row;align-items:center;gap:8px}.directory-top .section-index{display:none}.directory h2{font-size:19px;letter-spacing:-.4px}.total-count{font-size:12px;white-space:nowrap}.controls{padding:0 16px 16px;gap:12px}.controls input,.controls select{height:48px;font-size:16px}.controls label{min-width:0;font-size:12px}.controls .search-field{grid-column:1/-1}.table-head{display:none}
  .player-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:12px;padding:16px;min-height:88px;background:#fff}.player-row:nth-child(even){background:#fff}.player-row::after{content:'›';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#7b886e;font-size:20px;pointer-events:none}.player-row>.player-cell:first-child{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:10px;align-items:center;grid-column:auto}.directory-avatar{display:grid;place-items:center;grid-column:1;grid-row:1/3;width:40px;height:40px;border-radius:10px;background:#e3e9dd;color:#40543e;font:600 13px/1 'DM Sans',sans-serif}.player-name{grid-column:2;grid-row:1;white-space:normal;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.player-name::after{content:'';position:absolute;inset:0;z-index:1}.player-name:focus-visible{outline:none}.player-row:has(.player-name:focus-visible){outline:2px solid #a78b59;outline-offset:-3px}.player-links{grid-column:2;grid-row:2;margin-top:3px;font-size:10px;line-height:1.4;color:#687561}.player-row>.player-cell:nth-child(2){padding-right:12px;text-align:right;font-size:17px;font-weight:600}.player-row>.player-cell:nth-child(2)::before{font-size:9px;letter-spacing:0;font-weight:400;content:'Standard';margin:0 0 4px}.player-row>.player-cell:first-child::before,.player-row>.player-cell:nth-child(n+3){display:none}.player-cell small{font-size:10px}.show-more{min-height:48px;font-size:13px}.external-results{padding:20px 0;border:0;border-top:1px solid #d5dbcf;background:transparent;border-radius:0}.external-results h2{font-size:19px}.external-results .section-index{display:none}.source-note{font-size:11px;line-height:1.6}
  .profile-main{padding:18px 16px 36px}.back-link{display:inline-flex;align-items:center;min-height:44px;margin-bottom:16px;font-size:13px}#profile-content{display:flex;flex-direction:column;min-width:0}.profile-hero{order:0;position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 14px;margin:0 0 22px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.profile-photo-column{width:64px}.profile-avatar{width:64px;height:64px;min-width:0;border-radius:14px;font-size:24px}.profile-identity{min-width:0}.profile-identity>.eyebrow{display:none}.profile-hero h1{font-size:27px;line-height:1.16;letter-spacing:-.8px;overflow-wrap:anywhere}.profile-subtitle{margin:8px 0 0;font-size:13px}.profile-tags{margin-top:10px;gap:6px}.profile-tags span{font-size:10px;padding:5px 8px}.profile-bio{font-size:13px;margin-top:10px}.profile-hero>.profile-inline-ratings{grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin:6px 0 0;padding:16px 0;border-bottom:1px solid #d7dfd1}.profile-inline-ratings strong{font-size:25px}.profile-inline-ratings small{font-size:11px}.profile-hero>.official-link{grid-column:1/-1;grid-row:3;min-height:44px;display:inline-flex;align-items:center;justify-self:start;margin:0;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;font-weight:600;box-shadow:none}.profile-hero>.profile-update-link{grid-column:1/-1;grid-row:4;display:inline-flex;align-items:center;min-height:44px;margin:-12px 0 0;font-size:12px}
  #tournament-heading{order:1;margin:0 0 12px}#tournament-heading>.section-index{display:none}#tournament-heading h2{font-size:20px;margin:0;letter-spacing:-.5px}#tournament-grid{order:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-radius:12px;background:#203027;overflow:hidden}#tournament-grid .stat-card{min-height:94px;padding:16px;border:0;border-radius:0;background:transparent;color:#f3f3eb;box-shadow:none}#tournament-grid .stat-card:nth-child(even){border-left:1px solid #455441}#tournament-grid .stat-card:nth-child(n+3){border-top:1px solid #455441}#tournament-grid .stat-card>span{font-size:10px;color:#c5cdbf;letter-spacing:.7px}#tournament-grid .stat-card strong{font-size:28px;margin:6px 0 3px}#tournament-grid .stat-card small{color:#c5cdbf;font-size:10px;line-height:1.5}#record-results{order:3;margin:12px 0 0;padding:12px 0 18px;border:0;border-bottom:1px solid #d5dbcf;border-radius:0;background:transparent}#record-results p{gap:12px;font-size:11px}.record-bar{height:10px}
  #profile-activity{order:4;display:flex;flex-direction:column;gap:22px;margin-top:24px}.activity-panel{padding:0;background:transparent;border:0;border-radius:0}.activity-panel>.section-index{display:none}.activity-panel h2{font-size:20px;letter-spacing:-.5px;margin-bottom:12px}.saved-games-description{font-size:12px;line-height:1.55;margin:0 0 14px}.activity-list li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;min-height:80px;padding:14px 0}.activity-list strong{font-size:14px;line-height:1.45}.activity-list small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.activity-result{padding:4px 7px;border-radius:6px;background:#e6ebdf;font-size:11px;align-self:start}.saved-games-panel .activity-list a{grid-column:1/-1;font-size:12px;min-height:24px}.saved-games-panel .activity-list a::after{content:'';position:absolute;inset:0}.saved-games-panel .activity-list li:has(a:focus-visible){outline:2px solid #a78b59;outline-offset:3px}#recent-events-section:has(#recent-events:empty),#recent-games-section:has(#recent-games:empty){display:none}.data-unavailable{font-size:12px;line-height:1.6}
  .mobile-profile-disclosure{border-top:1px solid #d5dbcf;margin:0;padding:0;min-width:0}.mobile-profile-disclosure>summary{min-height:56px;padding:16px 24px 16px 0;color:#203027;font:600 14px/1.5 'DM Sans',sans-serif;cursor:pointer;list-style:none;position:relative}.mobile-profile-disclosure>summary::-webkit-details-marker{display:none}.mobile-profile-disclosure>summary::after{content:'+';position:absolute;right:2px;top:16px;font-size:18px;line-height:22px;color:#6b765f}.mobile-profile-disclosure[open]>summary::after{content:'−'}.mobile-profile-disclosure>summary:focus-visible{outline:2px solid #a78b59;outline-offset:-2px}.mobile-player-details{order:5;margin-top:24px}.mobile-player-sources{order:6}.mobile-player-updates{order:7;border-bottom:1px solid #d5dbcf}.mobile-profile-disclosure .profile-details,.mobile-profile-disclosure .profile-contributions{margin:0;padding:0 0 20px;border:0;border-radius:0;background:transparent}.mobile-profile-disclosure .profile-details>h2,.mobile-profile-disclosure .section-index,.mobile-profile-disclosure .profile-contributions>h2{display:none}.mobile-profile-disclosure .source-note,.mobile-profile-disclosure .activity-note{display:block;margin:0 0 16px;font-size:12px;line-height:1.6}.mobile-profile-disclosure .profile-contributions>p{font-size:13px}.mobile-profile-disclosure .profile-contributions input:not([type=checkbox]),.mobile-profile-disclosure .profile-contributions select,.mobile-profile-disclosure .profile-contributions textarea{font-size:16px}.mobile-profile-disclosure .request-account button{min-height:44px}.profile-details dl{margin-top:0}.profile-details dl div{gap:12px}.profile-details dd{font-size:13px}.profile-update-link,.mobile-profile-disclosure{scroll-margin-top:16px;scroll-margin-bottom:90px}
}
@media(max-width:360px){.player-row{grid-template-columns:minmax(0,1fr) 58px;padding:14px 12px;gap:10px}.player-row>.player-cell:first-child{grid-template-columns:36px minmax(0,1fr);column-gap:8px}.directory-avatar{width:36px;height:36px;font-size:12px}.player-row::after{right:8px}}
@media(max-width:600px){.player-row{min-height:68px;padding:12px 14px}.player-row>.player-cell:nth-child(2){align-self:center}.player-row>.player-cell:nth-child(2)::before{display:none}}
@media(max-width:360px){.player-row{min-height:64px;padding:10px 12px}}
/* Profile disclosures must follow the active theme, not the light-mode ink. */
@media(max-width:600px){
  html[data-theme="dark"] .profile-main .mobile-profile-disclosure{border-color:#425341}
  html[data-theme="dark"] .profile-main .mobile-profile-disclosure>summary{color:#e7ece2}
  html[data-theme="dark"] .profile-main .mobile-profile-disclosure>summary::after{color:#dfc898}
  html[data-theme="dark"] .profile-main #record-results p{color:#b6c2af}
}
#profile-tournament-control { margin:16px 0; min-width:0; }
.activity-side-piece{display:inline-block;width:20px;height:20px;object-fit:contain;vertical-align:-4px;margin-right:6px;padding:1px;border:1px solid #91a37e;border-radius:4px;background:#b7c5a6}
#profile-tournament-control label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }
#profile-tournament-select { width:100%; max-width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #b9c4b4; border-radius:9px; background:#f8f8f2; color:#203027; font:inherit; font-size:14px; text-overflow:ellipsis; }
#profile-tournament-select:focus-visible { outline:2px solid #8b7445; outline-offset:2px; }
#profile-tournament-note { margin:8px 0; line-height:1.5; }
@media(max-width:600px){#profile-tournament-select{font-size:16px;min-height:48px}}
html[data-theme="light"] { color-scheme:light; }
html[data-theme="dark"] { color-scheme:dark; --ink:#e7ece2; --paper:#111b15; --muted:#b0bdab; --line:#425341; --dark:#202923; color:#e7ece2; background:#111b15; }
.site-header .theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; min-height:44px; margin:0; padding:13px; border:0; border-radius:50%; background:transparent; color:#203027; box-shadow:none; cursor:pointer; line-height:1; transform:none; }
.site-header .theme-toggle:hover { background:transparent; transform:none; }
.site-header .theme-toggle:focus-visible { outline:2px solid #9b804d; outline-offset:3px; }
.theme-toggle svg { display:block; flex:none; width:16px; height:16px; }
html[data-theme="dark"] body { background:#111b15; color:#e7ece2; }
html[data-theme="dark"] .site-header,html[data-theme="dark"] footer { background:#111b15; color:#b0bdab; border-color:#425341; }
html[data-theme="dark"] .site-header .brand,html[data-theme="dark"] .brand-mark { color:#e7ece2; }
html[data-theme="dark"] .theme-toggle { color:#e0cda4; border-color:#63745c; }
html[data-theme="dark"] .theme-toggle:hover { background:transparent; }
html[data-theme="dark"] :is(.form-panel,.directory,.stat-card:not(.rating-card),.profile-details,.profile-hero,.activity-panel,.profile-contributions,.photo-editor,.card,.login-card,.mobile-account-dialog,#chess-signin-loader) { background:#1d2a21; color:#e7ece2; border-color:#425341; box-shadow:none; }
html[data-theme="dark"] :is(.workspace,.controls,.table-head,.player-row,.profile-details dl div,.activity-list li,.archive-event,.link-review-row,#link-review-form,.section-toolbar,.stats-table td,.stats-table th) { border-color:#425341; }
html[data-theme="dark"] :is(h1,h2,h3,h4,.player-name,.rating,.profile-details dd,.activity-list strong,.form-panel label,.search-field,.directory label) { color:#e7ece2; }
html[data-theme="dark"] :is(.muted,.lede,.description,.panel-description,.intro>p:last-child,.source-note,.total-count,.metric,.rating small,.missing,.profile-subtitle,.profile-details dt,.activity-list small,.activity-note,.data-unavailable,.saved-games-description,.profile-fide-id,.profile-photo-note,.archive-event p,.link-review-row p,.link-review-panel>summary span,.form-hint,.utility,.login-access-note,.profile-bio,.request-note,.profile-contributions>p:not(.section-index),.stat-card small,.stat-card>span,.stats-totals span,.stats-chart-range,.stats-note,.stats-profiles span,.stats-table-wrap caption,.stats-daily summary,.tournament-sync-controls p) { color:#b6c2af; }
html[data-theme="dark"] :is(.eyebrow,.section-index,.section-number) { color:#d4bd8d; }
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,#profile-tournament-select,#link-profile,.review-settings select) { background:#142019; color:#e7ece2; border-color:#63745c; }
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder { color:#a4b09f; opacity:1; }
html[data-theme="dark"] :is(.table-head,.controls,.player-row:nth-child(even),.maintenance-control,.review-guidance,.tournament-sync-controls,.sync-note) { background:#18251d; color:#d4dfcd; }
html[data-theme="dark"] .player-row:nth-child(odd) { background:#1d2a21; }
html[data-theme="dark"] :is(.back-link,.official-link,.activity-pgn,.activity-list a,.profile-contributions a,.archive-event a,.link-review-row a,#link-profile-preview,.player-links,.player-links a) { color:#dfc898; }
html[data-theme="dark"] :is(.secondary-button,.show-more,.saved-games-retry,.profile-hero .official-link) { background:#25392b; color:#e7ece2; border-color:#63745c; }
html[data-theme="dark"] :is(.secondary-button,.show-more,.saved-games-retry):hover { background:#334a37; }
html[data-theme="dark"] .profile-tags span { background:#293e2e; border-color:#66795c; color:#e1e8d9; }
html[data-theme="dark"] .site-header .nav-user-menu { background:#1d2a21; color:#e7ece2; border-color:#63745c; }
html[data-theme="dark"] .site-header .nav-user-menu #sign-out { background:#2b3e2f; color:#e7ece2; }
html[data-theme="dark"] .mobile-account-heading button { color:#e7ece2; border-color:#63745c; }
html[data-theme="dark"] #chess-signin-loader::backdrop { background:#111b15e8; }
html[data-theme="dark"] :is(.error,#link-form-status,.field-error) { color:#ffb9a8; }
html[data-theme="dark"] :is(.status,.success) { color:#cadaba; }
html[data-theme="dark"] .stats-totals>div { background:#18251d; border-color:#425341; }
html[data-theme="dark"] :is(.stats-totals strong,.stats-profiles a) { color:#e7ece2; }
html[data-theme="dark"] :is(.dashboard-tabs,.admin-badge) { background:#18251d; border-color:#425341; color:#b6c2af; }
html[data-theme="dark"] .dashboard-tabs button { color:#d4dfcd; }
html[data-theme="dark"] .dashboard-tabs button[aria-selected="true"] { background:#344b38; color:#f2e1b8; }
html[data-theme="dark"] .dashboard-tabs button:hover:not([aria-selected="true"]) { background:#2a3d2e; color:#e7ece2; }
html[data-theme="dark"] :is(.maintenance-switch,.maintenance-control p) { color:#b6c2af; }
html[data-theme="dark"] #saved-games-wrap { background:#18251d; border-color:#425341; }
html[data-theme="dark"] :is(.field-help,.source-status,.privacy,.form-note,.form-help,.saved-games-help,.form-panel small,.form-panel .panel-number,#saved-games-wrap p,#saved-games-wrap label) { color:#b6c2af; }
html[data-theme="dark"] .intro h1 em { color:#b5c2a7; }
html[data-theme="dark"] :is(#paste-button,#refresh-saved-games) { color:#dfc898; background:#25392b; border-color:#63745c; }
html[data-theme="dark"] :is(.external-results a,.external-results-links a,.profile-update-link) { color:#dfc898; }
html[data-theme="dark"] :is(.external-results p,.profile-inline-ratings small,.profile-inline-ratings span) { color:#b6c2af; }
html[data-theme="dark"] :is(.photo-editor p,.profile-photo-column p) { color:#b6c2af; }
html[data-theme="dark"] #copy-fide-id { color:#dfc898; }
html[data-theme="dark"] :is(.game-item a,.profile-review h3 a,.totals) { color:#dfc898; }
html[data-theme="dark"] :is(.game-item small,.login-log small,.login-log span,.profile-review .review-meta) { color:#b6c2af; }
html[data-theme="dark"] .delete-button { background:#382a26; color:#ffc1b4; border-color:#80584e; }
html[data-theme="dark"] .review-comparison>div { background:#18251d; color:#e7ece2; border-color:#425341; }
/* Board squares, piece images, evaluation tracks and move-quality colours are independent. */
/* Profile identity stays compact; titles are distinct from rating verification. */
#player-name .player-title-badge{display:inline-block;vertical-align:middle;margin:0 0 3px 5px;padding:5px 8px;border:1px solid #a78b59;border-radius:6px;background:#f2eadb;color:#725b2e;font:700 12px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:.05em;white-space:nowrap}
.profile-country-flag{display:inline-block;margin-right:3px;font-size:17px;line-height:1;vertical-align:-1px}
#ratings-updated{font-size:12px;line-height:1.5}
html[data-theme="dark"] #player-name .player-title-badge{background:#332e22;color:#ead4a5;border-color:#ae915b}
@media(max-width:600px){#player-name .player-title-badge{padding:4px 7px;font-size:11px;margin-left:3px}}
/* Fixed dimensions avoid layout shifts and native emoji/font differences. */
img.directory-country-flag,img.profile-country-flag{display:inline-block;object-fit:contain;flex-shrink:0;vertical-align:-2px;border-radius:1px}
img.directory-country-flag{width:21px;height:14px}
img.profile-country-flag{width:24px;height:16px}
/* Tablet / split-view adaptations; phone and wide desktop layouts are untouched. */
@media(min-width:601px) and (max-width:1100px){
  .directory .table-head,.directory .player-row{grid-template-columns:minmax(220px,1fr) 85px repeat(3,minmax(44px,60px));column-gap:12px}
  .directory .player-row{padding:12px 20px;min-height:64px}
  .directory .table-head{padding-left:20px;padding-right:20px}
  .directory .player-row>.player-cell:first-child{display:block;min-width:0}
  .directory .player-name{display:block;width:auto;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
  .directory .player-links{margin-top:4px;flex-wrap:wrap;white-space:normal;gap:6px}
  .directory .rating small{display:block;margin:3px 0 0}
  .directory input,.directory select,.board-toolbar button,.analysis-card button{min-height:44px}
  #profile-content,.profile-identity,.form-panel,.preview-panel{min-width:0}
  #player-name{overflow-wrap:anywhere}
  .profile-inline-ratings{max-width:100%;min-width:0}
  .site-header .nav-pill{min-height:44px}
}
@media(min-width:601px) and (max-width:900px){
  .directory .controls{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:20px;padding-right:20px}
  .directory .search-field{grid-column:1/-1}
}
@media(min-width:601px) and (max-width:760px){
  .directory .table-head{display:none}
  .directory .player-row{grid-template-columns:minmax(0,1fr) 85px}
  .directory .player-row>.player-cell:first-child{grid-column:auto}
  .directory .player-row>.player-cell:nth-child(n+3){display:none}
}
@media(min-width:601px) and (max-width:700px){
  .site-header{flex-wrap:wrap;gap:12px}
  .site-header .header-actions{order:3;flex:1 0 100%;justify-content:center;flex-wrap:wrap}
}
@media(min-width:601px) and (max-width:1000px){
  .workspace{grid-template-columns:minmax(0,1fr)}
  .chessboard{max-width:560px;width:100%;aspect-ratio:1}
}
/* Compact heading rhythm after removing decorative numbered labels. */
.form-panel{padding-top:24px}
.preview-panel{padding-top:24px}
#source-status:empty{display:none}
.directory-top{padding-top:24px;padding-bottom:18px}
.profile-details,.profile-contributions{padding-top:24px;padding-bottom:24px}
.profile-details h2{margin-top:0;margin-bottom:16px}
.activity-panel h2{margin-top:0;margin-bottom:14px}
.profile-contributions h2{margin-top:0}
@media(max-width:600px){
  .form-panel{padding-top:20px}
  .directory-top{padding-top:18px;padding-bottom:14px}
  .profile-details,.profile-contributions{padding-top:20px;padding-bottom:20px}
}
.site-header .site-search-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0 0 0 auto;padding:10px;border:0;border-radius:50%;background:transparent;color:#263b2b;box-shadow:none;cursor:pointer}
.site-header .site-search-toggle:hover{background:#e7ecdf}
.site-header .site-search-toggle:focus-visible{outline:2px solid #a78b59;outline-offset:2px}
.site-header .header-right-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-left:auto;min-width:0}
.site-header .header-right-tools .header-actions{width:auto;margin:0;flex:0 1 auto;order:0;justify-content:flex-end;gap:10px}
.site-header .header-right-tools .nav-account-slot{margin-left:0}
.site-header .header-right-tools :is(.site-search-toggle,.theme-toggle){margin:0;flex:0 0 44px}
@media(min-width:601px) and (max-width:800px){.site-header{flex-wrap:nowrap;gap:12px}.site-header .header-right-tools{gap:8px}.site-header .header-right-tools .header-actions{gap:8px}.site-header .nav-user-menu #user-name{max-width:72px}}
.site-search-dialog{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:24px;border:1px solid #b9c4b0;border-radius:16px;background:#fafaf5;color:#243329;box-shadow:0 20px 70px #0004;overflow:auto}
.site-search-dialog::backdrop{background:#101b14a6}
.site-search-dialog{overscroll-behavior:contain}
body:has(.site-search-dialog[open]){overflow:hidden}
.search-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.search-dialog-heading h2{margin:0;font:650 22px/1.3 system-ui,sans-serif}
.search-dialog-heading button{flex:none;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:8px;background:transparent;color:inherit;font:26px/1 system-ui,sans-serif;cursor:pointer}
.site-search-dialog label{display:block;margin:0 0 8px;font:13px/1.5 system-ui,sans-serif}
.site-search-dialog input{box-sizing:border-box;display:block;width:100%;min-height:48px;padding:12px;border:1px solid #9aaa91;border-radius:8px;background:#fff;color:#243329;font:16px/1.4 system-ui,sans-serif}
.site-search-status{font:12px/1.6 system-ui,sans-serif;color:#586650;margin:12px 0}
.site-search-results a{display:block;padding:13px 4px;border-top:1px solid #d3dbc9;color:#243329;text-decoration:none;overflow-wrap:anywhere}
.site-search-results a:hover{background:#e9eee2}
.site-search-results strong{display:block;font:600 14px/1.5 system-ui,sans-serif}
.site-search-results small{display:block;margin-top:3px;color:#586650;font:12px/1.5 system-ui,sans-serif}
.site-search-dialog :is(a,button,input):focus-visible{outline:2px solid #a78b59;outline-offset:2px}
html[data-theme="dark"] .site-search-dialog{background:#1d2a21;color:#e7ece2;border-color:#63745c}
html[data-theme="dark"] .site-search-toggle{color:#dfc898}
html[data-theme="dark"] .site-search-toggle:hover,html[data-theme="dark"] .site-search-results a:hover{background:#2c3e30}
html[data-theme="dark"] .site-search-results a{color:#e7ece2;border-color:#425341}
html[data-theme="dark"] :is(.site-search-status,.site-search-results small){color:#b6c2af}
html[data-theme="dark"] .site-search-dialog input{background:#142019;color:#e7ece2;border-color:#63745c}
@media(max-width:600px){.site-header{gap:8px}.site-search-dialog{padding:18px;margin:24px auto;max-height:calc(100dvh - 48px)}}
/* Approved Modern Knight: fixed gold mark, theme-aware existing wordmark. */
body .site-header > a.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
body .site-header .brand > img.brand-knight{display:block;flex:0 0 auto;width:33px;height:44px;object-fit:contain;margin:0;border:0;border-radius:0;background:transparent}
@media(max-width:600px){body .site-header .brand > img.brand-knight{width:27px;height:36px}}
.analytics-consent{box-sizing:border-box;max-width:720px;margin:20px auto;padding:16px;border:1px solid var(--cf-line,#9aa79d);border-radius:8px;background:var(--cf-panel,#f5f5ef);color:var(--cf-text,#202b25);font:400 13px/1.6 'DM Sans',Arial,sans-serif;text-align:left}
.analytics-consent[hidden]{display:none}
.analytics-consent p{margin:0 0 10px}
.analytics-consent .analytics-choice{font-size:12px}
.analytics-consent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.analytics-consent-actions button{width:auto;min-height:44px;margin:0;padding:8px 14px;border:1px solid var(--cf-line,#9aa79d);border-radius:5px;background:var(--cf-surface,#fff);color:var(--cf-text,#202b25);font:600 13px/1.4 'DM Sans',Arial,sans-serif;cursor:pointer;box-shadow:none}
.analytics-consent-actions button:first-child{background:var(--cf-accent,#244b3c);color:#fff}
.analytics-consent-actions a{color:inherit;text-decoration:underline;text-underline-offset:3px}
footer .analytics-preferences{display:inline-block;width:auto;min-height:44px;margin:0 0 0 14px;padding:6px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-transform:none;letter-spacing:normal;text-decoration:underline;text-underline-offset:3px;box-shadow:none;cursor:pointer}
.analytics-consent :is(button,a):focus-visible,footer .analytics-preferences:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:600px){.analytics-consent{margin:16px 10px}.analytics-consent-actions{gap:8px}footer .analytics-preferences{display:block;margin:0 auto}}
.tournament-picker-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--cf-line,#cdd5c9);border-radius:5px;background:var(--cf-surface,#fff);color:var(--cf-text,#203027);font:inherit;text-align:left;cursor:pointer}
body.reference-workspace .tournament-toolbar .tournament-picker-trigger{height:auto;width:100%;min-width:0;min-height:44px;padding:10px 12px;display:flex;border:1px solid var(--cf-line);background:var(--cf-surface);color:var(--cf-text);border-radius:5px;text-align:left;font:400 14px/1.5 'DM Sans',Arial,sans-serif}
.picker-result,.picker-heading button,.player-follow,.favourites-list button{height:auto}
#saved-game-select[hidden]{display:none!important}
.tournament-picker-dialog{width:min(540px,calc(100% - 24px));max-height:85dvh;box-sizing:border-box;padding:20px;border:1px solid var(--cf-line,#cdd5c9);border-radius:12px;background:var(--cf-surface,#fff);color:var(--cf-text,#203027)}
.tournament-picker-dialog::backdrop{background:#0008}
.picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.picker-heading h2{font-size:20px;margin:0 0 16px}
.picker-heading button{min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer}
.tournament-picker-dialog label{display:block;font-size:13px;margin-bottom:6px}
.tournament-picker-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid var(--cf-line,#cdd5c9);border-radius:6px;background:var(--cf-panel,#f4f5ef);color:inherit;font:inherit}
.picker-count,.game-coverage-note{font-size:12px;line-height:1.6;color:var(--cf-muted,#566252)}
.picker-results{max-height:52dvh;overflow:auto;overscroll-behavior:contain}
.picker-results h3{font-size:12px;margin:16px 0 6px;color:var(--cf-muted,#566252)}
.picker-result{display:block;width:100%;min-height:44px;padding:10px;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid var(--cf-line,#d5dbcf);font:inherit;cursor:pointer}
.picker-result[aria-pressed=true]{background:var(--cf-panel,#eef1e9);font-weight:700}
.continue-game{display:inline-flex;margin:8px 32px;padding:10px 14px;border:1px solid var(--cf-line,#cdd5c9);border-radius:6px;color:var(--cf-text,#203027);font-size:13px;text-decoration:none;min-height:44px;box-sizing:border-box;align-items:center}
.continue-game[hidden]{display:none}
.game-coverage-note{margin:8px 20px 12px}
.account-favourites{border-top:1px solid currentColor;margin:12px 0;padding-top:10px}
.account-favourites summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.favourites-status{font-size:12px;line-height:1.6}
.favourites-list{list-style:none;padding:0;margin:0;max-height:240px;overflow:auto}
.favourites-list li{display:flex;align-items:center;gap:12px;border-top:1px solid #8b9b8840;padding:8px 0}
.favourites-list a{color:inherit;flex:1;min-width:0;overflow-wrap:anywhere}
.favourites-list button,.player-follow{min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.player-follow{display:block;margin-top:16px;font-size:13px}
.player-follow[hidden],.account-favourites[hidden]{display:none}
html[data-theme=dark] .tournament-picker-dialog{background:#202d25;color:#eef1e7}
html[data-theme=dark] .tournament-picker-dialog input{background:#18231d;color:#eef1e7}
html[data-theme=dark] .picker-result[aria-pressed=true]{background:#344b3d}
.review-help{font-size:12px;line-height:1.6;margin:12px 0}
.review-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.review-help p{margin:8px 0}
.review-help dl{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;margin:12px 0}
.review-help dt{font-weight:700}
.review-help dd{margin:0}
.review-help-dialog{max-width:400px;width:calc(100% - 28px);box-sizing:border-box;background:var(--cf-surface,#fff);color:var(--cf-text,#203027);border:1px solid var(--cf-line,#cdd5c9);border-radius:10px;padding:20px}
.review-help-dialog button{min-height:44px;padding:8px 14px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px}
.review-badge{cursor:help}
@media(max-width:600px){.game-coverage-note{margin:6px 16px 10px}.continue-game{margin:6px 16px}.tournament-picker-dialog{padding:16px}.picker-result{font-size:14px}.tournament-picker-trigger{font-size:13px}.account-favourites{width:100%;box-sizing:border-box}}
@media(max-width:600px){.tournament-picker-dialog input{font-size:16px}}
.picker-result:focus-visible,.tournament-picker-trigger:focus-visible,.player-follow:focus-visible,.favourites-list button:focus-visible{outline:2px solid #a78b59;outline-offset:2px}
.review-quality-help{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:auto;min-height:36px;width:100%;padding:4px;border:0;background:transparent;color:inherit;font:inherit;cursor:help}
.review-quality-help:focus-visible{outline:2px solid #a78b59;outline-offset:2px}
@media(max-width:600px){#admin-photo-size-guide{display:none}}
/* Desktop pointer devices only: tablet and phone presentation is unchanged. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
  html body:has(.profile-main) .site-header{margin-top:8px;min-height:64px;padding-block:8px}
  body:has(.profile-main) .site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;box-sizing:border-box;max-width:1280px;min-height:68px;height:auto;margin:12px auto 0;padding:10px 24px;border:1px solid var(--cf-line,#35443b);border-radius:8px 8px 0 0}
  body:has(.profile-main) .site-header>.brand{grid-column:1;grid-row:1;font-size:27px;justify-self:start;letter-spacing:-1px}
  body:has(.profile-main) .site-header>.site-nav{grid-column:2;grid-row:1;display:flex;gap:8px;justify-self:start}
  body:has(.profile-main) .site-header>.header-right-tools{grid-column:3;grid-row:1;display:flex;align-items:center;justify-self:end;gap:8px;min-width:0}
  body:has(.profile-main) .site-header .site-nav a.nav-pill,body:has(.profile-main) .site-header .site-nav a.nav-pill[aria-current="page"]{border:0;border-radius:6px;background:transparent;box-shadow:none;color:inherit;padding:8px 14px;font-size:14px;text-decoration:none}
  body:has(.profile-main) .site-header .site-nav a:hover{text-decoration:underline;text-underline-offset:5px}
  body:has(.profile-main) .site-header #user-name{max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body:has(.profile-main) .site-header .header-actions{display:flex;align-items:center;gap:8px;margin:0}
  html[data-theme="light"] body:has(.profile-main) .site-header{border-color:#dedfd7}
  body.reference-workspace .public-tournament-toolbar{grid-template-columns:minmax(180px,.8fr) 96px minmax(280px,1.35fr) auto;gap:10px;padding:8px 20px}
  body.reference-workspace .public-tournament-toolbar .tournament-toolbar-actions{gap:6px}
  body.reference-workspace .game-coverage-note{margin:0;padding:6px 20px;font-size:11px;line-height:1.4}
  body.reference-workspace #result-state>h3{margin:0;padding:8px 20px;font-size:14px;line-height:1.4}
  body.reference-workspace #result-state .board-and-pgn{grid-template-columns:minmax(0,calc(var(--desktop-board-size,440px) + 44px)) minmax(340px,1fr);gap:16px;padding:12px 20px;align-items:start}
  body.reference-workspace .board-evaluation-frame{width:calc(100% - 24px);margin:0 12px 8px;grid-template-columns:14px minmax(0,1fr)}
  body.reference-workspace .player-strip{min-height:34px;padding:6px 12px;gap:6px}
  body.reference-workspace .player-strip strong{font-size:13px;line-height:1.3}
  body.reference-workspace .player-strip.has-clock-data{min-height:44px;grid-template-rows:20px 14px;gap:0 6px;padding:4px 10px}
  body.reference-workspace .player-clock{min-width:74px;height:20px;font-size:12px;line-height:16px;padding:1px 5px}
  body.reference-workspace .player-strip .captured-pieces{max-width:45%;gap:1px}
  body.reference-workspace .player-strip .captured-pieces img{width:15px;height:18px}
  body.reference-workspace .position-navigation{padding:6px 10px!important;gap:6px!important;min-height:46px}
  body.reference-workspace .position-navigation .move-action,body.reference-workspace .position-navigation #flip-board{height:36px;min-height:36px;width:38px;min-width:38px}
  body.reference-workspace #result-state .position-navigation{grid-template-columns:repeat(6,38px)!important;justify-content:center!important;gap:4px!important;padding:5px 8px!important}
  body.reference-workspace .position-navigation #position-label{grid-column:1/-1;margin:0;font-size:11px;line-height:14px;text-align:center}
  body.reference-workspace .position-navigation .playback-toggle{font-size:0!important}
  body.reference-workspace .position-navigation .playback-toggle::before{content:'▶';font-size:16px}
  body.reference-workspace .position-navigation .playback-toggle[aria-pressed="true"]::before{content:'Ⅱ'}
  body.reference-workspace .tool-pane{min-height:0;padding:12px}
  body.reference-workspace .analysis-heading{margin:0 0 8px}
  body.reference-workspace .engine-options{margin:6px 0}
  body.reference-workspace .evaluation-summary{margin:8px 0;padding:8px 10px}
  body.reference-workspace .evaluation-summary .evaluation{min-height:36px}
  body.reference-workspace .analysis-output{margin:8px 0}
  body.reference-workspace .analysis-output p{margin:4px 0}
  body.reference-workspace #result-state .evaluation-summary{padding:8px 10px}
  body.reference-workspace .engine-suggestions{gap:4px}
  body.reference-workspace .engine-options>summary{min-height:30px}
  body.reference-workspace #tool-analysis:has(#analysis-toggle[aria-pressed="false"]) .engine-suggestions>p:last-child{display:none}
  body.reference-workspace .workspace-more .game-coverage-note{padding:8px 0}
  body.reference-workspace .workspace-more .tournament-standings{margin:8px 0;border-inline:0}
  body.reference-workspace #engine-status{margin:4px 0;font-size:11px}
  body.reference-workspace #move-list{max-height:clamp(150px,calc(var(--desktop-board-size,440px) - 155px),360px);overflow:auto;scrollbar-gutter:stable}
  body.reference-workspace .move-list-columns,body.reference-workspace #move-list .move-list-row{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);column-gap:6px;padding-inline:4px;align-items:center}
  body.reference-workspace .move-list-columns{padding-right:4px}
  body.reference-workspace #move-list .notation-move{width:100%;text-align:left;min-height:32px;padding:5px 6px}
  .profile-main{padding-top:24px}
  .profile-main .back-link{margin-bottom:16px}
  .profile-main .profile-hero{grid-template-columns:96px minmax(0,1fr) auto;gap:22px;padding:24px;margin-bottom:24px;align-items:start;border-radius:12px}
  .profile-main .profile-photo-column,.profile-main .profile-avatar{width:96px}
  .profile-main .profile-avatar{height:96px;border-radius:16px}
  .profile-main .profile-hero h1{font-size:clamp(30px,2.7vw,40px);letter-spacing:-1px;line-height:1.15}
  .profile-main .profile-hero .eyebrow{font-size:10px;margin-bottom:7px}
  .profile-main .profile-subtitle{font-size:13px;margin-top:7px}
  .profile-main .profile-tags{margin-top:10px}
  .profile-main .profile-inline-ratings{margin-top:14px;padding-top:12px}
  .profile-main .profile-inline-ratings .desktop-redundant-note{display:none}
  .profile-main .profile-update-link{font-size:12px}
  .profile-main .player-follow{margin-top:12px}
  .profile-main #admin-photo-size-guide,.profile-main #photo-editor>p:last-child{display:none}
  .desktop-rating-heading{visibility:visible!important}
}
.desktop-rating-heading{visibility:hidden}
/* Continue the shared header border around the selected player's content. */
body.player-profile .profile-main{box-sizing:border-box;max-width:1280px;margin:0 auto;padding:24px 28px 48px;border:1px solid #dedfd7;border-top:0;border-radius:0 0 8px 8px;background:#fffefa}
html[data-theme="dark"] body.player-profile .profile-main{border-color:#35443b;background:#18211d}
@media(max-width:600px){body.player-profile .profile-main{padding:16px 16px 32px;border-left:0;border-right:0}}
/* Shared Games/Players header. Loaded last so page layout styles cannot change it. */
body.chessfile-site .site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:24px;row-gap:8px;box-sizing:border-box;max-width:1280px;height:auto;min-height:76px;margin:24px auto 0;padding:12px 28px;border:1px solid #dedfd7;border-radius:10px 10px 0 0;background:#fffefa;color:#20252a;font-family:'DM Sans',Arial,sans-serif;font-weight:400;font-synthesis:weight style small-caps}
body.chessfile-site .site-header>.brand{grid-column:1;grid-row:1;justify-self:start;min-width:0;font:750 27px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px;color:inherit;gap:10px;text-decoration:none}
body.chessfile-site .site-header .brand span{font-size:44px;line-height:1;color:#234c40}
body.chessfile-site .site-header>.site-nav{grid-column:2;grid-row:1;justify-self:start;display:flex;flex-wrap:nowrap;min-width:0;gap:8px}
body.chessfile-site .site-header>.header-right-tools{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;min-width:0}
body.chessfile-site .site-header .site-nav a.nav-pill,body.chessfile-site .site-header .site-nav a.nav-pill[aria-current="page"]{padding:8px 14px;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;font:600 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none}
body.chessfile-site .site-header .site-nav a:hover{text-decoration:underline;text-underline-offset:5px}
body.chessfile-site .site-header .site-nav a:focus-visible{outline:2px solid #769e88;outline-offset:2px}
body.chessfile-site .site-header .nav-user-menu{max-width:240px;min-width:0;white-space:nowrap}
body.chessfile-site .site-header #user-name{max-width:100px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.chessfile-site .site-header :is(.site-search-toggle,.theme-toggle){color:inherit}
html[data-theme="dark"] body.chessfile-site .site-header{border-color:#35443b;background:#18211d;color:#f0f2ed}
html[data-theme="dark"] body.chessfile-site .site-header .brand{color:#f0f2ed}
html[data-theme="dark"] body.chessfile-site .site-header .brand span{color:#a8d3bb}
@media(min-width:601px){body.chessfile-site .site-header .header-right-tools .header-actions{display:flex;width:auto;flex:0 1 auto;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;margin:0;order:0}body.chessfile-site .site-header .nav-account-slot{min-width:0;margin:0}}
@media(max-width:1100px){body.chessfile-site .site-header{margin-top:0;border-radius:0}}
@media(min-width:601px) and (max-width:900px){body.chessfile-site .site-header{padding:12px 20px;column-gap:14px}body.chessfile-site .site-header .brand{font-size:24px}body.chessfile-site .site-header .site-nav a.nav-pill,body.chessfile-site .site-header .site-nav a.nav-pill[aria-current="page"]{padding:8px 10px;font-size:13px}body.chessfile-site .site-header #user-name{max-width:72px}}
@media(min-width:601px) and (max-width:760px){body.chessfile-site .site-header{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}body.chessfile-site .site-header>.header-right-tools{grid-column:2;grid-row:1}body.chessfile-site .site-header>.site-nav{grid-column:1/-1;grid-row:2;gap:12px}}
@media(max-width:600px){body.chessfile-site .site-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:64px;margin:0;padding:8px 12px;border-radius:0;border-left:0;border-right:0}body.chessfile-site .site-header>.brand{font-size:24px}body.chessfile-site .site-header .brand span{font-size:36px}body.chessfile-site .site-header>.site-nav{display:none}body.chessfile-site .site-header>.header-right-tools{grid-column:2;grid-row:1;gap:4px}body.chessfile-site .site-header .header-actions{display:none}}
/* Match the Games desktop header on both pages, independent of content layout. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
  body.chessfile-site .site-header{max-width:1280px;min-height:64px;margin:8px auto 0;padding:8px 28px;gap:28px;border-radius:8px 8px 0 0}
}
