:root{--gc-bg:#f3f6fa;--gc-sidebar:#172033;--gc-sidebar-2:#202b43;--gc-primary:#2563eb;--gc-primary-2:#1d4ed8;--gc-border:#e7ebf1;--gc-text:#172033;--gc-muted:#748095;--gc-shadow:0 10px 30px rgba(25,45,80,.06)}
*{box-sizing:border-box}body{min-height:100vh;background:var(--gc-bg);color:var(--gc-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;flex:0 0 236px;background:linear-gradient(180deg,var(--gc-sidebar),#111827);color:#fff;position:fixed;inset:0 auto 0 0;padding:20px 14px;display:flex;flex-direction:column;z-index:1000}.brand-wrap{display:flex;align-items:center;gap:10px;padding:4px 7px 18px}.brand-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#60a5fa);box-shadow:0 6px 15px rgba(59,130,246,.25)}.brand{font-size:1.25rem;font-weight:800;letter-spacing:-.035em;color:#fff}.brand span{color:#7fb0ff}.brand-wrap small{display:block;color:#8f9bb1;font-size:.68rem;margin-top:-2px}.user-mini{display:flex;gap:10px;align-items:center;padding:12px 8px;margin:4px 2px 16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:14px}.avatar,.top-avatar{display:grid;place-items:center;font-weight:800;background:#e8f0ff;color:#2356ba;border-radius:10px}.avatar{width:35px;height:35px;font-size:.85rem}.user-meta{display:flex;flex-direction:column;min-width:0}.user-meta strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-meta small{color:#a7b1c4;font-size:.7rem;margin-top:1px}.sidebar .nav-section{color:#75829a;font-size:.62rem;font-weight:800;letter-spacing:.11em;padding:0 11px 7px}.sidebar .nav-link{color:#cbd3df;border-radius:10px;padding:9px 11px;margin:2px 0;display:flex;align-items:center;gap:10px;font-size:.83rem;position:relative}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.07);color:#fff}.sidebar .nav-link i{width:18px;font-size:.92rem;color:#93a6c7}.sidebar .nav-link:hover i,.sidebar .nav-link.active i{color:#8bb5ff}.nav-count{margin-left:auto;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;font-size:.65rem;background:#ef4444;color:white}.sidebar-bottom{margin-top:auto;padding:12px 2px 0;border-top:1px solid rgba(255,255,255,.08)}.btn-light-soft{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);color:#eaf0fa;border-radius:10px}.btn-light-soft:hover{background:rgba(255,255,255,.13);color:#fff}.main-area{margin-left:236px;width:calc(100% - 236px);min-width:0}.topbar{height:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--gc-border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:900}.eyebrow{font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:#8a95a7;font-weight:800;margin-bottom:1px}.topbar-user{display:flex;align-items:center;gap:9px;font-size:.78rem;color:#566176}.top-avatar{width:32px;height:32px;font-size:.78rem}.page-wrap{width:100%;max-width:1440px;margin:0 auto;padding:28px 30px 38px}.card{border:1px solid var(--gc-border)!important;border-radius:16px!important;box-shadow:var(--gc-shadow)!important}.card-body{padding:20px}.stat-card .card-body{padding:18px}.stat-card{min-height:126px;transition:transform .15s ease,box-shadow .15s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(25,45,80,.10)!important}.auth-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#eaf2ff,transparent 45%),linear-gradient(135deg,#f6f9fd,#eef3f9);padding:24px}.auth-card{width:min(410px,100%);background:#fff;border:1px solid var(--gc-border);border-radius:20px;padding:34px;box-shadow:0 24px 70px rgba(25,45,80,.10)}.auth-card-wide{width:min(760px,100%)}.brand-dark{color:#172033}.permission-group{border-bottom:1px solid #eef1f4;padding-bottom:16px}.permission-group:last-child{border-bottom:0}.table{--bs-table-bg:transparent}.table> :not(caption)>*>*{padding:.78rem .9rem;border-bottom-color:#edf0f4}.table thead th{font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;color:#7b879a;font-weight:800}.badge{font-weight:700}.btn{border-radius:10px}.form-control,.form-select{border-color:#dfe4ec;border-radius:10px;padding:.62rem .75rem}.form-control:focus,.form-select:focus{border-color:#88aef8;box-shadow:0 0 0 .2rem rgba(37,99,235,.10)}.section-title{font-size:.92rem;font-weight:800}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px}.status-pending{background:#f59e0b}.status-approved{background:#10b981}.status-rejected{background:#ef4444}.status-draft{background:#94a3b8}@media(max-width:1050px){.sidebar{width:210px;flex-basis:210px}.main-area{margin-left:210px;width:calc(100% - 210px)}.page-wrap{padding-left:20px;padding-right:20px}}@media(max-width:820px){.sidebar{position:static;width:100%;height:auto;min-height:0;padding:12px}.app-shell{display:block}.main-area{margin-left:0;width:100%}.sidebar .nav{flex-direction:row!important;flex-wrap:wrap}.sidebar .nav-section{width:100%;margin-top:8px}.sidebar-bottom{border-top:0;padding-top:6px}.user-mini{display:none}.topbar{position:static;padding:0 18px}.page-wrap{padding:18px 16px 28px}}

/* --- Authentication / setup refinement --- */
.auth-page{padding:32px 20px;align-items:center;overflow-y:auto}.auth-card{width:min(430px,100%);padding:34px 34px 30px}.auth-card-wide{width:min(760px,100%);padding:34px 38px 32px}.auth-card .brand-dark{font-size:1.35rem}.setup-card{width:min(760px,100%)}.setup-head{max-width:600px;margin:0 auto 26px}.setup-head .setup-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;margin:0 auto 12px;background:#eaf2ff;color:#2563eb}.setup-subtitle{font-size:.9rem;color:#748095}.auth-form .form-label{font-size:.78rem;font-weight:700;color:#4a5568;margin-bottom:.4rem}.auth-form .form-control{min-height:45px;background:#fff}.auth-form .row{--bs-gutter-x:18px;--bs-gutter-y:16px}.auth-actions{padding-top:4px}.auth-actions .btn{min-height:45px;font-weight:700}.auth-note{font-size:.72rem;color:#8a95a7;text-align:center;margin-top:16px}.auth-card-wide hr{border-color:#edf0f4}.
@media(max-width:600px){.auth-page{padding:18px 12px}.auth-card,.auth-card-wide{padding:26px 20px}.auth-form .row>div{width:100%}}

/* GradeCore - constructor de libros */
.gc-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem}.section-title{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1.25rem}.section-title>span{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--gc-primary,#eef2ff);color:var(--gc-primary-text,#3b4cca);font-weight:700;flex:0 0 auto}.info-tile{padding:1rem 1.1rem;border:1px solid var(--gc-border,#e8ebf0);border-radius:14px;background:var(--gc-surface,#fff)}.info-tile span{display:block;color:#7b8494;font-size:.78rem;margin-bottom:.25rem}.info-tile strong{font-size:1rem}.empty-icon{width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;background:#f1f4ff;color:#5264e8;font-size:1.6rem}.empty-inline{padding:1rem;border:1px dashed #d9dee8;border-radius:12px;background:#fafbfc;color:#687386}.guide-step{display:flex;gap:.8rem;padding:.85rem 0}.guide-step>span{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f0f3f8;font-size:.8rem;font-weight:700;flex:0 0 auto}.guide-step strong{font-size:.9rem}.guide-step p{font-size:.8rem;color:#727c8d;margin:.2rem 0 0}.sticky-lg-top{z-index:1}@media(max-width:991.98px){.gc-page-head{align-items:flex-start;flex-direction:column}.gc-page-head .btn{width:100%}}
