:root{--ink:#17394b;--muted:#617d88;--teal:#157f84;--navy:#153e54;--yellow:#f6cd55;--paper:#fff;--line:#dce7e7;--bg:#f3f7f5;--red:#b04444}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans JP',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a.btn{border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:10px 16px;font-weight:750;min-height:44px;text-decoration:none}button:hover{border-color:var(--teal)}button:disabled{opacity:.42;cursor:not-allowed}button.primary{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}button.dark{background:var(--navy);color:white;border-color:var(--navy)}button.danger{color:var(--red)}button.small{padding:5px 10px;font-size:12px;min-height:36px}button.active{background:var(--teal);color:white;border-color:var(--teal)}button:focus-visible,a:focus-visible{outline:3px solid #58aeb7;outline-offset:2px}header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:10px max(16px,calc((100vw - 1180px)/2));gap:12px;background:#fffefbeF;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:900;font-size:15px;line-height:1.45}.brand img{width:50px;height:50px;object-fit:contain;border-radius:12px}.brand small{display:block;letter-spacing:.13em;font-size:9px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.header-actions button{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#connection{font-size:11px;color:var(--teal)}nav{display:flex;gap:6px;padding:12px 16px;max-width:1212px;margin:auto;overflow:auto}nav button{white-space:nowrap;border-color:transparent;background:transparent}main{max-width:1180px;min-height:60vh;margin:auto;padding:12px 16px 35px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,5.7vw,50px);line-height:1.28;letter-spacing:-.04em;margin-bottom:16px}h2{font-size:22px;line-height:1.5;margin-bottom:15px}h3{font-size:17px;margin-bottom:10px}p{margin-bottom:12px}.eyebrow{font-size:12px;font-weight:850;letter-spacing:.14em;color:var(--teal)}.hero{display:grid;grid-template-columns:1fr 240px;align-items:center;gap:24px;padding:24px 10px 30px}.hero img{width:220px;height:220px;object-fit:contain;mix-blend-mode:multiply}.muted{color:var(--muted);font-size:13px}.pill{display:inline-block;border-radius:30px;padding:4px 11px;font-size:12px;background:#e2f1ec;color:#25694f;font-weight:800}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 9px 25px #17394b05;margin-bottom:18px}.panel.dark-panel{background:var(--navy);color:white}.dark-panel .muted{color:#b9d2db}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:12px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.week{text-align:center;color:var(--muted);font-size:11px}.day{min-height:55px;padding:4px 0;border:1px solid transparent;background:#fafcfb;font-size:16px;display:flex;align-items:center;justify-content:center;flex-direction:column}.day small{font-size:9px;line-height:1.2}.day.event{background:#e5f4f0;border:1px solid #a1c7c0}.day.selected{background:var(--navy);color:white}.day.today{box-shadow:inset 0 0 0 2px var(--yellow)}.time{font-size:34px;font-weight:900;letter-spacing:-.03em}.facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.fact{background:#ffffff10;border:1px solid #ffffff19;border-radius:13px;padding:12px}.fact span{display:block;font-size:11px;opacity:.75}.fact strong{font-size:22px}.wide{width:100%}.event-list{display:grid;gap:8px}.event-list button{text-align:left}.event-list small{display:block;font-weight:400}.my-card{max-width:640px;margin:auto}.identity{display:flex;gap:18px;align-items:center;margin-bottom:18px}.avatar{width:62px;height:62px;border-radius:17px;object-fit:cover;background:white;border:1px solid var(--line)}.avatar.large{width:100px;height:100px;border-radius:24px}.identity h2{margin:0;overflow-wrap:anywhere}.stats{display:flex;gap:10px;margin:18px 0}.stat{flex:1;background:#f0f6f3;border-radius:14px;padding:12px;text-align:center}.stat strong{display:block;font-size:26px}.stat span{font-size:11px;color:var(--muted)}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.modes button{padding:9px 3px;font-size:13px}.profile-message{white-space:pre-wrap;overflow-wrap:anywhere}.notice{border-left:3px solid var(--yellow);padding:12px 14px;background:#fffae8;border-radius:8px;color:#735a1c;font-size:13px;margin:14px 0}.success{color:var(--teal)}.court-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.court{background:#e1f1eb;border:2px solid #83b7a3;border-radius:18px;overflow:hidden}.court.practice{background:#eaf0f7;border-color:#a7b7ce}.court.dragover{outline:4px solid var(--yellow)}.court-head{padding:10px 12px;display:flex;justify-content:space-between;align-items:center;background:#ffffff80;gap:7px}.court-head h3{margin:0;font-size:15px}.court-head select{width:90px;margin:0;padding:4px;font-size:12px;min-height:35px}.teams{display:grid;gap:0;padding:10px}.team{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:105px;align-items:stretch}.net{border-top:2px dashed #71a792;margin:9px 0;position:relative;text-align:center;color:#538170;font-size:9px;line-height:8px}.slot{display:grid;place-content:center;justify-items:center;text-align:center;background:#ffffffa8;border:1px solid #ffffff;border-radius:12px;min-width:0;padding:8px;font-size:12px;overflow-wrap:anywhere}.slot .avatar{height:42px;width:42px;border-radius:12px}.slot.empty{border:1px dashed #8eb8a8;background:transparent;color:#658578;font-size:11px}.court-foot{display:flex;justify-content:space-between;padding:0 10px 10px;align-items:center;gap:7px;font-size:11px}.participant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}.participant{border:1px solid var(--line);padding:12px;border-radius:16px;background:white}.participant[draggable=true]{cursor:grab;touch-action:pan-y}.participant .avatar{width:42px;height:42px;border-radius:12px}.participant .name{font-weight:850;overflow-wrap:anywhere}.participant.selected{outline:3px solid var(--yellow)}.participant p{margin:5px 0 8px;font-size:12px}.request{padding:12px;background:#edf7f4;border-radius:12px;margin-bottom:10px}.request p{font-size:13px}.results{display:grid;gap:10px}.result{padding:14px;background:#fff8dc;border-radius:14px}.result button{min-width:70px;font-size:21px}.divider{border:0;border-top:1px solid var(--line);margin:22px 0}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.toolbar label{max-width:280px;flex:1;min-width:130px}.toolbar .check{min-width:initial;flex:none}.check{display:flex;align-items:center;gap:7px;font-size:13px}.check input{width:18px;min-height:18px;margin:0}label{display:block;font-weight:700;font-size:13px}input,textarea,select{display:block;width:100%;padding:11px 12px;border:1px solid #cbdada;border-radius:10px;color:var(--ink);background:white;margin:5px 0 14px;min-height:46px}input:focus,textarea:focus,select:focus{outline:2px solid #97c9c4}textarea{resize:vertical;min-height:90px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;min-width:500px}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid var(--line)}td input{width:90px;margin:0;padding:6px;min-height:35px}.error{color:var(--red);font-size:13px;min-height:22px}.empty-state{text-align:center;padding:32px 12px}.empty-state img{width:110px;height:110px;object-fit:contain}.empty-state p{color:var(--muted)}.loading{text-align:center;padding:40px}dialog{border:0;border-radius:22px;width:min(94vw,530px);padding:22px;color:var(--ink);max-height:90dvh;box-shadow:0 25px 90px #16394b50}dialog::backdrop{background:#12313e95;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.modal-head h2{margin:0}.modal-head button{font-size:22px;padding:4px 13px}#toast{position:fixed;z-index:99;bottom:25px;left:50%;transform:translate(-50%,150px);transition:transform .2s;background:var(--navy);color:white;border-radius:14px;max-width:90vw;width:max-content;padding:13px 20px;box-shadow:0 10px 40px #12313e30;font-size:14px}#toast.show{transform:translate(-50%,0)}footer{text-align:center;padding:22px 15px 35px;color:var(--muted);font-size:12px}footer button,footer a{font-size:12px;margin:4px}footer a{color:var(--teal)}footer p{margin-top:14px}.hidden{display:none!important}.tagline{font-size:13px;color:var(--muted)}@media(max-width:850px){.court-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 160px}.hero img{width:160px;height:180px}.grid2{gap:12px}.panel{padding:18px}}@media(max-width:600px){body{font-size:14px}header{padding:9px 12px}.brand{font-size:12px;gap:7px}.brand img{width:41px;height:41px}.brand small{font-size:7px}.header-actions{gap:5px}.header-actions button{padding:7px 10px;font-size:12px;max-width:105px}#connection{display:none}nav{gap:2px;padding:10px 8px}nav button{font-size:12px;padding:8px 11px}main{padding:4px 12px 25px}.hero{grid-template-columns:1fr 90px;padding:18px 4px;gap:6px}.hero img{width:90px;height:125px}.hero p{font-size:12px}.eyebrow{font-size:10px}h1{font-size:29px}h2{font-size:20px}.grid2{grid-template-columns:1fr}.day{min-height:47px;font-size:15px}.court-grid{gap:8px}.court-head{padding:8px 7px;flex-wrap:wrap}.court-head h3{font-size:13px}.teams{padding:6px}.team{gap:4px;min-height:98px}.slot{padding:5px;font-size:11px}.slot .avatar{width:34px;height:34px}.court-foot{flex-wrap:wrap}.court-foot button{font-size:10px;min-height:34px;padding:4px 6px}.participant-grid{grid-template-columns:1fr 1fr;gap:8px}.participant{padding:10px}.participant .row{gap:6px}.participant .name{font-size:12px}.participant .avatar{width:33px;height:33px}.participant .small{font-size:10px;padding:5px 8px}.toolbar{gap:8px}.identity h2{font-size:22px}.avatar.large{width:85px;height:85px}.panel{border-radius:18px;padding:17px}}@media(min-width:1100px){.court-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
