/* Shared workspace foundation, based on the approved sports evolution surface. */
.workspace{--ink:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-border);--canvas:var(--ui-canvas);--surface:var(--ui-surface);--red:var(--ui-accent);--rose:var(--ui-accent-soft);font-size:var(--ui-text-base)}
.workspace .page{min-width:0;padding-bottom:max(2rem,env(safe-area-inset-bottom))}
.workspace .panel{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);min-width:0}
.workspace :is(.page-heading,.evolution-header){margin-bottom:1.15rem;gap:1rem}
.workspace :is(.page-heading,.evolution-header) h1{font-size:clamp(1.45rem,2.2vw,1.9rem);font-weight:700;letter-spacing:-.035em;line-height:1.2}
.workspace :is(.page-heading,.evolution-header) p{color:var(--ui-muted);font-size:.9rem;line-height:1.5;margin-top:.35rem}
.workspace .button{border-radius:var(--ui-radius-sm);font-size:.85rem;font-weight:600;min-height:40px;gap:.4rem}
.workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--ui-border);border-radius:var(--ui-radius-sm);font-size:.9rem}
.workspace :is(input,select,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.workspace label{font-size:.85rem;font-weight:550}
.workspace :is(.badge,.status,.evo-badge){border-radius:.45rem;font-size:.75rem;line-height:1.5;padding:.2rem .5rem;max-width:100%;overflow-wrap:anywhere}
.workspace table{font-size:.85rem}.workspace :is(th,td){padding:.65rem .75rem}.workspace th{font-weight:600}
.workspace .notice{border-radius:var(--ui-radius-sm);font-size:.85rem;line-height:1.5}
.workspace .kpi-grid>article{padding:.85rem 1rem}.workspace .kpi-grid>article>span{font-size:.8rem;color:var(--ui-muted)}.workspace .kpi-grid>article>strong{font-size:1.5rem;letter-spacing:-.025em}
.guided-steps{margin-bottom:1.1rem}.guided-steps ol{display:flex;list-style:none;gap:.35rem;margin:0 0 .45rem;padding:0;flex-wrap:wrap}.guided-steps li{flex:1;min-width:7rem}.guided-steps button{display:flex;align-items:center;gap:.4rem;width:100%;border:0;background:var(--ui-canvas);border-radius:var(--ui-radius-sm);padding:.65rem;font-size:.8rem;text-align:left;min-height:44px;color:var(--ui-muted);cursor:pointer}.guided-steps button.current{color:var(--ui-accent);background:var(--ui-accent-soft);font-weight:650}.guided-steps button>span{border:1px solid currentColor;border-radius:50%;width:1.5rem;height:1.5rem;display:grid;place-items:center;flex:none}.guided-steps>small{color:var(--ui-muted)}
.guided-section{display:grid;gap:1rem}.guided-section>p{color:var(--ui-muted);font-size:.85rem}.guided-section .fields{margin:0}.guided-footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1.2rem;padding-top:.9rem;border-top:1px solid var(--ui-border)}.guided-footer>.actions{margin:0}.guided-error{color:var(--ui-accent);font-size:.82rem;margin-top:.25rem}.guided-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0}.guided-review dt{color:var(--ui-muted);font-size:.78rem}.guided-review dd{margin:.15rem 0 0;font-weight:600;overflow-wrap:anywhere}
.ui-empty{display:grid;justify-items:center;text-align:center;gap:.65rem;padding:1.5rem 1rem}.ui-empty>.app-icon{color:var(--ui-accent);width:1.5rem;height:1.5rem}.ui-empty p{max-width:45ch;color:var(--ui-muted);font-size:.88rem}.ui-empty .button{margin-top:.25rem}
@media(max-width:800px){.workspace .button{min-height:44px}.workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:44px}.workspace.portal-aluno .page{padding-bottom:calc(6.5rem + env(safe-area-inset-bottom))}.guided-steps li{min-width:0}.guided-steps button{justify-content:center;font-size:0;padding:.5rem}.guided-steps button>span{font-size:.8rem}.guided-footer{align-items:stretch}.guided-footer>.actions{flex:1;display:flex}.guided-footer .button{flex:1}.guided-review{gap:.8rem .6rem}.workspace :is(.page-heading,.evolution-header){flex-wrap:wrap}}

.page-heading-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.page-heading-actions>.actions{margin:0}
@media(max-width:800px){.workspace .page-heading{flex-direction:row}.workspace .page-heading>div:first-child{flex:1 1 100%}.workspace .page-heading-actions{width:100%;justify-content:flex-start}.workspace .page-heading-actions>.button{flex:1 1 auto}.workspace .page-heading-actions .button{font-size:.8rem}}

.esporte-modal-footer{flex:none;background:var(--ui-surface);padding:.85rem 1.25rem;border-top:1px solid var(--ui-border)}.esporte-modal-footer :is(.guided-footer,.levels-wizard-footer){border:0;padding:0;margin:0}.levels-nivel-editor>summary{display:flex;gap:.6rem;justify-content:space-between;align-items:center;min-height:44px;cursor:pointer}.levels-nivel-editor>summary>span{font-size:.75rem;color:var(--ui-muted)}.levels-nivel-editor[open]>summary{margin-bottom:.65rem}.levels-additional{padding:.35rem 0}.levels-additional>summary{min-height:44px;cursor:pointer;font-weight:600}.levels-additional>.fields{margin-top:.5rem}
@media(max-width:800px){.esporte-modal-footer{padding:.8rem 1rem}.esporte-modal-footer .levels-wizard-footer{display:grid;gap:.5rem}.esporte-modal-footer .levels-wizard-footer>.row-actions{display:flex;width:100%}.esporte-modal-footer .levels-wizard-footer .button{flex:1;min-height:44px}.esporte-modal-footer .levels-wizard-footer>span{font-size:.72rem}}

.workspace .button.primary{background:var(--ui-accent);border-color:var(--ui-accent);color:#fff}.workspace .button.primary:hover{background:var(--wine);border-color:var(--wine);color:#fff}

.workspace .esporte-modal{max-height:90dvh}@media(max-width:560px){.workspace .esporte-modal.esporte-modal-wide{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}
