:root{--navy:#17324d;--blue:#2878b5;--pale:#eaf3f9;--line:#c6d6e1;--green:#287d5a;--orange:#e9902e;--red:#c84b4b;--ink:#1e3347}*{box-sizing:border-box}body{margin:0;background:#f6f9fb;color:var(--ink);font-family:Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}.shell{max-width:1100px;margin:auto;padding:18px}.top{background:var(--navy);color:#fff;padding:20px 24px;border-radius:12px 12px 0 0}.brand{font-size:22px;font-weight:700;letter-spacing:3px}.sub,.hint{font-size:13px;color:#657581}.sub{color:#fff;opacity:.8;margin-top:5px}.nav{display:flex;gap:8px;flex-wrap:wrap;background:#fff;padding:12px;border:1px solid var(--line)}.nav button,.sync,.serve-choice button,.set-controls button{border:1px solid var(--line);border-radius:7px;padding:8px 12px;background:#fff;color:var(--navy);font-weight:700}.nav button.active,.serve-choice button.selected{background:var(--blue);color:#fff}.view{background:#fff;border:1px solid var(--line);border-top:0;padding:20px;min-height:560px}.sync{border-color:var(--blue);color:var(--blue)}.danger{border:1px solid var(--red);background:#fff;color:var(--red);border-radius:6px;padding:8px 11px;font-weight:700}.no-float{float:none}.notice{padding:13px;background:#fff7e6;border:1px solid #f0c36a;border-radius:7px;color:#735111}.setup-grid{display:grid;grid-template-columns:minmax(450px,1.2fr) minmax(250px,.8fr);gap:20px}.court{min-height:490px;background:#eef7fb;border:4px solid var(--navy);border-radius:10px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:12px;padding:16px}.court-slot,.bench{border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px;color:var(--ink);text-align:left}.court-slot.selected{outline:4px solid #f0c36a}.court-slot span,.court-slot small,.player-picks small{display:block;font-size:11px;color:#657581}.bench{background:#f9fbfc}.player-picks,.libero-picks,.serve-choice,.setup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.player-picks button,.libero-picks button{background:#fff;border:1px solid var(--line);border-radius:7px;padding:8px;text-align:left}.libero-picks .chosen{background:#e4f4ec}.role-edit{margin-top:12px}.match-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--pale);border:1px solid var(--line);border-radius:7px;padding:12px;margin-bottom:12px}.match-banner strong,.match-banner span{display:block}.match-banner span{font-size:12px;color:#657581}.score{background:var(--navy);color:#fff;border-radius:8px;padding:11px;margin-bottom:8px}.score-live{display:grid;grid-template-columns:1fr 220px 1fr;align-items:stretch}.point{border:0;border-radius:7px;padding:8px;font-weight:700}.point.us{background:#cdebdc;color:#165d3f}.point.them{background:#fde0e0;color:#8b2525}.score-center{text-align:center;display:flex;flex-direction:column;justify-content:center}.score-center strong{font-size:29px}.score-center em{font-style:normal;opacity:.5}.set-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;font-size:12px;color:#657581}.set-controls button:disabled{opacity:.4}.section-title{font-size:12px;font-weight:700;letter-spacing:1px;color:#556570;margin:12px 0 7px}.fundamentals{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.fundamentals button{min-height:40px;border:1px solid var(--line);border-radius:7px;background:#fff;font-weight:700;color:var(--navy)}.fundamentals button.active{color:#fff;background:var(--blue)}.fund-battuta.active{background:#d79919!important}.fund-muro.active{background:#7757a8!important}.fund-attacco.active{background:#c84b4b!important}.fund-fallo.active{background:#596873!important}.fund-difesa.active{background:#287d5a!important}.fund-alzata.active{background:#198d9a!important}.matrix-head,.player{display:grid;grid-template-columns:215px repeat(4,1fr) 52px;gap:6px;align-items:center}.matrix-head{margin-top:8px;color:#fff;text-align:center;font-size:12px;font-weight:700}.matrix-head>div{padding:8px;border-radius:6px;background:var(--navy)}.matrix-head .p{background:var(--green)}.matrix-head .plus{background:var(--blue)}.matrix-head .minus{background:var(--orange)}.matrix-head .error{background:var(--red)}.matrix-head .foul-r,.matrix-head .foul-i,.matrix-head .foul-d,.matrix-head .foul-4{background:#596873}.player{margin-top:5px}.name{height:43px;border:1px solid var(--line);border-radius:7px;padding:5px;display:grid;grid-template-columns:35px minmax(54px,auto) 1fr;align-items:center;gap:5px;background:#fff;overflow:hidden}.name strong{font-size:16px;white-space:nowrap}.name small{font-size:10px;color:#657581;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.number{background:var(--navy);color:#fff;border-radius:5px;padding:4px;text-align:center;font-size:11px}.player.highlight .name{box-shadow:inset 5px 0 #f0c36a;background:#fff9e7}.player.libero-row .name{background:var(--navy);color:#fff}.libero-row .number{background:#fff;color:var(--navy)}.libero-row .name small{color:#d7e7f1}.action,.undo-row{height:43px;border-radius:7px;background:#fff;font-size:16px;font-weight:700}.action.p{border:2px solid var(--green);color:var(--green)}.action.plus{border:2px solid var(--blue);color:var(--blue)}.action.minus{border:2px solid var(--orange);color:var(--orange)}.action.error{border:2px solid var(--red);color:var(--red)}.action.foul-r,.action.foul-i,.action.foul-d,.action.foul-4{border:2px solid #596873;color:#374550}.undo-row{border:1px solid var(--line);color:#596873;font-size:22px}.player.saved .name{animation:ok .9s ease}.player.undone .name{animation:no .9s ease}.live-feedback{margin:7px 0;padding:7px 10px;border-radius:6px;font-size:13px;font-weight:700}.live-feedback.saved{background:#e2f5e8;color:#15583c}.live-feedback.undone{background:#fde8e8;color:#8b2525}@keyframes ok{0%{background:#68c58c}100%{background:inherit}}@keyframes no{0%{background:#f28a8a}100%{background:inherit}}.legend,.action-log{margin-top:12px;padding:9px 11px;background:var(--pale);border-radius:7px;font-size:12px}.legend{display:flex;flex-wrap:wrap;gap:12px}.action-log summary{cursor:pointer;font-weight:700}.action-log ol{margin:8px 0 0;padding-left:22px}.table{width:100%;border-collapse:collapse}.table th{background:var(--navy);color:#fff;text-align:left}.table th,.table td{padding:10px;border:1px solid var(--line)}.calendar th button{background:transparent;border:0;color:#fff;font-weight:700}.calendar tr.complete{background:#edf0f2;color:#71808a}.report-title{display:flex;justify-content:space-between;padding:12px;background:var(--pale);border-radius:7px}.bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.bars label{display:flex;justify-content:space-between}.bars i{display:block;height:12px;background:#e7eef3;border-radius:8px;overflow:hidden}.bars em{display:block;height:100%;background:var(--blue)}@media(max-width:800px){.shell{padding:0}.view{padding:10px}.top{border-radius:0}.setup-grid{grid-template-columns:1fr}.court{min-height:380px}.fundamentals{grid-template-columns:repeat(3,1fr)}.match-banner{align-items:flex-start;flex-direction:column}.score-live{grid-template-columns:1fr 125px 1fr}.matrix-head,.player{grid-template-columns:145px repeat(4,1fr) 42px}.name{grid-template-columns:30px minmax(38px,auto) 1fr}.name strong{font-size:13px}.name small{font-size:8px}.action,.undo-row{height:40px}.table{font-size:12px}}
