@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#092747;--blue:#124271;--gold:#bd9853;--bg:#f4f6fa;--muted:#68788a;--border:#e3eaf1;--ink:#152a41;--white:#fff;--green:#157453}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'DM Sans',sans-serif}h1,h2,h3,h4{font-family:Manrope,sans-serif;margin:0 0 12px;letter-spacing:-.035em}p{line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7c5ed;outline-offset:2px}.layout{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:white;padding:30px 18px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 22px;border-bottom:1px solid #ffffff25}.brand-mark{background:white;border-radius:13px;padding:7px;min-width:56px;height:56px;display:flex;align-items:center;justify-content:center}.brand-mark img{width:55px;max-height:42px;object-fit:contain}.brand strong{display:block;font:800 16px Manrope}.brand small{color:#b6c6d8;font-size:11px;letter-spacing:.04em}.nav-label{font-size:10px;letter-spacing:.13em;color:#93abc4;margin:10px 14px}.nav-button{display:flex;gap:12px;align-items:center;border:0;color:#bbccdf;background:transparent;border-radius:12px;padding:13px 15px;width:100%;text-align:left;font-weight:600}.nav-button:hover,.nav-button.active{background:#ffffff14;color:white}.side-bottom{margin-top:auto;border-top:1px solid #ffffff25;padding-top:16px}.side-bottom p{color:#adc1d7;font-size:12px}.main{min-width:0}.topbar{height:83px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 5%;gap:15px}.topbar p{margin:3px 0 0;font-size:12px;color:var(--muted)}.avatar{width:39px;height:39px;background:#e6eef8;color:var(--navy);border-radius:13px;display:grid;place-items:center;font-weight:800}.user-chip{display:flex;align-items:center;gap:12px}.user-chip small{display:block;color:var(--muted)}.content{padding:36px 5% 76px;max-width:1560px;margin:auto}.kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--gold)}.hero{position:relative;background:linear-gradient(116deg,#092747,#164b77);border-radius:23px;padding:42px 42px;color:white;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:248px}.hero:after{content:'';position:absolute;right:-80px;top:-120px;border:65px solid #ffffff0a;width:350px;height:350px;border-radius:50%}.hero h1{font-size:clamp(28px,3vw,41px);line-height:1.13;max-width:630px}.hero p{max-width:570px;color:#d9e5f1;margin-bottom:0}.hero .kicker{color:#f2d4a0}.hero-icon{font-size:100px;opacity:.5;z-index:1}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:22px 0 39px}.stat,.panel,.course-card{background:white;border:1px solid var(--border);border-radius:16px;box-shadow:0 5px 22px #1e38560a}.stat{padding:22px}.stat .stat-icon{font-size:22px;color:var(--gold)}.stat strong{display:block;font:800 28px Manrope;margin:10px 0 2px}.stat small{color:var(--muted)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:28px 0 17px}.section-head h2{font-size:23px;margin:0}.section-head p{color:var(--muted);margin:5px 0 0}.courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.course-card{overflow:hidden}.course-banner{height:139px;display:flex;align-items:center;justify-content:space-between;color:white;padding:22px;background:#124271;position:relative}.course-banner:after{content:'';position:absolute;width:170px;height:170px;border:30px solid #ffffff16;border-radius:50%;right:-76px;top:-82px}.course-banner .glyph{font-size:46px;opacity:.87}.course-body{padding:23px}.pill{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.035em;background:#eef3f9;color:var(--blue);border-radius:50px;padding:7px 11px}.course-body h3{font-size:17px;margin:15px 0 8px}.course-body p{color:var(--muted);font-size:13px;min-height:63px;margin:0 0 16px}.course-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);padding:15px 0;border-top:1px solid var(--border)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:white;border:1px solid var(--blue);border-radius:11px;padding:12px 17px;font-weight:800;font-size:13px}.button:hover{filter:brightness(1.09)}.button.secondary{background:#fff;color:var(--blue);border-color:#cddbea}.button.light{background:white;color:var(--blue);border-color:white}.button.danger{background:#fff;color:#a12626;border-color:#eed2d2}.button:disabled{opacity:.45;cursor:not-allowed}.w100{width:100%}.panel{padding:26px;margin-bottom:18px}.panel h2{font-size:20px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{display:block;margin:12px 0;color:#435367;font-size:12px;font-weight:700}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #d6e0eb;border-radius:10px;background:#fff;padding:13px 14px;color:var(--ink);margin-top:7px;font-size:14px}.field textarea{min-height:100px;resize:vertical}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.muted{color:var(--muted)}.notice{padding:14px 18px;border-radius:11px;background:#eaf5f0;color:#12684a;margin:12px 0}.notice.error{background:#fceaea;color:#a22424}.progress-track{height:9px;border-radius:25px;background:#e9eff6;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--gold)}.lesson{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--border);border-radius:12px;padding:16px;margin:11px 0}.lesson h3{font-size:15px;margin:0 0 4px}.lesson small{color:var(--muted)}.material{background:#f7f9fc;border-radius:13px;padding:20px;white-space:pre-wrap;line-height:1.7}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;font-size:13px}.table th,.table td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.empty{background:#fff;border:1px dashed #cbd8e7;padding:36px;text-align:center;border-radius:15px;color:var(--muted)}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.auth-aside{background:radial-gradient(circle at 80% 10%,#285c87,#092747 65%);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:50px;color:white;text-align:center}.auth-aside img{background:white;object-fit:contain;width:220px;border-radius:18px;padding:20px;margin-bottom:35px}.auth-aside h1{font-size:clamp(32px,4vw,50px)}.auth-aside p{max-width:420px;color:#d8e5f3}.auth-main{display:grid;place-items:center;padding:40px 24px}.auth-box{width:min(440px,100%)}.auth-box h2{font-size:32px;margin:12px 0}.auth-box p{color:var(--muted)}.auth-box .button{margin-top:12px}.auth-box .field{margin:20px 0}.auth-foot{text-align:center;margin-top:30px;font-size:12px;color:var(--muted)}.choices label{display:block;margin:12px 0;border:1px solid var(--border);border-radius:10px;padding:13px;cursor:pointer}.choices input{margin-right:10px}.certificate{border:13px double #173f66;background:#fff;padding:42px;min-height:420px;text-align:center}.certificate h2{font-size:38px;color:var(--navy)}.certificate strong{display:block;font-size:25px;margin:20px}.certificate .code{letter-spacing:.18em;color:var(--gold)}.mobile-bar{display:none}.loader{min-height:100vh;display:grid;place-items:center;color:var(--blue)}@media(max-width:1100px){.courses{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{display:none}.mobile-bar{display:flex;background:var(--navy);padding:12px;gap:5px;overflow:auto}.mobile-bar button{white-space:nowrap;color:white;background:#ffffff17;border:0;padding:10px;border-radius:8px}.content{padding:22px 17px 55px}.topbar{padding:0 17px;height:74px}.hero{padding:30px 24px;min-height:220px}.hero-icon{display:none}.courses,.grid2{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:24px}.auth-page{grid-template-columns:1fr}.auth-aside{padding:30px 18px}.auth-aside img{width:145px;margin:0 0 12px}.auth-aside h1{font-size:26px}.auth-aside p{font-size:13px}.auth-main{padding:35px 20px}.certificate{padding:20px;min-height:0}.certificate h2{font-size:25px}}@media print{body{background:#fff}.sidebar,.topbar,.mobile-bar,.actions,.no-print{display:none!important}.layout{display:block}.content{padding:0}.certificate{break-inside:avoid;min-height:190mm;margin:0}}

/* v1.3 — seleção simultânea de contratos por curso */
.scope-picker{border:1px solid #dce5ef;border-radius:12px;padding:15px;margin:15px 0;background:#f8fafc}.scope-picker strong{display:block;margin-bottom:6px}.scope-picker p{font-size:13px;margin:6px 0 10px}.scope-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-height:220px;overflow:auto}.scope-option{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce5ef;padding:10px;border-radius:9px;cursor:pointer}.scope-option input{width:auto;flex:0 0 auto}.scope-option span{overflow-wrap:anywhere}

/* v1.5 — editor de cadastros acessível, sem caixas prompt do navegador */
.gs-modal-layer{position:fixed;inset:0;z-index:10000;background:rgba(6,22,41,.68);display:grid;place-items:center;padding:22px;overflow:auto}
.gs-modal{width:min(680px,100%);max-height:min(92vh,900px);overflow:auto;background:#fff;border-radius:19px;box-shadow:0 25px 90px #07172755;padding:27px 30px;color:var(--ink)}
.gs-modal h2{font-size:23px;margin:0 0 9px}.gs-modal>.muted{font-size:13px;margin:0 0 18px}.gs-modal .field{font-size:13px}.gs-modal .field textarea{min-height:100px;white-space:pre-wrap;line-height:1.6}.gs-modal .field textarea[name=content]{min-height:245px}.gs-modal-actions{justify-content:flex-end;position:sticky;bottom:-27px;background:#fff;padding:16px 0 0;border-top:1px solid var(--border)}
@media(max-width:760px){.gs-modal-layer{padding:10px}.gs-modal{padding:22px 18px;max-height:95vh}.gs-modal-actions{bottom:-22px}}


/* Academia v2.0 — gestão com hierarquia e comandos consistentes */
:root{--navy:#102d48;--blue:#194c71;--gold:#b78b41;--bg:#f3f5f8;--border:#dce5ee}
.content{max-width:1560px;padding-top:28px}
.panel{border-radius:18px;border-color:#e0e7ef;box-shadow:0 10px 26px rgba(17,41,69,.045)}
.section-head h2{font-size:30px;letter-spacing:-.045em}
.gs-overview-stats{margin:18px 0 22px;gap:12px}
.gs-overview-stats .stat{padding:17px 20px;border-radius:14px}
.gs-overview-stats .stat strong{font-size:26px;margin:0 0 5px}
.gs-admin-workspace{margin-top:12px}
.gs-admin-heading{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px 26px;margin-bottom:16px}
.gs-admin-heading h2{font-size:24px;margin:5px 0}
.gs-admin-heading p,.gs-group-intro p{margin:0;color:#667789}
.gs-admin-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#e5eaf1;padding:7px;border-radius:14px;margin-bottom:22px}
.gs-admin-tabs button{border:0;background:transparent;color:#43566b;padding:12px 17px;border-radius:10px;font-weight:750;font-size:13px;flex:1;white-space:nowrap}
.gs-admin-tabs button.active{background:#fff;color:#0a3559;box-shadow:0 2px 8px #09274317}
.gs-admin-section[hidden]{display:none!important}
.gs-group-intro{margin:0 0 16px}
.gs-group-intro h3{font-size:24px;margin:6px 0}
.gs-managed-panel{margin:0 0 16px}
.gs-managed-panel h2{font-size:20px;margin-bottom:17px}
.gs-admin-section>.gs-managed-panel{width:100%}
.gs-admin-section .table th{background:#f7f9fc}
.gs-admin-section .table td{padding:16px 13px;line-height:1.45}
.gs-admin-section .table td:first-child{font-weight:700}
.gs-table-actions{min-width:210px;white-space:normal}
.gs-table-actions .button{margin:2px;max-width:100%}
.gs-delete-action{color:#9f3c42!important;background:#fff!important;border-color:#edcdd1!important}
.gs-delete-action:hover{background:#fff3f4!important}
.gs-editor-hero{padding:26px 30px;border-left:5px solid var(--gold);background:linear-gradient(110deg,#fff,#f8fafc)}
.gs-editor-hero h1{font-size:29px;margin:9px 0}
.gs-editor-tools{align-items:start}
.gs-editor-tools>.panel{margin:0}
.gs-editor-tools textarea{min-height:155px}
.gs-editor-lists{align-items:start;gap:17px}
.gs-editor-lists>.panel{min-width:0;margin:0}
.gs-lesson-library{grid-column:span 1}
.gs-lesson-row{border:1px solid #e2e8ef;background:#fbfcfe;border-radius:12px;padding:13px 15px;margin:10px 0!important;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.gs-lesson-name{flex:1;min-width:180px;line-height:1.5;font-weight:650}
.gs-row-actions{display:flex;flex-wrap:wrap;gap:8px}
.gs-row-actions .button{margin:0!important;padding:9px 14px}
.gs-empty-quiz{padding:14px;border-radius:11px;background:#fff7e8;color:#855c21;line-height:1.6}
.gs-editor-tools .button{min-height:43px}
@media(max-width:1000px){.gs-editor-lists,.gs-editor-tools{grid-template-columns:1fr}.gs-admin-tabs button{flex:0 1 auto}}
@media(max-width:760px){.gs-admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gs-admin-tabs button{white-space:normal}.gs-admin-heading{padding:19px}.gs-lesson-row{align-items:flex-start}.gs-table-actions{min-width:140px}.gs-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
