:root{--navy:#101e36;--blue:#2563eb;--ink:#182940;--muted:#68788d;--line:#e5ebf2;--surface:#f5f7fb;--white:#fff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,a,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,summary:focus-visible{outline:3px solid #60a5fa;outline-offset:5px}h1,h2,h3,p{margin:0}.icon{width:22px;height:22px;flex-shrink:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:264px;flex-shrink:0;background:var(--navy);color:#c1cce0;padding:34px 20px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;color:white;font-size:25px;font-weight:750;padding:0 10px;letter-spacing:-.8px}.brand-mark{width:42px;height:45px;background:#2865e8;border-radius:12px;display:grid;place-items:center}.brand-mark .icon{width:29px;height:29px}.brand-accent{color:#75a6ff}.brand small{display:block;font-size:9px;letter-spacing:1.8px;font-weight:500;color:#a8b9d4;margin-top:3px}.navigation{margin-top:46px}.navigation summary{display:none}.nav-label{font-size:10px;letter-spacing:1.8px;color:#8a9bb7;padding:0 14px;margin-bottom:18px}.nav-link{display:flex;align-items:center;gap:13px;padding:14px 13px;border-radius:9px;font-size:13px;line-height:1.5;margin-bottom:7px;transition:background .15s,color .15s}.nav-link .icon{width:19px;height:19px}.nav-link:hover{background:#1a2d49;color:white}.nav-link.active{background:#2563eb;color:white;box-shadow:0 5px 18px #060f2429}.sidebar-note{margin-top:auto;padding:34px 13px 22px;font-size:12px;line-height:1.7;color:#c5d3e6}.small-dot{display:inline-block;width:6px;height:6px;background:#73a7ff;border-radius:50%;margin-right:7px;vertical-align:middle}.sidebar-note small{display:block;font-size:11px;color:#90a3be;margin-top:6px}.sidebar-footer{border-top:1px solid #2a3850;padding:19px 13px 0;font-size:12px;color:white}.sidebar-footer span{float:right;color:#8fa3bf;font-size:10px}.main-shell{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 14px;color:#b4becc}.breadcrumb strong{font-weight:550;color:var(--ink)}.phase-badge{font-size:11px;color:#52647e;white-space:nowrap;border:1px solid var(--line);border-radius:30px;padding:7px 12px}.phase-badge .small-dot{background:#3e7bf0}main{padding:36px 42px 24px;max-width:1500px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--blue);margin-bottom:9px}h1{font-size:29px;line-height:1.25;letter-spacing:-1px;font-weight:730}.page-heading p:last-child{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.7}.outline-badge{font-size:11px;white-space:nowrap;background:white;border:1px solid var(--line);border-radius:6px;padding:8px 12px;color:#5c6e84}.welcome-banner{position:relative;overflow:hidden;display:flex;justify-content:space-between;background:linear-gradient(110deg,#142a4c,#1c3b6c);border:1px solid #27446b;border-radius:14px;color:white;padding:31px 35px;min-height:270px}.banner-label{font-size:9px;letter-spacing:2px;color:#a6c5fb;font-weight:650}.welcome-banner h2{font-size:29px;letter-spacing:-.7px;line-height:1.25;margin:13px 0 12px}.welcome-banner p{font-size:12px;line-height:1.9;color:#b9cbe2}.button{display:inline-flex;align-items:center;justify-content:center;gap:19px;padding:11px 15px;border-radius:7px;font-size:12px;font-weight:650;min-height:42px}.button .icon{width:17px;height:17px}.button-light{background:white;color:#1a3e72;margin-top:20px}.button-light:hover{background:#e1ecff}.button-primary{background:var(--blue);color:white}.button-primary:hover{background:#1d4ed8}.banner-art{width:35%;min-width:200px;display:grid;place-items:center;position:relative}.art-cube{width:140px;height:140px;border:1px solid #6ca5ff66;border-radius:30px;transform:rotate(-12deg);background:linear-gradient(145deg,#4d93ff40,#4067a709);box-shadow:0 0 60px #4e8cec22;display:grid;place-items:center}.art-cube .icon{width:96px;height:96px;stroke-width:.65;color:#a7d0ff;transform:rotate(12deg)}.orbit{position:absolute;width:230px;height:230px;border:1px solid #6da6ff20;border-radius:50%}.orbit-two{width:300px;height:300px}.art-label{position:absolute;bottom:0;font-size:8px;letter-spacing:2px;color:#91b2dd}.summary-section{margin:28px 0 30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-heading h2{font-size:16px;font-weight:700;letter-spacing:-.3px}.section-heading>span{font-size:11px;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card{background:white;border:1px solid var(--line);border-radius:11px;padding:20px}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#52647a;font-weight:550}.icon-tile{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border-radius:10px;background:#edf4ff;color:#3974da}.icon-tile .icon{width:20px;height:20px}.stat-value{font-size:30px;font-weight:650;line-height:1.4;margin-top:9px}.stat-value span{font-size:10px;font-weight:500;vertical-align:middle;color:var(--muted);margin-left:5px}.stat-description{font-size:10px;color:var(--muted);margin-top:8px}.data-note{font-size:10px;color:var(--muted);margin-top:12px}.workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workspace-card{border:1px solid var(--line);border-radius:11px;background:white;display:flex;align-items:flex-start;gap:13px;padding:21px 18px;position:relative;transition:border-color .15s,box-shadow .15s}.workspace-card:hover{border-color:#a7c4f4;box-shadow:0 4px 16px #203c6c09}.workspace-copy{min-width:0;display:flex;flex-direction:column;gap:9px;padding-right:8px}.workspace-copy strong{font-size:12px;font-weight:650;line-height:1.5}.workspace-copy>span{font-size:11px;line-height:1.7;color:var(--muted)}.workspace-copy small{align-self:flex-start;font-size:9px;background:#f2f5fa;border:1px solid #e8edf5;border-radius:4px;color:#63758e;padding:3px 6px;margin-top:5px}.card-arrow{position:absolute;right:13px;bottom:20px;width:15px;height:15px;color:#8aa2c2}.workspace-note{border:1px dashed #cbd8eb;background:#eef3fa;border-radius:11px;padding:20px 22px}.note-symbol{font-size:23px;color:#5c88c6}.workspace-note h3{font-size:12px;margin:8px 0}.workspace-note p{font-size:11px;line-height:1.8;color:#617793}.page-footer{margin:12px 42px 0;padding:19px 0;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:10px;color:#78879a}.empty-state{background:white;border:1px solid var(--line);border-radius:14px;min-height:450px;padding:65px 24px;display:flex;align-items:center;flex-direction:column;text-align:center}.empty-icon{width:80px;height:80px;border-radius:23px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;margin-bottom:27px}.empty-icon .icon{width:38px;height:38px}.empty-label{font-size:9px;color:#5378af;font-weight:700;letter-spacing:1.6px}.empty-state h2{font-size:25px;letter-spacing:-.6px;margin:15px 0}.empty-state>p{font-size:13px;line-height:1.9;color:var(--muted)}.empty-state .button{margin-top:27px}.photo-placeholder{max-width:410px;display:flex;gap:13px;align-items:center;text-align:left;padding:18px;border:1px dashed #b9cce7;background:#f8faff;border-radius:9px;margin-top:24px;color:#6b809e;font-size:11px;line-height:1.7}.photo-placeholder .icon{width:30px;height:30px}.skip-link{position:fixed;left:16px;top:-100px;z-index:10;background:white;padding:12px;border:2px solid var(--blue);border-radius:5px}.skip-link:focus{top:12px}@media(min-width:761px){.navigation:not([open])>nav,.navigation:not([open])>.nav-label{display:block}}@media(min-width:1500px){main{padding-top:44px}.welcome-banner{min-height:300px}.workspace-card{padding:25px 22px}}@media(max-width:1200px){.sidebar{width:232px;padding-left:14px;padding-right:14px}.topbar{padding:0 28px}main{padding:28px}.page-footer{margin-left:28px;margin-right:28px}.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{gap:12px}.stat-card{padding:15px}.stat-top{gap:5px}.stat-top .icon-tile{width:32px;height:32px}.welcome-banner{padding:28px}.banner-art{min-width:170px}.orbit{width:190px;height:190px}.orbit-two{width:245px;height:245px}.page-heading{align-items:flex-start}h1{font-size:26px}}@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phase-badge{font-size:10px}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 7px}.welcome-banner h2{font-size:26px}.banner-art{min-width:140px}.art-cube{width:105px;height:105px}.art-cube .icon{width:75px;height:75px}.art-label{display:none}.welcome-banner p br{display:none}.welcome-banner>div:first-child{position:relative;z-index:1}.section-heading>span{font-size:10px}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:18px 20px 12px}.brand{font-size:23px;padding:0}.brand-mark{width:36px;height:39px}.brand small{font-size:8px}.navigation{margin-top:16px}.navigation summary{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:12px 0;cursor:pointer;color:#d6e2f5;border-top:1px solid #2a3b57;list-style:none}.navigation summary::-webkit-details-marker{display:none}.navigation summary span{font-size:18px}.navigation[open] summary span{transform:rotate(180deg)}.nav-label{display:none}.navigation nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.nav-link{padding:11px 9px;margin:0;font-size:11px;gap:9px}.sidebar-note,.sidebar-footer{display:none}.topbar{height:auto;min-height:60px;padding:14px 20px;flex-wrap:wrap;gap:10px}.breadcrumb{font-size:10px}.phase-badge{font-size:9px;padding:5px 8px}main{padding:25px 20px}.page-heading{margin-bottom:23px}.page-heading .outline-badge{display:none}h1{font-size:25px}.page-heading p:last-child{font-size:12px}.welcome-banner{padding:26px 23px;min-height:270px}.welcome-banner h2{font-size:27px}.welcome-banner p{font-size:12px;max-width:330px}.banner-art{position:absolute;right:-70px;top:10px;width:230px;height:230px;opacity:.15}.welcome-banner>div:first-child{max-width:100%}.section-heading{align-items:flex-start}.section-heading h2{font-size:15px}.section-heading>span{max-width:120px;text-align:right;line-height:1.5}.workspace-grid{gap:12px}.workspace-card{padding:17px 14px;gap:10px}.workspace-card>.icon-tile{width:32px;height:32px}.workspace-copy strong{font-size:11px}.page-footer{margin:0 20px;line-height:1.7;flex-wrap:wrap}.empty-state{min-height:420px;padding:45px 20px}.empty-state h2{font-size:22px}.empty-state>p{font-size:12px}.empty-label{font-size:8px}.photo-placeholder{font-size:10px}}@media(max-width:440px){.workspace-grid{grid-template-columns:1fr}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-top{font-size:11px}.stat-value{font-size:26px}.stat-description{font-size:9px}.stat-top .icon-tile{width:29px;height:29px}.stat-top .icon{width:17px;height:17px}.workspace-copy strong{font-size:12px}.page-heading h1{overflow-wrap:anywhere}.topbar .phase-badge{font-size:8px}.breadcrumb{max-width:100%;overflow-wrap:anywhere}}

/* Autenticación y usuario conectado */
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}.button{border:0}.user-menu{display:flex;align-items:center;gap:16px;min-width:0}.user-identity{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px}.user-identity strong{overflow-wrap:anywhere}.user-identity span{font-size:11px;color:var(--muted)}.logout-button{background:#edf4ff;color:#1a3e72;white-space:nowrap}.logout-button:hover{background:#dce9ff}.login-page{background:var(--navy);min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{flex:initial;max-width:440px;width:100%;padding:36px;background:white;border-radius:16px;box-shadow:0 16px 60px #0003}.login-brand{font-size:30px;font-weight:750;color:var(--navy);margin-bottom:12px}.login-brand span{color:var(--blue)}.login-intro{color:var(--muted);font-size:14px;margin-top:12px}.login-form{display:grid;gap:22px;margin-top:28px}.login-form label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.login-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #a8b9d4;border-radius:7px;color:var(--ink);background:white}.login-form input[aria-invalid=true]{border-color:#b42318}.form-error{font-size:13px;line-height:1.5;color:#b42318;margin-top:8px}.topbar{height:auto;min-height:78px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}@media(max-width:1000px){.topbar>.phase-badge{display:none}}@media(max-width:440px){.user-menu{width:100%;justify-content:space-between}.login-card{padding:28px 22px}}

/* Listado y alta de colaboradores */
.users-panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.users-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.users-search .form-field{flex:1;min-width:220px}.form-field label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.form-field input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #a8b9d4;border-radius:7px;color:var(--ink);background:white;font:inherit}.form-field input[aria-invalid=true]{border-color:#b42318}.users-count{font-size:13px;color:var(--muted);margin:24px 0 16px}.users-table-wrap{overflow-x:auto}.users-table-wrap:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}.users-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.users-table th{font-size:11px;color:#52647a;background:#f5f7fb;white-space:nowrap}.users-table th,.users-table td{padding:16px 14px;border-bottom:1px solid var(--line)}.users-table td{overflow-wrap:anywhere;min-width:130px}.users-table time{white-space:nowrap;font-size:12px}.role-badge{display:inline-block;background:#edf4ff;color:#1a3e72;padding:5px 9px;border-radius:5px;font-size:11px}.users-empty{text-align:center;padding:48px 16px}.users-empty h2{font-size:20px;margin-bottom:12px}.users-empty p{font-size:13px;color:var(--muted);margin-bottom:16px}.users-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;font-size:12px}.users-pagination [aria-disabled]{color:var(--muted)}.user-create-form{max-width:660px;display:grid;gap:22px}.field-help{font-size:12px;color:var(--muted);margin-top:8px}.form-actions{display:flex;gap:12px;flex-wrap:wrap}.success-message{padding:16px 20px;border:1px solid #a6d4ba;background:#effaf3;color:#205c39;border-radius:8px;margin-bottom:20px;font-size:13px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.users-panel{padding:18px}.page-heading:has(>a.button){flex-wrap:wrap}.users-search .form-field{min-width:100%}.users-table th,.users-table td{padding:14px 10px}}@media(max-width:440px){.users-pagination{flex-wrap:wrap;justify-content:center}}

/* Edición de roles y permisos */
.permission-identity{margin-bottom:22px}.permission-identity dl{display:flex;gap:24px;flex-wrap:wrap;margin:0}.permission-identity dt{font-size:11px;color:var(--muted);margin-bottom:6px}.permission-identity dd{margin:0;font-size:14px;overflow-wrap:anywhere}.permission-form{display:grid;gap:22px}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.permission-block{margin:0;min-width:0}.permission-block legend{font-weight:700;font-size:15px;padding:0 8px}.permission-option{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:13px;cursor:pointer}.permission-option input{width:19px;height:19px;accent-color:var(--blue);flex-shrink:0}.form-field select{font:inherit;color:var(--ink);background:white;min-height:44px;padding:10px 12px;border:1px solid #a8b9d4;border-radius:7px;width:100%;max-width:440px}.permission-errors{background:#fff1f0;color:#b42318;padding:20px;border:1px solid #efb4af;border-radius:8px;font-size:13px}.permission-errors ul{margin-bottom:0}select:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}@media(max-width:760px){.permission-grid{grid-template-columns:1fr}}
