/* =========================================================
   ThinkGo Outplacement - Diseño Profesional V2
   Archivo: public/assets/css/thinkgo-pro.css
   ========================================================= */

   :root {
    --tg-bg: #F6F7FB;
    --tg-surface: #FFFFFF;
    --tg-surface-soft: #F0F3FA;
    --tg-primary: #5B5FEF;
    --tg-primary-dark: #3730A3;
    --tg-secondary: #7C3AED;
    --tg-success: #16A34A;
    --tg-warning: #F59E0B;
    --tg-danger: #EF4444;
    --tg-info: #0EA5E9;
    --tg-text: #14213D;
    --tg-muted: #6B7280;
    --tg-border: #E5E7EB;
    --tg-sidebar: #FFFFFF;
    --tg-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    --tg-radius: 18px;
}

/* Program detail aligned with the executive mockup */
.tg-program-detail-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr);gap:28px;align-items:stretch;margin-bottom:1.5rem;padding:2rem;background:linear-gradient(115deg,#f5f7ff 0%,#fff 52%,#eefafa 100%);border-top:4px solid #6766ef;overflow:hidden}.tg-program-detail-copy{display:flex;flex-direction:column;justify-content:center;padding:.25rem}.tg-program-detail-copy .tg-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:.4rem}.tg-program-detail-copy h2{margin:1.15rem 0 .65rem;color:#172544;font-size:clamp(1.75rem,3vw,2.65rem);letter-spacing:-.035em;line-height:1.1}.tg-program-detail-lead{max-width:850px;margin:0;color:#687185;font-size:1.08rem;line-height:1.55}.tg-program-detail-objective{max-width:850px;margin:1.15rem 0 0;padding:1rem 1.15rem;border-left:3px solid #74cfc5;border-radius:0 14px 14px 0;background:rgba(255,255,255,.72);color:#253452;line-height:1.5}.tg-program-detail-status{padding:1.45rem 1.5rem;border:1px solid #cbdde5;border-radius:20px;background:linear-gradient(145deg,#fff,#f0fbfb);box-shadow:0 14px 30px rgba(34,77,101,.08)}.tg-program-detail-status h3{margin:0 0 1rem;color:#172544;font-size:1.35rem}.tg-program-detail-status .tg-progress{height:11px;background:#e5e8f0}.tg-program-detail-status .tg-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5d5bea,#853ee8)}.tg-program-detail-status p{margin:.7rem 0;color:#69758a}.tg-program-detail-status p strong{color:#172544}.tg-program-detail-status hr{margin:1.2rem 0;border:0;border-top:1px solid #dce4eb}.tg-program-detail-status dl{display:grid;gap:.65rem;margin:0}.tg-program-detail-status dl div{display:flex;gap:.35rem;flex-wrap:wrap}.tg-program-detail-status dt,.tg-program-detail-status dd{margin:0}.tg-program-detail-status dt{font-weight:800;color:#172544}.tg-program-detail-status dd{color:#647089}.tg-program-detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;margin-bottom:1.5rem}.tg-program-detail-kpi{position:relative;display:flex;align-items:flex-start;gap:.85rem;min-height:124px;padding:1.25rem!important;overflow:hidden;border-top:4px solid #7773ef!important}.tg-program-detail-kpi>i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8e8ff;color:#5d5bea;font-size:1.1rem}.tg-program-detail-kpi>div{min-width:0}.tg-program-detail-kpi span,.tg-program-detail-kpi small{display:block;color:#6d778a}.tg-program-detail-kpi span{font-size:.84rem}.tg-program-detail-kpi strong{display:block;margin:.3rem 0;color:#172544;font-size:1.9rem;line-height:1.1}.tg-program-detail-kpi small{font-size:.76rem;line-height:1.35}.tg-program-detail-kpi--blue{border-top-color:#69cbd4!important;background:linear-gradient(135deg,#fff,#f2fbfc)}.tg-program-detail-kpi--blue>i{background:#dff7f8;color:#178da5}.tg-program-detail-kpi--green{border-top-color:#65c896!important;background:linear-gradient(135deg,#fff,#f2fbf6)}.tg-program-detail-kpi--green>i{background:#def4e8;color:#238558}.tg-program-detail-kpi--orange{border-top-color:#efbd76!important;background:linear-gradient(135deg,#fff,#fff9f0)}.tg-program-detail-kpi--orange>i{background:#fff0db;color:#bf6818}.tg-program-detail-kpi--orange strong{font-size:1rem;line-height:1.25}.tg-program-detail-header .tg-page-title{letter-spacing:-.025em}@media(max-width:1050px){.tg-program-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.tg-program-detail-hero{grid-template-columns:1fr;padding:1.35rem}.tg-program-detail-status{padding:1.15rem}}@media(max-width:560px){.tg-program-detail-kpis{grid-template-columns:1fr}.tg-program-detail-kpi{min-height:0}.tg-program-detail-header .tg-page-subtitle{font-size:.95rem}}
.tg-program-list-header{margin-bottom:1.5rem}.tg-program-eyebrow{display:block;margin-bottom:.35rem;color:#278b62;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.tg-program-list-header .tg-page-subtitle{max-width:760px}.tg-program-list-header .tg-btn{display:inline-flex;align-items:center;gap:.5rem}.tg-program-feedback{display:flex;align-items:center;gap:.55rem;margin-bottom:1.5rem;border:0;border-radius:14px}.tg-program-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;margin-bottom:1.5rem}.tg-program-kpi{position:relative;display:flex;align-items:flex-start;gap:.85rem;min-height:132px;padding:1.25rem 1.35rem!important;overflow:hidden;border:1px solid #e0e4ee!important;box-shadow:0 10px 26px rgba(30,50,90,.05)}.tg-program-kpi::after{position:absolute;right:-28px;bottom:-42px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.55);content:""}.tg-program-kpi--purple{background:linear-gradient(135deg,#fff,#f4f3ff)}.tg-program-kpi--green{background:linear-gradient(135deg,#fff,#effaf5)}.tg-program-kpi--blue{background:linear-gradient(135deg,#fff,#f0f8ff)}.tg-program-kpi--orange{background:linear-gradient(135deg,#fff,#fff7ed)}.tg-program-kpi-icon{display:grid;position:relative;z-index:1;flex:0 0 auto;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9e8ff;color:#5d5bea}.tg-program-kpi--green .tg-program-kpi-icon{background:#dcf3e8;color:#218357}.tg-program-kpi--blue .tg-program-kpi-icon{background:#dff2ff;color:#2586b7}.tg-program-kpi--orange .tg-program-kpi-icon{background:#fff0dc;color:#bf6818}.tg-program-kpi>div{position:relative;z-index:1;min-width:0}.tg-program-kpi .tg-kpi-label{display:block;margin-bottom:.3rem;color:#6d778a;font-size:.83rem}.tg-program-kpi strong{display:block;color:#172544;font-size:2rem;line-height:1}.tg-program-kpi small{display:block;margin-top:.45rem;color:#768095;font-size:.75rem}.tg-program-list-card{padding:1.5rem}.tg-program-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.tg-program-section-heading .tg-program-eyebrow{margin-bottom:.25rem}.tg-program-section-heading .tg-card-title{margin-bottom:.25rem}.tg-program-section-heading .tg-card-muted{margin-bottom:0}.tg-program-table-wrap{border:1px solid #e1e5ed;border-radius:16px}.tg-program-table{margin-bottom:0;min-width:760px}.tg-program-table thead th{padding:1rem 1.1rem;border-bottom:1px solid #dfe4ee;background:#f7f8fd;color:#6c7689;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}.tg-program-table tbody td{padding:1.1rem;border-bottom:1px solid #edf0f5;color:#33405b}.tg-program-table tbody tr:last-child td{border-bottom:0}.tg-program-table tbody tr:hover{background:#fafbff}.tg-program-name{display:flex;align-items:center;gap:.75rem}.tg-program-name>div{min-width:0}.tg-program-name strong,.tg-program-name small{display:block}.tg-program-name strong{color:#172544}.tg-program-name small{margin-top:.25rem;color:#778196;font-size:.76rem}.tg-program-mark{display:grid;flex:0 0 auto;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef0ff;color:#5d5bea}.tg-program-type{color:#606b80;font-size:.9rem}.tg-program-published{display:inline-flex;align-items:center;gap:.35rem;color:#218357;font-weight:700}.tg-program-view{display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap}.tg-program-empty{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:#fafbff}.tg-program-empty-icon{display:grid;flex:0 0 auto;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef0ff;color:#5d5bea;font-size:1.15rem}.tg-program-empty .tg-empty-state__body{margin-bottom:0}.tg-program-empty .tg-btn{margin-left:auto;white-space:nowrap}@media(max-width:1100px){.tg-program-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.tg-program-kpis{grid-template-columns:1fr}.tg-program-list-card{padding:1rem}.tg-program-section-heading{align-items:flex-start;flex-direction:column}.tg-program-empty{align-items:flex-start;flex-direction:column}.tg-program-empty .tg-btn{margin-left:0;width:100%;justify-content:center}.tg-program-list-header .tg-btn{width:100%;justify-content:center}}
.tg-program-detail-header{margin-bottom:1.25rem;padding-bottom:1.35rem;border-bottom:1px solid #e2e6ef}.tg-program-detail-header .tg-btn{display:inline-flex;align-items:center;gap:.45rem}.tg-program-detail-header .tg-program-eyebrow{margin-bottom:.45rem}.tg-program-detail-header .tg-page-subtitle{margin-bottom:0}body:has(.tg-program-detail-header) .tg-program-alert{box-shadow:0 8px 20px rgba(30,50,90,.04)}body:has(.tg-program-detail-header) .tg-card{border-color:#dfe4ee;box-shadow:0 12px 28px rgba(30,50,90,.045)}body:has(.tg-program-detail-header) .tg-card-title{color:#172544}body:has(.tg-program-detail-header) .tg-card.mb-4{padding:1.5rem;background:linear-gradient(145deg,#fff,#fafbff)}body:has(.tg-program-detail-header) .tg-card.mb-4>.table-responsive{border:1px solid #e1e5ed;border-radius:16px;overflow:auto}body:has(.tg-program-detail-header) .tg-card.mb-4 table{min-width:900px;margin-bottom:0}body:has(.tg-program-detail-header) .tg-card.mb-4 thead th{padding:1rem 1.1rem;background:#f7f8fd;color:#6c7689;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;border-bottom-color:#dfe4ee}body:has(.tg-program-detail-header) .tg-card.mb-4 tbody td{padding:1.1rem;border-bottom-color:#edf0f5;color:#33405b;vertical-align:top}body:has(.tg-program-detail-header) .tg-card.mb-4 tbody tr:last-child td{border-bottom:0}body:has(.tg-program-detail-header) .tg-card.mb-4 tbody tr:hover{background:#fbfcff}body:has(.tg-program-detail-header) .tg-card.mb-4 form .tg-btn{display:inline-flex;align-items:center;gap:.4rem}body:has(.tg-program-detail-header) .tg-version-config{margin:0 -1.1rem -1.1rem;padding:1rem 1.1rem;background:#f5f6ff;border-top:1px solid #e4e7fb}body:has(.tg-program-detail-header) .tg-version-action{box-shadow:0 3px 8px rgba(30,50,90,.04)}body:has(.tg-program-detail-header) .tg-structure-version{background:linear-gradient(145deg,#fcfdff,#f7fbff)}@media(max-width:700px){.tg-program-detail-header{align-items:flex-start;flex-direction:column;gap:1rem}.tg-program-detail-header>div:last-child{width:100%}.tg-program-detail-header .tg-btn,.tg-program-detail-header form{width:100%}.tg-program-detail-header form .tg-btn{width:100%;justify-content:center}}
.tg-catalog-header{margin-bottom:1.5rem;padding-bottom:1.25rem;border-bottom:1px solid #e2e6ef}.tg-catalog-header .tg-btn{display:inline-flex;align-items:center;gap:.5rem}.tg-catalog-card{padding:1.5rem;background:linear-gradient(145deg,#fff,#fafbff)}.tg-catalog-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.tg-catalog-card-heading .tg-card-title{margin:.1rem 0 .25rem;color:#172544}.tg-catalog-card-heading .tg-card-muted{margin:0}.tg-catalog-table-wrap{border:1px solid #e1e5ed;border-radius:16px;overflow:auto}.tg-catalog-table{min-width:760px;margin-bottom:0}.tg-catalog-table thead th{padding:1rem 1.1rem;background:#f7f8fd;color:#6c7689;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;border-bottom-color:#dfe4ee}.tg-catalog-table tbody td{padding:1.05rem 1.1rem;border-bottom-color:#edf0f5;color:#33405b;vertical-align:middle}.tg-catalog-table tbody tr:last-child td{border-bottom:0}.tg-catalog-table tbody tr:hover{background:#fbfcff}.tg-catalog-table td:last-child .tg-btn{display:inline-flex;align-items:center;gap:.35rem}.tg-catalog-name{display:flex;align-items:center;gap:.75rem}.tg-catalog-name>div{min-width:0}.tg-catalog-name strong,.tg-catalog-name small{display:block}.tg-catalog-name strong{color:#172544}.tg-catalog-name small{margin-top:.25rem;color:#778196;font-size:.76rem}.tg-catalog-mark{display:grid;flex:0 0 auto;place-items:center;width:38px;height:38px;border-radius:12px}.tg-catalog-mark--green{background:#def4e9;color:#238558}.tg-catalog-mark--purple{background:#eef0ff;color:#5d5bea}.tg-catalog-count{display:inline-flex;align-items:center;gap:.4rem;color:#5f6b80;font-size:.88rem;font-weight:700}.tg-catalog-copy{display:block;max-width:300px;color:#33405b;line-height:1.4}.tg-catalog-copy--muted{color:#69758a;font-size:.9rem}.tg-catalog-empty{display:grid;justify-items:center;gap:.35rem;padding:2.3rem 1rem;text-align:center;color:#6d778a}.tg-catalog-empty i{margin-bottom:.25rem;color:#6a68ed;font-size:1.6rem}.tg-catalog-empty strong{color:#263452}.tg-catalog-empty span{font-size:.9rem}@media(max-width:640px){.tg-catalog-card{padding:1rem}.tg-catalog-card-heading{align-items:flex-start;flex-direction:column}.tg-catalog-header{align-items:flex-start;flex-direction:column;gap:1rem}.tg-catalog-header .tg-btn{width:100%;justify-content:center}.tg-catalog-table{min-width:820px}}

/* Administrator dashboard */
.tg-admin-dashboard-header{margin-bottom:28px}.tg-admin-header-actions{display:flex;gap:12px;align-items:center}.tg-admin-kpis .tg-kpi{min-height:150px}.tg-admin-kpi-indigo{border-top:4px solid #7773ef;background:linear-gradient(135deg,#fff,#fafaff)}.tg-admin-kpi-green{border-top:4px solid #5dc995;background:linear-gradient(135deg,#fff,#f4fcf7)}.tg-admin-kpi-cyan{border-top:4px solid #66cbd3;background:linear-gradient(135deg,#fff,#f4fcfd)}.tg-admin-kpi-orange{border-top:4px solid #f0bd79;background:linear-gradient(135deg,#fff,#fff9f1)}.tg-admin-executive-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.7fr);gap:32px;align-items:stretch;margin-bottom:24px;background:linear-gradient(115deg,#fff 0%,#fbfbff 65%,#f3f8ff 100%)}.tg-admin-executive-copy{padding:18px 4px}.tg-admin-feature-title{font-size:clamp(1.7rem,3vw,2.35rem);margin:22px 0 10px}.tg-admin-executive-text{max-width:850px;color:#162445;line-height:1.65;margin:24px 0 0}.tg-admin-global-progress{padding:24px;border:1px solid #e0e4ef;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(28,45,82,.07)}.tg-admin-global-progress h3{margin:0 0 18px}.tg-admin-global-progress p{margin:10px 0;color:#687185}.tg-admin-global-progress hr{border:0;border-top:1px solid #dce1eb;margin:22px 0}.tg-admin-global-progress strong{color:#172544}.tg-admin-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.tg-admin-alerts-card,.tg-admin-agenda-wide,.tg-admin-distribution-card{margin-bottom:24px}.tg-admin-alerts-card{background:linear-gradient(135deg,#fff,#fffdf9)}.tg-admin-alert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tg-admin-alert-item,.tg-admin-agenda-item,.tg-admin-consultant-list article{border:1px solid #e0e4ef;border-radius:18px;background:#f9faff;padding:20px}.tg-admin-alert-item{border-left:4px solid #f2bd70}.tg-admin-alert-item.is-critical{border-left-color:#ff7373}.tg-admin-alert-item h3{font-size:1.05rem;margin:16px 0 6px}.tg-admin-alert-item p,.tg-admin-agenda-item p,.tg-admin-consultant-list p{color:#6d7688;margin:0;line-height:1.45}.tg-admin-agenda-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tg-admin-agenda-item{display:flex;flex-direction:column;gap:12px;min-height:150px}.tg-admin-agenda-item strong{color:#172544}.tg-admin-distribution{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr);gap:36px;align-items:center}.tg-admin-donut{width:220px;height:220px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;background:conic-gradient(#5d5bea 0 33%,#803ee8 33% 58%,#ffab13 58% 100%);position:relative;color:#172544}.tg-admin-donut::before{content:"";position:absolute;inset:28px;border-radius:50%;background:#fff}.tg-admin-donut strong,.tg-admin-donut span{position:relative}.tg-admin-donut strong{font-size:2.1rem}.tg-admin-donut span{color:#737c8d}.tg-admin-consultant-list{display:grid;gap:12px}.tg-admin-consultant-list article{display:flex;gap:12px;align-items:flex-start;padding:16px 18px}.tg-admin-dot{width:12px;height:12px;border-radius:50%;margin-top:5px;background:#5d5bea;flex:0 0 auto}.tg-admin-dot-1{background:#803ee8}.tg-admin-dot-2{background:#ffab13}.tg-admin-consultant-list strong{color:#172544}.tg-admin-empty{border:1px dashed #cdd5e4;border-radius:16px;padding:24px;color:#687185;background:#fafbfe}@media(max-width:991px){.tg-admin-executive-card,.tg-admin-distribution{grid-template-columns:1fr}.tg-admin-alert-grid,.tg-admin-agenda-list{grid-template-columns:1fr 1fr}}@media(max-width:640px){.tg-admin-header-actions,.tg-admin-section-heading{align-items:stretch;flex-direction:column}.tg-admin-header-actions .tg-btn{width:100%;justify-content:center}.tg-admin-alert-grid,.tg-admin-agenda-list{grid-template-columns:1fr}.tg-admin-donut{width:180px;height:180px}}
.tg-admin-executive-card{border-top:4px solid #6970ee;background:linear-gradient(120deg,#ffffff 0%,#f8f9ff 58%,#eef9fa 100%)}.tg-admin-global-progress{background:linear-gradient(145deg,#f5f7ff,#f1fbfb);border-color:#d4dced}.tg-admin-alerts-card{border-top:4px solid #f1bd72;background:linear-gradient(125deg,#fffefa,#fff8ee)}.tg-admin-alerts-card .tg-admin-alert-item{background:linear-gradient(135deg,#fff,#fff9f2)}.tg-admin-agenda-wide{border-top:4px solid #68cbd2;background:linear-gradient(125deg,#ffffff,#f2fbfc)}.tg-admin-agenda-wide .tg-admin-agenda-item{background:#f7fbfc;border-color:#d6e9eb}.tg-admin-distribution-card{border-top:4px solid #73c998;background:linear-gradient(125deg,#ffffff,#f4fcf7)}.tg-admin-distribution-card .tg-admin-consultant-list article{background:#f7fcf9;border-color:#d9ece1}.tg-admin-empty{background:rgba(248,250,255,.8)}
.tg-admin-executive-card{position:relative;overflow:hidden;border-top:0;padding:34px 32px;background:linear-gradient(115deg,#f6f7ff 0%,#ffffff 42%,#eefafa 100%)}.tg-admin-executive-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#6864ef,#43b8b7)}.tg-admin-executive-card::after{content:"";position:absolute;left:34%;top:-120px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(106,102,239,.09),transparent 68%);pointer-events:none}.tg-admin-executive-copy{position:relative;z-index:1;padding:8px 14px 8px 10px}.tg-admin-executive-copy .tg-badge{box-shadow:0 5px 14px rgba(101,97,235,.12)}.tg-admin-feature-title{max-width:800px;letter-spacing:-.025em;line-height:1.14}.tg-admin-executive-text{max-width:780px;padding:18px 22px;border-left:3px solid #76cfc5;border-radius:0 14px 14px 0;background:rgba(255,255,255,.68)}.tg-admin-global-progress{position:relative;z-index:1;background:linear-gradient(145deg,#ffffff,#f0fbfb);border:1px solid #cbdde5;box-shadow:0 16px 34px rgba(34,77,101,.1)}.tg-admin-global-progress h3{font-size:1.45rem}.tg-admin-global-progress .tg-progress{height:12px;background:#e3e8f0}.tg-admin-global-progress .tg-progress span{background:linear-gradient(90deg,#5e5bea,#8a3fe8)}
.tg-admin-sidebar-profile{width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;border:1px solid #dcdffc;background:linear-gradient(145deg,#fafaff,#f1f8ff);box-shadow:0 12px 24px rgba(45,59,120,.08)}.tg-admin-profile-heading{display:flex;align-items:center;gap:12px;min-width:0}.tg-admin-profile-heading>div:last-child{min-width:0}.tg-admin-profile-heading p,.tg-admin-profile-heading small{overflow-wrap:anywhere}.tg-admin-profile-heading .tg-avatar{flex:0 0 auto;background:linear-gradient(135deg,#d9d8ff,#c9eff0);color:#403caa}
.tg-admin-company-alert-list{display:grid;gap:12px;margin-top:24px}.tg-admin-company-alert-row{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #f0dfc3;border-radius:14px;background:#fffaf2}.tg-admin-alert-index{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eeeaff;color:#5d5bea;font-weight:800;font-size:.8rem;flex:0 0 auto}.tg-admin-company-alert-row strong,.tg-admin-company-alert-row small{display:block}.tg-admin-company-alert-row strong{color:#172544}.tg-admin-company-alert-row small{margin-top:4px;color:#8a7a68;font-size:.76rem}
.tg-admin-company-hero{padding:24px 32px;gap:24px}.tg-admin-company-hero>div:first-child{padding:4px 8px}.tg-admin-company-hero .tg-admin-feature-title{margin:16px 0 8px;font-size:clamp(1.55rem,2.5vw,2.1rem)}.tg-admin-company-hero .tg-admin-executive-text{margin-top:16px;padding:13px 18px;line-height:1.45}.tg-admin-company-progress{padding:18px 22px;border-radius:18px}.tg-admin-company-progress h3{font-size:1.2rem;margin-bottom:12px}.tg-admin-company-progress p{margin:7px 0}.tg-admin-company-progress hr{margin:14px 0}.tg-admin-company-progress .tg-progress{height:9px}
.tg-admin-companies-page .tg-admin-companies-header{margin-bottom:24px}.tg-admin-company-kpis .tg-kpi{min-height:145px}.tg-admin-company-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.65fr);gap:28px;margin-bottom:24px;padding:32px;background:linear-gradient(115deg,#f7f8ff,#fff 54%,#eefafa);border-top:4px solid #6c68ee}.tg-admin-company-hero>div:first-child{padding:8px}.tg-admin-company-progress{padding:24px;border:1px solid #cbdde5;border-radius:22px;background:linear-gradient(145deg,#fff,#f0fbfb);box-shadow:0 14px 30px rgba(34,77,101,.08)}.tg-admin-company-progress h3{margin:0 0 18px}.tg-admin-company-progress p{margin:10px 0;color:#687185}.tg-admin-company-progress hr{border:0;border-top:1px solid #dce1eb;margin:22px 0}.tg-admin-company-progress strong{color:#172544}.tg-admin-company-progress .tg-progress{height:11px}.tg-admin-company-progress .tg-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5d5bea,#853ee8)}.tg-admin-company-filters{margin-bottom:24px;background:linear-gradient(135deg,#fff,#fffaf3);border-top:4px solid #efbd76}.tg-admin-company-list-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.55fr);gap:24px}.tg-admin-company-list{display:grid;gap:14px}.tg-admin-company-item{padding:22px;border:1px solid #dfe4ee;border-radius:18px;background:linear-gradient(135deg,#f9faff,#f4fbfc);box-shadow:0 8px 18px rgba(30,50,90,.04)}.tg-admin-company-item-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.tg-admin-company-item h3{margin:14px 0 4px;font-size:1.12rem}.tg-admin-company-item p{margin:0;color:#70798b}.tg-admin-company-facts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 15px}.tg-admin-company-facts span{padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.78);color:#70798b;font-size:.82rem}.tg-admin-company-facts strong,.tg-admin-company-progress-label strong{color:#172544}.tg-admin-company-progress-label{display:flex;justify-content:space-between;color:#70798b;font-size:.82rem;margin-bottom:7px}.tg-admin-company-item>.tg-progress{height:8px;background:#e1e6f0}.tg-admin-company-item>.tg-progress .tg-progress-bar{background:linear-gradient(90deg,#5d5bea,#853ee8)}.tg-admin-company-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.tg-admin-company-alerts{align-self:start;background:linear-gradient(145deg,#fff,#fff8ef);border-top:4px solid #efbd76}.tg-admin-company-alerts .tg-card-title{margin-top:24px}.tg-admin-company-alert-note{display:flex;gap:12px;margin-top:28px;padding:16px;border-radius:15px;background:#fff5e6;color:#8a5a21;line-height:1.45;font-size:.9rem}.tg-admin-company-alert-note i{font-size:1.2rem}.tg-admin-company-alerts .tg-badge{display:inline-flex}@media(max-width:991px){.tg-admin-company-hero,.tg-admin-company-list-grid{grid-template-columns:1fr}}@media(max-width:640px){.tg-admin-company-item-top{flex-direction:column}.tg-admin-company-item-top .tg-btn{width:100%;justify-content:center}.tg-admin-company-actions{justify-content:stretch}.tg-admin-company-actions .tg-btn{flex:1}}
.tg-admin-sidebar>.tg-sidebar-section.mt-auto{margin-top:6px!important}

/* Participant roadmap */
.tg-participant-roadmap-now{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(172,246,216,.5);border-radius:999px;background:rgba(217,255,236,.16);color:#d8ffe9;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 6px 14px rgba(7,43,48,.16)}.tg-participant-roadmap-now i{color:#8df0bb;font-size:13px}
.tg-participant-roadmap-header{margin-bottom:28px}.tg-participant-roadmap-kpis .tg-kpi{min-height:150px;border-top:4px solid #d3d7ff;background:linear-gradient(135deg,#fff,#fafaff)}.tg-participant-roadmap-kpis .col-md-3:nth-child(2) .tg-kpi{border-color:#b9ecd0}.tg-participant-roadmap-kpis .col-md-3:nth-child(3) .tg-kpi{border-color:#f1d3aa}.tg-participant-roadmap-kpis .col-md-3:nth-child(4) .tg-kpi{border-color:#b9e9ed}.tg-participant-roadmap-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:26px;padding:30px;border-radius:22px;background:linear-gradient(120deg,#203f69,#286d77);color:#fff;box-shadow:var(--tg-shadow)}.tg-participant-roadmap-hero h2{margin:15px 0 8px;font-size:clamp(25px,2.4vw,36px);font-weight:850;letter-spacing:-.035em}.tg-participant-roadmap-hero p{margin:0;color:rgba(255,255,255,.82);font-size:16px}.tg-participant-roadmap-next{padding:20px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(255,255,255,.1)}.tg-participant-roadmap-next span,.tg-participant-roadmap-next strong,.tg-participant-roadmap-next small{display:block}.tg-participant-roadmap-next span{color:rgba(255,255,255,.7);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.tg-participant-roadmap-next strong{margin:9px 0 5px}.tg-participant-roadmap-next small{color:rgba(255,255,255,.78);line-height:1.45}.tg-participant-roadmap-route{border-top:4px solid #d3d7ff}.tg-participant-roadmap-stage+.tg-participant-roadmap-stage{margin-top:24px}.tg-participant-roadmap-stage>h3{margin:0 0 12px;color:#287f54;font-size:13px;letter-spacing:.07em;text-transform:uppercase}.tg-participant-roadmap-session{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid #e3e7ef;border-radius:16px;background:#fff}.tg-participant-roadmap-session+.tg-participant-roadmap-session{margin-top:10px}.tg-roadmap-marker{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#f0f1fb;color:#7a7c91}.tg-participant-roadmap-session.is-done .tg-roadmap-marker{background:#e1f4e8;color:#1b9a55}.tg-participant-roadmap-session.is-current{border-color:#d5b37f;background:#fffaf2;box-shadow:0 8px 18px rgba(154,101,27,.08)}.tg-participant-roadmap-session.is-current .tg-roadmap-marker{background:#fff0da;color:#bd620c}.tg-participant-roadmap-session h4{margin:8px 0 4px;font-size:16px}.tg-participant-roadmap-session p{margin:0;color:var(--tg-muted);font-size:14px}.tg-roadmap-percent{color:var(--tg-muted);font-weight:800}@media(max-width:991px){.tg-participant-roadmap-hero{grid-template-columns:1fr}}@media(max-width:576px){.tg-participant-roadmap-hero{padding:22px}.tg-participant-roadmap-session{grid-template-columns:auto minmax(0,1fr)}.tg-participant-roadmap-session .tg-btn,.tg-roadmap-percent{grid-column:2;justify-self:start}}

/* Base */

body {
    margin: 0;
    background: var(--tg-bg);
    color: var(--tg-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

/* Layout principal tipo SaaS */

.tg-app {
    min-height: 100vh;
    display: flex;
    background: var(--tg-bg);
}

.tg-sidebar {
    width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--tg-sidebar);
    border-right: 1px solid var(--tg-border);
    padding: 24px 18px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.tg-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.tg-topbar {
    height: 76px;
    background: var(--tg-surface);
    border-bottom: 1px solid var(--tg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.tg-topbar-search {
    width: min(440px, 38vw);
    min-width: 220px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tg-topbar-search:focus-within {
    border-color: rgba(96, 80, 232, 0.48);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(96, 80, 232, 0.1);
}

.tg-topbar-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tg-text);
    font-size: 14px;
}

.tg-topbar-search input::placeholder {
    color: #8591a5;
}

.tg-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tg-topbar-actions form {
    display: flex;
    margin: 0;
}

.tg-user-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    background: #ffffff;
}

.tg-user-chip .tg-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.tg-user-chip-details {
    min-width: 0;
    line-height: 1.2;
}

.tg-user-chip-details p,
.tg-user-chip-details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-user-chip-details p {
    max-width: 156px;
    color: var(--tg-text);
    font-size: 14px;
}

.tg-user-chip-details small {
    margin-top: 2px;
    font-size: 12px;
}

.tg-logout-button {
    color: #64748b;
}

.tg-content {
    padding: 28px 32px 40px;
}

/* Marca */

.tg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tg-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: var(--tg-shadow);
}

.tg-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tg-text);
    margin: 0;
}

.tg-brand-subtitle {
    font-size: 12px;
    color: var(--tg-muted);
    margin: 0;
}

/* Sidebar */

.tg-menu-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--tg-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 24px 12px 10px;
}

.tg-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tg-text);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 650;
    font-size: 14px;
    transition: .18s ease;
}

.tg-menu-link:hover {
    background: var(--tg-surface-soft);
    color: var(--tg-primary);
}

.tg-menu-link.active {
    background: rgba(91, 95, 239, 0.12);
    color: var(--tg-primary);
}

.tg-sidebar-section {
    margin-bottom: 18px;
}

.tg-sidebar-label {
    margin: 0 12px 10px;
    color: #76839a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.tg-consultant-sidebar-profile {
    margin-top: 2px;
    padding: 16px;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fbff, #fff);
}

.tg-participant-sidebar-profile {
    margin-top: 2px;
    padding: 16px;
    border: 1px solid rgba(96, 80, 232, .14);
    border-radius: 18px;
    background: linear-gradient(145deg, #faf9ff, #f7fbff);
}

.tg-participant-sidebar-identity {
    min-width: 0;
}

.tg-participant-sidebar-identity p,
.tg-participant-sidebar-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-participant-process-label {
    color: #76839a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tg-participant-process-code {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-participant-progress-label {
    color: var(--tg-muted);
    font-size: 12px;
    font-weight: 700;
}

.tg-participant-progress-value {
    color: var(--tg-primary);
    font-size: 13px;
}

/* Portal Participante: el inicio muestra el siguiente paso antes que el detalle técnico. */
.tg-participant-dashboard-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-participant-dashboard-action {
    min-height: 44px;
    padding-inline: 17px;
}

.tg-participant-dashboard-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
}

.tg-participant-empty-icon,
.tg-participant-guide-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: rgba(96, 80, 232, .1);
    color: var(--tg-primary);
    font-size: 21px;
}

.tg-participant-kpi-link {
    display: block;
    height: 100%;
    color: inherit;
}

.tg-participant-kpi-link .tg-kpi {
    height: 100%;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-participant-kpi-link:hover .tg-kpi {
    border-color: rgba(96, 80, 232, .26);
    box-shadow: 0 12px 24px rgba(31, 58, 95, .09);
    transform: translateY(-2px);
}

.tg-participant-kpi-action {
    background: linear-gradient(145deg, #fffdf7, #fff);
}

.tg-participant-current-session {
    min-height: 270px;
    padding: 28px;
    border: 1px solid #9ec8d6;
    background: linear-gradient(135deg, #427c9a 0%, #4d92a4 62%, #63aa91 145%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(55, 115, 141, .16);
}

.tg-participant-current-session .tg-section-kicker,
.tg-participant-current-session .tg-card-title,
.tg-participant-current-session-mission {
    color: #fff;
}

.tg-participant-current-session .tg-section-kicker {
    opacity: .75;
}

.tg-participant-current-session-mission {
    font-size: 17px;
    font-weight: 750;
}

.tg-participant-current-session-button {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.tg-participant-current-session-button:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.tg-participant-session-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.tg-participant-session-insights > div { padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.1); }
.tg-participant-session-insights strong, .tg-participant-session-insights span { display: block; }
.tg-participant-session-insights strong { font-size: 13px; color: #fff; }
.tg-participant-session-insights span { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.78); }
.tg-participant-session-insights-date { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; color: #d9f4e5; font-size: .76rem; font-weight: 700; }

/* La tarjeta comparte .tg-card; esta variante debe conservar contraste propio. */
.tg-card.tg-participant-current-session {
    border: 1px solid #9ec8d6;
    background: linear-gradient(135deg, #427c9a 0%, #4d92a4 62%, #63aa91 145%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(55, 115, 141, .16);
}

.tg-card.tg-participant-current-session p,
.tg-participant-current-session .tg-section-kicker,
.tg-participant-current-session .tg-card-title,
.tg-participant-current-session-mission {
    color: #fff;
}

.tg-participant-current-session .tg-section-kicker { color: #fff; opacity: .75; }
.tg-participant-current-session-button { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .14); color: #fff; }
.tg-participant-current-session-button:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .22); color: #fff; }

.tg-participant-featured-task {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}

.tg-participant-consultant-card,
.tg-participant-medals-card,
.tg-participant-priority-tasks {
    padding: 24px;
}

.tg-participant-consultant-card {
    min-height: 270px;
}

.tg-participant-priority-tasks,
.tg-participant-medals-card {
    min-height: 350px;
}

.tg-participant-priority-task-list { display: grid; gap: 12px; }
.tg-participant-priority-task-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--tg-border); border-radius: 15px; background: var(--tg-surface-soft); color: var(--tg-text); }
.tg-participant-priority-task-list strong, .tg-participant-priority-task-list span { display: block; }
.tg-participant-priority-task-list span { margin-top: 4px; color: var(--tg-muted); font-size: 12px; }
.tg-participant-priority-task-list em { flex: 0 0 auto; max-width: 130px; overflow: hidden; padding: 7px 10px; border-radius: 999px; background: rgba(96, 80, 232, .1); color: var(--tg-primary); font-size: 12px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.tg-participant-priority-task-list a:hover { border-color: rgba(96, 80, 232, .28); background: #fff; box-shadow: 0 8px 18px rgba(31, 58, 95, .07); transform: translateY(-1px); }

.tg-participant-consultant-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, #dbeafe, #e9d5ff);
    color: var(--tg-primary-dark);
    font-size: 21px;
}

.tg-participant-contact-status {
    display: grid;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--tg-border);
    color: var(--tg-muted);
    font-size: 12px;
}

.tg-participant-contact-status i {
    width: 18px;
    color: var(--tg-primary);
}

.tg-participant-consultant-details { display: grid; gap: 9px; margin-top: 14px; }
.tg-participant-consultant-details > div { padding: 11px 12px; border-radius: 12px; background: var(--tg-surface-soft); }
.tg-participant-consultant-details strong, .tg-participant-consultant-details span { display: block; }
.tg-participant-consultant-details strong { color: var(--tg-text); font-size: 12px; }
.tg-participant-consultant-details span { margin-top: 3px; color: var(--tg-muted); font-size: 12px; }

.tg-participant-medal-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tg-participant-medal-preview > div {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: var(--tg-surface-soft);
}

.tg-participant-medal-preview span {
    display: inline-flex;
    margin-bottom: 9px;
    color: #c28512;
    font-size: 20px;
}

.tg-participant-medal-preview strong,
.tg-participant-medal-preview small {
    display: block;
}

.tg-participant-medal-preview strong {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-participant-medal-preview small {
    margin-top: 4px;
    color: var(--tg-muted);
    font-size: 11px;
    line-height: 1.35;
}

.tg-participant-progress-guide {
    display: none;
    padding: 24px 28px;
}

.tg-participant-progress-guide-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.tg-participant-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tg-participant-guide-steps > div {
    position: relative;
    min-width: 0;
    padding: 14px 14px 14px 48px;
    border-radius: 14px;
    background: var(--tg-surface-soft);
}

.tg-participant-guide-steps span {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(96, 80, 232, .12);
    color: var(--tg-primary);
    font-size: 12px;
    font-weight: 850;
}

.tg-participant-guide-steps strong {
    color: var(--tg-text);
    font-size: 13px;
}

.tg-participant-guide-steps p {
    margin: 4px 0 0;
    color: var(--tg-muted);
    font-size: 12px;
    line-height: 1.4;
}

.tg-sidebar-profile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tg-sidebar-profile-metrics a {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(46, 173, 107, .07);
    color: var(--tg-text);
    transition: background .18s ease, transform .18s ease;
}

.tg-sidebar-profile-metrics a:hover {
    background: rgba(46, 173, 107, .13);
    transform: translateY(-1px);
}

.tg-sidebar-profile-metrics strong,
.tg-sidebar-profile-metrics span {
    display: block;
}

.tg-sidebar-profile-metrics strong {
    color: #258a57;
    font-size: 18px;
    line-height: 1.1;
}

.tg-sidebar-profile-metrics span {
    overflow: hidden;
    margin-top: 4px;
    color: var(--tg-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.tg-menu-group {
    width: 100%;
}

.tg-menu-group > summary {
    list-style: none;
    cursor: pointer;
}

.tg-menu-group > summary::-webkit-details-marker {
    display: none;
}

.tg-menu-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform .18s ease;
}

.tg-menu-group[open] .tg-menu-chevron {
    transform: rotate(180deg);
}

.tg-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 4px 36px;
    padding-left: 12px;
    border-left: 1px solid var(--tg-border);
}

.tg-submenu a {
    color: var(--tg-muted);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    transition: .18s ease;
}

.tg-submenu a:hover {
    background: var(--tg-surface-soft);
    color: var(--tg-primary);
}

.tg-submenu a {
    position: relative;
}

.tg-submenu a::before {
    position: absolute;
    left: -17px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b6c0d0;
    content: "";
    transform: translateY(-50%);
}

.tg-submenu a:hover::before {
    background: #2ead6b;
}

.tg-menu-icon {
    width: 24px;
    text-align: center;
}

/* Topbar */

.tg-search {
    width: 360px;
    max-width: 100%;
    background: var(--tg-bg);
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--tg-muted);
}

.tg-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C7D2FE, #DDD6FE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--tg-primary-dark);
}

.tg-user-name {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.tg-user-role {
    font-size: 12px;
    color: var(--tg-muted);
    margin: 0;
}

/* Encabezados */

.tg-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.tg-page-title {
    font-size: 28px;
    font-weight: 850;
    margin: 0 0 6px;
    color: var(--tg-text);
}

.tg-page-subtitle {
    color: var(--tg-muted);
    margin: 0;
    font-size: 15px;
}

.tg-section-anchor {
    scroll-margin-top: 96px;
}

/* Cards */

.tg-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
    padding: 22px;
}

.tg-card-soft {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFF);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
    padding: 22px;
}

.tg-card-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--tg-text);
}

.tg-card-muted {
    color: var(--tg-muted);
    font-size: 14px;
}

/* KPIs */

.tg-kpi {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    padding: 20px;
    box-shadow: var(--tg-shadow);
    height: 100%;
}

.tg-kpi-label {
    font-size: 13px;
    color: var(--tg-muted);
    margin-bottom: 6px;
}

.tg-kpi-value {
    font-size: 30px;
    font-weight: 850;
    margin: 0;
    color: var(--tg-text);
}

.tg-kpi-note {
    font-size: 12px;
    color: var(--tg-muted);
}

.tg-pie-chart {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--tg-primary) 0 33.3%,
            var(--tg-secondary) 33.3% 58.3%,
            var(--tg-warning) 58.3% 100%
        );
    box-shadow: var(--tg-shadow);
}

.tg-pie-chart-center {
    position: absolute;
    inset: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tg-surface);
    color: var(--tg-text);
}

.tg-pie-chart-center strong {
    font-size: 28px;
    line-height: 1;
}

.tg-pie-chart-center small {
    margin-top: 6px;
    color: var(--tg-muted);
}

.tg-chart-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
}

.tg-chart-dot-primary {
    background: var(--tg-primary);
}

.tg-chart-dot-secondary {
    background: var(--tg-secondary);
}

.tg-chart-dot-warning {
    background: var(--tg-warning);
}

/* Badges */

.tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.tg-badge-primary {
    background: rgba(91, 95, 239, 0.12);
    color: var(--tg-primary);
}

.tg-badge-success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--tg-success);
}

.tg-badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #B45309;
}

.tg-badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--tg-danger);
}

.tg-badge-link {
    background: rgba(14, 165, 233, 0.14);
    color: #0284C7;
}

/* Botones */

.tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(31, 58, 95, .04);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.tg-btn:hover {
    transform: translateY(-1px);
}

.tg-btn:active {
    transform: translateY(0);
}

.tg-btn:focus-visible,
.tg-icon-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(96, 80, 232, .18);
}

.tg-btn-primary {
    background: linear-gradient(135deg, var(--tg-primary), #7366f5);
    color: white;
    box-shadow: 0 8px 16px rgba(96, 80, 232, .2);
}

.tg-btn-primary:hover {
    background: var(--tg-primary-dark);
    color: white;
    box-shadow: 0 11px 20px rgba(96, 80, 232, .28);
}

.tg-btn-light {
    background: white;
    color: var(--tg-text);
    border-color: rgba(31, 58, 95, .13);
    box-shadow: 0 3px 10px rgba(31, 58, 95, .05);
}

.tg-btn-light:hover {
    background: #f7f6ff;
    border-color: rgba(96, 80, 232, .28);
    color: var(--tg-primary);
    box-shadow: 0 8px 16px rgba(31, 58, 95, .1);
}

.tg-btn.btn-sm {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
}

.tg-btn i {
    font-size: 1.05em;
    line-height: 1;
}

.tg-btn:disabled,
.tg-btn.disabled,
.tg-btn[aria-disabled="true"] {
    opacity: .52;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* Acciones heredadas: se integran al sistema sin cambiar su comportamiento. */
.tg-content .btn.btn-link.text-danger {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(220, 38, 38, .16);
    border-radius: 10px;
    background: #fffafa;
    color: #c24141 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-content .btn.btn-link.text-danger:hover {
    border-color: rgba(220, 38, 38, .34);
    background: #fff1f1;
    box-shadow: 0 5px 12px rgba(185, 28, 28, .1);
    transform: translateY(-1px);
}

/* Progress */

.tg-progress {
    height: 9px;
    background: #E8EAF1;
    border-radius: 999px;
    overflow: hidden;
}

.tg-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tg-primary), var(--tg-secondary));
}

.tg-progress-success {
    background: linear-gradient(90deg, #16A34A, #22C55E);
}

.tg-progress-warning {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

/* Listas visuales */

.tg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #FAFBFF;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    padding: 14px;
}

.tg-list-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.tg-list-subtitle {
    font-size: 12px;
    color: var(--tg-muted);
    margin: 2px 0 0;
}

/* Responsive básico */

@media (max-width: 1220px) {
    .tg-topbar-search {
        width: min(360px, 34vw);
    }

    .tg-user-chip {
        padding-right: 5px;
    }

    .tg-user-chip-details {
        display: none;
    }
}

@media (max-width: 992px) {
    .tg-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--tg-border);
    }

    .tg-app {
        flex-direction: column;
    }

    .tg-main {
        margin-left: 0;
    }

    .tg-topbar {
        padding: 0 18px;
    }

    .tg-content {
        padding: 22px 18px;
    }

    .tg-page-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .tg-topbar {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 18px;
    }

    .tg-topbar-search {
        order: 2;
        width: 100%;
    }

    .tg-topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tg-participant-dashboard-header .tg-participant-dashboard-action {
        align-self: flex-start;
    }

    .tg-participant-current-session,
    .tg-participant-featured-task,
    .tg-participant-progress-guide {
        padding: 22px;
    }

    .tg-participant-guide-steps {
        grid-template-columns: 1fr;
    }

    .tg-participant-medal-preview {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Emblemas modernos ThinkGo
   ========================================================= */

   .tg-emblem-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.tg-emblem-direction {
    background: linear-gradient(135deg, #EEF2FF, #C7D2FE);
    color: #4F46E5;
}

.tg-emblem-explorer {
    background: linear-gradient(135deg, #ECFEFF, #A5F3FC);
    color: #0891B2;
}

.tg-emblem-visibility {
    background: linear-gradient(135deg, #FFF7ED, #FED7AA);
    color: #EA580C;
}

.tg-emblem-pitch {
    background: linear-gradient(135deg, #F5F3FF, #DDD6FE);
    color: #7C3AED;
}

.tg-session-medal-icon {
    width: min(62%, 230px);
    aspect-ratio: 1;
    height: auto;
    border-radius: 30%;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.tg-session-medal-item {
    min-height: 430px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.tg-session-medal-item > .d-flex {
    flex-direction: column;
    gap: 1rem !important;
}

@media (max-width: 576px) {
    .tg-session-medal-icon {
        width: min(58vw, 190px);
        font-size: 5rem;
    }

    .tg-session-medal-item {
        min-height: 330px;
    }
}

.tg-admin-detail-hero { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.7fr); gap:26px; align-items:center; padding:28px; background:linear-gradient(115deg,#f7f8ff 0%,#fff 58%,#eefaf9 100%); }
.tg-admin-detail-copy { padding:8px 8px 8px 18px; border-left:4px solid #66cfc0; }
.tg-admin-detail-avatar { width:64px; height:64px; font-size:20px; background:linear-gradient(145deg,#d9ddff,#c7f0ed); color:#3f42ae; }

@media (max-width: 991px) {
    .tg-admin-detail-hero { grid-template-columns:1fr; }
}

@media (max-width: 576px) {
    .tg-admin-detail-hero { padding:22px; }
    .tg-admin-detail-copy { padding-left:12px; }
}

/* Administrative participant overview */
.tg-admin-hero { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.7fr); gap:26px; align-items:center; padding:24px 28px; background:linear-gradient(115deg,#f7f8ff 0%,#fff 58%,#eefaf9 100%); }
.tg-admin-hero-copy { align-self:center; max-width:900px; padding:10px 8px 10px 18px; border-left:4px solid #66cfc0; }
.tg-admin-summary-card { padding:22px 24px; border:1px solid #cfe3e9; border-radius:22px; background:linear-gradient(145deg,#fff,#edfafa); color:var(--tg-navy); box-shadow:0 10px 24px rgba(32,54,88,.07); }
.tg-admin-summary-card hr { margin:16px 0; border-color:#dfe5ed; opacity:1; }
.tg-admin-summary-card p { margin:0 0 8px; color:var(--tg-navy); }
.tg-admin-progress-value { color:#5960ef; font-size:24px; }
.tg-admin-participant-list { display:grid; gap:14px; }
.tg-admin-participant-card { display:flex; justify-content:space-between; gap:24px; padding:24px; border:1px solid #e0e5ee; border-radius:20px; background:#f9faff; transition:transform .18s ease, box-shadow .18s ease; }
.tg-admin-participant-card:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(32,54,88,.08); }
.tg-admin-participant-main { min-width:0; }
.tg-admin-participant-main h4 { margin:0 0 6px; color:var(--tg-navy); font-size:19px; }
.tg-admin-participant-main p { margin:0; color:var(--tg-muted); line-height:1.5; }
.tg-admin-participant-main small { display:block; margin-top:6px; color:var(--tg-muted); }
.tg-admin-participant-action { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:18px; flex-shrink:0; }
.tg-admin-stage-count { color:#5960ef; font-size:24px; }
.tg-admin-medal-card { min-height:170px; padding:22px 14px; border-color:#e0e5ee; background:linear-gradient(145deg,#fff,#fafbff); }
.tg-admin-medal-card h5 { margin:14px 0 6px; color:var(--tg-navy); }
.tg-admin-table th { white-space:nowrap; color:var(--tg-navy); }
.tg-admin-table td { min-width:120px; }
.tg-admin-table td:first-child { min-width:190px; }
.tg-admin-detail-directory { background:linear-gradient(145deg,#fff 0%,#fbfcff 72%,#f1fbfa 100%); }
.tg-admin-detail-directory-selected { background:#f1f2ff; }
.tg-admin-detail-directory .tg-admin-table-progress { width:110px; min-width:90px; }
.tg-admin-detail-directory .tg-btn { white-space:nowrap; }
.tg-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:120px; padding:24px; border:1px dashed #cdd8e8; border-radius:16px; background:#fafbff; color:var(--tg-muted); text-align:center; }
.tg-empty-state i { color:#5960ef; font-size:26px; }
.tg-empty-state strong { color:var(--tg-navy); }
.tg-btn-sm { padding:8px 14px; font-size:13px; }

@media (max-width: 991px) {
    .tg-admin-hero { grid-template-columns:1fr; }
}

@media (max-width: 576px) {
    .tg-admin-hero { padding:22px; }
    .tg-admin-participant-card { flex-direction:column; gap:18px; }
    .tg-admin-participant-action { align-items:flex-start; flex-direction:row; flex-wrap:wrap; }
    .tg-admin-summary-card { padding:22px; }
    .tg-admin-detail-directory .tg-admin-table-progress { width:90px; }
}

/* Portal participante: el avance y la siguiente acción deben leerse primero. */
.tg-participant-sessions-page .tg-page-header,
.tg-participant-session-detail-page .tg-page-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-participant-sessions-header .tg-btn { min-height: 44px; }
.tg-participant-sessions-current .tg-card { position: relative; z-index: 1; box-shadow: 0 12px 28px rgba(12, 35, 69, .16); }

.tg-participant-sessions-page > .tg-card-soft:first-of-type,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(125deg, #1f3a5f 0%, #294b72 58%, #2ead6b 145%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(31, 58, 95, .18);
}

.tg-participant-sessions-page > .tg-card-soft:first-of-type::after,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type::after {
    position: absolute;
    width: 230px;
    height: 230px;
    right: -80px;
    top: -105px;
    border: 34px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
}

.tg-participant-sessions-page > .tg-card-soft:first-of-type .tg-page-title,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type .tg-page-title,
.tg-participant-sessions-page > .tg-card-soft:first-of-type .tg-page-subtitle,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type .tg-page-subtitle {
    color: #fff;
}

.tg-participant-sessions-page > .tg-card-soft:first-of-type .tg-page-subtitle,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type .tg-page-subtitle,
.tg-participant-sessions-page > .tg-card-soft:first-of-type .text-muted,
.tg-participant-session-detail-page > .tg-card-soft:first-of-type .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.tg-participant-sessions-page > .row:first-of-type .tg-kpi,
.tg-participant-session-detail-page > .row:first-of-type .tg-kpi {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(31, 58, 95, .06);
}

.tg-participant-sessions-page .tg-list-item,
.tg-participant-session-detail-page .tg-list-item {
    gap: 18px;
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-participant-sessions-page .tg-list-item:hover,
.tg-participant-session-detail-page .tg-list-item:hover {
    border-color: rgba(46, 173, 107, .34);
    box-shadow: 0 10px 22px rgba(31, 58, 95, .07);
    transform: translateY(-1px);
}

.tg-participant-sessions-page .tg-list-item:has(.tg-btn-primary) {
    border-left: 4px solid #2ead6b;
    background: linear-gradient(90deg, rgba(46, 173, 107, .07), #fff 32%);
}

.tg-participant-session-detail-page .tg-card-title {
    letter-spacing: -.01em;
}

.tg-participant-session-detail-page .tg-card-soft {
    box-shadow: none;
}

.tg-participant-session-detail-page .tg-session-medal-item {
    min-height: 0;
}

.tg-participant-session-detail-page .tg-session-medal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tg-participant-session-detail-page .tg-session-medal-list .tg-session-medal-item {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.tg-participant-session-detail-page .tg-session-medal-list .tg-session-medal-item > div {
    flex-direction: column;
}

.tg-participant-session-detail-page .tg-session-medal-list .tg-session-medal-item .tg-session-medal-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 4px !important;
}

.tg-participant-session-detail-page .tg-session-medal-list .tg-session-medal-item > .tg-badge {
    margin-top: 10px;
}

/* El resumen de sesión usa una variante cromática sin alterar sus datos. */
.tg-participant-session-detail-page > div:nth-of-type(2) {
    border: 0;
    background: linear-gradient(120deg, #1f3a5f, #286779);
    color: #fff;
    box-shadow: 0 18px 38px rgba(31, 58, 95, .16);
}

.tg-participant-session-detail-page > div:nth-of-type(2) .tg-page-title,
.tg-participant-session-detail-page > div:nth-of-type(2) .tg-page-subtitle,
.tg-participant-session-detail-page > div:nth-of-type(2) .text-muted {
    color: #fff !important;
}

.tg-participant-session-detail-page > div:nth-of-type(2) .tg-card {
    border: 0;
    color: var(--tg-text);
    box-shadow: 0 12px 28px rgba(12, 35, 69, .16);
}

.tg-participant-session-detail-page > div:nth-of-type(2) .tg-card .text-muted {
    color: var(--tg-muted) !important;
}

.tg-participant-session-detail-page > .tg-participant-session-metrics .tg-kpi {
    height: 100%;
    border-top: 4px solid #7c6cf2;
    background: linear-gradient(145deg, #fff, #faf9ff);
}

.tg-participant-session-detail-page > .tg-participant-session-metrics > div:nth-child(2) .tg-kpi { border-top-color: #0ea5b7; background: linear-gradient(145deg, #fff, #f4fdff); }
.tg-participant-session-detail-page > .tg-participant-session-metrics > div:nth-child(3) .tg-kpi { border-top-color: #2ead6b; background: linear-gradient(145deg, #fff, #f5fcf8); }
.tg-participant-session-detail-page > .tg-participant-session-metrics > div:nth-child(4) .tg-kpi { border-top-color: #e58c2a; background: linear-gradient(145deg, #fff, #fff9f2); }

.tg-participant-session-detail-page > .row:nth-of-type(4) .tg-card { background: linear-gradient(145deg, #fff, #fafcff); }

.tg-participant-session-detail-page > .row:nth-of-type(4) > div:first-child .tg-card { border-top: 4px solid #6373ee; background: linear-gradient(145deg, #fff, #f7f8ff); }
.tg-participant-session-detail-page > .row:nth-of-type(4) > div:last-child .tg-card { border-top: 4px solid #2ead6b; background: linear-gradient(145deg, #fff, #f5fcf8); }
.tg-participant-session-detail-page > .row:nth-of-type(4) .tg-card-soft { border-color: rgba(99, 115, 238, .15); background: rgba(255, 255, 255, .72); }

.tg-participant-session-detail-page > .row:nth-of-type(5) > div:first-child .tg-card { border-top: 4px solid #7c6cf2; background: linear-gradient(145deg, #fff, #faf9ff); }
.tg-participant-session-detail-page > .row:nth-of-type(5) > div:last-child .tg-card { border-top: 4px solid #e59a35; background: linear-gradient(145deg, #fff, #fff9f1); }
.tg-participant-session-detail-page > .row:nth-of-type(5) .tg-list-item { border-color: rgba(99, 115, 238, .13); background: rgba(248, 249, 255, .82); }

.tg-participant-session-detail-page .tg-list-item:has(.tg-btn-light) {
    background: #fbfcff;
}

.tg-session-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tg-session-resources-card { background: linear-gradient(145deg, #fff, #f8fbff); border-top: 4px solid #7c6cf2; }
.tg-session-next-steps-card { background: linear-gradient(145deg, #fff, #f7fdf9); border-top: 4px solid #2ead6b; }
.tg-session-bottom-grid .tg-list-item { background: rgba(248, 250, 255, .9); }

@media (max-width: 768px) { .tg-session-bottom-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Cartera del Consultor: prioriza personas, responsabilidad y acceso. */
.tg-consultant-roster-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-roster-back-button {
    min-height: 44px;
    padding-inline: 17px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(31, 58, 95, .04);
}

.tg-roster-back-button:hover {
    border-color: rgba(96, 80, 232, .28);
    box-shadow: 0 7px 18px rgba(31, 58, 95, .08);
    transform: translateX(-2px);
}

.tg-consultant-roster-metrics .tg-kpi {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(31, 58, 95, .06);
}

.tg-consultant-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 16px;
}

.tg-consultant-participant-card {
    padding: 18px;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-consultant-participant-card:hover {
    border-color: rgba(46, 173, 107, .38);
    box-shadow: 0 14px 28px rgba(31, 58, 95, .09);
    transform: translateY(-2px);
}

.tg-consultant-participant-card.is-primary {
    border-top: 4px solid #2ead6b;
    background: linear-gradient(145deg, rgba(46, 173, 107, .06), #fff 40%);
}

.tg-consultant-participant-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d8f3e5, #dbeafe);
    color: #1f3a5f;
}

.tg-consultant-participant-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--tg-surface-soft);
}

.tg-consultant-participant-meta span,
.tg-consultant-participant-meta strong {
    display: block;
}

/* Dashboard del Consultor: indicadores que llevan directamente al trabajo. */
.tg-consultant-dashboard-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-consultant-dashboard-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tg-consultant-dashboard-actions .tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.tg-consultant-participant-footer {
    padding-top: 2px;
}

.tg-consultant-participant-footer .tg-badge {
    padding: 8px 11px;
    border: 1px solid rgba(46, 173, 107, .12);
    font-size: 12px;
}

.tg-participant-profile-button {
    min-width: 130px;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 12px;
    box-shadow: 0 7px 15px rgba(96, 80, 232, .18);
}

.tg-participant-profile-button i {
    font-size: 17px;
    transition: transform .18s ease;
}

.tg-participant-profile-button:hover i {
    transform: translateX(3px);
}

.tg-participant-profile-button.tg-btn-light {
    box-shadow: none;
}

.tg-consultant-kpi-link {
    display: block;
    height: 100%;
}

.tg-consultant-kpi-link .tg-kpi {
    height: 100%;
    border-radius: 16px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-consultant-kpi-link:hover .tg-kpi {
    border-color: rgba(46, 173, 107, .4);
    box-shadow: 0 14px 28px rgba(31, 58, 95, .10);
    transform: translateY(-2px);
}

.tg-consultant-kpi-link .tg-kpi-note {
    color: #258a57;
    font-weight: 700;
}

.tg-consultant-kpi-alert {
    background: linear-gradient(145deg, #fffaf0, #fff 66%);
}

.tg-consultant-agenda-card {
    border: 1px solid #9ec8d6;
    background: linear-gradient(135deg, #427c9a 0%, #4d92a4 62%, #63aa91 145%);
    box-shadow: 0 16px 32px rgba(55, 115, 141, .16);
}

.tg-consultant-agenda-card .tg-card-title,
.tg-consultant-agenda-card .tg-card-muted {
    color: #fff;
}

.tg-consultant-agenda-card .tg-card-muted {
    color: rgba(255, 255, 255, .8);
}

.tg-consultant-agenda-card > .text-muted {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9) !important;
}

.tg-consultant-agenda-card > .text-muted::before {
    color: #bcefd1;
    content: "\F52A";
    font-family: "bootstrap-icons";
    font-size: 18px;
}

.tg-consultant-agenda-card .tg-btn-light {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.tg-consultant-agenda-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tg-consultant-agenda-preview {
    display: grid;
    gap: .55rem;
}

.tg-consultant-agenda-item {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr) auto;
    align-items: center;
    gap: 1.15rem;
    min-height: 66px;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
}

.tg-consultant-agenda-item__time,
.tg-consultant-agenda-item__detail {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.tg-consultant-agenda-item__time strong,
.tg-consultant-agenda-item__detail strong {
    overflow: hidden;
    color: #1d2d4c;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-consultant-agenda-item__time span,
.tg-consultant-agenda-item__detail span {
    overflow: hidden;
    color: #6e7c92;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-consultant-agenda-item__time span {
    color: #5d5bea;
    font-weight: 700;
}

.tg-consultant-agenda-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .85rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.tg-consultant-agenda-more:hover {
    color: #fff;
    text-decoration: underline;
}

/* Agenda del Consultor: separa la jornada inmediata de la planificación. */
.tg-consultant-agenda-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-agenda-back-button {
    min-height: 44px;
    padding-inline: 17px;
}

.tg-agenda-back-button:hover i {
    transform: translateX(-3px);
}

.tg-agenda-register-button {
    min-height: 44px;
    padding-inline: 17px;
}

.tg-agenda-register-button i,
.tg-agenda-back-button i {
    transition: transform .18s ease;
}

.tg-agenda-register-button:hover i {
    transform: rotate(-8deg) scale(1.08);
}

.tg-sessions-agenda-button {
    min-height: 44px;
    padding-inline: 17px;
}

.tg-sessions-agenda-button i {
    transition: transform .18s ease;
}

.tg-sessions-agenda-button:hover i {
    transform: translateY(-2px);
}

.tg-consultant-today-card,
.tg-consultant-upcoming-card {
    scroll-margin-top: 96px;
}

.tg-consultant-today-card {
    border: 0;
    background: linear-gradient(135deg, #1f3a5f 0%, #294b72 62%, #2a8054 155%);
    box-shadow: 0 18px 38px rgba(31, 58, 95, .17);
}

.tg-consultant-today-card .tg-card-title,
.tg-consultant-today-card .tg-card-muted {
    color: #fff;
}

.tg-consultant-today-card .tg-card-muted,
.tg-consultant-today-card > .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.tg-consultant-today-card .tg-list-item {
    background: rgba(255, 255, 255, .97);
}

.tg-consultant-today-card > .d-flex > .tg-badge-primary {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.tg-consultant-today-card > .text-muted {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0 !important;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 650;
}

.tg-consultant-today-card > .text-muted::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    background: rgba(158, 230, 192, .15);
    color: #9ee6c0;
    content: "\F52A";
    font-family: "bootstrap-icons";
    font-size: 18px;
}

.tg-consultant-agenda-event {
    gap: 18px;
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-consultant-agenda-event:hover {
    border-color: rgba(46, 173, 107, .38);
    box-shadow: 0 10px 22px rgba(31, 58, 95, .08);
    transform: translateY(-1px);
}

.tg-consultant-upcoming-card .tg-list-item + .tg-list-item {
    margin-top: 10px;
}

/* Tareas del Consultor: primero las entregas que necesitan una decisión. */
.tg-consultant-tasks-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-consultant-tasks-kpis .tg-kpi {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(31, 58, 95, .06);
}

.tg-consultant-review-queue {
    border: 1px solid rgba(245, 158, 11, .25);
    background: linear-gradient(135deg, #fffaf0, #fff 62%);
}

.tg-consultant-review-item {
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    background: #fff;
}

.tg-consultant-task-participant {
    border-radius: 14px;
}

.tg-consultant-empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed rgba(46, 173, 107, .35);
    border-radius: 14px;
    background: rgba(46, 173, 107, .05);
    color: #1c7448;
    font-weight: 700;
}

.tg-consultant-empty-state i {
    color: #2ead6b;
    font-size: 22px;
}

/* Creación de tareas: guía visual sin alterar campos ni validaciones. */
.tg-consultant-task-create-page .tg-page-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-consultant-task-create-page .tg-form-premium {
    max-width: 980px;
    padding: 30px;
}

.tg-consultant-task-create-page .tg-form-section {
    position: relative;
    padding: 24px;
    background: linear-gradient(145deg, #fff, #fbfcff);
}

.tg-consultant-task-create-page .tg-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-consultant-task-create-page .tg-form-title::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(46, 173, 107, .12);
    color: #258a57;
    content: "\F4BF";
    font-family: "bootstrap-icons";
    font-size: 17px;
}

.tg-consultant-task-create-page .tg-form-section > .row > .col-md-6:first-child,
.tg-consultant-task-create-page .tg-form-section > .row > .col-12:nth-child(5),
.tg-consultant-task-create-page .tg-form-section > .row > .col-md-8 {
    position: relative;
}

.tg-consultant-task-create-page .form-control,
.tg-consultant-task-create-page .form-select {
    min-height: 46px;
    border-radius: 13px;
    border-color: var(--tg-border);
    background: #fbfcff;
}

.tg-consultant-task-create-page textarea.form-control {
    min-height: auto;
}

.tg-consultant-task-create-page .form-control:focus,
.tg-consultant-task-create-page .form-select:focus {
    border-color: rgba(46, 173, 107, .65);
    box-shadow: 0 0 0 4px rgba(46, 173, 107, .11);
    background: #fff;
}

.tg-consultant-task-create-page .form-check {
    padding: 14px 16px 14px 40px;
    border: 1px solid var(--tg-border);
    border-radius: 13px;
    background: var(--tg-surface-soft);
}

.tg-consultant-task-create-page .tg-action-bar {
    margin-top: 6px;
}

.tg-task-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .tg-consultant-task-create-page .tg-form-premium,
    .tg-consultant-task-create-page .tg-form-section {
        padding: 18px;
    }

    .tg-consultant-task-create-page .tg-page-header {
        align-items: stretch;
        gap: 16px;
    }

    .tg-task-back-button {
        align-self: flex-start;
    }
}

.tg-consultant-participant-meta span {
    margin-bottom: 4px;
    color: var(--tg-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tg-consultant-participant-meta strong {
    overflow: hidden;
    color: var(--tg-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .tg-participant-sessions-page .tg-page-header,
    .tg-participant-session-detail-page .tg-page-header {
        padding-bottom: 16px;
    }

    .tg-participant-sessions-page > .tg-card-soft:first-of-type,
    .tg-participant-session-detail-page > .tg-card-soft:first-of-type {
        padding: 18px;
    }

    .tg-consultant-participant-meta {
        grid-template-columns: 1fr;
    }

    .tg-consultant-agenda-header .tg-agenda-back-button {
        align-self: flex-start;
    }

    .tg-consultant-roster-header .tg-roster-back-button {
        align-self: flex-start;
    }

    .tg-consultant-dashboard-actions {
        width: 100%;
        justify-content: stretch;
    }

    .tg-consultant-dashboard-actions .tg-btn {
        flex: 1 1 100%;
    }

    .tg-consultant-agenda-card__heading {
        align-items: flex-start;
    }

    .tg-consultant-agenda-item {
        grid-template-columns: 1fr auto;
        gap: .55rem .85rem;
    }

    .tg-consultant-agenda-item__detail {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   Formularios premium ThinkGo
   ========================================================= */

   .tg-form-premium {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFF);
    border: 1px solid var(--tg-border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--tg-shadow);
}

.tg-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-border);
}

.tg-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 95, 239, 0.10);
    color: var(--tg-primary);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.tg-form-title {
    font-size: 24px;
    font-weight: 850;
    color: var(--tg-text);
    margin: 0 0 8px;
}

.tg-form-subtitle {
    color: var(--tg-muted);
    font-size: 14px;
    margin: 0;
    max-width: 680px;
}

.tg-form-section {
    background: #FFFFFF;
    border: 1px solid var(--tg-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
}

.tg-form-section-title {
    font-size: 15px;
    font-weight: 850;
    color: var(--tg-text);
    margin: 0 0 14px;
}

.tg-field-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--tg-text);
    margin-bottom: 8px;
}

.tg-field-help {
    font-size: 12px;
    color: var(--tg-muted);
    margin-top: 6px;
}

.tg-input,
.tg-select,
.tg-textarea {
    border-radius: 14px;
    border: 1px solid var(--tg-border);
    background: #FBFCFF;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--tg-text);
}

.tg-input:focus,
.tg-select:focus,
.tg-textarea:focus {
    border-color: rgba(91, 95, 239, 0.55);
    box-shadow: 0 0 0 4px rgba(91, 95, 239, 0.10);
    background: #FFFFFF;
}

.tg-textarea {
    min-height: 150px;
    resize: vertical;
}

.tg-side-panel-premium {
    background: linear-gradient(180deg, #FFFFFF, #F7F8FF);
    border: 1px solid var(--tg-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--tg-shadow);
}

.tg-guidance-card {
    background: #FFFFFF;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    padding: 16px;
}

.tg-guidance-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(91, 95, 239, 0.12);
    color: var(--tg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}

.tg-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--tg-border);
}

@media (max-width: 768px) {
    .tg-form-header,
    .tg-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   THINKGO PRO - ICONOS MODERNOS SIDEBAR
   ========================================================= */

   .tg-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-menu-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 58, 95, 0.07);
    color: #607086;
    font-size: 16px;
    transition: all 0.2s ease;
}

.tg-menu-icon i {
    line-height: 1;
}

.tg-menu-link:hover .tg-menu-icon {
    background: rgba(46, 173, 107, 0.12);
    color: #2EAD6B;
    transform: translateY(-1px);
}

.tg-menu-link.active .tg-menu-icon {
    background: linear-gradient(135deg, #1F3A5F 0%, #2EAD6B 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 58, 95, 0.22);
}

.tg-menu-link.active .tg-menu-icon i {
    color: #ffffff;
}

/* Botones superiores con estilo consistente */
.tg-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(31, 58, 95, 0.08);
    background: #ffffff;
    color: #607086;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tg-icon-button:hover {
    background: rgba(46, 173, 107, 0.08);
    color: #2EAD6B;
    transform: translateY(-1px);
}

.tg-topbar-search i {
    color: #607086;
    font-size: 16px;
}

/* Registro de sesiones: información operativa sin perder contexto. */
.tg-session-overview {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(0, 2.15fr);
    gap: 22px;
    padding: 22px;
    background: linear-gradient(125deg, #1f3a5f 0%, #294b72 62%, #2ead6b 150%);
    border-radius: var(--tg-radius);
    box-shadow: 0 16px 34px rgba(31, 58, 95, .16);
    color: #fff;
}

.tg-session-overview .tg-form-eyebrow {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.tg-session-overview .tg-card-muted {
    color: rgba(255, 255, 255, .78);
}

.tg-session-context {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.tg-session-context span,
.tg-session-context strong {
    display: block;
}

.tg-session-context span {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tg-session-context strong {
    font-size: 14px;
    line-height: 1.35;
}

.tg-session-jump-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: -8px 0 22px;
    padding: 4px 2px;
}

.tg-session-jump-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--tg-border);
    border-radius: 999px;
    background: var(--tg-surface);
    color: var(--tg-muted);
    font-size: 13px;
    font-weight: 750;
}

.tg-session-jump-nav a:hover {
    border-color: rgba(46, 173, 107, .4);
    color: #197c4b;
}

.tg-session-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.tg-section-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #258a57;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tg-session-form-block {
    padding: 18px;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    background: #fcfdff;
}

.tg-session-form-block + .tg-session-form-block {
    margin-top: 16px;
}

.tg-session-form-block-title {
    margin: 0 0 16px;
    color: var(--tg-text);
    font-size: 15px;
    font-weight: 850;
}

.tg-session-content-item,
.tg-task-commitment {
    padding: 16px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: #fff;
}

.tg-session-content-item + .tg-session-content-item {
    margin-top: 12px;
}

.tg-session-panel {
    scroll-margin-top: 96px;
}

.tg-journal-block {
    box-shadow: none;
}

.tg-journal-shared {
    border-left: 4px solid #2ead6b;
}

.tg-journal-internal {
    border-left: 4px solid #f59e0b;
}

.tg-session-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    background: var(--tg-surface);
    box-shadow: var(--tg-shadow);
}

@media (max-width: 991px) {
    .tg-session-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tg-session-overview,
    .tg-session-record,
    .tg-session-panel {
        padding: 16px;
    }

    .tg-session-section-heading,
    .tg-session-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tg-session-action-bar .tg-btn {
        flex: 1;
    }
}

/* Participant task workspace */
.tg-participant-tasks-header {
    margin-bottom: 28px;
}

.tg-participant-tasks-header .tg-page-kicker {
    margin-bottom: 8px;
}

.tg-participant-tasks-kpis .tg-kpi {
    position: relative;
    overflow: hidden;
    min-height: 152px;
    border-top: 4px solid #dfe3ff;
    background: linear-gradient(135deg, #fff 0%, #fafaff 100%);
}

.tg-participant-tasks-kpis .col-md-3:nth-child(2) .tg-kpi {
    border-top-color: #b9ecd0;
    background: linear-gradient(135deg, #fff 0%, #f4fcf7 100%);
}

.tg-participant-tasks-kpis .col-md-3:nth-child(3) .tg-kpi {
    border-top-color: #f5d3a5;
    background: linear-gradient(135deg, #fff 0%, #fffaf3 100%);
}

.tg-participant-tasks-kpis .col-md-3:nth-child(4) .tg-kpi {
    border-top-color: #bcecf0;
    background: linear-gradient(135deg, #fff 0%, #f4fdfe 100%);
}

.tg-participant-featured-task {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 28px;
    padding: 30px;
    border: 1px solid #e1e5ee;
    border-radius: 22px;
    background: linear-gradient(125deg, #f8faff 0%, #fff 58%, #f6fbf8 100%);
    box-shadow: var(--tg-shadow);
}

.tg-participant-featured-task-main h2 {
    margin: 16px 0 8px;
    color: var(--tg-text);
    font-size: clamp(25px, 2.4vw, 36px);
    font-weight: 850;
    letter-spacing: -.035em;
}

.tg-participant-featured-task-context {
    margin: 0;
    color: var(--tg-muted);
    font-weight: 700;
}

.tg-participant-featured-task-description {
    max-width: 900px;
    margin: 20px 0 24px;
    color: var(--tg-text);
    font-size: 16px;
    line-height: 1.65;
}

.tg-participant-delivery-status {
    align-self: stretch;
    padding: 22px;
    border: 1px solid #e0e4f1;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
}

.tg-participant-delivery-status .tg-card-title {
    margin-bottom: 12px;
}

.tg-participant-delivery-meta {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--tg-border);
    color: var(--tg-text);
    font-size: 14px;
    line-height: 1.45;
}

.tg-participant-review-flow {
    border-top: 4px solid #d9dcff;
    background: linear-gradient(130deg, #fff 0%, #fbfbff 100%);
}

.tg-participant-review-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.tg-participant-review-step {
    min-height: 82px;
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--tg-border);
    border-radius: 14px;
    background: #f9faff;
    color: var(--tg-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.tg-participant-review-step.is-current {
    border-color: #d9bd96;
    background: #fff5e7;
    color: #b85b0b;
    box-shadow: 0 8px 18px rgba(205, 121, 27, .1);
}

.tg-participant-review-step.is-complete {
    border-color: #bce6cc;
    background: #effaf3;
    color: #168a4e;
}

.tg-participant-tasks-overview,
.tg-participant-tasks-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 24px;
}

.tg-participant-task-groups {
    border-top: 4px solid #dcdfff;
}

.tg-participant-task-groups .tg-card-soft {
    border-left: 3px solid #d7daff;
    background: linear-gradient(100deg, #fafbff 0%, #fff 100%);
}

.tg-participant-task-groups .tg-list-item {
    border-color: #e3e6ee;
    background: #fff;
}

.tg-task-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 22px 0 -4px;
    padding: 2px 1px 7px;
}

.tg-task-filter {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #e0e4ee;
    border-radius: 999px;
    background: #fff;
    color: var(--tg-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.tg-task-filter:hover {
    border-color: #c9ccf8;
    color: #4f50cf;
    transform: translateY(-1px);
}

.tg-task-filter.is-active {
    border-color: #5b5cf2;
    background: #5b5cf2;
    color: #fff;
    box-shadow: 0 7px 14px rgba(91, 92, 242, .2);
}

.tg-task-session-accordion {
    overflow: hidden;
    border: 1px solid #e1e5ee;
    border-left: 3px solid #d7daff;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tg-task-session-accordion[open] {
    border-color: #ccd0fb;
    box-shadow: 0 12px 26px rgba(46, 56, 112, .07);
}

.tg-task-session-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: linear-gradient(100deg, #fafbff 0%, #fff 100%);
    cursor: pointer;
    list-style: none;
}

.tg-task-session-accordion summary::-webkit-details-marker {
    display: none;
}

.tg-task-session-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr);
    flex: 1;
    gap: 18px;
    align-items: center;
}

.tg-task-session-heading strong,
.tg-task-session-heading small,
.tg-task-session-progress small {
    display: block;
}

.tg-task-session-heading strong {
    color: var(--tg-text);
    font-size: 15px;
}

.tg-task-session-heading small,
.tg-task-session-progress small {
    margin-top: 5px;
    color: var(--tg-muted);
    font-size: 12px;
    line-height: 1.4;
}

.tg-task-session-progress .tg-progress {
    height: 7px;
}

.tg-task-session-accordion summary > .bi {
    color: #6769d9;
    transition: transform .2s ease;
}

.tg-task-session-accordion[open] summary > .bi {
    transform: rotate(180deg);
}

.tg-task-session-content {
    padding: 0 16px 16px;
    border-top: 1px solid #edf0f6;
    background: #fcfdff;
}

.tg-task-session-content .tg-list {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.tg-participant-task-summary {
    align-self: start;
    border-top: 4px solid #93ded1;
    background: linear-gradient(145deg, #fbffff 0%, #f1fbf8 100%);
}

.tg-participant-summary-session {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(52, 122, 116, .18);
    color: var(--tg-text);
    font-size: 14px;
}

.tg-participant-summary-stat {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
    padding: 12px 13px;
    border: 1px solid rgba(62, 139, 132, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    color: var(--tg-text);
    font-size: 13px;
}

.tg-participant-summary-stat span {
    color: #197c4b;
    font-size: 17px;
    font-weight: 850;
}

.tg-participant-tasks-footer > .tg-card:first-child {
    border-top: 4px solid #bde8d1;
    background: linear-gradient(135deg, #fff 0%, #f7fcf9 100%);
}

.tg-participant-next-actions {
    align-self: start;
    border-top: 4px solid #f3d3a7;
    background: linear-gradient(145deg, #fff 0%, #fff9f0 100%);
}

.tg-participant-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--tg-text);
    text-decoration: none;
}

.tg-participant-next-action:hover {
    border-color: #d6b378;
    color: var(--tg-text);
    transform: translateX(2px);
}

.tg-participant-next-action span,
.tg-participant-next-action small {
    display: block;
}

.tg-participant-next-action small {
    margin-top: 4px;
    color: var(--tg-muted);
}

/* Participant resource library */
.tg-participant-resources-header {
    margin-bottom: 28px;
}

.tg-participant-resources-header .tg-page-kicker {
    margin-bottom: 8px;
}

.tg-participant-resources-kpis .tg-kpi {
    min-height: 152px;
    border-top: 4px solid #cfd4ff;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.tg-participant-resources-kpis .col-md-4:nth-child(2) .tg-kpi {
    border-top-color: #bce9d1;
    background: linear-gradient(135deg, #fff 0%, #f4fcf7 100%);
}

.tg-participant-resources-kpis .col-md-4:nth-child(3) .tg-kpi {
    border-top-color: #b9e9ed;
    background: linear-gradient(135deg, #fff 0%, #f2fcfd 100%);
}

.tg-participant-resources-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 4px solid #cfd4ff;
    background: linear-gradient(115deg, #fbfcff 0%, #fff 65%, #f5fbf8 100%);
}

.tg-participant-resource-groups {
    display: grid;
    gap: 20px;
}

.tg-participant-resource-session {
    border-top: 4px solid #b6e5cf;
    background: linear-gradient(135deg, #fff 0%, #fbfefd 100%);
}

.tg-participant-resource-session header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.tg-participant-resource-list {
    display: grid;
    gap: 12px;
}

.tg-participant-resource-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e3e7ef;
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tg-participant-resource-item:hover {
    border-color: #c8cdf4;
    box-shadow: 0 10px 20px rgba(52, 64, 122, .07);
    transform: translateY(-1px);
}

.tg-participant-resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #e9ebff;
    color: #5658e5;
    font-size: 22px;
}

.tg-participant-resource-item:nth-child(3n + 2) .tg-participant-resource-icon {
    background: #e0f7f8;
    color: #0c91ac;
}

.tg-participant-resource-item:nth-child(3n) .tg-participant-resource-icon {
    background: #fff0dc;
    color: #cc6812;
}

.tg-participant-resource-copy h3 {
    margin: 0 0 5px;
    color: var(--tg-text);
    font-size: 16px;
    font-weight: 800;
}

.tg-participant-resource-copy p {
    margin: 0;
    color: var(--tg-muted);
    font-size: 14px;
    line-height: 1.5;
}

.tg-participant-resource-action {
    justify-self: end;
}

.tg-participant-resource-pending {
    color: var(--tg-muted);
    font-size: 13px;
    font-weight: 700;
}

.tg-participant-resources-empty {
    padding: 48px 30px;
    text-align: center;
    border-top: 4px solid #b9e9ed;
    background: linear-gradient(135deg, #fff 0%, #f4fcfd 100%);
}

.tg-participant-resources-empty .tg-participant-resource-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    background: #dff7f7;
    color: #118a9d;
}

/* Participant emblems */
.tg-participant-emblems-header { margin-bottom: 28px; }
.tg-participant-emblems-kpis .tg-kpi { min-height: 150px; border-top: 4px solid #d4d8ff; background: linear-gradient(135deg,#fff,#fafaff); }
.tg-participant-emblems-kpis .col-md-3:nth-child(2) .tg-kpi { border-color:#b9ecd0; background:linear-gradient(135deg,#fff,#f4fcf7); }
.tg-participant-emblems-kpis .col-md-3:nth-child(3) .tg-kpi { border-color:#b9e9ed; background:linear-gradient(135deg,#fff,#f3fcfd); }
.tg-participant-emblems-kpis .col-md-3:nth-child(4) .tg-kpi { border-color:#f1d3aa; background:linear-gradient(135deg,#fff,#fff9f1); }
.tg-participant-emblems-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(240px,.5fr); gap:28px; align-items:center; padding:30px; border-radius:22px; background:linear-gradient(120deg,#213f69,#286d77); color:#fff; box-shadow:var(--tg-shadow); }
.tg-participant-emblems-hero h2 { margin:14px 0 8px; font-size:clamp(25px,2.3vw,36px); font-weight:850; letter-spacing:-.035em; }
.tg-participant-emblems-hero p { margin:0; color:rgba(255,255,255,.8); font-size:16px; line-height:1.6; }
.tg-participant-constellation-label { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid rgba(207,218,255,.46); border-radius:999px; background:rgba(255,255,255,.14); color:#eef0ff; font-size:11px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 6px 14px rgba(14,28,62,.14); }
.tg-participant-constellation-label i { color:#bfc6ff; font-size:13px; }
.tg-participant-emblems-progress { padding:20px; border:1px solid rgba(255,255,255,.2); border-radius:16px; background:rgba(255,255,255,.1); }
.tg-participant-emblems-progress strong,.tg-participant-emblems-progress span { display:block; }.tg-participant-emblems-progress strong{font-size:32px}.tg-participant-emblems-progress span{margin:3px 0 14px;color:rgba(255,255,255,.76);font-size:13px}
.tg-participant-emblem-section { border-top:4px solid #d4d8ff; }.tg-participant-emblem-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tg-participant-emblem-card{padding:22px;text-align:center;border:1px solid #e3e7ef;border-radius:18px;background:#fcfdff}.tg-participant-emblem-card h3{margin:14px 0 7px;font-size:16px}.tg-participant-emblem-card p{min-height:42px;margin:0 0 16px;color:var(--tg-muted);font-size:13px;line-height:1.45}
.tg-participant-emblem-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:17px;background:#e4e7ff;color:#5255df;font-size:25px}.tg-participant-emblem-card:nth-child(2n) .tg-participant-emblem-icon,.tg-participant-pending-emblem:nth-child(2n) .tg-participant-emblem-icon{background:#dff7f7;color:#0b94ab}.tg-participant-emblem-card:nth-child(3n) .tg-participant-emblem-icon,.tg-participant-pending-emblem:nth-child(3n) .tg-participant-emblem-icon{background:#fff0dd;color:#cb6811}
.tg-participant-emblems-lower{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr);gap:24px}.tg-participant-pending-emblem{gap:16px}.tg-participant-pending-emblem small{display:block;margin-top:6px;color:var(--tg-muted);font-size:12px}.tg-participant-emblem-next{align-self:start;border-top:4px solid #b9ecd0;background:linear-gradient(140deg,#fff,#f2fbf6)}.tg-participant-emblem-next .tg-participant-emblem-icon{margin:16px 0}.tg-participant-emblem-next h3{font-size:20px}.tg-participant-emblem-next p{color:var(--tg-muted);line-height:1.55}

@media (max-width: 991px) {
    .tg-participant-featured-task,
    .tg-participant-tasks-overview,
    .tg-participant-tasks-footer {
        grid-template-columns: 1fr;
    }

    .tg-participant-review-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-participant-resource-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tg-participant-resource-action {
        grid-column: 2;
        justify-self: start;
    }
    .tg-participant-emblem-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tg-participant-emblems-hero,.tg-participant-emblems-lower { grid-template-columns:1fr; }
}

@media (max-width: 576px) {
    .tg-participant-featured-task {
        gap: 20px;
        padding: 20px;
        border-radius: 18px;
    }

    .tg-participant-featured-task-main h2 {
        font-size: 27px;
    }

    .tg-participant-review-steps {
        grid-template-columns: 1fr;
    }

    .tg-task-session-accordion summary {
        align-items: flex-start;
        padding: 16px;
    }

    .tg-task-session-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tg-task-session-content {
        padding: 0 10px 10px;
    }

    .tg-participant-resources-intro,
    .tg-participant-resource-session header {
        align-items: stretch;
        flex-direction: column;
    }

    .tg-participant-resource-item {
        grid-template-columns: 1fr;
    }

    .tg-participant-resource-action {
        grid-column: auto;
    }

    .tg-participant-resource-action .tg-btn {
        width: 100%;
    }
    .tg-participant-emblem-grid { grid-template-columns:1fr; }
    .tg-participant-emblems-hero { padding:22px; }
}

/* Detail indicators and summary */
.tg-indicator-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.tg-indicator-grid>div{padding:1rem;border:1px solid #dfe5ef;border-radius:14px;background:linear-gradient(145deg,#f8faff,#f2fbfc)}.tg-indicator-grid span,.tg-indicator-grid strong{display:block}.tg-indicator-grid span{color:#748096;font-size:.78rem}.tg-indicator-grid strong{margin-top:.4rem;color:#172544;font-size:1.8rem}.tg-program-summary-table-wrap{border:1px solid #e1e5ed;border-radius:14px;overflow:auto}.tg-program-summary-table{min-width:480px}.tg-program-summary-table thead th{padding:.7rem .8rem;background:#f7f8fd;color:#748096;font-size:.72rem;letter-spacing:.05em;text-transform:uppercase}.tg-program-summary-table tbody td{padding:.75rem .8rem;border-bottom-color:#edf0f5;color:#33405b;font-size:.84rem}.tg-program-summary-table tbody tr:last-child td{border-bottom:0}.tg-program-summary-table tbody td:first-child{font-weight:800;color:#253452}@media(max-width:560px){.tg-indicator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Detail sections for program administration */
.tg-program-detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.75fr);gap:1.5rem;margin-bottom:1.5rem}.tg-program-detail-grid--wide{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.tg-program-detail-section{padding:1.5rem;background:linear-gradient(145deg,#fff,#fafbff)}.tg-program-detail-section .tg-program-section-heading{margin-bottom:1.15rem}.tg-program-stage-list,.tg-detail-list,.tg-reading-list,.tg-config-list{display:grid;gap:.75rem}.tg-program-stage-item{display:flex;gap:.85rem;align-items:center;padding:1rem;border:1px solid #e0e5ef;border-radius:15px;background:#f8faff}.tg-program-stage-number{display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border-radius:11px;background:#e9e9ff;color:#5d5bea;font-weight:800}.tg-program-stage-copy{min-width:0;flex:1}.tg-program-stage-top{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.tg-program-stage-top h3{margin:0;color:#172544;font-size:1rem}.tg-program-stage-copy p{margin:.3rem 0 0;color:#707b8f;font-size:.84rem}.tg-program-reading{background:linear-gradient(145deg,#fffaf1,#fff)}.tg-program-reading>.tg-badge{display:inline-flex;align-items:center;gap:.4rem}.tg-program-reading .tg-card-title{margin:1.1rem 0 .6rem}.tg-program-reading .tg-card-muted{line-height:1.45}.tg-reading-list{margin-top:1.25rem}.tg-reading-list>div,.tg-config-list>div{display:flex;align-items:center;gap:.75rem;padding:.85rem;border:1px solid #e1e5ed;border-radius:14px;background:rgba(255,255,255,.8)}.tg-reading-list b{display:grid;flex:0 0 auto;place-items:center;width:30px;height:30px;border-radius:10px;background:#eef0ff;color:#5d5bea}.tg-reading-list span,.tg-config-list span{display:grid;gap:.2rem;min-width:0}.tg-reading-list strong,.tg-config-list strong{color:#253452;font-size:.9rem}.tg-reading-list small,.tg-config-list small{color:#748096;font-size:.78rem}.tg-detail-list article{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;border:1px solid #e1e5ed;border-radius:14px;background:#f8faff}.tg-detail-list article>div{min-width:0}.tg-detail-list strong,.tg-detail-list small{display:block}.tg-detail-list strong{color:#253452;font-size:.9rem}.tg-detail-list small{margin-top:.25rem;color:#748096;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-detail-more{margin:.85rem 0 0;color:#748096;font-size:.82rem}.tg-program-medal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.tg-program-medal-grid article{display:grid;justify-items:center;gap:.35rem;padding:1rem .6rem;border:1px solid #e0e5ef;border-radius:15px;background:linear-gradient(145deg,#fff,#f7f8ff);text-align:center}.tg-program-medal-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:.25rem;border-radius:15px;background:#e0e5ff;color:#5d5bea;font-size:1.35rem}.tg-program-medal-grid article:nth-child(2) .tg-program-medal-icon{background:#dff7f8;color:#178da5}.tg-program-medal-grid article:nth-child(3) .tg-program-medal-icon{background:#fff0db;color:#bf6818}.tg-program-medal-grid article:nth-child(4) .tg-program-medal-icon{background:#eee5ff;color:#7c3aed}.tg-program-medal-grid strong{color:#253452;font-size:.9rem}.tg-program-medal-grid small{color:#748096;font-size:.76rem}.tg-config-list>div{justify-content:space-between}.tg-config-list>div>b{flex:0 0 auto}.tg-detail-empty{display:grid;justify-items:center;gap:.35rem;padding:1.75rem 1rem;border:1px dashed #ccd6e7;border-radius:15px;background:#fafbff;text-align:center;color:#748096}.tg-detail-empty i{color:#6565ec;font-size:1.4rem}.tg-detail-empty strong{color:#253452}.tg-detail-empty span{font-size:.82rem}@media(max-width:900px){.tg-program-detail-grid,.tg-program-detail-grid--wide{grid-template-columns:1fr}}@media(max-width:560px){.tg-program-detail-section{padding:1rem}.tg-program-stage-top,.tg-detail-list article,.tg-config-list>div{align-items:flex-start;flex-direction:column}.tg-program-medal-grid{grid-template-columns:1fr 1fr}.tg-detail-list article .tg-badge,.tg-config-list>div>b{align-self:flex-start}}
