:root{color-scheme:light;--bg:#f5f6f8;--white:#fff;--ink:#162133;--muted:#687587;--line:#e1e6ed;--brand:#d8202b;--soft:#fff0f1;--green:#167052;--amber:#8b6100;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font:16px/1.6 var(--sans);color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #84aeff;outline-offset:3px}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:1.75rem;line-height:1.3;letter-spacing:-.04em}h2{font-size:1.4rem}h3{font-size:1rem}a{color:var(--brand)}[hidden]{display:none!important}.initial{padding:4rem;text-align:center;font-size:1.4rem;color:var(--brand)}.top{background:var(--white);border-bottom:1px solid var(--line);padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.brand{font-weight:800;font-size:1.3rem;letter-spacing:-.04em;color:var(--brand);display:flex;align-items:center;gap:.6rem}.brand img{width:30px;height:30px}.brand small{font-size:.7rem;letter-spacing:.1em;color:var(--muted);font-weight:500;border-left:1px solid var(--line);margin-left:.5rem;padding-left:1rem}.topright,.row,.actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.account{font-size:.875rem}.account strong{display:block}.muted,.caption{color:var(--muted)}.caption{font-size:.8rem}.languages{display:flex;border:1px solid var(--line);border-radius:9px;padding:3px;background:var(--bg)}.languages button{border:0;background:transparent;padding:.4rem .7rem;font-size:.85rem;border-radius:6px;min-height:36px}.languages [aria-pressed=true]{background:var(--white);color:var(--brand);box-shadow:0 1px 4px #15223813;font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid var(--line);border-radius:8px;padding:.55rem .9rem;min-height:42px;background:var(--white);font-size:.875rem;text-decoration:none}.primary{background:var(--brand);border-color:var(--brand);color:white;font-weight:650}.ghost{background:transparent;border:0}.notice{padding:.7rem 2rem;background:#fff9e8;color:#6f5309;font-size:.85rem;border-bottom:1px solid #f3e2ac}.layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 100px)}.sidebar{padding:1.5rem .8rem;background:var(--white);border-right:1px solid var(--line)}.eyebrow{text-transform:uppercase;letter-spacing:.11em;color:var(--muted);font-size:.7rem;font-weight:650;margin:0 .6rem .9rem}.navbutton{width:100%;text-align:left;display:block;border:0;border-radius:9px;background:transparent;padding:.8rem;margin-bottom:.5rem;font-size:.875rem}.navbutton.active{background:var(--soft);color:var(--brand);font-weight:650}.navbutton small{display:block;color:var(--muted);font-size:.75rem;margin-top:.3rem}.navbottom{margin-top:1.5rem;padding:1rem .6rem;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}.main{padding:2rem;max-width:1450px;min-width:0;width:100%;margin:auto}.heading{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:1.5rem}.heading p{margin-top:.5rem}.badge{display:inline-flex;align-items:center;gap:.4rem;border-radius:30px;font-size:.75rem;padding:.3rem .65rem;background:#eaf7f0;color:var(--green)}.badge.private{background:#fff4d8;color:var(--amber)}.workspace{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(360px,1.6fr);gap:1.4rem;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:13px;overflow:hidden;min-width:0}.panelhead{padding:1rem 1.25rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.playerrow{padding:1.1rem;border:0;border-bottom:1px solid var(--line);background:var(--white);width:100%;text-align:left;display:flex;gap:.9rem;align-items:flex-start}.playerrow:last-child{border-bottom:0}.playerrow.active{background:var(--soft);box-shadow:inset 3px 0 var(--brand)}.avatar{background:var(--bg);border:1px solid var(--line);border-radius:10px;width:42px;height:42px;display:grid;place-items:center;flex:none;font-weight:650;color:var(--muted)}.playerrow strong{font-size:.95rem}.playerrow small{display:block;font-size:.75rem;color:var(--muted);margin:.25rem 0}.positions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.mainpos{background:var(--soft);color:var(--brand);font-weight:750;border-radius:7px;padding:.3rem .75rem;font-size:1.4rem}.subpos{background:var(--bg);color:var(--muted);border:1px solid var(--line);padding:.25rem .6rem;border-radius:6px;font-size:.85rem}.listpos{font-size:.75rem;color:var(--brand)}.detailhead{padding:1.5rem 1.5rem 0;border-bottom:1px solid var(--line)}.detailhead p{margin:.4rem 0}.detailtabs{display:flex;gap:1.5rem;margin-top:1rem}.detailtabs button{border:0;border-bottom:3px solid transparent;background:none;padding:.8rem 0;color:var(--muted);font-size:.9rem}.detailtabs [aria-selected=true]{border-bottom-color:var(--brand);color:var(--brand);font-weight:650}.body{padding:1.5rem}.positiongrid{display:flex;align-items:flex-start;gap:2rem;flex-wrap:wrap;margin-bottom:1.5rem}.label{display:block;color:var(--muted);font-size:.8rem;margin-bottom:.4rem}.facts{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:0 0 1.5rem}.facts dt{font-size:.8rem;color:var(--muted)}.facts dd{margin:.2rem 0 0;font-size:1.35rem;font-weight:650}.section{border-top:1px solid var(--line);padding-top:1.4rem;margin-top:1.4rem}.section h3{margin-bottom:.6rem}.statement{background:var(--bg);border-radius:8px;padding:1rem;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}.emptyfield{color:var(--muted);font-size:.95rem}.emptyvideo{aspect-ratio:16/9;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:#f3f5f8;border-radius:9px;border:1px dashed #cfd6df;color:var(--muted);text-align:center;padding:1rem}.video{width:100%;aspect-ratio:16/9;border:0;border-radius:8px}.privacy{font-size:.8rem;color:var(--muted);margin:.3rem 0 1.25rem}.grades{display:grid;grid-template-columns:repeat(5,1fr);gap:.6rem;margin:1rem 0}.grades button{min-height:48px;background:var(--white);border:1px solid var(--line);border-radius:8px;font-size:1.3rem;font-weight:650}.grades [aria-pressed=true]{color:white;background:var(--brand);border-color:var(--brand)}.gradeinfo{background:var(--bg);border-radius:8px;padding:1rem;margin-bottom:1rem;font-size:.875rem}.gradeinfo strong{display:block}.gradeinfo p{margin:.6rem 0}.form label{display:block;font-size:.875rem;margin-top:1rem}.form input,.form select,.form textarea{display:block;width:100%;padding:.7rem;border:1px solid #cdd4df;border-radius:8px;background:var(--white);margin:.4rem 0;color:var(--ink);min-width:0}.form textarea{resize:vertical;min-height:140px}.form input[type=checkbox]{width:auto;display:inline-block}.savebar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;flex-wrap:wrap}.savebar span{font-size:.8rem;color:var(--green)}details{font-size:.875rem;margin-top:1rem}summary{cursor:pointer;padding:.5rem 0;color:var(--muted)}.criterion{padding:1rem 0;border-top:1px solid var(--line)}.criterion p{margin-top:.5rem}.error{background:#fff0f1;color:#9f1320;padding:1rem;border:1px solid #f3c1c5;border-radius:8px;margin-bottom:1rem}.error:empty{display:none}.login{max-width:450px;margin:8vh auto;background:white;border:1px solid var(--line);border-radius:16px;padding:2rem}.login h1{font-size:1.6rem;margin-bottom:1rem}.login p{color:var(--muted);margin-bottom:1.4rem;font-size:.9rem}.login .btn{width:100%}.divider{border-top:1px solid var(--line);margin:1.3rem 0}.loading{padding:2rem;text-align:center;color:var(--muted)}.empty{padding:3rem 1.5rem;text-align:center;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.admin-grid .body>h2{font-size:1.1rem;margin-bottom:.75rem}.accessrow{padding:1rem 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.accessrow strong{font-size:.9rem}.accessrow p{font-size:.8rem;color:var(--muted)}.fieldrow{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.checkrow{display:flex!important;align-items:center;gap:.5rem}.logrow{font-size:.8rem;padding:.9rem 0;border-bottom:1px solid var(--line)}.reviewcard{padding:1rem 0;border-top:1px solid var(--line);font-size:.9rem;white-space:pre-line;overflow-wrap:anywhere}.reviewcard small{display:block;color:var(--muted)}.footer{padding:1rem 2rem;color:var(--muted);font-size:.75rem;text-align:right}.actions .btn{white-space:normal}.banner-inline{background:#fff9e8;padding:.8rem;border-radius:8px;font-size:.8rem;margin-bottom:1rem;color:#72520b}
@media(max-width:1100px){.layout{grid-template-columns:175px 1fr}.main{padding:1.4rem}.workspace{grid-template-columns:minmax(200px,.8fr) minmax(310px,1.3fr);gap:1rem}.detailhead,.body{padding:1.2rem}.detailhead{padding-bottom:0}}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{padding:.7rem 1rem;border-right:0;border-bottom:1px solid var(--line);display:flex;gap:.5rem;flex-wrap:wrap}.sidebar .eyebrow,.navbottom{display:none}.navbutton{width:auto;margin:0}.navbutton small{display:none}.admin-grid{grid-template-columns:1fr}.top{padding:1rem}.notice{padding:.7rem 1rem}}
@media(max-width:650px){.workspace{grid-template-columns:1fr}.main{padding:1rem}.top .brand small{display:none}.topright{gap:.5rem}.account{display:none}.heading{margin-bottom:1rem}h1{font-size:1.45rem}.playerrow{padding:.8rem 1rem}.playerrow small{margin:.1rem 0}.detailhead,.body{padding:1.1rem}.detailhead{padding-bottom:0}.positiongrid{gap:1.1rem}.login{margin:1rem;padding:1.5rem}.fieldrow{grid-template-columns:1fr}.btn,.languages button{min-height:44px}.form textarea,.form input,.form select{font-size:16px}}
.listsearch{padding:.85rem;border-bottom:1px solid var(--line)}.listsearch input{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:.65rem .8rem;font-size:.8rem;color:var(--ink)}.avatar.large{width:54px;height:54px;font-size:1.4rem}.playmark{font-size:2.5rem;font-weight:300;color:#9aa6b7;line-height:1}.syncstamp{margin-top:1.4rem;text-align:right}.main{align-self:start}#detail{scroll-margin-top:1rem}.eyebrow{margin-left:0}#note{white-space:pre-wrap}.gradeinfo{border-left:3px solid var(--brand)}.reviewcard{white-space:pre-wrap}.detailtabs button{min-height:48px}
.bib-badge{width:44px;height:44px;border-radius:8px;display:inline-grid;place-items:center;flex:none;font-size:1.4rem;line-height:1;font-weight:800;border:1px solid #0002;box-shadow:inset 0 0 0 2px #ffffff28;font-variant-numeric:tabular-nums}.bib-badge.large{width:58px;height:58px;font-size:1.85rem}.bib-red{background:#cf2432;color:#fff}.bib-blue{background:#205dc3;color:#fff}.bib-yellow{background:#ffdf3a;color:#242818}.bib-green{background:#187849;color:#fff}.bib-orange{background:#ff982e;color:#322010}.bib-pink{background:#f387be;color:#41132e}.bib-purple{background:#7342b4;color:#fff}.bib-white{background:#fff;color:#162133;border:2px solid #9ca9b8}.bib-black{background:#1e2734;color:#fff}.bib-gray{background:#657286;color:#fff}.bib-editor{background:#f6f8fb;border:1px solid var(--line);padding:.4rem 1rem 1rem;margin:0 0 1.5rem;border-radius:10px}.bib-editor summary{font-weight:650;color:var(--ink)}.bib-fields{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:1rem;margin-bottom:.8rem}.bib-fields label{margin-top:.5rem}.listsubpos{display:block;font-size:.7rem;color:var(--muted);margin-top:.3rem}.result-count{padding:.2rem 1.1rem .7rem;color:var(--muted);font-size:.75rem;border-bottom:1px solid var(--line)}.event-checks{border:1px solid var(--line);border-radius:8px;margin:1rem 0;padding:.7rem 1rem}.event-checks legend{font-size:.85rem}.event-checks .checkrow{margin:.4rem 0}.section h2{margin-bottom:1rem}#connect-crm{margin:1rem 0}#import-status{margin-top:1rem}@media(max-width:650px){.bib-fields{gap:.5rem}.bib-badge.large{width:50px;height:50px}.detailhead .row{flex-wrap:nowrap;align-items:flex-start}.detailhead h2{font-size:1.2rem}.bib-editor{padding:.4rem .7rem 1rem}}
.field-toolbar{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:1.3rem;padding:1rem 1.2rem}.venuebar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.venuebar label{display:flex;align-items:center;gap:.7rem;color:var(--muted);font-size:.8rem;font-weight:700}.venuebar select,#layout-author{padding:.65rem;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-size:.95rem}.mode-tabs,.team-tabs,.match-tabs{display:flex;gap:.5rem;flex-wrap:wrap}.mode-tabs .chosen{background:var(--ink);color:#fff}.team-tabs{border-top:1px solid var(--line);margin-top:1rem;padding-top:1rem}.team-tabs button{border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;gap:.5rem;align-items:center;padding:.6rem .8rem;min-height:44px;font-size:.85rem}.team-tabs [aria-selected=true]{border-color:var(--brand);background:var(--soft);color:var(--brand);font-weight:700}.team-tabs small{background:#edf0f4;border-radius:12px;min-width:23px;padding:0 5px;color:var(--ink)}.color-dot{width:13px;height:13px;border-radius:4px;border:1px solid #0002;display:inline-block}.field-footer{display:flex;align-items:center;justify-content:space-between;margin-top:1rem}.face{width:44px;height:52px;object-fit:cover;border-radius:7px;flex:none;background:#edf0f4;border:1px solid var(--line)}.face.large{width:74px;height:84px}.face.placeholder{display:grid;place-items:center;color:#8290a0;font-size:1.2rem}.detailnav{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.8rem;border-bottom:1px solid var(--line);flex-wrap:wrap}.detailnav .btn{font-size:.75rem}.team-edit{display:grid;grid-template-columns:1fr 1fr 100px;gap:.7rem}.checkin-row{display:flex;gap:.8rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}.checkin-row>div{flex:1}.checkin-row small{display:block;color:var(--muted);font-size:.8rem}.checkin-row.checked{background:#f1faf4}.pitch-grid{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(220px,1fr);gap:1rem;margin-top:1rem}.pitch{position:relative;aspect-ratio:2/3;background:repeating-linear-gradient(0deg,#237453 0 10%,#267b58 10% 20%);border:2px solid #fff;outline:1px solid #1c5d44;border-radius:5px;touch-action:none;overflow:hidden}.center-line{position:absolute;top:50%;width:100%;border-top:2px solid #fff8}.center-circle{position:absolute;top:40%;left:35%;width:30%;height:20%;border:2px solid #fff8;border-radius:50%}.goal-area{position:absolute;width:62%;height:17%;left:19%;border:2px solid #fff8}.top-goal{top:0;border-top:0}.bottom-goal{bottom:0;border-bottom:0}.pitch-player{position:absolute;transform:translate(-50%,-50%);padding:0;border:0;background:none;touch-action:none;display:flex;align-items:center;flex-direction:column;gap:1px;max-width:85px;z-index:2}.pitch-player small{background:#102a23dd;color:white;max-width:85px;font-size:9px;line-height:1.3;padding:2px;border-radius:3px;overflow-wrap:anywhere}.pitch-player .bib-badge{width:30px;height:30px;font-size:1rem}.selected{outline:3px solid #ffcb5b;outline-offset:2px}.pitch-pool{display:flex;flex-wrap:wrap;gap:.5rem;max-height:260px;overflow:auto;margin-bottom:1rem;padding:5px}.pool-player{display:flex;gap:.4rem;align-items:center;padding:.35rem;border:1px solid var(--line);border-radius:6px;background:white;font-size:.7rem}.pool-player .bib-badge{width:28px;height:30px;font-size:1rem}.translation{border:1px solid var(--line);border-radius:9px;padding:.5rem 1rem}.translation summary{color:var(--ink);font-weight:600}.field-footer .btn{font-size:.8rem}.playerrow{gap:.6rem}.playerrow>.bib-badge{width:36px;height:40px;font-size:1.1rem}
@media(max-width:650px){.workspace:not(.detail-open) #detail{display:none}.workspace.detail-open .roster-panel{display:none}.field-toolbar{padding:.85rem}.team-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.4rem}.team-tabs button{flex-shrink:0}.detail-open .detailnav{position:sticky;top:0;z-index:5;background:white}.pitch-grid{grid-template-columns:1fr}.pitch{max-height:560px;width:100%;aspect-ratio:2/3}.pitch-pool{max-height:190px}.team-edit{grid-template-columns:1fr 1fr}.team-edit select{grid-column:1/-1}.checkin-row{flex-wrap:wrap}.checkin-row .btn{min-width:110px}.face.large{width:58px;height:68px}.detailhead .bib-badge.large{width:40px;height:44px;font-size:1.3rem}.main{padding:.7rem}.mode-tabs .btn{font-size:.75rem}.venuebar select{font-size:16px;max-width:240px}}
.bib-unassigned{width:36px;height:40px;border:1px dashed #cbd1d9;display:grid;place-items:center;border-radius:7px;color:#99a3b0;flex:none}.bib-unassigned.large{width:48px;height:50px}
@media(max-width:650px){.layout:has(.detail-open) .sidebar{display:none}.main:has(.detail-open)>.heading,.main:has(.detail-open) .field-toolbar{display:none}.detailnav{padding:.6rem}.detailnav .actions{gap:.25rem}.detailnav .btn{padding:.45rem .5rem}.pitch-grid label.form{display:block;margin:1rem 0}.field-toolbar .mode-tabs{gap:.35rem}.field-toolbar .mode-tabs .btn{padding:.45rem .55rem}}
.pitch-grid label.form{display:block;margin:.7rem 0}.pitch-grid textarea{width:100%}

/* Staff review inbox: institution first, compact on-field scanning. */
.review-inbox{padding:18px;background:#f5f7fc;border:1px solid #dbe3ef;border-radius:14px;margin-bottom:28px}.inbox-heading,.institution-heading{display:flex;align-items:center;gap:12px}.inbox-heading{justify-content:space-between}.inbox-heading h3{margin:4px 0 10px}.review-grid{display:grid;gap:12px}.institution-review{background:white;border:1px solid #e1e6ef;border-radius:12px;padding:15px}.institution-heading strong{font-size:16px;line-height:1.35;display:block}.institution-heading small{display:block;color:#64748b;margin-top:5px}.rating-badge{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;font-size:26px;font-weight:800;flex:none;background:#e2e8f0;color:#334155}.rating-A{background:#dcfce7;color:#166534}.rating-B{background:#dbeafe;color:#1e40af}.rating-C{background:#f3e8ff;color:#6b21a8}.rating-D{background:#ffedd5;color:#9a3412}.rating-E{background:#f1f5f9;color:#475569}.review-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:13px 0 8px}.english-best{font-size:19px;font-weight:700;line-height:1.65;color:#144e73}.grades button:disabled{opacity:.4;cursor:default}@media(max-width:650px){.review-inbox{padding:12px;margin-inline:-4px}.institution-heading strong{font-size:15px}.rating-badge{width:42px;height:42px}}
