:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17202a;background:#f4f6f8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button{border:0;font:inherit}input,select{width:100%;min-height:42px;padding:0 12px;border:1px solid #c7d0d8;border-radius:6px;color:#17202a;background:#fff;font:inherit}select{-webkit-appearance:none;-moz-appearance:none;appearance:none}label{color:#32495c;font-size:.9rem;font-weight:700}.app-shell{display:grid;grid-template-columns:minmax(0,1fr) 380px;min-height:100vh}.entry-shell{display:grid;min-height:100vh;place-items:center;padding:24px;background:#eef2f5}.entry-panel{width:min(100%,440px);padding:28px;border:1px solid #d9e0e6;border-radius:8px;background:#fff;box-shadow:0 18px 50px #1e2d3c1f}.name-form,.admin-form{display:grid;gap:12px;margin-top:22px}.entry-status{margin:18px 0 0;color:#536778;line-height:1.45}.entry-leaderboard{display:grid;gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid #d9e0e6}.workspace-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;background:#eef2f5}.topbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,430px) auto;align-items:center;gap:20px;padding:20px 24px;border-bottom:1px solid #d9e0e6;background:#fff}.send-toast{position:fixed;top:50%;left:50%;z-index:15;padding:12px 16px;border:1px solid #cfe0d7;border-radius:8px;color:#174531;background:#edf8f2f5;box-shadow:0 12px 30px #17453129;font-weight:900;transform:translate(-50%,-50%)}.eyebrow{margin:0 0 4px;color:#596b7a;font-size:.78rem;font-weight:700;letter-spacing:0;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:0;color:#102033;font-size:clamp(1.35rem,2vw,2rem);line-height:1.12}h2{margin-bottom:14px;color:#102033;font-size:.95rem;line-height:1.2}.topbar-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.best-time-strip{display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px;min-width:0}.time-summary{display:grid;gap:3px;min-width:0;padding:9px 11px;border:1px solid #d7e0e7;border-radius:6px;background:#f7f9fb}.time-summary span{overflow:hidden;color:#657887;font-size:.74rem;font-weight:800;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.time-summary strong{overflow:hidden;color:#17202a;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.primary-button,.secondary-button,.danger-button{min-height:40px;padding:0 14px;border-radius:6px;font-weight:700;cursor:pointer;transition:transform .12s ease,background .12s ease,box-shadow .12s ease}.primary-button{color:#fff;background:#246b4f;box-shadow:0 8px 18px #246b4f2e}.secondary-button{color:#19324a;background:#dde8ef}.danger-button{color:#fff;background:#a83d3d;box-shadow:0 8px 18px #a83d3d29}.primary-button:hover,.secondary-button:hover,.danger-button:hover{transform:translateY(-1px)}.primary-button:active,.secondary-button:active,.danger-button:active{transform:translateY(0)}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{cursor:not-allowed;opacity:.55;transform:none}.link-button{padding:0;color:#2d5f88;background:transparent;font-weight:800;cursor:pointer}.participant-chip{display:inline-flex;align-items:center;min-height:40px;max-width:180px;overflow:hidden;padding:0 12px;border:1px solid #cfd9e1;border-radius:999px;color:#19324a;background:#f6f9fb;font-size:.88rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.blockly-surface{width:100%;height:100%;min-height:560px}.side-panel{display:flex;flex-direction:column;gap:1px;min-width:0;border-left:1px solid #d9e0e6;background:#d9e0e6}.summary-band,.status-band,.leaderboard-band,.history-band,.json-band{padding:22px;background:#fff}.summary-band dl{display:grid;gap:12px;margin:0}.summary-band dl div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}dt{color:#5d6f7e;font-size:.85rem}dd{margin:0;color:#17202a;font-weight:800}.status-band p{margin:0;color:#394c5c;line-height:1.45}.json-band{display:flex;flex:1;flex-direction:column;min-height:0}.section-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.section-title-row span{color:#6c7c88;font-size:.8rem;font-weight:700}.leaderboard-band,.history-band{display:grid;gap:12px}.top-three-list,.leaderboard-list,.history-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.top-rank,.leaderboard-row{display:grid;align-items:center;min-width:0;border:1px solid #d9e0e6;border-radius:6px;background:#f7f9fb}.top-rank{grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:9px 10px}.top-rank span,.leaderboard-rank{color:#2f5f85;font-size:.82rem;font-weight:900}.top-rank strong,.leaderboard-row strong{min-width:0;overflow:hidden;color:#17202a;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.top-rank em,.leaderboard-time{color:#174531;font-style:normal;font-weight:900;white-space:nowrap}.rank-1{border-left:4px solid #c28b16}.rank-2{border-left:4px solid #6f8294}.rank-3{border-left:4px solid #9a6844}.leaderboard-list{max-height:260px;overflow:auto}.leaderboard-row{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:10px}.leaderboard-row div{display:grid;gap:3px;min-width:0}.leaderboard-row small{overflow:hidden;color:#647686;font-size:.78rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.leaderboard-row.empty{opacity:.74}.history-list{max-height:260px;overflow:auto}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #d9e0e6;border-radius:6px;background:#f7f9fb}.history-item>div:first-child{display:grid;gap:3px;min-width:0}.history-item strong{overflow:hidden;color:#17202a;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.history-item span,.history-item small{overflow:hidden;color:#647686;font-size:.78rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.history-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}pre{flex:1;min-height:240px;margin:0;overflow:auto;padding:14px;border:1px solid #d3dae1;border-radius:6px;color:#182632;background:#f7f9fb;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.78rem;line-height:1.5;white-space:pre}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#1020336b}.admin-modal{width:min(75vw,1180px);height:min(75vh,calc(100vh - 36px));overflow:auto;padding:22px;border-radius:8px;background:#fff;box-shadow:0 24px 70px #0a182642}.admin-content{display:grid;gap:18px}.admin-tabs{display:flex;gap:8px;padding:4px;border:1px solid #d9e0e6;border-radius:8px;background:#f4f7f9}.tab-button{flex:1;min-height:38px;border-radius:6px;color:#405668;background:transparent;font-weight:800;cursor:pointer}.tab-button.active{color:#17324b;background:#fff;box-shadow:0 1px 4px #1f2d3c1f}.tab-panel{display:grid;gap:18px}.admin-option-row{display:flex;flex-wrap:wrap;gap:14px}.admin-toggle{display:inline-flex;align-items:center;gap:8px;width:fit-content;color:#32495c;font-size:.88rem;font-weight:800}.admin-toggle input{width:18px;min-height:18px;margin:0;padding:0}h3{margin:0 0 10px;color:#102033;font-size:.9rem}.participant-list{display:grid;gap:8px;max-height:150px;overflow:auto;margin:0;padding:0;list-style:none}.participant-list li,.run-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d9e0e6;border-radius:6px;background:#f7f9fb}.run-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.run-list.compact{gap:6px}.run-item{align-items:stretch}.run-item>div:first-child{display:grid;gap:4px;min-width:0}.run-item strong,.participant-list span{min-width:0;overflow:hidden;color:#17202a;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.run-item span{color:#647686;font-size:.84rem}.run-actions{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-end;gap:8px}.execution-summary{display:grid;flex:1 1 100%;gap:6px;min-width:0;padding-top:8px;border-top:1px solid #d9e0e6}.execution-summary small{color:#647686;font-size:.78rem;font-weight:700}.execution-badge{width:fit-content;padding:4px 8px;border-radius:6px;color:#405668;background:#e8eef3;font-size:.78rem;font-weight:900}.execution-badge.running,.execution-badge.canceling{color:#63460d;background:#f8e9bf}.execution-badge.succeeded{color:#174531;background:#dff0e8}.execution-badge.failed,.execution-badge.canceled{color:#7d2323;background:#f4d8d8}.execution-log{max-height:110px;min-height:0;margin:0;white-space:pre-wrap}.execution-details{display:grid;gap:6px}.execution-details summary{width:fit-content;color:#2d5f88;font-size:.82rem;font-weight:900;cursor:pointer}.execution-log.full{max-height:280px}.time-input-label,.manual-time-form label{display:grid;gap:5px}.time-input-label{width:128px;font-size:.78rem}.manual-time-form{display:grid;grid-template-columns:minmax(190px,1fr) 160px auto;gap:10px;align-items:end}.time-badge{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:6px;color:#174531;background:#dff0e8;font-weight:900}.participant-list time,.muted{color:#647686;font-size:.85rem}.admin-notice{margin:0;padding:10px 12px;border:1px solid #cfe0d7;border-radius:6px;color:#174531;background:#edf8f2;font-size:.9rem;font-weight:700}.form-error{margin:0;color:#a83d3d;font-size:.9rem;font-weight:700}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(max-width:1200px){.topbar{grid-template-columns:1fr}.topbar-actions{justify-content:flex-start}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.admin-modal{width:min(100%,860px);height:min(82vh,calc(100vh - 36px))}.best-time-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-actions{justify-content:flex-start}.side-panel{border-top:1px solid #d9e0e6;border-left:0}.blockly-surface{height:68vh;min-height:480px}}@media(max-width:640px){.topbar{align-items:stretch;flex-direction:column;padding:16px}.topbar-actions{justify-content:stretch}.primary-button,.secondary-button,.danger-button{flex:1;min-width:132px}.best-time-strip,.manual-time-form{grid-template-columns:1fr}.participant-list li,.run-item{align-items:stretch;flex-direction:column}.run-actions{justify-content:stretch}.time-input-label{width:100%}.summary-band,.status-band,.leaderboard-band,.history-band,.json-band{padding:18px 16px}.top-rank,.leaderboard-row{grid-template-columns:36px minmax(0,1fr)}.top-rank em,.leaderboard-time{grid-column:2}.history-item{grid-template-columns:1fr}.history-actions{justify-content:stretch}.blockly-surface{height:64vh;min-height:420px}}
