.studio-access-dialog{box-sizing:border-box;width:min(620px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;border:1px solid #a8b7ac;border-radius:20px;padding:24px;background:#fffef9;color:#203b32;box-shadow:0 25px 90px #0004;font:17px/1.45 system-ui,sans-serif;z-index:10000}.studio-access-dialog::backdrop{background:#0a1d16aa}.studio-access-dialog *{box-sizing:border-box}.studio-access-dialog .sa-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.studio-access-dialog h2{font:700 24px/1.2 system-ui;margin:0;letter-spacing:-.03em}.studio-access-dialog h3{font-size:21px}.studio-access-dialog label{display:block;margin:16px 0;font-size:16px}.studio-access-dialog input:not([type=checkbox]),.studio-access-dialog select{display:block;width:100%;min-height:48px;padding:10px 12px;margin-top:7px;border:1px solid #b4bfb5;border-radius:10px;background:#fff;color:#203b32;font:inherit}.studio-access-dialog button{min-height:44px;padding:10px 16px;font:600 16px/1.2 system-ui;border-radius:10px;cursor:pointer}.studio-access-dialog .sa-primary,.studio-access-dialog .sa-process{background:#d46a30;color:#fff;border:0;margin:8px 0}.studio-access-dialog .sa-close,.studio-access-dialog .sa-link{background:transparent;color:inherit;border:1px solid #a8b7ac}.studio-access-dialog .sa-link{margin-left:8px}.studio-access-dialog .sa-process{display:block;width:100%;text-align:left;padding:24px}.sa-message:empty{display:none}.sa-error{color:#c74835}.sa-user{border:1px solid #a8b7ac;border-radius:14px;padding:18px;margin:14px 0}.sa-user small{display:block;margin:5px 0}.studio-access-dialog .sa-check{display:flex;align-items:center;gap:10px}.studio-access-dialog input[type=checkbox]{width:22px;height:22px;margin:0;order:-1;accent-color:#d46a30}.studio-access-dialog button:disabled{opacity:.5;cursor:wait}.sa-icon{width:44px;min-width:44px;height:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center}
[data-theme=dark] .studio-access-dialog{background:#14271e;color:#f3f1e4;border-color:#52695c}[data-theme=dark] .studio-access-dialog input:not([type=checkbox]),[data-theme=dark] .studio-access-dialog select{background:#243a2e;color:#f3f1e4;border-color:#52695c}.swiss-eliminated{opacity:.6}.swiss-eliminated td:first-child{font-style:italic}#tournament-next-round{margin:20px 0}#tournament-access-gate{padding:24px 0}#tournament-access-gate .tool-actions{gap:12px}
.sa-privacy{display:block;margin-top:16px;color:inherit;font-size:14px}

.sa-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 24px;padding:5px;background:var(--field,#edf0f2);border:1px solid var(--line,#cad1d4);border-radius:14px}.sa-auth-tabs button{min-height:48px;border:0;border-radius:10px;padding:10px 12px;font:inherit;font-weight:700;background:transparent;color:inherit;cursor:pointer}.sa-auth-tabs button[aria-selected="true"]{background:#c34f13;color:#fff}.sa-auth-tabs button:focus-visible{outline:3px solid #f9a76b;outline-offset:2px}[data-studio-intranet][hidden]{display:none!important}

.sa-auth-tabs button{color:#203b32}.sa-auth-tabs button[aria-selected="true"]{color:#fff}[data-theme=dark] .sa-auth-tabs{background:#21382d;border-color:#52695c}[data-theme=dark] .sa-auth-tabs button{color:#f3f1e4}

.studio-access-dialog .sa-contact-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:end}.studio-access-dialog .sa-contact-row label{min-width:0}.studio-access-dialog .sa-contact-row select{max-width:100%;text-overflow:ellipsis}@media(max-width:420px){.studio-access-dialog .sa-contact-row{gap:8px}.studio-access-dialog .sa-contact-row label{font-size:14px}}

[data-studio-tournaments][hidden]{display:none!important}

.sa-directory-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0}.sa-directory{width:100%;min-width:480px;border-collapse:collapse;text-align:left;font-size:16px}.sa-directory th,.sa-directory td{padding:12px 10px;border-bottom:1px solid #81918a66;vertical-align:top;color:inherit}.sa-directory th{font-size:15px;white-space:nowrap}.sa-directory td:first-child{overflow-wrap:anywhere;max-width:220px}.sa-directory td:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.sa-directory-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}.sa-directory-status{font-size:15px;line-height:1.5}

.studio-access-dialog .sa-profile-actions{display:flex;flex-direction:column;gap:12px}.studio-access-dialog .sa-profile-actions>button{width:100%;margin:0;min-height:48px}.studio-access-dialog .sa-profile-actions>h3,.studio-access-dialog .sa-profile-actions>p{margin:0 0 6px}

.studio-analysis-locked{filter:grayscale(1)!important;opacity:.42!important;cursor:not-allowed!important;transform:none!important}.studio-analysis-locked img,.studio-analysis-locked svg{filter:grayscale(1)}

.studio-access-dialog input.sa-organizer-toggle{padding:0!important;appearance:none;width:46px!important;height:26px!important;min-height:0!important;border:1px solid var(--line,#64746b);border-radius:20px;background:#68736d;position:relative;cursor:pointer;vertical-align:middle}.sa-organizer-toggle:before{content:'';position:absolute;width:20px;height:20px;top:2px;left:2px;border-radius:50%;background:white;transition:transform .15s}.sa-organizer-toggle:checked{background:#e56f20}.sa-organizer-toggle:checked:before{transform:translateX(20px)}.sa-organizer-toggle:disabled{opacity:.5;cursor:default}.sa-directory td small{display:block;font-size:12px;margin-top:4px}.sa-organizer-toggle:focus-visible{outline:3px solid #f89a52;outline-offset:3px}

.studio-access-dialog.sa-directory-dialog{width:min(1180px,96vw);max-width:96vw;padding:22px}.sa-directory-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.studio-access-dialog .sa-directory-filters label{margin:0;font-weight:400}.sa-directory-dialog .sa-directory td{padding:7px 10px;vertical-align:middle;font-weight:400;line-height:1.25}.sa-directory-dialog .sa-directory td:first-child{font-weight:400}.sa-directory-dialog .sa-directory td small:empty{display:none}.sa-directory-dialog .sa-directory td button{min-height:34px;padding:6px 10px;font-weight:400}.sa-directory-dialog .sa-directory .sa-sort{padding:4px 0;min-height:32px;border:0;background:transparent;color:inherit;font-weight:600}.sa-directory-editable{cursor:pointer}.sa-directory-editable:hover,.sa-directory-editable:focus-visible{background:#80978b22;outline:2px solid #d46a3066;outline-offset:-2px}.sa-directory-dialog .sa-directory{min-width:670px}.sa-directory-dialog .sa-directory-status{margin:10px 0 2px}@media(max-width:600px){.studio-access-dialog.sa-directory-dialog{padding:16px}.sa-directory-filters{grid-template-columns:1fr 1fr;gap:8px}.sa-directory-filters>label:first-child{grid-column:1/-1}}

.sa-directory-dialog .sa-number{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}.sa-directory-dialog .sa-directory{min-width:960px}.sa-directory-dialog .sa-wallet-icon{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:6px}.sa-directory-dialog .sa-wallet-icon svg{display:block}

/* Board template management and PNG preview. */
.studio-access-dialog:has(.board-templates-admin),.board-templates-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px)}.board-templates-dialog{max-height:calc(100dvh - 24px);padding:22px;overflow:auto;border:1px solid #8292a166;border-radius:18px;background:var(--paper,#16181c);color:var(--ink,#eef3f8)}.board-templates-dialog::backdrop{background:#000b}.bt-heading,.bt-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:12px 0}.bt-heading h2{margin:0;font-size:24px}.bt-heading button{min-width:44px;min-height:44px;font-size:25px}.bt-form{display:grid;gap:18px}.bt-form label{display:grid;gap:8px;font-weight:400;font-size:15px}.bt-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:12px}.bt-form input:not([type=checkbox]){box-sizing:border-box;max-width:100%;width:100%;min-width:0;color:inherit;background:transparent;border:1px solid #8292a166;border-radius:8px;padding:10px;font:inherit}.bt-form input[type=checkbox]{width:22px;height:22px;accent-color:#ed852b}.bt-form input[type=color]{height:48px;padding:4px}.bt-form input[type=range]{accent-color:#ed852b}.bt-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bt-preview{width:100%;max-width:850px;margin:8px auto}.bt-preview svg{display:block;width:100%;height:auto}.bt-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bt-upload-grid>div{display:grid;gap:12px;align-content:start;min-width:0}.bt-upload-grid img{width:100%;height:120px;object-fit:contain;background-color:#32404d;background-image:linear-gradient(45deg,#ffffff13 25%,transparent 25%),linear-gradient(-45deg,#ffffff13 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff13 75%),linear-gradient(-45deg,transparent 75%,#ffffff13 75%);background-size:20px 20px;border-radius:10px}.bt-error{color:#e98161;white-space:pre-line}.bt-table-wrap{overflow:auto}.bt-table{width:100%;border-collapse:collapse;font-size:15px}.bt-table th,.bt-table td{padding:9px 8px;border-bottom:1px solid #8292a144;text-align:left;font-weight:400}.bt-table td:last-child{white-space:nowrap}.bt-table td button{min-height:38px;margin:2px;font-size:14px}.bt-choice{display:block;min-height:48px;width:100%;text-align:left;margin:10px 0}@media(max-width:620px){.bt-upload-grid{grid-template-columns:1fr}.bt-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.board-templates-dialog{padding:16px}}

.bt-form select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px 36px 10px 12px;border:1px solid var(--line,#8292a166);border-radius:8px;background:var(--field,#16181c);color:var(--ink,#eef3f8);font:inherit;color-scheme:dark}.bt-form select option{background:var(--field,#16181c);color:var(--ink,#eef3f8)}

.community-floating{position:fixed;z-index:1600;min-width:0;min-height:0;border:1px solid #8a9cae;border-radius:14px;background:var(--paper,#15212d);color:var(--ink,#edf3f6);box-shadow:0 14px 55px #0009;display:flex;flex-direction:column;overflow:hidden}.community-floating-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;cursor:move;touch-action:none;background:var(--field,#223347);flex:0 0 auto}.community-floating-head strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-floating-head button{min-width:36px;min-height:32px;font-size:22px;border:0;background:transparent;color:inherit}.community-floating-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}.community-video .community-floating-body{padding:0;overflow:hidden}.community-video iframe{border:0;display:block;width:100%;height:100%}.community-resize{position:absolute;right:0;bottom:0;width:28px;height:28px;border:0;border-radius:8px 0 0;background:#223347cc;color:white;cursor:nwse-resize;touch-action:none;z-index:2}.community-floating.is-adjusting iframe{pointer-events:none}.community-floating.is-adjusting{user-select:none}.community-chat-log{flex:1;overflow:auto;padding:10px;min-height:50px;overscroll-behavior:contain}.community-chat-log article{padding:10px;margin:8px 14px 8px 0;border-radius:12px;background:#8394a326}.community-chat-log article.own{margin:8px 0 8px 14px;background:#eb8c2926}.community-chat-log p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.community-chat-log strong,.community-chat-log small{font-size:12px}.community-chat-form{padding:8px 30px 8px 8px;display:flex;gap:6px;flex:0 0 auto}.community-chat-form textarea{flex:1;min-width:0;resize:none;font:inherit;background:var(--field,#162330);color:inherit;border:1px solid #8394a366;border-radius:8px;padding:8px}.community-status{font-size:12px;padding:0 8px;white-space:pre-wrap}.community-game-tools{position:fixed;z-index:140;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:flex;gap:6px}.community-game-tools[hidden]{display:none}.community-game-tools button{min-height:38px;padding:7px 10px;border:1px solid #8696a2;border-radius:10px;background:#172638;color:#fff;font:inherit;font-size:13px}.community-dialog{max-width:min(1100px,96vw);width:850px;box-sizing:border-box}.community-dialog svg{display:block;width:100%;height:auto}.community-dialog input,.community-dialog select{max-width:100%;min-height:44px;padding:8px;font:inherit;box-sizing:border-box}.community-dialog form{display:flex;flex-wrap:wrap;gap:12px}.community-queue-form label{display:grid;gap:8px}.community-lobby-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 20px}.community-practice-card{border:1px solid #8192a366;border-radius:12px;padding:16px;margin:12px 0}.community-study-board{max-width:850px;margin:auto}.community-match-summary{border-top:1px solid #8192a366;margin-top:20px;padding-top:14px}.community-match-summary p{font-size:15px;line-height:1.5}.community-match-summary button{min-height:44px;margin-top:12px}.community-dialog .quiz-choices button{color:inherit}.community-dialog .sa-heading button{font-size:24px;min-width:44px;min-height:44px}

/* Match communication lives at the top of the left tool rail. */
.community-game-tools{position:fixed;inset:auto;left:max(8px,env(safe-area-inset-left));top:72px;bottom:auto;right:auto;display:flex;flex-direction:column;gap:8px;z-index:130;padding:4px;background:#1a222d;border:1px solid #526173;border-radius:14px}.community-game-tools[hidden]{display:none!important}.play-toolbar .community-game-tools{position:static;display:contents;border:0;padding:0}.community-game-tools .community-icon{position:relative;display:grid;place-items:center;flex:0 0 42px;order:-1;width:42px!important;min-width:42px;min-height:42px;height:42px;padding:8px;border:1px solid #66758a;border-radius:11px;background:#293748;color:#fff}.community-icon svg{width:24px;height:24px;pointer-events:none}.community-icon .community-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;background:#dc503d;color:#fff;border:1px solid #fff;border-radius:12px;font:700 11px/1 sans-serif;pointer-events:none}.community-icon .community-badge[hidden]{display:none!important}.community-invite-notice{position:fixed;z-index:1700;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(550px,calc(100vw - 24px));display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--orange,#eb8c41);border-radius:14px;background:var(--paper,#182735);color:var(--ink,#fff);box-shadow:0 8px 30px #0007}.community-invite-notice span{flex:1}.community-invite-notice button{min-height:40px;font-size:14px}@media(max-width:480px){.community-invite-notice{flex-wrap:wrap}.community-invite-notice span{flex-basis:100%}}

.community-chat-log article{box-sizing:border-box;display:table;width:fit-content;max-width:84%;margin:8px auto 8px 0;border-radius:12px 12px 12px 3px;text-align:left;background:#8394a326}.community-chat-log article.own{margin:8px 0 8px auto;border-radius:12px 12px 3px 12px;background:#29866440}.community-chat-log article small{display:block;text-align:right}.community-video .community-floating-head{justify-content:flex-end;min-height:34px;padding:2px 6px}.community-spectator-toggle{display:flex;align-items:center;gap:12px;cursor:pointer}.community-spectator-toggle input[role=switch]{appearance:none;-webkit-appearance:none;width:46px!important;min-width:46px;height:26px!important;min-height:26px;margin:0;padding:3px;border:1px solid #7e8c99;border-radius:20px;background:#617080;cursor:pointer;transition:background .15s}.community-spectator-toggle input[role=switch]::before{content:"";display:block;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .15s}.community-spectator-toggle input[role=switch]:checked{background:#298664;border-color:#57bb95}.community-spectator-toggle input[role=switch]:checked::before{transform:translateX(18px)}.community-spectator-toggle input[role=switch]:focus-visible{outline:3px solid #ffac62;outline-offset:3px}

.studio-locale-select{direction:ltr;unicode-bidi:isolate;min-width:84px;max-width:150px;font-size:16px!important}html[dir=rtl] body{font-family:Arial,sans-serif}html[dir=rtl] dialog,html[dir=rtl] .showcase-copy,html[dir=rtl] .module-copy,html[dir=rtl] .studio-game-settings{text-align:start}html[dir=rtl] .play-toolbar,html[dir=rtl] .analysis-toolbar,html[dir=rtl] .play-board,html[dir=rtl] .co-board,html[dir=rtl] #analysis-board,html[dir=rtl] .play-review-alternatives,html[dir=rtl] input[type=tel],html[dir=rtl] input[type=number],html[dir=rtl] input[type=email]{direction:ltr;unicode-bidi:isolate}html[dir=rtl] .community-chat-log,html[dir=rtl] .community-floating-head{direction:ltr}html[dir=rtl] .community-chat-log article p{unicode-bidi:plaintext;text-align:start}html[dir=rtl] .community-spectator-toggle input[role=switch]{direction:ltr}html[dir=rtl] .community-chat-form textarea{direction:rtl}#language-select.studio-locale-select{width:100px;max-width:150px;font-size:16px!important}html[dir=rtl] .bt-choice,html[dir=rtl] .sa-heading,html[dir=rtl] .school-catalog-filters{direction:rtl}

html[dir=rtl] .play-game,html[dir=rtl] .co-fullscreen,html[dir=rtl] #analysis-editor{direction:ltr}

.simple-header #language-select.studio-locale-select{flex:0 0 112px;width:112px;min-width:112px;max-width:150px;font-size:16px!important}html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3{font-family:Arial,sans-serif}

.sa-format-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sa-format-fields label{min-width:0}.sa-format-fields input{width:100%;min-width:0}.sa-match-format{border:1px solid var(--line,#bbc8c0);border-radius:12px;padding:14px;margin:14px 0}.sa-match-format h3{margin:0 0 8px;overflow-wrap:anywhere}.sa-match-format p{font-size:15px;line-height:1.5}.sa-format-actions,.sa-format-confirm{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.sa-format-confirm{border-top:1px solid var(--line,#bbc8c0);margin-top:12px;padding-top:12px}.sa-format-confirm p{width:100%;margin:0}.sa-format-actions button{min-height:44px}

.sa-header-account,.sa-pending-button{position:relative}.sa-invitation-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:#d84435;color:#fff;font-size:12px;font-weight:800;line-height:1;border:2px solid var(--panel,#19212b);pointer-events:none}.sa-invitation-badge[hidden]{display:none!important}.sa-header-account>.sa-invitation-badge{position:absolute;top:-4px;right:-4px}.sa-pending-button>.sa-invitation-badge{margin-inline-start:10px}.sa-pending-invitations{width:min(680px,94vw)}.sa-pending-invitation h3,.sa-pending-invitation p{overflow-wrap:anywhere}.sa-pending-invitation .sa-format-actions button{flex:1;min-height:44px}

:root .studio-access-dialog .sa-primary,:root .studio-access-dialog .sa-process{background:#ff6500;color:#fff}

.sa-audit-dialog{width:min(960px,96vw);max-width:960px}.sa-audit-table{overflow:auto;margin:16px 0}.sa-audit-table table{width:100%;border-collapse:collapse;white-space:nowrap}.sa-audit-table th,.sa-audit-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line,#71809466);color:inherit}.sa-audit-table td button{font:inherit;text-align:left}.sa-audit-dialog .actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.sa-audit-dialog>.sa-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}

.studio-access-dialog.sa-directory-dialog{width:min(1480px,98vw);max-width:98vw}.sa-directory-dialog .sa-directory{font-size:14px}.sa-directory-dialog .sa-directory th,.sa-directory-dialog .sa-directory td,.sa-directory-dialog .sa-directory td button,.sa-directory-dialog .sa-directory .sa-sort{font-size:14px}
