:root{--navy:#1c3153;--navy2:#142640;--ink:#16243b;--muted:#7d8ba1;--line:#e6ebf3;--bg:#f6f8fc;--blue:#4268e9;--blue2:#2c54da;--softblue:#edf2ff;--orange:#ef9d43;--violet:#8a6ae5;--green:#2eb493;--red:#e45f6a;--shadow:0 12px 34px rgba(29,49,78,.045)}
*{box-sizing:border-box}html{font-size:15px;scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#7c9bff!important;box-shadow:0 0 0 3px rgba(66,104,233,.11)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #90aafd;outline-offset:2px}.app-shell{min-height:100vh;display:flex}.sidebar{width:249px;min-width:249px;background:linear-gradient(170deg,#21385c 0%,#182a46 100%);padding:30px 18px 16px;color:#fff;display:flex;flex-direction:column;position:sticky;top:0;min-height:100vh;height:100vh;z-index:10}.brand{display:flex;gap:11px;align-items:center;margin:1px 9px 47px}.brand-mark{background:linear-gradient(135deg,#8eacff,#486fec);width:40px;height:40px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;font-size:25px;line-height:1;color:white;font-weight:900;box-shadow:0 7px 16px #1c2c5533}.brand strong,.auth-logo strong{font-size:16px;letter-spacing:.8px}.brand strong span,.auth-logo strong span{font-weight:400;opacity:.75}.brand small{display:block;font-size:9px;letter-spacing:.1px;color:#adbfde;margin-top:5px}.sidebar-label{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#91a5c7;padding:0 14px;margin-bottom:14px}.sidebar-nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 15px;font-size:13px;font-weight:600;color:#b5c4db;border-radius:10px;transition:all .15s}.nav-link:hover{background:#ffffff10;color:#fff}.nav-link.active{background:linear-gradient(100deg,#4973e8,#4165cf);box-shadow:0 7px 13px #14274450;color:white}.nav-glyph{font-size:19px;line-height:17px;width:21px;text-align:center;font-family:Arial}.sidebar-tip{background:#ffffff11;border:1px solid #ffffff16;padding:18px;border-radius:15px;margin:42px 6px 0;color:#e9eeff}.sidebar-tip>span{display:block;font-size:25px;color:#a5baff;margin-bottom:13px}.sidebar-tip b{font-size:12px}.sidebar-tip p{font-size:11px;line-height:1.6;color:#afbed7;margin-bottom:0}.sidebar-bottom{margin-top:auto}.profile-chip{border-top:1px solid #ffffff1c;padding:17px 5px 15px;display:flex;gap:10px;align-items:center}.avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#dfe9ff;color:#4f6acf;font-weight:800;font-size:12px;flex-shrink:0}.sidebar .avatar{background:#698ad0;color:white}.avatar.small{width:32px;height:32px;font-size:11px}.avatar.tiny{width:24px;height:24px;font-size:9px}.avatar.jumbo{width:66px;height:66px;font-size:23px}.profile-data{min-width:0;flex:1}.profile-data b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-data small{display:block;color:#adbed8;font-size:10px;margin-top:4px}.logout{display:flex;justify-content:space-between;margin:0 5px;padding:13px 5px;color:#b9c7de;font-size:11px;border-top:1px solid #ffffff14}.logout:hover{color:white}.main-wrap{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{background:#fff;min-height:76px;display:flex;justify-content:space-between;align-items:center;padding:0 42px;border-bottom:1px solid #eef1f6;gap:18px}.breadcrumbs{font-size:12px;color:#9ba8b9}.breadcrumbs span{padding:0 12px;color:#bdc5d0}.breadcrumbs b{color:#3b4c67;font-weight:600}.top-right{display:flex;align-items:center;gap:20px}.today-label{font-size:11px;color:#8793a6;background:#f6f8fc;padding:9px 13px;border-radius:25px}.today-label:first-letter{color:#53b7a5}.mobile-menu{display:none;border:0;background:#eff3ff;border-radius:8px;padding:7px 12px;color:var(--navy)}.content{max-width:1500px;width:100%;margin:0 auto;padding:35px 41px 48px;flex:1}.app-footer{display:flex;justify-content:space-between;padding:18px 42px;color:#9ba7b6;font-size:10px;border-top:1px solid #e8ecf4}.app-footer span{color:#b0bbca}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#5b78d2;font-weight:900;margin-bottom:12px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 29px}.page-heading h1{font-size:28px;line-height:1.24;letter-spacing:-1.1px;margin:0 0 9px;font-weight:800}.page-heading p{margin:0;color:#8693a6;font-size:12px;line-height:1.6}.wave{color:#efae60;font-size:22px;margin-left:3px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;padding:12px 17px;font-size:12px;font-weight:750;border:1px solid transparent;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--blue);color:white;box-shadow:0 5px 14px #4268e924}.btn.primary:hover{background:#3259df}.btn.secondary{background:#fff;color:#475d8b;border-color:#dce4f1}.btn.secondary:hover{background:#f3f6ff}.btn.ghost{background:#eef3ff;color:#4a6cdd}.btn.success{background:#e1f8ee;color:#13805b}.btn.full{width:100%}.btn.tiny-btn{padding:8px 10px;font-size:10px;border-radius:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:23px}.stat-card{background:#fff;position:relative;overflow:hidden;border:1px solid #edf0f5;border-radius:16px;padding:21px 23px 23px;min-height:164px;box-shadow:var(--shadow)}.stat-card:hover{border-color:#bed0fe}.stat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.stat-symbol{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:11px;font-size:21px}.s-blue{background:#ebf1ff;color:#4d74e9}.s-orange{background:#fff2e5;color:#eaa051}.s-purple{background:#f2eeff;color:#9576e8}.s-green{background:#e5f8f2;color:#36b994}.stat-trend{font-size:10px;color:#99a6b8}.stat-card>b{display:block;font-size:30px;letter-spacing:-1.5px;margin-bottom:7px}.stat-card>span:not(.stat-symbol){font-size:11px;color:#8794a7}.stat-decoration{position:absolute;font-size:85px;line-height:1;opacity:.025;right:13px;bottom:-3px}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:20px}.panel{background:#fff;border:1px solid #eaf0f5;border-radius:16px;padding:24px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:21px}.panel h2{font-size:16px;letter-spacing:-.35px;margin:0 0 6px}.panel-heading p,.panel>p,.action-card>p{font-size:11px;color:#8e9caf;margin:0;line-height:1.7}.text-link{font-weight:800;color:#5978df;font-size:11px;white-space:nowrap}.task-list{display:flex;flex-direction:column}.task-row{display:grid;grid-template-columns:40px minmax(0,1fr) 84px 94px 112px 17px;gap:12px;align-items:center;padding:17px 0;border-top:1px solid #eff2f8;transition:background .2s}.task-row:hover{background:#fafbff}.task-row-icon{width:35px;height:35px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#e9f0ff;color:#6581de;font-size:21px}.task-row-icon.alta{background:#fff0ed;color:#e88673}.task-row-icon.baja{background:#e8f8f4;color:#44bda1}.task-row-main{min-width:0}.task-row-main b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-row-main small{font-size:10px;color:#98a4b5;display:block;margin-top:5px}.task-row-progress small{font-size:10px;color:#99a4b5;white-space:nowrap}.mini-progress{display:block;width:72px;height:4px;background:#eaf0f8;border-radius:5px;margin-bottom:7px;overflow:hidden}.mini-progress i,.large-progress i{display:block;background:linear-gradient(90deg,#688cf1,#4a69e5);height:100%;border-radius:9px}.row-date{font-size:10px;color:#8091a6;white-space:nowrap}.row-date.late,.text-red{color:#e2646d!important}.row-arrow{font-size:16px;color:#b0bed1}.pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:700;padding:7px 9px;border-radius:18px;white-space:nowrap;width:max-content}.pill i{height:6px;width:6px;border-radius:100%;background:currentColor}.status-pendiente{background:#fff4e5;color:#e29b42}.status-en_proceso{background:#f0edfe;color:#8c6bdc}.status-terminada{background:#e4f9f1;color:#279f7d}.dashboard-aside{display:flex;flex-direction:column;gap:17px}.focus-card{position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(140deg,#4368e4,#2945a6);padding:23px 22px 25px;color:white;min-height:220px}.focus-top{position:relative;z-index:1;display:flex;align-items:center;gap:8px;color:#c4d2ff;font-size:19px}.focus-top span{font-size:9px;letter-spacing:1.7px;font-weight:800}.focus-card h3{position:relative;z-index:1;font-size:19px;line-height:1.3;max-width:200px;margin:18px 0 9px}.focus-card p{position:relative;z-index:1;color:#d4ddff;line-height:1.6;font-size:10px;max-width:195px}.focus-card a{position:relative;z-index:1;display:inline-flex;gap:16px;margin-top:17px;font-size:10px;font-weight:800}.focus-orbs i{position:absolute;display:block;border-radius:50%;background:#ffffff10}.focus-orbs i:nth-child(1){width:180px;height:180px;right:-90px;top:-50px}.focus-orbs i:nth-child(2){width:110px;height:110px;right:-35px;bottom:-50px}.focus-orbs i:nth-child(3){width:52px;height:52px;right:52px;top:87px}.due-card{background:#fff;border:1px solid #e8edf6;border-radius:15px;display:flex;align-items:center;gap:13px;padding:16px}.due-icon{background:#fff0ed;color:#eb7980;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;font-size:18px;font-weight:800}.due-card div:nth-child(2){flex:1}.due-card b,.due-card small{display:block}.due-card b{font-size:11px}.due-card small{color:#95a2b6;font-size:10px;margin-top:6px}.due-card>span{color:#aab7c8}.small-panel{background:white;border:1px solid #e8edf6;border-radius:15px;padding:17px}.small-panel-title{display:flex;justify-content:space-between;font-size:11px;font-weight:800}.small-panel-title b{color:#536fcb}.small-panel>p{font-size:10px;color:#96a4b8;line-height:1.6}.request-mini{display:block;border-top:1px solid #eef1f7;padding:11px 0}.request-mini b{font-size:11px;display:block}.request-mini small{display:block;margin-top:5px;font-size:10px;color:#91a0b6}.empty-state{text-align:center;padding:46px 14px}.empty-icon{background:#edf2ff;border-radius:18px;color:#6986e0;font-size:34px;width:72px;height:72px;margin:0 auto 18px;display:grid;place-items:center}.empty-state h3{font-size:16px;margin:0 0 6px}.empty-state p{font-size:12px;color:#8d9caf}.tasks-panel{padding-top:20px}.filter-bar{display:flex;align-items:center;gap:11px;padding-bottom:19px}.filter-bar .search-wrap{flex:1;min-width:160px}.search-wrap{position:relative}.search-wrap span{position:absolute;left:13px;top:9px;font-size:20px;color:#a9b5c8}.search-wrap input{padding-left:38px}.filter-bar select{max-width:190px}.reset-link{font-size:11px;color:#7e91bb}.list-title{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f5;padding:17px 0 5px}.list-title b{font-size:12px}.list-title span{font-size:10px;color:#a2adc0}.task-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.task-top .page-heading{margin:0}.back-link{display:inline-block;font-size:11px;font-weight:700;color:#6781d2;margin-bottom:17px}.detail-layout,.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:20px;align-items:start}.detail-main,.detail-side{display:flex;flex-direction:column;gap:20px}.description{white-space:normal;font-size:12px;color:#65758b;line-height:1.85;margin:15px 0 25px}.detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #edf0f6;padding-top:19px;gap:10px}.detail-meta>div{min-width:0}.detail-meta small{display:block;color:#9cabc0;font-size:10px;margin-bottom:8px}.detail-meta b{display:flex;align-items:center;gap:7px;font-size:11px;overflow-wrap:anywhere}.priority{display:inline-block;border-radius:9px;padding:6px 10px;font-size:10px;font-weight:750}.priority-baja{background:#e7f8ee;color:#389f7b}.priority-media{background:#edf2ff;color:#5274d5}.priority-alta{background:#fff0ec;color:#df745e}.fraction{font-size:13px;color:#546ed1}.large-progress{height:8px;border-radius:12px;background:#edf1f8;overflow:hidden;margin-bottom:9px}.progress-caption{text-align:right;color:#8b9bb0;font-size:10px}.checklist{margin-top:15px}.checklist-item{display:flex;align-items:center;gap:12px;padding:14px 3px;border-bottom:1px solid #f0f2f6;font-size:12px}.checklist-item>span{flex:1}.checklist-item span.is-done{color:#a9b5c6;text-decoration:line-through}.check-toggle{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border:1.5px solid #d5dded;border-radius:7px;background:#fff;font-weight:800;color:white}.check-toggle.checked{background:#3bb69d;border-color:#3bb69d}.sub-delete{border:0;background:transparent;color:#c3cad6;font-size:24px}.sub-delete:hover{color:#e66477}.muted-empty{font-size:11px;color:#9aa8ba;padding:13px 0}.inline-add{display:flex;gap:8px;margin-top:18px}.inline-add input{flex:1;min-width:0}.counter{display:inline-grid;place-items:center;border-radius:9px;background:#eff3ff;color:#5775d5;min-width:28px;height:27px;font-size:11px;font-weight:800}.upload-form{display:grid;grid-template-columns:1fr;gap:13px}.upload-zone{position:relative;border:1.5px dashed #becdf1;background:#f9fbff;min-height:142px;display:flex!important;align-items:center;justify-content:center;flex-direction:column;border-radius:12px;color:#6d83d0;text-align:center;cursor:pointer}.upload-zone input{width:min(275px,95%);font-size:10px;margin:10px 0;color:#6f809f}.upload-symbol{font-size:26px;line-height:1;margin-bottom:7px}.upload-zone b{font-size:11px}.upload-zone small{font-size:10px;margin-top:6px;color:#99a7c1}.note-label{margin:0!important}.upload-form>.btn{justify-self:start}.evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.photo-card{overflow:hidden;border-radius:10px;border:1px solid #e8edf4;display:block}.photo-card img{width:100%;height:140px;object-fit:cover;display:block;background:#eff2f7}.photo-caption{padding:12px}.photo-caption b{display:block;font-size:11px}.photo-caption small{display:block;font-size:10px;color:#9baabe;margin-top:3px}.photo-caption p{font-size:10px;line-height:1.5;color:#6c7f9d;margin:8px 0 0}.activity-entry{display:flex;gap:13px;align-items:flex-start;padding:4px 0 18px;position:relative}.activity-entry:not(:last-child):before{position:absolute;content:"";left:5px;top:19px;bottom:0;border-left:1px solid #e6ebf5}.activity-dot{border-radius:50%;width:11px;height:11px;margin-top:3px;background:#d3dffc;border:3px solid #f1f5ff;flex:0 0 11px}.activity-entry b{font-size:11px}.activity-entry p{font-size:11px;line-height:1.6;color:#65758b;margin:4px 0}.activity-entry small{color:#a0aebe;font-size:10px}.action-card h2{font-size:15px}.action-card>p{margin:6px 0 19px}.action-card form{display:grid;gap:13px}.action-card .tip-line{padding:12px 13px;background:#f4f7ff;color:#8497bf;border-radius:9px;font-size:10px;line-height:1.6;margin-top:14px}.date-large{background:#f2f6ff;color:#506ac6;padding:14px;border-radius:10px;font-size:17px;font-weight:850;margin:17px 0}.approval-item{border-top:1px solid #edf1f6;padding:14px 0}.approval-item b{display:block;font-size:11px}.approval-item small{display:block;color:#8493a8;margin-top:5px;font-size:10px}.approval-item p{font-size:10px;color:#6f8297;line-height:1.5}.approval-actions{display:flex;gap:8px}.approval-actions form{display:block}.editor-main,.editor-side{display:grid;gap:19px}.editor-side h2{margin:0}.panel-subhead{border-top:1px solid #edf0f5;padding-top:19px}.panel-subhead h3{margin:0;font-size:14px}.panel-subhead p{font-size:11px;color:#95a3b5}.subtask-inputs{display:grid;gap:8px}.subtask-create{display:flex;align-items:center;gap:10px!important;margin:0!important}.subtask-create>span{font-size:22px;color:#7c97e4}.subtask-create input{width:100%}.editor-main .btn.ghost{justify-self:start}.help-text{font-size:11px;color:#879db8}.editor-note{font-size:10px;line-height:1.8;background:#f0f4ff;border-radius:10px;padding:13px;color:#788cb9}.required{color:#e07b6e}.users-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:20px;align-items:start}.user-item{display:flex;gap:12px;align-items:center;padding:16px 0;border-top:1px solid #edf1f6;flex-wrap:wrap}.user-details{flex:1;min-width:130px}.user-details>b{display:block;font-size:12px}.user-details small{display:block;font-size:10px;color:#9aa8bb;margin-top:7px}.admin-tag{font-size:8px;letter-spacing:.8px;color:#4c71d4;background:#eaf0ff;border-radius:6px;padding:4px 6px;margin-left:5px}.account-state{font-size:10px;padding:5px 8px;border-radius:7px}.account-state.on{color:#289a7b;background:#e8f7f1}.account-state.off{color:#d36168;background:#fff0ee}.user-options{position:relative}.user-options summary{list-style:none;background:#f1f4fa;border-radius:7px;padding:8px;font-size:10px;color:#667aa9;cursor:pointer}.user-options summary::-webkit-details-marker{display:none}.user-options[open] .option-body{position:absolute;z-index:5;right:0;top:35px;width:275px;background:white;padding:15px;border:1px solid #e8edf3;border-radius:12px;box-shadow:0 18px 35px #1b2d4f24}.option-body form{display:grid;gap:10px;margin-bottom:12px}.option-body form+form{padding-top:10px;border-top:1px solid #eef2f8}.new-user form,.password-form{display:grid;gap:16px;margin-top:22px}.new-user p{font-size:11px;line-height:1.7;color:#8698b0}.new-user .editor-note{margin-top:19px}.checkbox-inline{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}.checkbox-inline input{width:auto!important}.profile-layout{max-width:700px}.profile-banner{display:flex;align-items:center;gap:18px;background:#f3f6ff;border-radius:14px;padding:22px;margin-bottom:28px}.profile-banner h2{margin:0;font-size:17px}.profile-banner p{font-size:12px;color:#8b9bb6}.password-form{max-width:420px}.flash{padding:13px 16px;border-radius:10px;font-size:12px;margin-bottom:20px;line-height:1.6}.flash.success{background:#e6f8ed;color:#248061;border:1px solid #b9efd3}.flash.error{background:#fff0ec;color:#b94b4e;border:1px solid #f9d8d2}label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#596d85;font-weight:700}label small{font-weight:400;color:#97a3b7}input:not([type=checkbox]):not([type=file]),select,textarea{border:1px solid #dfe5ee;background:white;color:#2d405a;border-radius:9px;padding:11px 12px;width:100%;font-size:12px;min-height:40px}textarea{resize:vertical;line-height:1.65}input::placeholder,textarea::placeholder{color:#aab5c4}select{cursor:pointer}label+label{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.span-2{grid-column:span 2}.auth-screen{min-height:100vh;background:#f6f8fd;display:grid;place-items:center;padding:28px}.auth-panel{background:white;min-height:565px;max-width:960px;width:100%;display:grid;grid-template-columns:1.07fr .93fr;box-shadow:0 26px 70px #2939561b;border-radius:22px;overflow:hidden}.auth-hero{position:relative;overflow:hidden;min-height:560px;padding:36px;background:radial-gradient(circle at 88% 88%,#4567cf 0%,transparent 45%),linear-gradient(145deg,#244064,#152943);color:white;display:flex;flex-direction:column;justify-content:space-between}.auth-logo{display:flex;align-items:center;gap:12px}.auth-logo.light{color:white}.auth-hero-text{z-index:1;margin-top:62px}.auth-kicker{color:#aabbeb;font-size:10px;letter-spacing:2px;font-weight:800}.auth-hero h1{font-size:38px;letter-spacing:-1.7px;line-height:1.2;margin:18px 0}.auth-hero h1 em{font-style:normal;color:#a6baff}.auth-hero-text p{color:#bfd0ee;max-width:320px;font-size:12px;line-height:1.8}.auth-features{display:grid;gap:11px;margin-top:28px;font-size:11px;color:#dbe4ff}.auth-graphic{z-index:1;background:#ffffff17;border:1px solid #ffffff24;border-radius:14px;display:flex;align-items:center;gap:14px;padding:16px;font-size:13px;line-height:1.65;margin-top:45px;width:265px}.auth-graphic span{font-size:27px}.auth-hero:after{content:"";position:absolute;right:-85px;bottom:100px;width:260px;height:260px;border:35px solid #ffffff08;border-radius:50%}.auth-right{display:grid;place-items:center;padding:50px}.auth-login{width:100%;max-width:315px}.auth-login h2{font-size:29px;margin:0 0 10px;letter-spacing:-1px}.auth-login>p{font-size:12px;color:#95a1b2;line-height:1.6;margin-bottom:33px}.auth-login form{display:grid;gap:21px}.auth-login .btn{margin-top:9px}.auth-foot{text-align:center;font-size:10px;color:#9ca9bd;margin-top:40px}.install-wrap{width:100%;max-width:650px}.install-wrap>.auth-logo{justify-content:center;margin:0 0 25px}.install-card{padding:35px;background:white;border:1px solid #e7ecf5;border-radius:20px;box-shadow:var(--shadow)}.install-card h1{font-size:26px;letter-spacing:-1px;margin:0 0 8px}.install-card>p{font-size:12px;color:#8192a6;line-height:1.7;margin:0 0 22px}.install-card h3{font-size:13px;padding-bottom:10px;margin:22px 0 14px;border-bottom:1px solid #edf1f7}.install-card form>.btn{margin-top:24px}.calendar-shell{padding:26px}.cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.cal-heading{display:flex;align-items:center;gap:15px}.cal-heading h2{font-size:19px;margin:0;text-transform:capitalize}.calendar-total{font-size:11px;color:#9baac0}.cal-controls{display:flex;gap:7px}.cal-controls button{border:1px solid #e1e7f1;background:#fff;border-radius:9px;color:#566d95;font-weight:700;padding:8px 14px}.cal-controls button:hover{background:#f2f5ff}.cal-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.cal-weekdays{border-bottom:1px solid #e8edf5}.cal-weekdays span{padding:12px 10px;color:#95a4b8;font-size:11px;text-align:center;font-weight:700}.calendar-grid{border-top:0}.cal-day{min-height:117px;border-right:1px solid #edf0f6;border-bottom:1px solid #edf0f6;padding:9px;min-width:0;background:#fff}.cal-day:nth-child(7n){border-right:0}.cal-day.off{background:#fbfcff}.cal-day.today{background:#f6f8ff}.cal-date{display:flex;align-items:center;justify-content:center;font-size:11px;color:#566a85;width:24px;height:24px;border-radius:50%;margin-bottom:9px;font-weight:700}.off .cal-date{color:#bec7d6}.today .cal-date{background:#4d6fe0;color:white}.cal-event{display:block;border-radius:6px;padding:6px 7px;margin:4px 0;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-event.pendiente{background:#fff2e5;color:#ae773b;border-left:2px solid #edab58}.cal-event.en_proceso{background:#f0edfc;color:#795bb5;border-left:2px solid #9b7de7}.cal-event.terminada{background:#e7f8f0;color:#259572;border-left:2px solid #4abd99}.cal-event:hover{filter:brightness(.98)}.cal-legend{display:flex;justify-content:center;gap:24px;margin-top:23px;font-size:10px;color:#90a0b5}.cal-legend span{display:flex;align-items:center;gap:7px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%}.dot.orange{background:#efa84f}.dot.violet{background:#9777dc}.dot.green{background:#36b998}
@media(max-width:1240px){.content{padding:30px 28px}.dashboard-layout{grid-template-columns:minmax(0,1fr) 235px}.task-row{grid-template-columns:37px minmax(0,1fr) 70px 85px 105px 9px;gap:8px}.sidebar{width:220px;min-width:220px}.stats-grid{gap:12px}.stat-card{padding:17px}}
@media(max-width:1050px){.sidebar{width:198px;min-width:198px;padding:24px 12px}.brand{margin:0 4px 37px}.brand small{display:none}.content{padding:27px 23px}.dashboard-layout,.users-layout{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:repeat(2,1fr)}.dashboard-aside .small-panel{grid-column:span 2}.focus-card{min-height:185px}.stats-grid{grid-template-columns:repeat(2,1fr)}.detail-layout,.editor-layout{grid-template-columns:minmax(0,1fr) 260px}.evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{position:fixed;left:-260px;top:0;width:250px;min-width:250px;transition:left .18s;z-index:50}.sidebar.open{left:0;box-shadow:0 0 0 999px #15274275}.mobile-menu{display:block}.topbar{padding:0 17px;min-height:64px;justify-content:flex-start}.top-right{margin-left:auto}.today-label{display:none}.content{padding:25px 16px 35px}.app-footer{padding:16px;display:block}.app-footer span{display:none}.page-heading h1{font-size:25px}.page-heading{align-items:flex-start}.stats-grid{gap:10px}.stat-card{min-height:138px;padding:14px}.stat-card>b{font-size:26px}.dashboard-layout{display:block}.dashboard-layout>.panel{margin-bottom:17px}.dashboard-aside{display:flex}.task-row{grid-template-columns:33px minmax(0,1fr) 88px;gap:8px;row-gap:5px;padding:15px 0}.task-row .task-row-progress{display:none}.task-row .row-date{grid-column:2;grid-row:2;margin-top:-3px}.task-row .pill{grid-column:3;grid-row:1}.task-row .row-arrow{display:none}.task-row-main{grid-column:2;grid-row:1}.task-row-icon{grid-row:1/3}.panel{padding:18px}.filter-bar{flex-wrap:wrap}.filter-bar .search-wrap{flex-basis:100%}.filter-bar select{max-width:none;flex:1;min-width:110px}.detail-layout,.editor-layout,.users-layout{display:flex;flex-direction:column;gap:17px}.detail-main,.detail-side,.editor-main,.editor-side,.users-layout>.panel{width:100%}.detail-meta{gap:13px}.user-options[open] .option-body{right:0}.calendar-shell{padding:13px}.cal-toolbar{flex-wrap:wrap}.cal-day{min-height:93px;padding:4px}.cal-event{padding:4px 3px;font-size:8px}.cal-date{font-size:10px;margin-bottom:5px}.cal-weekdays span{font-size:9px;padding:9px 2px}.auth-panel{grid-template-columns:1fr;max-width:460px;min-height:auto}.auth-hero{min-height:180px;padding:25px}.auth-hero-text,.auth-graphic{display:none}.auth-right{padding:33px 25px}.auth-screen{padding:14px}.auth-login>p{margin-bottom:25px}.auth-foot{margin-top:23px}.install-card{padding:21px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}}
@media(max-width:430px){.page-heading{flex-wrap:wrap}.page-heading .btn{width:100%}.evidence-grid{grid-template-columns:1fr}.detail-meta{grid-template-columns:1fr 1fr}.detail-meta>div:nth-child(3){grid-column:1/3}.cal-event{font-size:7px}.stats-grid .stat-card{padding:12px}.stat-trend{font-size:9px}}
/* Nexa Tareas 1.1: Centro de actualizaciones */
.updater-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);gap:20px;align-items:start}.updater-main,.updater-help{padding:24px}.version-pill{border-radius:30px;padding:9px 15px;white-space:nowrap;background:#eef4ff;color:#214574;font-size:13px;font-weight:750}.update-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0}.update-steps>div{border:1px solid #e4eaf3;background:#f8faff;border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:7px}.update-steps b{color:#2869ae;font-size:13px}.update-steps span{font-weight:750;color:#1a3356}.update-steps small{line-height:1.5;color:#61718a}.updater-form label{display:block;font-weight:700;margin:14px 0;color:#263a54}.updater-form input{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;border:1px solid #d5ddea;border-radius:10px;background:#fff}.updater-form .btn{margin:16px 0}.updater-help{margin-bottom:20px}.updater-help h3{font-size:18px;margin-top:0}.updater-help p{font-size:13px;color:#566b85;line-height:1.8}.updater-help code{word-break:break-word;font-size:12px}.updater-history{display:flex;flex-direction:column;gap:4px;padding:13px 0;border-bottom:1px solid #e5ebf5}.updater-history small{color:#728097;font-size:12px}@media(max-width:950px){.updater-layout{grid-template-columns:1fr}}@media(max-width:650px){.update-steps{grid-template-columns:1fr}.updater-main,.updater-help{padding:16px}}

/* PysNotebook 1.2 — identidad azul + verde del logotipo original */
:root{--navy:#074989;--navy2:#053A74;--ink:#113450;--muted:#667E94;--line:#DFEAF2;--bg:#F3F9FD;--blue:#087BCB;--blue2:#0669B2;--softblue:#E5F4FE;--orange:#198CBB;--violet:#2676C5;--green:#20A768;--shadow:0 12px 34px rgba(3,71,119,.06)}
.sidebar{background:linear-gradient(165deg,#06458C 0%,#033A70 64%,#07545E 100%)}
.brand-mark{background:linear-gradient(140deg,#FFFFFF,#EDF8FF);border-radius:12px;box-shadow:0 4px 12px #012B642c;overflow:hidden}
.brand-mark img{width:95%;height:95%;object-fit:contain}
.brand strong,.auth-logo strong{letter-spacing:-.45px;font-size:17px;font-weight:850;white-space:nowrap}
.brand-blue{color:#39B6FF!important;font-weight:850!important;opacity:1!important}.brand-green{color:#68DE85!important;font-weight:850!important;opacity:1!important}
.auth-logo:not(.light) .brand-blue{color:#0563B5!important}.auth-logo:not(.light) .brand-green{color:#1C9D62!important}
.sidebar-label{color:#9ACDE5}.brand small,.profile-data small{color:#B3D7EC}.nav-link{color:#D1E8F4}
.nav-link.active,.btn.primary{background:linear-gradient(105deg,#0677C9,#149A84);box-shadow:0 7px 16px #045E9938;color:white}
.nav-link:hover{background:#FFFFFF18}.topbar{background:#fff}.avatar{background:#DBF3FF;color:#076CB4}.sidebar .avatar{background:#2288B9;color:#fff}
input:focus,select:focus,textarea:focus{border-color:#1595CC!important;box-shadow:0 0 0 3px #1595CC22}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#32B3D6}
.stat-symbol.s-orange,.stat-symbol.s-purple,.stat-symbol.s-blue{background:#DDF2FF;color:#0879BA}
.stat-symbol.s-green{background:#DDF8E8;color:#168B55}
.stat-card:hover,.panel:hover{border-color:#CBE5F0}
.task-row-progress .mini-progress i,.mini-progress i,.large-progress i{background:linear-gradient(90deg,#087BCB,#2AB16D)}
.focus-card{background:linear-gradient(135deg,#0766AE,#096D99 55%,#12966F);color:white}.focus-card .focus-top,.focus-card p{color:#E4F8FF}
.btn.secondary:hover,.cal-controls button:hover{background:#E5F5FF;color:#0868A5}
.cal-day.today{background:#EAF7FD}.today .cal-date{background:#0A78C7;color:white}
.cal-event.pendiente{background:#EAF4FC;color:#356F99;border-left:2px solid #82ADC9}
.cal-event.en_proceso{background:#DEF3FF;color:#066FAC;border-left:2px solid #0B8BD4}
.cal-event.terminada{background:#DCF8E9;color:#168753;border-left:2px solid #21B575}
.dot.orange{background:#88B7D2}.dot.violet{background:#168AD3}.dot.green{background:#2DB577}
.pill.status-pendiente{background:#E9F3FB;color:#486E88}.pill.status-en_proceso{background:#E0F3FF;color:#097BB9}.pill.status-terminada{background:#E3F8ED;color:#168F59}
.auth-hero{background:radial-gradient(circle at 85% 85%,#19A975 0%,transparent 48%),linear-gradient(145deg,#0769B7,#064781 65%,#025D65)}
.auth-hero h1 em{color:#87E5B6}.auth-kicker{color:#A4E8F9}.auth-hero-text p,.auth-features{color:#DCF7FF}
.profile-banner,.date-large,.editor-note{background:#EAF6FE;color:#1B6B9C}
.version-pill{background:#E1F5EA;color:#168659}.update-steps b{color:#0877BD}.update-steps>div{background:#F5FBFF}
.sync-status{display:inline-flex;align-items:center;gap:7px;color:#2A8B71;font-weight:700;font-size:11px;white-space:nowrap}.sync-dot{display:inline-block;flex-shrink:0;width:7px;height:7px;border-radius:50%;background:#26B770;box-shadow:0 0 0 3px #26B7701b}
.sync-notice[hidden]{display:none!important}.sync-notice{position:fixed;right:24px;bottom:25px;background:#FFFFFF;z-index:80;border:1px solid #CAE8E3;box-shadow:0 12px 34px #0B528229;padding:14px 18px;border-radius:14px;display:flex;gap:12px;align-items:center;font-size:12px;color:#154E61}
.sync-notice button{background:linear-gradient(100deg,#0A7CC2,#18A577);color:#fff;border:0;padding:9px 12px;border-radius:9px;font-weight:750}
@media(max-width:950px){.sync-status{font-size:10px}}@media(max-width:500px){.brand strong{font-size:15px}.sync-status{font-size:9px}.sync-notice{left:10px;right:10px;bottom:12px;flex-wrap:wrap}}

/* PysNotebook 1.3.0 · empresas */
.sidebar-company{margin:0 18px 12px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#daffe8;font-size:12px;font-weight:600;word-wrap:break-word}
.company-filter label{display:flex;align-items:center;gap:14px;font-weight:700;flex-wrap:wrap}.company-filter select{min-width:190px;max-width:340px}.user-details a{color:#1479b7}

/* PysNotebook 1.3.2: controls of administrative deletion */
.btn.danger{background:#b62d39;color:#fff;border:1px solid #9b2531}
.btn.danger:hover{background:#9b2531}
.danger-form{margin-top:16px;padding-top:15px;border-top:1px solid #f2ccd0}
.danger-form .help-text{color:#a33340}
.archive-list{margin:16px;padding:16px;border:1px solid #bed8d8;border-radius:14px;background:#f4faf9}
.archive-list h3{margin:0 0 6px;font-size:16px}
.archive-row{display:flex;gap:14px;align-items:center;justify-content:space-between;border-bottom:1px solid #dfebeb;padding:11px 0}
.archive-row:last-child{border-bottom:0}
.archive-row small{display:block;color:#667987}
.archive-row form{flex:none}
@media(max-width:600px){.archive-row{align-items:flex-start;flex-direction:column}}

/* PysNotebook 1.3.3 - restauración y análisis de desempeño */
.backup-form{padding:14px 0;border-top:1px solid #deeced;margin-top:12px}.backup-form .help-text{font-size:12px}.restore-panel{margin-top:20px;padding:24px}.restore-form,.backup-page{max-width:750px}.restore-form{display:grid;gap:14px}.restore-form label{font-weight:600}.restore-form label.checkbox-inline{font-weight:500}.restore-form input[type=file]{background:#f5fbff}
.performance-dashboard{margin-top:22px;padding:25px}.performance-dashboard .panel-heading{margin-bottom:12px}.performance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 28px}.performance-kpis>div{background:#f3f9fc;border:1px solid #d9eaf2;border-radius:13px;padding:14px;display:flex;flex-direction:column;gap:7px}.performance-kpis b{color:#086aab;font-size:26px}.performance-kpis small{font-size:12px;font-weight:700;color:#3f6377}.performance-kpis span{font-size:11px;color:#647c8b}.performance-cols{display:grid;grid-template-columns:1fr 1fr;gap:26px}.performance-cols h3{font-size:16px;margin:0 0 8px}.perf-legend{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 10px;font-size:11px;color:#557589}.perf-legend span{display:flex;align-items:center;gap:4px}.perf-key{display:inline-block;width:10px;height:10px;border-radius:3px}.perf-key.green{background:#28ac71}.perf-key.orange{background:#eeae54}.perf-key.red{background:#d95b60}.perf-key.gray{background:#d3e1e9}
.monthly-chart{height:225px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:12px;padding:10px 0 4px;border-bottom:1px solid #d8e8ee}.month-col{height:100%;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:6px}.month-col .bar-stack{min-height:4px;width:65%;max-width:40px;display:flex;flex-direction:column;border-radius:5px 5px 0 0;overflow:hidden}.bar-stack i{display:block;min-height:0}.bar-green{background:#28ac71}.bar-orange{background:#eeae54}.bar-red{background:#d95b60}.bar-gray{background:#d3e1e9}.bar-total{font-size:12px;font-weight:800;color:#185c7e}.month-col small{font-size:10px;color:#678497;white-space:nowrap}
.worker-scores{max-height:280px;overflow-y:auto;display:grid;gap:11px}.score-row{display:grid;grid-template-columns:minmax(0,1fr) 75px 35px;gap:8px;align-items:center}.score-row b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-row small{font-size:10px;display:block;color:#607e8e}.score-row strong{font-size:12px;text-align:right;color:#138358}.score-track{height:8px;background:#dfecf1;border-radius:8px;overflow:hidden}.score-track span{height:100%;display:block;background:linear-gradient(90deg,#138db1,#27b473)}.metric-note{margin:22px 0 0;font-size:11px;line-height:1.5;color:#627e8a;border-top:1px solid #e5edf0;padding-top:12px}
@media(max-width:1050px){.performance-cols{grid-template-columns:1fr}.performance-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.performance-kpis{grid-template-columns:1fr 1fr}.performance-dashboard{padding:12px}.performance-kpis b{font-size:21px}.monthly-chart{gap:4px}.score-row{grid-template-columns:minmax(0,1fr) 55px 32px}}

/* PysNotebook 1.4.0: paginación clara y aviso de calendario asíncrono */
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:20px 0 4px;flex-wrap:wrap}.pagination span{font-size:13px;font-weight:700;color:#456}.calendar-feedback{padding:0 18px 10px;margin:0;color:#586d80;font-size:13px}.calendar-feedback:empty{display:none}


/* ================= PysNotebook 1.5.0 · diseño cohesivo y accesible ================ */
:root{--navy:#07396e;--navy2:#052c54;--ink:#123047;--muted:#617b8e;--line:#dce9ef;--bg:#f4f9fc;--blue:#0678cb;--blue2:#0468b5;--green:#1d9e68;--red:#bc3445;--shadow:0 10px 28px rgba(5,57,110,.055)}
html{font-size:16px}body{color:var(--ink);background:var(--bg);line-height:1.5}
::selection{background:#c7efff;color:#064c82}
.ui-icon{width:21px;height:21px;display:block;flex-shrink:0}
.skip-link{position:fixed;left:14px;top:-70px;z-index:130;padding:12px 20px;background:#fff;border:2px solid #0682bd;border-radius:12px;color:#084c7a;font-weight:800}
.skip-link:focus{top:12px}
.sidebar{width:252px;min-width:252px;background:linear-gradient(170deg,#06477c 0%,#052c59 68%,#053b52 100%);padding:25px 15px 16px;box-shadow:8px 0 32px #002f5414}
.brand{margin:2px 7px 37px;gap:11px}.brand-mark{width:46px;height:46px;flex-basis:46px;border-radius:14px;box-shadow:0 4px 15px #03294919}
.brand strong{font-size:19px;letter-spacing:-.55px}.brand small{font-size:10px;line-height:1.35;letter-spacing:0;margin-top:2px}
.sidebar-label{font-size:10px;letter-spacing:1.5px;color:#b2d4e8;margin:0 0 10px;padding-left:13px}
.sidebar-company{margin:0 5px 18px;background:#ffffff0d;font-size:12px;line-height:1.45}
.sidebar-nav{gap:4px}.nav-link{font-size:13px;gap:11px;min-height:46px;padding:12px 13px;border-radius:12px;color:#dbebf4}
.nav-link.active{background:linear-gradient(105deg,#137bcb,#168f90);box-shadow:0 5px 18px #00284d42;border:1px solid #ffffff24}
.nav-link:not(.active):hover{background:#ffffff19}.nav-glyph{width:24px;display:inline-flex;justify-content:center;align-items:center}.nav-link .ui-icon{width:19px;height:19px}
.sidebar-tip{margin:28px 6px 0;padding:18px 16px;border-color:#ffffff28;background:#ffffff0c}.sidebar-tip p{font-size:12px;color:#d0e4ef}
.profile-chip{border-color:#ffffff2e}.profile-data b{font-size:12px}.profile-data small,.logout{font-size:11px}
.topbar{min-height:72px;border-bottom:1px solid var(--line);padding:0 clamp(18px,3vw,40px);gap:12px;position:sticky;top:0;z-index:9;box-shadow:0 2px 14px #0a4a7010}
.breadcrumbs{font-size:13px;color:#608295}.breadcrumbs b{color:var(--navy)}.top-right{gap:12px}
.today-label{background:#edf7fc;color:#517586;border:1px solid #dbeaf2;font-size:12px}
.sync-status{font-size:11px;color:#177551;gap:7px}
.content{max-width:1540px;padding:clamp(18px,3vw,36px) clamp(16px,3vw,41px) 48px}
.page-heading{margin-bottom:26px;align-items:flex-end}.page-heading h1{font-size:clamp(25px,2.7vw,34px);font-weight:800;letter-spacing:-1.05px;line-height:1.16;margin-bottom:10px}
.page-heading p{font-size:13px;line-height:1.65;color:#5a778a;max-width:740px}
.eyebrow{font-size:11px;color:#0b80b3;margin-bottom:10px;letter-spacing:1.35px}
.wave{color:#20ad75}
.btn{border-radius:11px;min-height:41px;padding:11px 16px;font-size:12px;font-weight:750;transition:background .15s,box-shadow .15s,border-color .15s}
.btn:hover{transform:none}.btn.primary{background:linear-gradient(100deg,#067cce,#119e82);box-shadow:0 6px 16px #075d9923}
.btn.primary:hover{background:linear-gradient(100deg,#045da3,#148968);box-shadow:0 8px 18px #075d9929}
.btn.secondary{border-color:#cfe0ea;color:#0d648f;background:#fff}.btn.ghost{background:#e8f5fd;color:#08679e}
.panel,.stat-card,.due-card{border:1px solid #dfebf1;box-shadow:var(--shadow);border-radius:18px}
.panel{padding:clamp(16px,2vw,26px)}.panel:hover{border-color:#d7e5ec}
.panel h2{font-size:17px;color:#143e59;letter-spacing:-.3px}.panel-heading p,.panel>p{font-size:12px;color:#688294}
.stat-card{min-height:158px;padding:19px 20px;border-top:3px solid transparent;transition:box-shadow .15s,border-color .15s}
.stat-card:hover{border-color:#b6dce9;box-shadow:0 12px 32px #0b6b9b18}
.stat-card:nth-child(1){border-top-color:#138cda}.stat-card:nth-child(2){border-top-color:#7daac5}.stat-card:nth-child(3){border-top-color:#2ca2cf}.stat-card:nth-child(4){border-top-color:#20ac72}
.stat-symbol{width:42px;height:42px;border-radius:12px}.stat-symbol .ui-icon{width:22px;height:22px}
.stat-card>b{font-size:34px;line-height:1.1;margin-bottom:8px}.stat-card>span:not(.stat-symbol){font-size:12px;color:#58778a}
.stat-trend{font-size:11px;color:#69889b}.stat-decoration{display:none}
.stats-grid{gap:15px;margin-bottom:21px}.dashboard-layout{gap:18px;grid-template-columns:minmax(0,1fr) minmax(235px,285px)}
.task-list .task-row:first-child{border-top:1px solid #edf2f5}
.task-row{grid-template-columns:42px minmax(0,1fr) 95px 102px 119px 14px;gap:12px;min-height:75px;padding:13px 8px;border-color:#edf2f6;border-radius:11px}
.task-row:hover{background:#f4fafc}.task-row-icon{width:39px;height:39px;border-radius:13px;background:#e5f4fb;color:#0676b9}
.task-row-icon.alta{background:#fff0ec;color:#bd4f37}.task-row-icon.baja{background:#e6f7ed;color:#138c5d}
.task-row-icon .ui-icon{width:19px;height:19px}.task-row-main b{font-size:13px;font-weight:700;color:#183e57}
.task-row-main small{font-size:11px;color:#718c9b;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.mini-progress{width:92px;height:7px;background:#e1eef3;margin:0 0 6px}.task-row-progress small,.row-date{font-size:11px;color:#5d7787}
.pill{font-size:11px;padding:7px 10px;border-radius:999px}
.row-arrow{font-size:19px;color:#7691a1}
.focus-card{background:radial-gradient(circle at 95% 10%,#2ab78a50 0,transparent 48%),linear-gradient(140deg,#075d9a,#064579 65%,#067557);box-shadow:0 10px 26px #095b8e24}
.focus-card h3{font-size:21px;max-width:none}.focus-card p{font-size:12px;max-width:240px}.focus-card a{font-size:12px}
.due-card{min-height:75px}.due-card b{font-size:12px}.due-card small{font-size:11px}
.task-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-3px 0 18px;border-bottom:1px solid var(--line);padding:0 0 10px}
.task-tabs a{display:inline-flex;align-items:center;min-height:38px;padding:8px 14px;border-radius:10px;font-size:12px;color:#567b8f;font-weight:650}
.task-tabs a:hover{background:#eaf5fa}.task-tabs a[aria-current="page"]{background:#def3fd;color:#075e98;font-weight:800}
.list-title{display:flex;gap:10px;flex-wrap:wrap}.list-title span{font-size:12px}
.pagination{gap:12px}.pagination span{font-size:13px;color:#53768a}
/* Forms: visual hierarchy and sufficiently large touch targets */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:42px;font-size:14px;border-radius:10px;max-width:100%}
textarea{line-height:1.55;min-height:85px}label{line-height:1.55}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #2f9ee0;outline-offset:1px}
input::placeholder,textarea::placeholder{color:#8ca5b3}
.editor-layout,.detail-layout,.users-layout{gap:21px}
.editor-main .panel-heading{margin-bottom:17px}.editor-side{height:max-content;position:sticky;top:93px}
.editor-side .btn.primary{font-size:13px;min-height:46px}
.subtask-create{border-radius:12px}.subtask-create:focus-within{border-color:#37a8d7}
.completion-guide{border:1px solid #cce8db;background:#f1fbf5;padding:13px 15px;border-radius:13px;margin:15px 0 8px;display:grid;gap:8px;font-size:12px}
.completion-guide>b{color:#1d6651;font-size:13px}.guide-item{display:flex;align-items:center;gap:8px;color:#705b42}
.guide-item .ui-icon{width:17px;height:17px}.guide-item.guide-done{color:#128452}
.large-progress{height:10px;border-radius:999px}.progress-caption{font-size:12px}
.checklist-item{gap:12px;padding:12px 6px}.check-toggle{min-height:32px;min-width:32px}
.upload-zone{border:2px dashed #b3d8e9;background:#f6fcff;border-radius:16px;transition:background .15s,border .15s}
.upload-zone:hover,.upload-zone:focus-within{background:#ebf8fe;border-color:#36a0d5}
.photo-preview{display:flex;gap:14px;align-items:center;padding:12px;background:#eff9fd;border:1px solid #cfe8f1;border-radius:12px;margin:10px 0}
.photo-preview[hidden],.file-feedback[hidden]{display:none!important}.photo-preview img{width:92px;height:92px;object-fit:cover;border-radius:11px;box-shadow:0 3px 12px #063d6625}
.photo-preview strong,.photo-preview small{display:block;overflow-wrap:anywhere}.photo-preview strong{font-size:13px;color:#075b83}.photo-preview small{font-size:11px;color:#50788a;margin-top:6px}
.file-feedback{font-size:12px;font-weight:650;color:#a7353a;margin:8px 0}
.photo-card img{object-fit:cover}.photo-card{overflow:hidden;border-radius:13px}
/* Calendar: no tiny 7px labels; mobile can scroll while preserving 7 columns */
.calendar-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:11px;scrollbar-color:#9fcbdc #ecf5fa;scrollbar-width:thin}
.calendar-scroll:focus-visible{outline:2px solid #0886bf;outline-offset:2px}
.cal-weekdays,.calendar-grid{min-width:700px}.cal-event{line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.cal-controls button{min-width:39px;min-height:39px}.cal-toolbar{gap:12px;flex-wrap:wrap}
.cal-legend{display:flex;flex-wrap:wrap;gap:12px}
.monthly-chart{border-color:#dce9ee}.perf-legend{font-size:12px}.month-col small{font-size:11px}.worker-scores{max-height:360px}
.performance-kpis>div{background:linear-gradient(180deg,#f6fbfe,#eef9f7);border-color:#d7e9ef;border-radius:14px;padding:17px}.performance-kpis b{font-size:28px;color:#086b9c}
.score-row b{font-size:12px}.score-row small{font-size:11px}.metric-note{font-size:12px}
.back-link,.reset-link,.text-link{color:#076caa}.back-link:hover,.reset-link:hover,.text-link:hover{text-decoration:underline}
.sidebar-scrim{display:none}.sidebar-scrim[hidden]{display:none!important}
:focus-visible{outline:3px solid #42a9df;outline-offset:2px}
@media(max-width:1240px){.sidebar{width:228px;min-width:228px}.task-row{grid-template-columns:40px minmax(0,1fr) 81px 86px 111px 13px;gap:8px}.mini-progress{width:78px}}
@media(max-width:1050px){.sidebar{width:210px;min-width:210px}.dashboard-layout{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-row{grid-template-columns:42px minmax(0,1fr) 85px 92px 119px 13px}.mini-progress{width:85px}.editor-side{position:static}}
@media(max-width:760px){body.menu-open{overflow:hidden}.sidebar{left:-280px;width:270px;min-width:270px;z-index:61;height:100dvh;max-height:100dvh;overflow-y:auto;transition:transform .22s ease;transform:translateX(0);box-shadow:none}.sidebar.open{left:0;box-shadow:12px 0 40px #00243a40}.sidebar-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:60;background:rgba(5,33,58,.62);border:0;width:100%;height:100%;cursor:pointer}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid #d4e7f0;background:#f0f9fe;color:#065b98;border-radius:11px;font-size:18px}.topbar{min-height:64px;padding:0 15px;gap:8px}.breadcrumbs{font-size:12px}.top-right{margin-left:auto;gap:9px}.today-label{display:none}.top-right .avatar{display:none}.content{padding:23px 16px 38px}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr}.page-heading{align-items:start}.task-row{grid-template-columns:38px minmax(0,1fr) auto;row-gap:7px;padding:14px 9px}.task-row-icon{grid-row:1/span 2}.task-row-main{grid-column:2}.task-row-progress{grid-column:2;grid-row:2;display:flex;align-items:center;gap:8px}.task-row-progress .mini-progress{margin:0}.row-date{grid-column:3;grid-row:2;justify-self:end}.task-row .pill{grid-column:3;grid-row:1;justify-self:end}.row-arrow{display:none}.cal-weekdays,.calendar-grid{min-width:700px}.cal-event{font-size:11px}.panel{padding:17px}.tasks-panel{padding:16px}.stats-grid{gap:11px}.stat-card{min-height:137px;padding:15px}.stat-card>b{font-size:28px}.performance-dashboard{padding:18px}}
@media(max-width:540px){.dashboard-aside{grid-template-columns:1fr}.page-heading{gap:14px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.page-heading .btn{width:100%}.panel-heading{flex-wrap:wrap;gap:8px}.panel-heading .text-link{white-space:normal}.topbar{padding:0 11px}.sync-status{font-size:10px}.stats-grid{gap:9px}.stat-symbol{width:35px;height:35px}.stat-symbol .ui-icon{width:18px;height:18px}.stat-card{padding:12px;min-height:126px}.stat-card>b{font-size:27px}.stat-card>span:not(.stat-symbol){font-size:11px}.stat-trend{font-size:10px}.task-tabs{gap:3px}.task-tabs a{padding:8px 9px;font-size:11px}.task-row{grid-template-columns:32px minmax(0,1fr) auto;column-gap:8px}.task-row-icon{width:32px;height:32px}.task-row-main b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-row-main small{font-size:10px}.task-row-progress small{font-size:10px}.row-date{font-size:10px}.pill{font-size:10px;padding:6px 7px}.mini-progress{width:43px;min-width:43px}.list-title{gap:4px}.list-title span{font-size:11px}.monthly-chart{gap:5px}.month-col small{font-size:9px}.performance-kpis{gap:8px}.performance-kpis>div{padding:11px}.performance-kpis b{font-size:22px}.cal-toolbar{align-items:flex-start}.cal-heading h2{font-size:18px}.cal-legend{gap:8px}.calendar-feedback{padding:10px 3px}.file-feedback{font-size:12px}.app-footer{padding:17px;gap:8px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* PysNotebook OFICIAL 1.6.0: menú accesible en pantallas bajas y tabletas. */
@media (min-width:761px){
 .sidebar{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
 .sidebar>.brand,.sidebar>.sidebar-label,.sidebar>.sidebar-company{flex:0 0 auto;}
 .sidebar>.brand{margin-bottom:clamp(11px,3dvh,32px);}
 .sidebar>.sidebar-nav{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(196,236,255,.45) transparent;}
 .sidebar>.sidebar-nav::-webkit-scrollbar{width:5px;}
 .sidebar>.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(196,236,255,.45);border-radius:5px;}
 .sidebar>.sidebar-tip{flex:0 1 auto;min-height:0;overflow:hidden;}
 .sidebar>.sidebar-bottom{flex:0 0 auto;min-height:0;margin-top:auto;padding-top:8px;background:rgba(5,44,84,.16);}
 .sidebar>.sidebar-bottom .profile-chip{padding-top:11px;padding-bottom:10px;}
 .sidebar>.sidebar-bottom .logout{min-height:38px;align-items:center;padding:9px 5px;}
}
@media (min-width:761px) and (max-height:830px){
 .sidebar{padding-top:13px;padding-bottom:8px;}
 .sidebar>.brand{margin-bottom:16px;}
 .sidebar>.sidebar-tip{display:none;}
 .sidebar .nav-link{min-height:40px;padding:9px 12px;}
 .sidebar>.sidebar-bottom .profile-chip{padding-top:7px;padding-bottom:6px;}
}
@media (min-width:761px) and (max-height:520px){
 .sidebar>.brand{margin-bottom:8px;}
 .sidebar-label{margin-bottom:5px;}
 .sidebar .nav-link{min-height:34px;padding:6px 10px;}
 .sidebar>.sidebar-bottom .profile-chip{padding-top:5px;padding-bottom:4px;}
 .sidebar>.sidebar-bottom .logout{padding:5px;min-height:30px;}
}
@media (max-width:760px){
 /* Menú desplegable móvil: puede desplazarse completo hasta el cierre de sesión. */
 .sidebar{height:100vh;height:100dvh;max-height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
 .sidebar>.sidebar-nav{flex:0 0 auto;overflow:visible;}
 .sidebar>.sidebar-tip{flex:0 0 auto;overflow:visible;}
 .sidebar>.sidebar-bottom{flex:0 0 auto;margin-top:auto;padding-bottom:8px;}
}
/* Mensaje discreto al actualizar una subtarea sin desplazar la página. */
.pys-action-toast{position:fixed;right:22px;bottom:22px;z-index:85;max-width:min(420px,calc(100vw - 32px));background:#073d64;color:#fff;border:1px solid #54afd2;box-shadow:0 10px 30px #00325945;border-radius:12px;padding:13px 18px;font-size:13px;font-weight:650;pointer-events:none;}
.pys-action-toast.error{background:#8a2632;border-color:#d56a78;}
@media(max-width:760px){.pys-action-toast{right:12px;bottom:12px;}}
/* PysNotebook 1.6.1: categorías y análisis multiempresa */
.pn-categories-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:20px;align-items:start}
.pn-category-list{display:grid;gap:10px}
.pn-category-row{padding:13px 0;border-bottom:1px solid #e6eef4;display:flex;gap:15px;justify-content:space-between;align-items:start}
.pn-category-row>div:first-child{min-width:0;display:grid;gap:5px}
.pn-category-row small{color:#6a7d91;font-size:12px}
.pn-category-row details{min-width:150px}
.pn-category-row summary{color:#0763ad;cursor:pointer;font-weight:700}
.pn-category-edit{padding:12px 0;display:grid;gap:8px;min-width:min(240px,55vw)}
.pn-category-edit form{display:grid;gap:8px}
.pn-inline-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 20px}
.pn-inline-filter label{flex:1 1 190px;min-width:150px;margin:0}
.pn-inline-filter .btn{flex:0 0 auto}
.pn-performance-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0;padding:5px;background:#eff5f8;border-radius:13px}
.pn-performance-tabs a{font-size:13px;font-weight:700;padding:11px 16px;border-radius:9px;color:#315572;text-decoration:none}
.pn-performance-tabs a[aria-current="page"]{background:#fff;color:#0065aa;box-shadow:0 1px 5px #193e5d18}
.pn-performance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.pn-performance-kpis>div{background:#f1f7fa;border-radius:14px;padding:18px;display:grid;gap:8px}
.pn-performance-kpis small{color:#59758c;font-size:12px}
.pn-performance-kpis b{font-size:27px;color:#063d6f}
.pn-table-scroll{overflow-x:auto;max-width:100%}
.pn-metrics-table{width:100%;border-collapse:collapse;font-size:13px;min-width:675px}
.pn-metrics-table th,.pn-metrics-table td{text-align:left;padding:13px 9px;border-bottom:1px solid #e5edf3}
.pn-metrics-table thead th{background:#f3f7fa;color:#3c5567}
.pn-metrics-table tbody th{font-weight:700;color:#0b4268}
@media(max-width:1000px){.pn-categories-layout{grid-template-columns:1fr}.pn-performance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pn-performance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pn-performance-kpis>div{padding:13px}.pn-performance-kpis b{font-size:22px}}



/* === PysNotebook 1.6.3: selector deslizante CLARO / OSCURO === */
.theme-toggle{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;flex:0 0 auto;min-height:44px;padding:4px 6px 4px 4px;border-radius:999px;border:1px solid #d7e3eb;background:transparent;color:#155b7b;font-size:12px;font-weight:800;line-height:1;transition:color .2s ease,border-color .2s ease,background .2s ease;box-shadow:none}
.theme-toggle:hover{background:rgba(7,85,168,.05);border-color:#a9c8d9}
.theme-toggle:focus-visible{outline:3px solid #4dbcef;outline-offset:3px}
.theme-toggle .theme-icon{position:relative;display:inline-block;flex:0 0 auto;width:78px;height:38px;border-radius:999px;overflow:hidden;font-size:0;color:transparent;text-indent:-9999px;background:linear-gradient(180deg,#fbfbfb 0%,#efefef 100%);border:2px solid #e7e7e7;box-shadow:inset 0 1px 1px rgba(255,255,255,.85), inset 0 -1px 3px rgba(0,0,0,.08);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease}
.theme-toggle .theme-icon::before{content:'☀';position:absolute;top:50%;left:9px;transform:translateY(-50%);font-size:18px;line-height:1;color:#f2c230;text-indent:0;transition:left .35s ease,right .35s ease,color .35s ease,transform .35s ease,content .35s ease;text-shadow:0 0 8px rgba(242,194,48,.22)}
.theme-toggle .theme-icon::after{content:'';position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;background:linear-gradient(180deg,#ffffff 0%,#f2f2f2 100%);box-shadow:0 2px 7px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.9);transform:translateX(42px);transition:transform .35s cubic-bezier(.22,.7,.24,1),background .35s ease,box-shadow .35s ease}
.theme-toggle .theme-label{font-weight:800;color:inherit;letter-spacing:.01em;min-width:44px}
.theme-toggle-auth{margin-left:auto;margin-bottom:26px;display:flex}
.theme-toggle[data-mode="dark"] .theme-icon{background:#000;border-color:#111;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.theme-toggle[data-mode="dark"] .theme-icon::before{content:'☾';left:49px;color:#ffffff;transform:translateY(-52%)}
.theme-toggle[data-mode="dark"] .theme-icon::after{transform:translateX(0)}
@media(max-width:1150px){.topbar .theme-toggle{padding:3px;border-color:transparent;background:transparent}.topbar .theme-toggle .theme-label{display:none}}
@media(max-width:760px){.topbar .theme-toggle{min-width:auto;min-height:auto;padding:2px;background:transparent;border-color:transparent}.top-right{gap:8px}.topbar .theme-toggle .theme-icon{width:70px;height:34px}.topbar .theme-toggle .theme-icon::after{width:24px;height:24px;top:3px;transform:translateX(38px)}.topbar .theme-toggle[data-mode="dark"] .theme-icon::after{transform:translateX(0)}.topbar .theme-toggle[data-mode="dark"] .theme-icon::before{left:45px}}

html[data-theme="dark"]{
 color-scheme:dark;
 --ink:#ecf4fc;--bg:#091724;--line:#294356;--muted:#adbed0;
 --navy:#d4e7f3;--navy2:#aec9dd;--blue:#3eacff;--blue2:#57c2ff;--softblue:#15364e;
 --shadow:0 10px 28px rgba(0,0,0,.2);
}
html[data-theme="dark"] body{background:#091724;color:#ecf4fc}
html[data-theme="dark"] .sidebar{background:linear-gradient(170deg,#07345a 0%,#061f39 68%,#073c39 100%)}
html[data-theme="dark"] :is(.topbar,.panel,.stat-card,.due-card,.small-panel,.install-card,.auth-panel,.user-options[open] .option-body,.sync-notice){background:#14283a;border-color:#28455b;color:#eaf4ff;box-shadow:0 6px 22px #00000020}
html[data-theme="dark"] :is(.panel,.stat-card,.due-card,.small-panel,.auth-panel,.install-card):hover{border-color:#365a73}
html[data-theme="dark"] :is(.topbar,.app-footer,.task-row,.checklist-item,.pn-category-row,.pn-metrics-table th,.pn-metrics-table td,.task-tabs){border-color:#2c4659}
html[data-theme="dark"] :is(.page-heading h1,.panel h2,.task-row-main b,.breadcrumbs b,.pn-metrics-table tbody th,.profile-data b,.due-card b,.small-panel-title,.cal-heading h2){color:#e7f3ff}
html[data-theme="dark"] :is(.page-heading p,.panel-heading p,.panel>p,.task-row-main small,.task-row-progress small,.row-date,.stat-card>span:not(.stat-symbol),.stat-trend,.breadcrumbs,.app-footer,.help-text,.pn-category-row small,.pn-performance-kpis small,.pn-metrics-table thead th,.panel small,.due-card small,.profile-banner small,.today-label){color:#adbed0}
html[data-theme="dark"] :is(.stat-card b,.pn-performance-kpis b,.performance-kpis b,.pn-metrics-table td,.score-row b){color:#ebf5ff}
html[data-theme="dark"] :is(.btn.secondary,.cal-controls button,.mobile-menu,.user-options summary,.pn-performance-tabs a[aria-current="page"]){background:#193b53;color:#d9edff;border-color:#375d72}
html[data-theme="dark"] :is(.btn.secondary:hover,.cal-controls button:hover,.task-tabs a:hover){background:#24516c;color:#fff}
html[data-theme="dark"] :is(.btn.ghost,.task-tabs a[aria-current="page"],.pn-performance-tabs){background:#173b56;color:#94d6ff}
html[data-theme="dark"] .task-row:hover{background:#1c3850}
html[data-theme="dark"] :is(.today-label,.date-large,.editor-note,.profile-banner,.action-card .tip-line,.version-pill,.update-steps>div,.archive-list,.pn-performance-kpis>div,.performance-kpis>div,.completion-guide,.user-options summary,.upload-zone,.photo-preview,.pn-performance-tabs,.pn-metrics-table thead th,.pn-performance-tabs a[aria-current="page"],.auth-right,.profile-chip){background:#183448;color:#dceefa;border-color:#35536a}
html[data-theme="dark"] :is(.auth-login,.auth-login h2,.auth-right p,.auth-foot){color:#eaf4ff}
html[data-theme="dark"] .auth-screen{background:#091724}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,.updater-form input){background:#0b2031;color:#edf6ff;border-color:#3c5b72}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8ca5bb}
html[data-theme="dark"] :is(input,select,textarea):focus{background:#0e293d;border-color:#49a9da!important;box-shadow:0 0 0 3px #3292c72b}
html[data-theme="dark"] input[type="date"]{color-scheme:dark}
html[data-theme="dark"] :is(.cal-day,.cal-day.off,.cal-day.today){background:#102638;border-color:#2c4659}
html[data-theme="dark"] .cal-day.today{background:#17415a}
html[data-theme="dark"] :is(.cal-date,.cal-weekdays,.cal-toolbar,.cal-heading){color:#eaf4ff}
html[data-theme="dark"] :is(.cal-event.pendiente,.status-pendiente,.pill.status-pendiente){background:#324356;color:#d2e5f6}
html[data-theme="dark"] :is(.cal-event.en_proceso,.status-en_proceso,.pill.status-en_proceso){background:#113e5c;color:#9fdefe}
html[data-theme="dark"] :is(.cal-event.terminada,.status-terminada,.pill.status-terminada){background:#154b40;color:#a9efc8}
html[data-theme="dark"] :is(.priority-media,.task-row-icon,.stat-symbol.s-blue,.stat-symbol.s-purple,.stat-symbol.s-orange,.s-blue,.s-purple,.s-orange,.admin-tag){background:#17435e;color:#a0dcff}
html[data-theme="dark"] :is(.priority-baja,.task-row-icon.baja,.stat-symbol.s-green,.s-green,.account-state.on){background:#1b4e41;color:#a1f4bf}
html[data-theme="dark"] :is(.priority-alta,.task-row-icon.alta,.account-state.off,.flash.error){background:#562d3b;color:#ffc4ce;border-color:#815061}
html[data-theme="dark"] .flash.success{background:#174338;color:#b4f0d2;border-color:#2d795e}
html[data-theme="dark"] .mini-progress,html[data-theme="dark"] .large-progress,html[data-theme="dark"] .score-track{background:#274459}
html[data-theme="dark"] :is(.pn-performance-tabs a,.task-tabs a,.text-link,.back-link){color:#8ed3ff}
html[data-theme="dark"] .theme-toggle:focus-visible{outline-color:#8ed3ff}
html[data-theme="dark"] .user-options[open] .option-body{background:#193c50}
html[data-theme="dark"] .upload-zone:hover{background:#224960}
html[data-theme="dark"] .photo-card img{background:#213648}
html[data-theme="dark"] .pys-action-toast{background:#174663;color:#fff}
html[data-theme="dark"] .sync-notice{background:#12344b;color:#e6f4ff;border-color:#2c796c}
html[data-theme="dark"] .pn-metrics-table thead th{color:#cfe6f7}
html[data-theme="dark"] .pn-category-row summary{color:#8dd5ff}
html[data-theme="dark"] .pn-categories-layout details[open]{color:#e5f4ff}
html[data-theme="dark"] .stat-card:hover{background:#19364c}

html[data-theme="dark"] .theme-toggle{color:#d9edff;border-color:#33566d;background:rgba(16,33,48,.28)}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(36,81,108,.45);border-color:#4b748f}
html[data-theme="dark"] .theme-toggle .theme-label{color:#d9edff}
html[data-theme="dark"] .theme-toggle .theme-icon{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 2px 6px rgba(0,0,0,.25)}


/* PysNotebook 1.6.5 · Centro de avisos, solo campana. */
.pn-bell-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}
.pn-bell-button{position:relative;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#f3f8fd;border:1px solid #dbe8f2;color:#293c4e;transition:background .15s,border-color .15s;flex:0 0 auto}
.pn-bell-button:hover{background:#e8f3fc;border-color:#a7cde3}
.pn-bell-button .ui-icon{width:25px;height:25px;stroke-width:1.8}
.pn-bell-badge{position:absolute;top:-7px;right:-8px;min-width:20px;height:20px;padding:1px 5px;border-radius:999px;display:grid;place-items:center;background:#ff4a16;color:#fff;font-size:10px;font-weight:900;border:2px solid #fff;line-height:1}
.pn-bell-badge[hidden],.pn-bell-panel[hidden]{display:none!important}
.pn-bell-panel{position:absolute;top:calc(100% + 11px);right:-38px;width:min(400px,calc(100vw - 24px));z-index:60;box-shadow:0 16px 48px #07264033;border:1px solid #dbe9f3;background:#fff;border-radius:17px;overflow:hidden;color:#193d55}
.pn-bell-panel-head{padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e5eff5}
.pn-bell-panel-head strong{font-size:14px;display:block;color:#0a3b5d}
.pn-bell-panel-head span{display:block;font-size:11px;color:#768fa4;margin-top:4px}
.pn-bell-close{font-size:24px;line-height:1;background:transparent;color:#738ca0;border:0;padding:3px 9px;border-radius:8px}
.pn-bell-close:hover{background:#eff5fa;color:#143e58}
.pn-bell-items{max-height:min(450px,58vh);overflow-y:auto;overscroll-behavior:contain}
.pn-bell-item{display:flex;gap:10px;align-items:start;padding:14px 13px;border-bottom:1px solid #edf2f6;min-width:0}
.pn-bell-item.is-unread{background:#f0f9ff}
.pn-bell-type{width:32px;height:32px;display:grid;place-items:center;background:#e1effd;border-radius:10px;color:#1875b4;font-size:15px;font-weight:900;flex:0 0 auto}
.pn-bell-item:has(a[href]) .pn-bell-copy{min-width:0;flex:1}
.pn-bell-link{font-weight:800;font-size:12px;color:#124b73;display:inline-block;line-height:1.35}
.pn-bell-link:hover{text-decoration:underline;color:#087abb}
.pn-bell-copy p{font-size:11px;margin:5px 0 5px;color:#567084;line-height:1.5;overflow-wrap:anywhere}
.pn-bell-copy small{font-size:10px;color:#879ba9}
.pn-bell-read{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;background:#e2f5eb;color:#16845d;border:0;border-radius:9px;font-size:13px;font-weight:900}
.pn-bell-read:hover{background:#c5ead9}
.pn-bell-empty{text-align:center;padding:30px 16px;font-size:12px;color:#657b8c}
.pn-bell-panel-foot{padding:11px 16px;border-top:1px solid #e5eff5;background:#fbfdff;text-align:right}
.pn-bell-mark-all{background:transparent;color:#1475a8;border:0;font-size:11px;font-weight:800;padding:8px}
.pn-bell-mark-all:hover{text-decoration:underline}
.pn-bell-mark-all:disabled{opacity:.4;cursor:default}
html[data-theme="dark"] .pn-bell-button{background:#19364d;border-color:#3a5b73;color:#e9f7ff}
html[data-theme="dark"] .pn-bell-button:hover{background:#225173}
html[data-theme="dark"] .pn-bell-panel{background:#152d40;border-color:#35536a;box-shadow:0 18px 45px #0009;color:#e7f4ff}
html[data-theme="dark"] .pn-bell-panel-head,html[data-theme="dark"] .pn-bell-panel-foot,html[data-theme="dark"] .pn-bell-item{border-color:#355065}
html[data-theme="dark"] .pn-bell-panel-head strong,html[data-theme="dark"] .pn-bell-link{color:#e4f3ff}
html[data-theme="dark"] .pn-bell-panel-head span,html[data-theme="dark"] .pn-bell-copy p,html[data-theme="dark"] .pn-bell-copy small{color:#afc6d8}
html[data-theme="dark"] .pn-bell-item.is-unread{background:#1d4258}
html[data-theme="dark"] .pn-bell-type{background:#255b76;color:#b5e9ff}
html[data-theme="dark"] .pn-bell-panel-foot{background:#112a3b}
html[data-theme="dark"] .pn-bell-close{color:#b8d4e5}
html[data-theme="dark"] .pn-bell-badge{border-color:#19364d}
@media(max-width:760px){.topbar{gap:8px}.pn-bell-button{width:38px;height:38px}.pn-bell-button .ui-icon{width:22px;height:22px}.pn-bell-panel{position:fixed;top:65px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 80px)}.pn-bell-items{max-height:calc(100dvh - 220px)}}
@media(max-width:420px){
 .topbar .sync-status,.topbar .today-label,.topbar .avatar.small{display:none!important}
 .topbar .breadcrumbs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
 .topbar .top-right{gap:5px;flex:0 0 auto}
 .topbar .theme-toggle .theme-icon{width:61px;height:32px}
 .topbar .theme-toggle .theme-icon::after{width:22px;height:22px;transform:translateX(29px)}
 .topbar .theme-toggle[data-mode="dark"] .theme-icon::after{transform:translateX(0)}
 .topbar .theme-toggle[data-mode="dark"] .theme-icon::before{left:39px}
}
@media(prefers-reduced-motion:reduce){.pn-bell-button{transition:none}}

/* PysNotebook 1.6.6 · Evidencias por subtarea, sin módulo global. */
.pn-subtask-create{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:9px;min-width:0}
.pn-subtask-create .subtask-create{flex:1 1 250px;min-width:0;margin:0}
.pn-ref-picker{display:inline-flex;align-items:center;max-width:100%;border:1px dashed #9ac7d8;background:#edf9ff;color:#075d8c;cursor:pointer;font-weight:700;font-size:12px;padding:9px 12px;border-radius:11px;margin:0;position:relative;min-height:38px}
.pn-ref-picker>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.pn-ref-picker input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pn-ref-picker:focus-within{outline:2px solid #22a7e6;outline-offset:2px}
.pn-subtask-card{border-bottom:1px solid #e6edf3;padding-bottom:10px;margin-bottom:11px;min-width:0}
.pn-subtask-card .checklist-item{border-bottom:0;padding-bottom:2px;margin-bottom:3px;align-items:flex-start}
.pn-subtask-content{min-width:0;flex:1;display:grid;gap:6px}
.pn-subtask-content strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.pn-subtask-result{font-size:11px;color:#167656;font-weight:700}
.pn-subtask-images{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:4px}
.pn-subtask-images>span{font-size:11px;color:#637d91;font-weight:700}
.pn-subtask-images a{display:inline-flex;border-radius:9px;border:1px solid #bcd7e8;overflow:hidden}
.pn-subtask-images img{width:74px;height:59px;object-fit:cover;display:block}
.pn-add-ref{margin:3px 0 0 43px}
.pn-add-ref summary{color:#08699b;font-size:12px;font-weight:700;cursor:pointer;display:list-item}
.pn-add-ref form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:11px}
.pn-add-ref form label{font-size:12px;min-width:190px;flex:1 1 210px}
.pn-add-ref input[type=file]{width:100%;font-size:12px}
.pn-inline-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pn-inline-add>input[name=title]{flex:1 1 220px;min-width:140px}
.pn-legacy-evidence{margin-top:16px;border-top:1px solid #dce9f1;padding-top:12px}
.pn-legacy-evidence summary{cursor:pointer;color:#526e81;font-weight:700;font-size:12px}
.pn-subtask-dialog{border:1px solid #c4dae9;background:#fff;color:#143954;border-radius:18px;padding:24px;width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 22px 90px rgba(0,28,57,.24)}
.pn-subtask-dialog::backdrop{background:rgba(5,22,36,.62);backdrop-filter:blur(3px)}
.pn-subtask-dialog h3{font-size:21px;margin:0 0 7px}
.pn-subtask-dialog p{font-size:13px;color:#536e82;margin:5px 0 13px;overflow-wrap:anywhere}
.pn-completion-options{border:0;padding:0;margin:0 0 15px;display:grid;gap:8px}
.pn-completion-options legend{font-size:13px;font-weight:750;margin-bottom:10px}
.pn-completion-options label{display:flex;align-items:center;gap:10px;margin:0;padding:11px 12px;background:#f1f7fb;border:1px solid #d5e3ed;border-radius:10px;font-size:13px;cursor:pointer}
.pn-completion-options label input{flex:0 0 auto;accent-color:#0878b7}
.pn-completion-photo{display:grid;gap:5px;font-size:13px;font-weight:650;margin-bottom:15px}
.pn-completion-photo input{width:100%;margin-top:4px}
.pn-completion-photo small{font-size:11px;color:#71879a}
.pn-completion-photo[hidden]{display:none!important}
.pn-dialog-actions{display:flex;justify-content:end;gap:9px;flex-wrap:wrap}
.pn-dialog-feedback{font-size:12px;color:#a33237}
html[data-theme=dark] .pn-subtask-dialog{background:#152b3d;color:#edf7ff;border-color:#37566d}
html[data-theme=dark] .pn-subtask-dialog p{color:#b4cde0}
html[data-theme=dark] .pn-completion-options label{background:#1a384c;border-color:#345b73}
html[data-theme=dark] .pn-ref-picker{background:#173d51;color:#a6dcfa;border-color:#416b83}
html[data-theme=dark] .pn-subtask-card{border-color:#35536a}
html[data-theme=dark] .pn-subtask-result{color:#8be4ae}
html[data-theme=dark] .pn-legacy-evidence{border-color:#35536a}
@media(max-width:760px){.pn-subtask-dialog{padding:18px}.pn-add-ref{margin-left:35px}.pn-dialog-actions .btn{flex:1 1 auto}.pn-subtask-images img{width:64px;height:52px}}
