:root{color-scheme:light;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203247;background:#f4f6fa;--blue:#145fb5;--line:#dce4ee}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:9px;padding:10px 16px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-weight:600;font-size:13px}button:hover,.button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:#244363;border-color:#cad6e4}.quiet{border-color:transparent;background:transparent;color:#245c9b}.danger{color:#9d3737;background:white;border-color:#e5cbcb}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd6e4;border-radius:8px;background:#fff;color:#203247;min-height:44px}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--blue)}:focus-visible{outline:3px solid #77aee5;outline-offset:3px}label{display:flex;flex-direction:column;gap:6px;color:#5b6c7f;font-size:12px;font-weight:600}.check{flex-direction:row;align-items:center;padding:8px 0}.access-header{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:16px}.access-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#1c3b5f;font-weight:650}.access-brand>span{width:42px;height:42px;border:1px solid #b3c9e3;border-radius:13px;display:grid;place-items:center;font-size:25px;color:#145fb5}.access-brand small{display:block;font-size:11px;color:#718093;font-weight:400}.access-layout{max-width:1450px;margin:auto;display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;padding:34px 40px;min-height:80vh}nav{display:flex;flex-direction:column;gap:6px}nav button{background:transparent;color:#53677f;border-color:transparent;justify-content:flex-start}nav button.active{background:#e6effa;color:#145fb5}nav .button{margin-top:24px}main{min-width:0}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 24px}h1{font-size:30px;letter-spacing:-.8px;margin:0 0 5px;color:#1e3550}h2{font-size:19px;margin:0 0 14px}h3{font-size:15px;margin:0 0 8px}p{margin:8px 0 16px}.muted,small{color:#6b7f94}.page-head p{margin:0;color:#738195;font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px}.auth-panel{max-width:470px;margin:24px auto}.auth-panel form{display:grid;gap:16px}.auth-panel .auth-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stack{display:grid;gap:16px}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:18px}.toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:0 0 20px}.toolbar label{flex:1;min-width:170px}.toolbar input{min-width:150px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.stats>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.stats strong{font-size:28px;display:block;color:#234e80}.stats small{font-size:12px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{background:#edf3fa;color:#58728f;font-size:11px;text-transform:uppercase;letter-spacing:.05em}th,td{padding:14px 16px;border-bottom:1px solid #e8edf3;vertical-align:middle}td small{display:block}td button{min-height:34px;padding:6px 10px;font-size:12px}tbody tr:last-child td{border-bottom:0}.badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#edf2f8;color:#536b86;font-size:11px;white-space:nowrap}.badge.active{background:#e6f3ed;color:#286c51}.empty{padding:40px 24px;text-align:center;color:#738398;background:#fff;border:1px solid var(--line);border-radius:12px}.empty h2{color:#304d6d}.error{color:#a33333}.success{color:#216947}.family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.member-no{font-size:11px;color:#4176ad;text-transform:uppercase;letter-spacing:.09em}.row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e5ecf4}.row:last-child{border:0}.folder{margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 22px}.folder summary{cursor:pointer;font-weight:650;display:flex;justify-content:space-between;gap:14px}.folder .row{font-size:13px}.role-pills{display:flex;gap:8px;flex-wrap:wrap}#accessIdentity{display:flex;gap:14px;align-items:center;font-size:12px}dialog{padding:0;border:1px solid #cad6e4;border-radius:16px;width:min(850px,94vw);max-height:90vh;color:#243e5b;box-shadow:0 24px 90px #18334e40}dialog::backdrop{background:#142d4c70;backdrop-filter:blur(3px)}dialog>header{padding:20px 24px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}dialog h2{margin:0}dialog>header button{background:#eef3f9;color:#335979;border-color:transparent}#accessDialogBody{padding:24px}dialog.viewer{width:min(1000px,96vw)}.viewer canvas,.viewer img{max-width:100%;display:block;margin:auto;background:white}.viewer .viewer-stage{background:#e5ebf2;padding:14px;min-height:250px}.viewer-controls{display:flex;justify-content:center;align-items:center;gap:15px;margin-bottom:15px}.viewer-caption{text-align:center;font-size:12px;color:#60748d}pre.code{padding:16px;border:1px solid #c3d4e6;border-radius:9px;background:#edf4fc;color:#145fb5;font-size:17px;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}#accessToast{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);background:#183c66;color:white;padding:14px 20px;border-radius:10px;box-shadow:0 5px 30px #173b6330;max-width:90vw;z-index:50}footer{padding:18px 40px;border-top:1px solid var(--line);font-size:11px;color:#7a8b9e;display:flex;justify-content:space-between;gap:15px}.notice{padding:14px 18px;border-left:3px solid #83acd7;background:#edf4fc;font-size:13px;color:#3b5b7f;margin-bottom:20px}.doc-choice{display:flex;gap:10px;align-items:start;padding:9px 0}.doc-choice input{flex-shrink:0}.doc-choice small{display:block}.role-choices{display:flex;gap:18px;flex-wrap:wrap}.compact{font-size:12px}.wide{grid-column:1/-1}.status-note{min-height:20px}.private-link{display:block;color:#145fb5;text-decoration:none;font-size:13px}#accessNav:empty{display:none}.access-layout:has(#accessNav:empty){grid-template-columns:1fr}.access-layout:has(#accessNav:empty) main{width:100%}@media(max-width:800px){.access-header{padding:14px 18px;height:auto;min-height:78px}.access-layout{display:block;padding:20px 16px}nav{flex-direction:row;overflow:auto;margin-bottom:23px}nav button{flex-shrink:0}nav .button{margin:0;white-space:nowrap}#accessIdentity>span{display:none}.page-head{align-items:start;flex-wrap:wrap}.stats{gap:8px}.stats>div{padding:13px}.stats strong{font-size:23px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}footer{padding:16px}.family-grid{grid-template-columns:1fr}.row{align-items:start}.auth-panel{margin:10px auto}dialog>header,#accessDialogBody{padding:18px}}@media print{body>*{display:none!important}body:after{display:block;content:'Documento disponible exclusivamente para consulta en el área privada del club.'}}

.access-brand>img{height:48px;width:48px;object-fit:contain}

.credential-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.credential-card{min-width:0;padding:18px;border:1px solid #dce5ef;border-radius:10px;background:#f8fafc}.credential-card label{display:block;margin:12px 0}.credential-card input:not([type=checkbox]){width:100%;min-width:0}.rules-consent{padding:16px;border:1px solid #dce5ef;border-radius:8px}.rules-consent label{margin-top:14px}@media(max-width:700px){.credential-columns{grid-template-columns:1fr}}

.access-welcome{display:grid;grid-template-columns:1fr 1fr;max-width:1040px;margin:4vh auto;background:white;border:1px solid #d7e2ec;border-radius:24px;overflow:hidden;box-shadow:0 22px 70px #173b6310}.access-welcome-brand{background:linear-gradient(155deg,#113858,#176b82);color:white;padding:48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;isolation:isolate}.access-welcome-brand:after{content:'';position:absolute;z-index:-1;width:440px;height:440px;border:1px solid #ffffff20;border-radius:50%;left:-160px;bottom:-310px;box-shadow:0 0 0 36px #ffffff06,0 0 0 72px #ffffff05}.access-welcome-brand img{width:76px;height:76px;object-fit:contain;background:#ffffffed;padding:8px;border-radius:18px;margin-bottom:30px}.access-welcome-brand>span{font-size:10px;letter-spacing:.14em;color:#c2e0e8}.access-welcome-brand h2{font-size:42px;line-height:1.12;letter-spacing:-1.3px;margin:20px 0;color:white}.access-welcome-brand p{font-size:15px;max-width:290px;color:#d8e9ed}.access-welcome-brand small{color:#bdd8e0;margin-top:36px}.access-welcome .auth-panel{border:0;border-radius:0;padding:48px 40px;margin:0;max-width:none;align-self:center}.auth-panel h1{font-size:27px}.auth-panel label{font-size:13px}.auth-panel input{min-height:48px}.auth-panel form>button:first-of-type{min-height:48px}.auth-links .quiet{padding:8px 0;justify-content:flex-start;min-height:32px}.auth-links{flex-direction:column}.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-metrics .panel{display:grid;gap:6px;margin:0 0 16px}.admin-metrics strong{font-size:32px;color:#164c77;line-height:1.1}.admin-metrics span{font-size:12px;color:#5d738a}.admin-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-shortcuts button{justify-content:flex-start;text-align:left;padding:16px}.admin-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0;color:#61778d;font-size:13px}.admin-pagination>div{display:flex;gap:8px}.admin-multiline{white-space:pre-wrap;overflow-wrap:anywhere}.admin-detail{max-width:480px;max-height:300px;overflow:auto;white-space:pre-wrap;font-size:11px}.stack fieldset{border:1px solid var(--line);border-radius:9px;padding:16px;display:grid;gap:12px}.stack legend{font-weight:600;font-size:13px}.stack textarea{min-height:90px}td .secondary{white-space:nowrap}@media(max-width:760px){.access-welcome{grid-template-columns:1fr;margin:4px auto;border-radius:18px}.access-welcome-brand{padding:28px}.access-welcome-brand img{width:55px;height:55px;margin-bottom:18px}.access-welcome-brand h2{font-size:30px;margin:12px 0}.access-welcome-brand h2 br{display:none}.access-welcome-brand small{margin-top:4px}.access-welcome-brand p{margin-bottom:8px;max-width:100%}.access-welcome .auth-panel{padding:28px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-shortcuts{grid-template-columns:1fr}.admin-pagination{flex-wrap:wrap}}

/* Shared application shell: the board workspace and settings share this header. */
.settings-gear{display:flex;gap:8px;align-items:center}.settings-gear svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#workspaceHost{height:calc(100dvh - 78px);min-height:500px}#workspaceHost iframe{width:100%;height:100%;border:0;display:block}.workspace-view .access-layout,.workspace-view footer{display:none}.workspace-view .access-header{height:78px;position:sticky;top:0;z-index:30}#workspaceHost[hidden]{display:none}
@media(max-width:700px){.settings-gear span{display:none}.access-header .access-brand small{font-size:10px}#workspaceHost{height:calc(100dvh - 78px)}}

/* One compact header for identity, workspace tools and data status. */
:root{--club-header-height:72px}
.access-header,.workspace-view .access-header{height:72px;min-height:72px;padding:0 28px;gap:20px;background:#fafdff;position:sticky;top:0;z-index:30;border-bottom:1px solid #d8e5f2;box-sizing:border-box}
.access-brand{min-width:0;flex-shrink:1;gap:11px}.access-brand>img{width:38px;height:44px;flex-shrink:0;mix-blend-mode:multiply}.access-brand>div{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}.access-brand small{font-weight:400;font-size:11px;color:#6c8195;margin-top:2px}
#accessIdentity{gap:8px;flex-shrink:0}#accessIdentity .header-role{font-size:11px;color:#5c7289;padding-right:12px;margin-right:4px;border-right:1px solid #dce6ef;white-space:nowrap}#accessIdentity .header-user{font-size:12px;max-width:200px}#accessIdentity .header-user small{display:block}
#accessIdentity .header-action{padding:8px 11px;min-height:38px;gap:7px;font-size:12px;border-radius:9px}#accessIdentity .header-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#accessIdentity .header-exit{margin-left:3px}
#accessIdentity .app-sync{border:0;background:transparent;color:#698093;padding:8px 10px;min-height:38px;font-size:11px;font-weight:500;white-space:nowrap;gap:7px;max-width:170px}.sync-label{overflow:hidden;text-overflow:ellipsis}.sync-dot{display:block;width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}#accessIdentity .app-sync[data-state=ok]{color:#2b785e}#accessIdentity .app-sync[data-state=pending]{color:#6a7e91}#accessIdentity .app-sync:is([data-state=update],[data-state=conflict]){background:#fff5df;color:#8a5a10}#accessIdentity .app-sync[data-state=error]{background:#fff0ec;color:#a64538}
#accessIdentity button:focus-visible,.access-brand:focus-visible{outline:3px solid #91c5f3;outline-offset:3px}#workspaceHost{height:calc(100dvh - var(--club-header-height));min-height:0}
@media(max-width:1100px){#accessIdentity .header-role{display:none}.access-header,.workspace-view .access-header{padding:0 20px;gap:12px}}
@media(max-width:800px){#accessIdentity .header-action>span{display:none}#accessIdentity .header-action{width:36px;padding:8px}#accessIdentity{gap:5px}.access-brand>div{font-size:13px}#accessIdentity .app-sync{max-width:150px;font-size:10px;padding:8px}.access-header,.workspace-view .access-header{padding:0 16px}}
@media(max-width:600px){:root{--club-header-height:64px}.access-header,.workspace-view .access-header{height:64px;min-height:64px;padding:0 12px;gap:8px}.access-brand{gap:7px;flex:1}.access-brand>img{width:28px;height:34px}.access-brand>div{font-size:12px}.access-brand small{font-size:10px}#accessIdentity{gap:3px}#accessIdentity .header-action{width:32px;min-height:36px;padding:6px}#accessIdentity .header-exit{margin:0}#accessIdentity .app-sync{width:28px;max-width:28px;min-height:36px;padding:8px 6px}#accessIdentity .app-sync .sync-label{display:none}#workspaceHost{height:calc(100dvh - var(--club-header-height))}}

/* A single, quiet entry point for every club role. */
.auth-view{background:#f0f5fa}.auth-view>.access-header,.auth-view>footer{display:none}.auth-view .access-layout{display:flex;min-height:100dvh;padding:40px 20px;align-items:center;justify-content:center}.auth-view #accessMain{width:100%}.auth-view .access-welcome{display:block;max-width:420px;margin:0 auto;border:1px solid #dce6ef;border-radius:20px;box-shadow:0 16px 50px #183b5710;overflow:hidden}.auth-view .access-welcome .auth-panel{padding:36px;margin:0}.auth-view .access-welcome-brand{display:flex;background:none;padding:0;margin:0 0 22px;align-items:center;color:#173c5d;gap:12px}.auth-view .access-welcome-brand:after{display:none}.auth-view .access-welcome-brand img{width:54px;height:62px;padding:0;background:transparent;border-radius:0;margin:0;mix-blend-mode:multiply}.auth-view .access-welcome-brand>span{font-size:10px;letter-spacing:.15em;color:#6f8395}.auth-view h1{text-align:center;font-size:29px;margin:0 0 6px}.auth-view .auth-panel>p{text-align:center;font-size:13px;margin-bottom:28px}.auth-view #authForm{gap:17px}.auth-view #authForm label{font-size:12px}.auth-view #authForm input{border-radius:9px;background:#fcfdff}.auth-view #formStatus:empty{display:none}.auth-view .auth-links{margin-top:16px;gap:8px;align-items:stretch}.auth-view .auth-links button{width:100%;justify-content:center}.auth-view .owner-continuity{margin-top:16px;padding-top:12px;border-top:1px solid #e6edf4;font-size:11px;color:#72869a}.auth-view .owner-continuity summary{cursor:pointer}.auth-view .owner-continuity button{font-size:11px}.auth-view .credential-columns{grid-template-columns:1fr}@media(max-width:480px){.auth-view .access-layout{padding:24px 16px}.auth-view .access-welcome .auth-panel{padding:28px 24px}}

/* Stable viewport and feedback while an authenticated section changes. */
html{scrollbar-gutter:stable;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.view-loading{display:flex;align-items:center;gap:10px;min-height:160px;padding:24px;color:#58728f;font-size:14px}
.view-loading-dot{width:9px;height:9px;flex:none;background:#1768ba;border-radius:50%}
.view-error{max-width:760px}.view-error p{overflow-wrap:anywhere}
.role-dock-view #accessToast{bottom:120px;max-width:calc(100vw - 32px)}
.role-dock-view #roleContext{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;min-width:0}
.role-dock-view #roleContext button{flex:0 0 auto;white-space:nowrap}
@media(max-width:700px){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}#roleDock{bottom:max(10px,env(safe-area-inset-bottom))}.role-dock-view .access-layout{padding-bottom:calc(130px + env(safe-area-inset-bottom))}}
