.gph-public{max-width:1280px;margin:0 auto;padding:24px;font-family:inherit}.gph-public *{box-sizing:border-box}.gph-public h2,.gph-public h3,.gph-public h4{margin-top:0}.gph-hub-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.gph-hub-header h2{margin-bottom:4px}.gph-hub-header p{margin:0;color:#6b7280}.gph-hub-nav,.gph-hub-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.gph-hub-nav a,.gph-hub-tabs a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#fff;border:1px solid rgba(17,24,39,.14);color:#111827;border-radius:999px;padding:9px 14px;line-height:1}.gph-hub-nav a.is-active,.gph-hub-tabs a.is-active{background:#111827;color:#fff;border-color:#111827}.gph-public-notice{background:#ecfdf5;border:1px solid #bbf7d0;color:#065f46;border-radius:14px;padding:12px 16px;margin-bottom:16px}.gph-public-notice.is-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.gph-public-projects,.gph-public-grid,.gph-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gph-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gph-public-card{background:#fff;border:1px solid rgba(17,24,39,.12);border-radius:18px;padding:20px;box-shadow:0 12px 30px rgba(17,24,39,.06);margin-bottom:18px}.gph-public-featured{background:#f9fafb}.gph-stat strong{display:block;font-size:34px;line-height:1}.gph-stat span{color:#6b7280}.gph-public-progress{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:12px 0}.gph-public-progress span{display:block;height:100%;background:#111827}.gph-public-button,.gph-public-form button{display:inline-flex;border:0;background:#111827;color:#fff!important;text-decoration:none;border-radius:999px;padding:10px 16px;cursor:pointer;line-height:1.1}.gph-public-back{display:inline-block;margin-bottom:16px}.gph-public-chat{background:#f3f4f6;border-radius:16px;padding:14px;margin-bottom:14px;max-height:520px;overflow:auto}.gph-public-message{background:#fff;border-radius:14px;padding:12px;margin-bottom:10px;border:1px solid #e5e7eb;max-width:78%}.gph-public-message.is-own{margin-left:auto;background:#eef2ff}.gph-public-message small{display:block;color:#6b7280}.gph-public-message p{margin-bottom:0}.gph-public-form textarea,.gph-form-grid textarea,.gph-form-grid input,.gph-form-grid select,.gph-inline-fields input,.gph-inline-fields select,.gph-project-picker select{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:9px 10px;margin-top:6px}.gph-public-form textarea{margin-bottom:10px}.gph-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gph-form-grid label,.gph-inline-fields label{font-weight:600}.gph-full{grid-column:1/-1}.gph-inline-fields{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:10px}.gph-inline-fields label{min-width:180px}.gph-table-wrap{width:100%;overflow:auto}.gph-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}.gph-table th,.gph-table td{padding:12px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.gph-table th{background:#f9fafb;font-weight:700}.gph-table tr:last-child td{border-bottom:0}.gph-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gph-summary-grid div{background:#f6f7f7;border-radius:12px;padding:14px}.gph-summary-grid strong{display:block}.gph-summary-grid span{color:#50575e}.gph-log-item{border-left:4px solid #111827;background:#f6f7f7;border-radius:10px;padding:12px;margin-bottom:10px}.gph-log-item small{display:block;color:#646970;margin-top:4px}@media(max-width:900px){.gph-public-projects,.gph-public-grid,.gph-stats,.gph-form-grid,.gph-summary-grid{grid-template-columns:1fr}.gph-public{padding:16px}.gph-public-message{max-width:100%}}
.gph-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.gph-card-heading h3{margin:0}.gph-secondary-button{background:#f3f4f6!important;color:#111827!important;border:1px solid #d1d5db!important}

/* GIPYC Project Hub v1.0.7 - navegación lateral tipo app */
.gph-hub{width:100%;max-width:100%;min-height:100vh;padding:22px;background:#1f2933;border-radius:0;margin:0}
.gph-app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
.gph-app-sidebar{position:sticky;top:18px;min-height:calc(100vh - 120px);background:#0b1220;color:#fff;border-radius:24px;padding:18px;box-shadow:0 18px 45px rgba(15,23,42,.22)}
.gph-app-brand{display:flex;align-items:center;gap:12px;padding:8px 6px 18px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12)}
.gph-app-logo{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:#fff;color:#111827;font-weight:800;letter-spacing:-.04em}
.gph-app-brand strong{display:block;font-size:15px;line-height:1.1;color:#fff}.gph-app-brand small{display:block;margin-top:3px;color:rgba(255,255,255,.58);font-size:12px}.gph-app-main{min-width:0}.gph-app-sidebar .gph-hub-nav{display:flex;flex-direction:column;gap:7px;margin:0}.gph-app-sidebar .gph-hub-nav a{width:100%;justify-content:flex-start;gap:10px;background:transparent;border:0;color:rgba(255,255,255,.78);border-radius:14px;padding:12px 13px;font-weight:700}.gph-app-sidebar .gph-hub-nav a span{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,255,255,.08);font-size:12px}.gph-app-sidebar .gph-hub-nav a:hover{background:rgba(255,255,255,.08);color:#fff}.gph-app-sidebar .gph-hub-nav a.is-active{background:#fff;color:#111827;border:0;box-shadow:0 10px 24px rgba(0,0,0,.16)}.gph-app-sidebar .gph-hub-nav a.is-active span{background:#111827;color:#fff}.gph-sidebar-section{margin-top:18px;padding:14px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.gph-sidebar-section strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.55);margin-bottom:6px}.gph-sidebar-section small{display:block;color:#fff;line-height:1.35}.gph-hub-header{background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:22px;padding:18px 20px;box-shadow:0 10px 26px rgba(17,24,39,.05)}.gph-hub-tabs{background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:18px;padding:10px;box-shadow:0 10px 24px rgba(17,24,39,.04)}
@media(max-width:900px){.gph-hub{padding:14px;border-radius:18px}.gph-app-shell{grid-template-columns:1fr}.gph-app-sidebar{position:relative;top:auto;min-height:auto;border-radius:20px}.gph-app-sidebar .gph-hub-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gph-app-sidebar .gph-hub-nav a{justify-content:center}.gph-app-sidebar .gph-hub-nav a span{display:none}}

/* GIPYC Project Hub v1.0.8 - gestión en vivo */
.gph-hub{position:relative}.gph-hub.is-live-loading{pointer-events:none}.gph-hub.is-live-loading:before{content:"";position:absolute;inset:0;background:rgba(243,244,246,.46);border-radius:26px;z-index:50}.gph-live-loader{position:fixed;right:26px;bottom:26px;z-index:99999;background:#111827;color:#fff;border-radius:999px;padding:11px 16px;box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:13px;font-weight:700}.gph-live-toast{position:fixed;right:26px;top:26px;z-index:99999;transform:translateY(-12px);opacity:0;background:#111827;color:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 18px 42px rgba(0,0,0,.24);font-size:14px;font-weight:700;transition:opacity .2s ease,transform .2s ease}.gph-live-toast.is-visible{opacity:1;transform:translateY(0)}.gph-live-toast.is-error{background:#991b1b}.gph-public-button[disabled],.gph-public-form button[disabled]{opacity:.55;cursor:wait}.gph-hub-nav a,.gph-hub-tabs a,.gph-public-button{transition:background .18s ease,color .18s ease,transform .18s ease}.gph-hub-nav a:hover,.gph-hub-tabs a:hover,.gph-public-button:hover{transform:translateY(-1px)}

.gph-row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.gph-row-actions .gph-public-button{white-space:nowrap}

/* GIPYC Project Hub v1.0.12 - navegación contextual por tarjetas */
.gph-app-sidebar{display:flex;flex-direction:column}
.gph-sidebar-bottom{margin-top:auto!important;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
.gph-app-sidebar .gph-context-nav a{font-size:14px;letter-spacing:0}
.gph-pool-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:22px;padding:18px 20px;box-shadow:0 10px 26px rgba(17,24,39,.05)}
.gph-pool-header h3{margin:0 0 4px;font-size:24px}.gph-pool-header p{margin:0;color:#6b7280}
.gph-card-pool{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}
.gph-pool-card{display:flex;flex-direction:column;gap:8px;min-height:170px;text-decoration:none;color:#111827;background:#fff;border:1px solid rgba(17,24,39,.10);border-radius:22px;padding:20px;box-shadow:0 12px 30px rgba(17,24,39,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.gph-pool-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(17,24,39,.11);border-color:rgba(17,24,39,.22)}
.gph-pool-card strong{font-size:20px;line-height:1.15;color:#111827}.gph-pool-card small{color:#4b5563}.gph-pool-card em{margin-top:auto;color:#6b7280;font-style:normal;font-size:13px}.gph-card-kicker{align-self:flex-start;border-radius:999px;background:#f3f4f6;color:#374151;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:6px 10px}.gph-form-panel{max-width:1050px}.gph-public-back{color:#111827;text-decoration:none;font-weight:700}.gph-public-back:hover{text-decoration:underline}
@media(max-width:1100px){.gph-card-pool{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.gph-card-pool{grid-template-columns:1fr}.gph-pool-header{align-items:flex-start;flex-direction:column}.gph-sidebar-bottom{margin-top:0!important}.gph-pool-card{min-height:150px}}

/* GIPYC Project Hub v1.0.14 - retorno contextual dentro de la barra lateral */
.gph-sidebar-back{display:block;text-decoration:none;color:#fff;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.gph-sidebar-back:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22);transform:translateY(-1px)}
.gph-sidebar-back strong{color:rgba(255,255,255,.88)}
.gph-sidebar-back small{color:rgba(255,255,255,.62)}

/* Tareas como eje del proyecto */
.gph-task-overview {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-task-overview h4 {
    margin: 0 0 12px;
}
.gph-task-mini-list {
    display: grid;
    gap: 10px;
}
.gph-task-mini {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
}
.gph-task-mini span {
    color: #64748b;
    font-size: 0.9rem;
}
.gph-task-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0 18px;
}
.gph-task-stats > div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-task-stats strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    color: #0f172a;
}
.gph-task-stats span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.86rem;
}
.gph-task-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.gph-task-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.gph-task-card h4 {
    margin: 10px 0 8px;
    font-size: 1.06rem;
}
.gph-task-card p {
    color: #475569;
    margin: 0 0 12px;
}
.gph-task-card-head,
.gph-task-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.gph-task-card-head span,
.gph-task-card-head strong {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #334155;
}
.gph-task-meta {
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    color: #64748b;
    font-size: 0.86rem;
}
.gph-task-status-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.gph-task-status-form select,
.gph-task-edit-form select,
.gph-task-edit-form input,
.gph-task-edit-form textarea {
    width: 100%;
}
.gph-small-button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}
.gph-task-edit {
    margin-top: 12px;
}
.gph-task-edit summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 700;
}
.gph-task-edit-form {
    margin-top: 12px;
}
.gph-task-status-done {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.gph-task-status-waiting_info {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.gph-task-status-cancelled {
    opacity: 0.68;
}
@media (max-width: 760px) {
    .gph-task-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gph-task-mini,
    .gph-task-status-form {
        flex-direction: column;
    }
}

/* GIPYC Project Hub v1.0.37 - avance en encabezado superior */
.gph-hub-header.has-project-progress {
    align-items: stretch;
}
.gph-hub-title {
    min-width: 0;
}
.gph-header-progress {
    width: min(420px, 42%);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 22px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-header-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}
.gph-header-progress-top strong {
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1;
}
.gph-header-progress-top span,
.gph-header-progress small {
    color: #64748b;
    font-size: 0.86rem;
}
.gph-header-progress .gph-public-progress {
    margin: 8px 0 5px;
}
.gph-project-summary-card .gph-public-progress {
    display: none;
}
@media (max-width: 900px) {
    .gph-hub-header.has-project-progress {
        flex-direction: column;
        align-items: stretch;
    }
    .gph-header-progress {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
}

/* GIPYC Project Hub v1.0.37 - resumen sin duplicar encabezado */
.gph-project-description-card {
    padding-top: 22px;
    padding-bottom: 22px;
}
.gph-project-description-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}




/* GIPYC Project Hub v1.0.37 - ocupa todo el ancho interno sin romper el contenedor padre */
.gph-public {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.gph-hub {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.gph-hub-wrap,
.gph-app-shell,
.gph-app-main,
.gph-hub-header,
.gph-panel,
.gph-card-pool {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gph-app-main {
    min-width: 0;
}


/* GIPYC Project Hub v1.0.37 - login integrado */
.gph-login-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.gph-login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    padding: 28px;
    box-sizing: border-box;
}

.gph-login-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.gph-login-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #101827;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.gph-login-brand h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

.gph-login-brand p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.gph-live-login-form {
    display: grid;
    gap: 14px;
}

.gph-live-login-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    font-weight: 700;
    color: #334155;
    font-size: 0.86rem;
}

.gph-live-login-form input[type="text"],
.gph-live-login-form input[type="password"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 14px;
    padding: 10px 13px;
    box-sizing: border-box;
    background: #f8fafc;
}

.gph-login-remember {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 9px !important;
    font-weight: 600 !important;
}

.gph-login-remember input {
    margin: 0;
}

.gph-live-login-form button {
    border: 0;
    border-radius: 16px;
    min-height: 46px;
    padding: 12px 18px;
    background: #101827;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.gph-live-login-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.gph-login-message {
    min-height: 22px;
    font-size: 0.9rem;
    color: #64748b;
}

.gph-login-message.is-error {
    color: #b42318;
}

.gph-login-message.is-success {
    color: #067647;
}


/* GIPYC Project Hub v1.0.37 - ocultar barra superior WP en página del Hub */
body.admin-bar:has(.gph-hub),
body.admin-bar:has(.gph-login-wrap) {
    --wp-admin--admin-bar--height: 0px;
}


/* GIPYC Project Hub v1.0.37 - base oscura a pantalla completa del Hub */
.gph-public {
    padding: 0;
}

.gph-hub {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    background: #1f2933;
    box-sizing: border-box;
}

.gph-app-shell {
    min-height: calc(100vh - 44px);
}

@media (max-width: 900px) {
    .gph-hub {
        border-radius: 0;
        padding: 14px;
    }
}


/* GIPYC Project Hub v1.0.37 - margen general interno */
.gph-hub {
    padding: 30px;
}

.gph-app-shell {
    min-height: calc(100vh - 60px);
}

@media (max-width: 900px) {
    .gph-hub {
        padding: 20px;
    }

    .gph-app-shell {
        min-height: calc(100vh - 40px);
    }
}

@media (max-width: 560px) {
    .gph-hub {
        padding: 14px;
    }

    .gph-app-shell {
        min-height: calc(100vh - 28px);
    }
}


/* GIPYC Project Hub v1.0.37 - paleta gris humo para reducir contraste */
.gph-hub {
    background: #1f2933;
}

.gph-hub-header,
.gph-public-card,
.gph-hub-tabs,
.gph-panel,
.gph-card,
.gph-live-panel,
.gph-form-panel {
    background: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.22);
    color: #1f2933;
}

.gph-hub-header h2,
.gph-public-card h2,
.gph-public-card h3,
.gph-public-card h4,
.gph-panel h2,
.gph-panel h3,
.gph-panel h4 {
    color: #1f2933;
}

.gph-hub-header p,
.gph-public-card p,
.gph-summary-grid span,
.gph-stat span,
.gph-project-meta,
.gph-card-meta,
.gph-muted,
.gph-task-meta,
.gph-log-item small {
    color: #64748b;
}

.gph-summary-grid div,
.gph-stats .gph-stat,
.gph-task-card,
.gph-public-featured,
.gph-log-item,
.gph-table th,
.gph-table td,
.gph-inline-card,
.gph-mini-card {
    background: #e5e9ee;
    border-color: rgba(148, 163, 184, 0.18);
    color: #1f2933;
}

.gph-summary-grid strong,
.gph-task-card strong,
.gph-log-item strong,
.gph-table th {
    color: #1f2933;
}

.gph-public-progress {
    background: #d7dde4;
}

.gph-public-progress span {
    background: #0f172a;
}

.gph-public-form textarea,
.gph-form-grid textarea,
.gph-form-grid input,
.gph-form-grid select,
.gph-inline-fields input,
.gph-inline-fields select,
.gph-project-picker select {
    background: #f8fafc;
    border-color: rgba(100, 116, 139, 0.32);
    color: #1f2933;
}

.gph-table {
    background: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.22);
}

.gph-table tr:nth-child(even) td {
    background: #eef1f4;
}

.gph-public-message {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.2);
    color: #1f2933;
}

.gph-public-message.is-own {
    background: #e5e9ee;
}

.gph-pool-card {
    background: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.22);
}

.gph-pool-card strong {
    color: #1f2933;
}

.gph-pool-card small,
.gph-pool-card em {
    color: #64748b;
}

.gph-card-kicker {
    background: #e5e9ee;
    color: #334155;
}


/* GIPYC Project Hub v1.0.37 - encabezado superior oscuro como barra lateral */
.gph-hub-header {
    background: #07111f;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.gph-hub-header h2,
.gph-hub-title h2 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gph-hub-header p,
.gph-hub-title p {
    color: rgba(255, 255, 255, 0.68);
}

.gph-header-progress {
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.12);
}

.gph-header-progress strong {
    color: #ffffff;
}

.gph-header-progress span,
.gph-header-progress small {
    color: rgba(255, 255, 255, 0.68);
}

.gph-hub-header .gph-public-progress {
    background: rgba(255, 255, 255, 0.18);
}

.gph-hub-header .gph-public-progress span {
    background: #ffffff;
}

@media (max-width: 760px) {
    .gph-header-progress {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}


/* GIPYC Project Hub v1.0.37 - modal reutilizable */
.gph-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.gph-modal.is-open {
    display: flex;
}

.gph-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(6px);
}

.gph-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 24px;
    background: #f3f4f6;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    padding: 24px;
    color: #1f2933;
}

.gph-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.gph-modal-head h3 {
    margin: 0;
    color: #1f2933;
}

.gph-modal-head p {
    margin: 6px 0 0;
    color: #64748b;
}

.gph-modal-close {
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #e5e9ee;
    color: #1f2933;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gph-modal-form {
    margin: 0;
}

.gph-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.gph-ghost-button {
    display: inline-flex;
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: transparent;
    color: #1f2933;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    line-height: 1.1;
    font-weight: 700;
}

body.gph-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .gph-modal {
        padding: 16px;
    }

    .gph-modal-dialog {
        border-radius: 18px;
        padding: 18px;
    }

    .gph-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gph-modal-actions button {
        justify-content: center;
    }
}


/* GIPYC Project Hub v1.0.37 - tareas tipo Gantt */
.gph-gantt-heading {
    align-items: flex-start;
}

.gph-gantt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.gph-gantt-view-switch {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: #e5e9ee;
}

.gph-gantt-view-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-weight: 800;
    font-size: 0.86rem;
}

.gph-gantt-view-switch a.is-active {
    background: #07111f;
    color: #ffffff;
}

.gph-gantt-date-form label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    color: #334155;
}

.gph-gantt-date-form input {
    border: 1px solid rgba(100, 116, 139, 0.26);
    background: #f8fafc;
    border-radius: 12px;
    min-height: 38px;
    padding: 7px 10px;
    color: #1f2933;
}

.gph-gantt {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(620px, 1fr);
    grid-auto-rows: minmax(52px, auto);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #e5e9ee;
}

.gph-gantt-left-head,
.gph-gantt-scale {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #5f6368;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .78rem;
}

.gph-gantt-left-head {
    left: 0;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-right: 3px solid #f3f4f6;
}

.gph-gantt-scale {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
}

.gph-gantt-scale span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    border-left: 3px solid #f3f4f6;
    text-align: center;
    white-space: nowrap;
}

.gph-gantt-task-name {
    position: sticky;
    left: 0;
    z-index: 2;
    border: 0;
    border-top: 3px solid #f3f4f6;
    border-right: 3px solid #f3f4f6;
    background: #9f8be3;
    color: #ffffff;
    padding: 12px 14px;
    text-align: center;
    font-weight: 900;
    cursor: pointer;
    min-height: 52px;
}

.gph-gantt-row {
    position: relative;
    min-height: 52px;
    background:
        repeating-linear-gradient(to right, transparent 0, transparent calc(8.333% - 2px), rgba(255,255,255,.88) calc(8.333% - 2px), rgba(255,255,255,.88) 8.333%),
        #eef1f4;
    border-top: 3px solid #f3f4f6;
}

.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-row {
    background:
        repeating-linear-gradient(to right, transparent 0, transparent calc(3.2258% - 1px), rgba(255,255,255,.78) calc(3.2258% - 1px), rgba(255,255,255,.78) 3.2258%),
        #eef1f4;
}

.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-row {
    background:
        repeating-linear-gradient(to right, transparent 0, transparent calc(14.285% - 2px), rgba(255,255,255,.88) calc(14.285% - 2px), rgba(255,255,255,.88) 14.285%),
        #eef1f4;
}

.gph-gantt[data-gph-gantt-view="day"] .gph-gantt-row {
    background: #eef1f4;
}

.gph-gantt-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    background: #77d2ca;
    color: rgba(15,23,42,.72);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 800;
}

.gph-gantt-status-pending { background: #a58be2; }
.gph-gantt-status-in_process { background: #77d2ca; }
.gph-gantt-status-waiting_info { background: #efc77b; }
.gph-gantt-status-done { background: #a8df8f; }
.gph-gantt-status-cancelled { background: #eb8c81; opacity: .78; }

.gph-gantt-outside {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #64748b;
    padding-left: 16px;
    font-size: .86rem;
    font-weight: 700;
}

.gph-gantt-empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: #64748b;
    background: #eef1f4;
}

.gph-task-edit-trigger {
    font-family: inherit;
}

@media (max-width: 900px) {
    .gph-gantt {
        grid-template-columns: minmax(140px, 190px) minmax(520px, 1fr);
    }

    .gph-gantt-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .gph-gantt-view-switch {
        width: 100%;
        justify-content: space-between;
    }

    .gph-gantt-view-switch a {
        flex: 1;
    }
}


/* GIPYC Project Hub v1.0.37 - Montserrat y ajuste visual de Gantt */
.gph-public,
.gph-public *,
.gph-hub,
.gph-hub *,
.gph-login-wrap,
.gph-login-wrap * {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
}

/* Permitir que el nombre de la tarea rompa en varias líneas */
.gph-gantt-task-name {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
    text-align: left;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    min-height: 58px;
}

/* Más altura para tareas con nombres largos */
.gph-gantt {
    grid-auto-rows: minmax(58px, auto);
}

.gph-gantt-row {
    min-height: 58px;
}

/* Pleca/fecha rellena, tipo cápsula, incluso cuando dura un solo día */
.gph-gantt-bar {
    min-width: 42px;
    min-height: 34px;
    border-radius: 8px;
    border: 0 !important;
    outline: 0 !important;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0 10px;
}

/* Ocultar texto largo dentro de plecas muy cortas, dejando visible la fecha compacta */
.gph-gantt-bar span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Color base similar a la referencia */
.gph-gantt-status-pending { background: #cf2f72; }
.gph-gantt-status-in_process { background: #2fb6c9; }
.gph-gantt-status-waiting_info { background: #e8b950; }
.gph-gantt-status-done { background: #80c965; }
.gph-gantt-status-cancelled { background: #e8695d; opacity: .86; }

/* Mejor contraste en la columna de tareas */
.gph-gantt-left-head,
.gph-gantt-scale {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-gantt-task-name {
    background: #cf2f72;
    color: #ffffff;
    font-weight: 700;
    border-color: #f3f4f6;
}

/* Quita cualquier apariencia de link/contorno en botones de la gráfica */
.gph-gantt-task-name,
.gph-gantt-bar {
    appearance: none;
    -webkit-appearance: none;
}

.gph-gantt-task-name:focus,
.gph-gantt-bar:focus {
    outline: 2px solid rgba(207, 47, 114, 0.35);
    outline-offset: -2px;
}

@media (max-width: 900px) {
    .gph-gantt-task-name {
        font-size: 0.82rem;
        padding: 10px;
    }
}


/* GIPYC Project Hub v1.0.37 - ajuste de texto y colores de Gantt */
.gph-gantt-task-name {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.22;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    background: #eef1f4;
    color: #1f2933;
    border: 0;
    border-top: 3px solid #f3f4f6;
    border-right: 3px solid #f3f4f6;
}

.gph-gantt-task-name:hover {
    background: #e5e9ee;
}

/* La cápsula de tiempo debe verse rellena y no magenta/roja */
.gph-gantt-bar {
    background: #f59e0b !important;
    color: #ffffff !important;
    border: 0 !important;
    outline: 0 !important;
    min-width: 46px;
    border-radius: 9px;
}

.gph-gantt-bar span {
    color: #ffffff !important;
}

/* Colores por estado en gama verde/naranja */
.gph-gantt-status-pending {
    background: #f59e0b !important;
}

.gph-gantt-status-in_process {
    background: #22c55e !important;
}

.gph-gantt-status-waiting_info {
    background: #f97316 !important;
}

.gph-gantt-status-done {
    background: #16a34a !important;
}

.gph-gantt-status-cancelled {
    background: #94a3b8 !important;
    opacity: .9;
}

.gph-gantt-task-name:focus,
.gph-gantt-bar:focus {
    outline: 2px solid rgba(245, 158, 11, 0.35);
    outline-offset: -2px;
}


/* GIPYC Project Hub v1.0.37 - nombre de tarea en gris oscuro Montserrat Bold */
.gph-gantt-task-name,
.gph-gantt-task-name:visited,
.gph-gantt-task-name:hover,
.gph-gantt-task-name:active {
    color: #1f2933 !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: #eef1f4 !important;
    border-color: #f3f4f6 !important;
}

.gph-gantt-task-name:hover {
    background: #e5e9ee !important;
}


/* GIPYC Project Hub v1.0.37 - mes visible y texto sin silabear */
.gph-gantt-period {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef1f4;
    color: #1f2933;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    text-transform: capitalize;
}

.gph-gantt-task-name,
.gph-gantt-task-name:visited,
.gph-gantt-task-name:hover,
.gph-gantt-task-name:active {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    text-wrap: pretty;
}

.gph-gantt-task-name {
    line-height: 1.25;
}


/* GIPYC Project Hub v1.0.37 - mes visible y Gantt sin desbordes visuales */
.gph-gantt-toolbar {
    align-items: center;
}

.gph-gantt-period {
    background: #07111f;
    color: #ffffff;
    margin-right: auto;
}

/* El Gantt mensual debe entrar en el ancho del panel, no generar una zona oculta incómoda */
.gph-gantt {
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: visible;
}

.gph-gantt-scale {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-width: 0;
}

.gph-gantt-scale span {
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 0.76rem;
}

.gph-gantt-row {
    min-width: 0;
}

/* En mes se compactan los días para mostrar todo el rango visible */
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-scale {
    grid-template-columns: repeat(31, minmax(0, 1fr));
    grid-auto-columns: unset;
}

.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-row {
    background:
        repeating-linear-gradient(to right, transparent 0, transparent calc(3.2258% - 1px), rgba(255,255,255,.78) calc(3.2258% - 1px), rgba(255,255,255,.78) 3.2258%),
        #eef1f4;
}

/* En semana y año también evitamos columnas rígidas que obliguen al desplazamiento */
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-scale {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: unset;
}

.gph-gantt[data-gph-gantt-view="year"] .gph-gantt-scale {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-columns: unset;
}

.gph-gantt[data-gph-gantt-view="day"] .gph-gantt-scale {
    grid-template-columns: 1fr;
    grid-auto-columns: unset;
}

/* Para no confundir, el texto de la pleca aparece solo cuando hay espacio suficiente */
.gph-gantt-bar {
    overflow: visible;
}

.gph-gantt-bar span {
    display: none;
}

.gph-gantt-bar::after {
    content: attr(title);
    display: none;
}

@media (max-width: 1100px) {
    .gph-gantt {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    }

    .gph-gantt-scale span {
        font-size: 0.68rem;
    }
}

@media (max-width: 760px) {
    .gph-gantt {
        overflow-x: auto;
        grid-template-columns: minmax(150px, 190px) minmax(520px, 1fr);
    }

    .gph-gantt[data-gph-gantt-view="month"] .gph-gantt-scale,
    .gph-gantt[data-gph-gantt-view="week"] .gph-gantt-scale,
    .gph-gantt[data-gph-gantt-view="year"] .gph-gantt-scale {
        grid-auto-flow: column;
        grid-auto-columns: minmax(42px, 1fr);
        grid-template-columns: none;
    }
}


/* GIPYC Project Hub v1.0.37 - cápsula de Gantt contenida en su fecha */
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-bar,
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-bar,
.gph-gantt[data-gph-gantt-view="year"] .gph-gantt-bar {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* En vista mes, una tarea de un día debe quedarse dentro de su celda */
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-bar {
    border-radius: 6px;
    padding-left: 0;
    padding-right: 0;
}

/* La fecha exacta se consulta al tocar la cápsula; no forzamos texto dentro de columnas estrechas */
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-bar span,
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-bar span {
    display: none;
}


/* GIPYC Project Hub v1.0.37 - alineación dinámica de columnas Gantt */
.gph-gantt-scale {
    grid-template-columns: repeat(var(--gph-gantt-columns), minmax(0, 1fr)) !important;
    grid-auto-columns: unset !important;
}

.gph-gantt-row {
    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--gph-gantt-column) - 1px),
            rgba(255,255,255,.78) calc(var(--gph-gantt-column) - 1px),
            rgba(255,255,255,.78) var(--gph-gantt-column)
        ),
        #eef1f4 !important;
}

/* Eliminamos divisiones fijas de 31/12/7 que provocaban desfase */
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="year"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="day"] .gph-gantt-scale {
    grid-template-columns: repeat(var(--gph-gantt-columns), minmax(0, 1fr)) !important;
    grid-auto-columns: unset !important;
}

.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-row,
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-row,
.gph-gantt[data-gph-gantt-view="year"] .gph-gantt-row,
.gph-gantt[data-gph-gantt-view="day"] .gph-gantt-row {
    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--gph-gantt-column) - 1px),
            rgba(255,255,255,.78) calc(var(--gph-gantt-column) - 1px),
            rgba(255,255,255,.78) var(--gph-gantt-column)
        ),
        #eef1f4 !important;
}

@media (max-width: 760px) {
    .gph-gantt[data-gph-gantt-view="month"] .gph-gantt-scale,
    .gph-gantt[data-gph-gantt-view="week"] .gph-gantt-scale,
    .gph-gantt[data-gph-gantt-view="year"] .gph-gantt-scale {
        grid-template-columns: repeat(var(--gph-gantt-columns), minmax(42px, 1fr)) !important;
        grid-auto-columns: unset !important;
    }
}


/* GIPYC Project Hub v1.0.54 - Drive por tarea dentro del modal */
.gph-task-drive-box {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px;
}

.gph-task-drive-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.gph-task-drive-head strong {
    display: block;
    color: #1f2933;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-task-drive-head span,
.gph-task-drive-note,
.gph-task-drive-empty,
.gph-task-drive-linker small {
    color: #526173;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
}

.gph-drive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.gph-drive-button:before {
    content: "▣";
    margin-right: 8px;
    font-size: .92rem;
}

.gph-drive-button.is-disabled {
    background: #94a3b8;
    pointer-events: none;
}

.gph-task-drive-note {
    margin: 0 0 12px;
}

.gph-task-drive-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.gph-task-drive-files a {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    background: #fff;
    color: #1f2933;
    font-weight: 700;
    text-decoration: none;
}

.gph-task-drive-empty {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, .14);
}

.gph-task-drive-linker {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.gph-inline-drive-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gph-inline-drive-form input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 760px) {
    .gph-task-drive-head,
    .gph-inline-drive-form {
        flex-direction: column;
        align-items: stretch;
    }
}


/* GIPYC Project Hub v1.0.54 - Drive linker AJAX sin formulario anidado */
.gph-inline-drive-form .gph-drive-link-button[disabled] {
    opacity: .65;
    cursor: wait;
}


/* GIPYC Project Hub v1.0.54 - sincronización Drive por tarea */
.gph-drive-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gph-drive-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #ffffff;
    color: #1f2933;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.gph-drive-sync-button:before {
    content: "↻";
    margin-right: 7px;
}

.gph-drive-sync-button[disabled] {
    opacity: .6;
    cursor: wait;
}


/* GIPYC Project Hub v1.0.54 - mantener modal abierto después de acciones Drive */
body.gph-modal-open {
    overflow: hidden;
}


/* GIPYC Project Hub v1.0.54 - evitar loader persistente tras Drive */
.gph-live-loader:empty {
    display: none !important;
}


/* GIPYC Project Hub v1.0.54 - Drive sin reconstruir modal */
.gph-task-drive-files a {
    transition: background .18s ease, transform .18s ease;
}

.gph-task-drive-files a:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}


/* GIPYC Project Hub v1.0.54 - pool oscuro de archivos Drive */
.gph-task-drive-box {
    position: relative;
    overflow: visible;
    padding: 0 !important;
    background: #f8fafc !important;
}

.gph-task-drive-top {
    padding: 18px 18px 16px;
    background: #f8fafc;
    border-radius: 18px 18px 0 0;
}

.gph-task-drive-pool-wrap {
    position: relative;
    margin-top: 0;
    padding: 22px 18px 18px;
    border-radius: 0 0 18px 18px;
    background: #07111f;
    color: #ffffff;
}

.gph-task-drive-pool-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gph-task-drive-pool-head strong {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    color: #ffffff;
}

.gph-task-drive-pool-head span {
    color: rgba(255,255,255,.62);
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: .86rem;
}

.gph-drive-collapse-toggle {
    position: absolute;
    left: 50%;
    top: calc(100% - 18px);
    transform: translateX(-50%);
    z-index: 3;
    width: 46px;
    height: 34px;
    border: 0;
    border-radius: 0 0 14px 14px;
    background: #07111f;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

.gph-drive-collapse-toggle.is-open {
    transform: translateX(-50%) rotate(180deg);
    border-radius: 14px 14px 0 0;
    top: calc(100% - 18px);
}

.gph-task-drive-linker[hidden] {
    display: none !important;
}

.gph-task-drive-linker {
    padding: 0 18px 18px;
    background: #f8fafc;
    border-top: 1px solid rgba(15,23,42,.08);
}

.gph-inline-drive-form {
    margin-top: 0 !important;
}

.gph-task-drive-files {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin: 0 !important;
}

.gph-drive-file-card {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 13px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.09) !important;
    border: 1px solid rgba(255,255,255,.10);
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.gph-drive-file-card:hover {
    background: rgba(255,255,255,.14) !important;
    transform: translateY(-1px);
}

.gph-drive-file-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ffffff;
    color: #07111f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 900;
    font-size: .78rem;
}

.gph-drive-file-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.gph-drive-file-info strong {
    color: #ffffff;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.gph-drive-file-info small {
    color: rgba(255,255,255,.64);
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 600;
}

.gph-task-drive-pool-wrap .gph-task-drive-empty {
    margin: 0;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.08);
}

@media (max-width: 760px) {
    .gph-task-drive-files {
        grid-template-columns: 1fr;
    }
}


/* GIPYC Project Hub v1.0.54 - bloque Drive oscuro y pool menos oscuro */
.gph-task-drive-box {
    background: #07111f !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.gph-task-drive-top {
    background: #07111f !important;
    color: #ffffff;
    border-radius: 18px 18px 0 0;
}

.gph-task-drive-head strong,
.gph-task-drive-status,
.gph-task-drive-note,
.gph-task-drive-note strong {
    color: #ffffff !important;
}

.gph-task-drive-status,
.gph-task-drive-note {
    color: rgba(255,255,255,.70) !important;
}

.gph-task-drive-note strong {
    color: rgba(255,255,255,.88) !important;
}

.gph-task-drive-pool-wrap {
    background: #121d2b !important;
    border-top: 1px solid rgba(255,255,255,.08);
}

.gph-drive-collapse-toggle {
    background: #d6336c !important;
    color: #ffffff !important;
    top: calc(100% - 18px);
}

.gph-task-drive-linker {
    background: #07111f !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
}

.gph-inline-drive-form input[type="url"] {
    background: rgba(255,255,255,.96);
    color: #1f2933;
}

.gph-drive-file-card {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.12) !important;
}

.gph-drive-file-card:hover {
    background: rgba(255,255,255,.13) !important;
}

.gph-drive-sync-button {
    background: transparent !important;
    border-color: #e92f72 !important;
    color: #ff6fa3 !important;
}

.gph-drive-sync-button:hover {
    background: rgba(233,47,114,.10) !important;
}


/* GIPYC Project Hub v1.0.54 - división total inferior del modal de tarea */
.gph-task-modal-lower {
    margin: 4px -24px -24px;
    padding: 18px 24px 24px;
    background: #07111f;
    border-radius: 28px;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,.06);
}

.gph-task-modal-lower .gph-task-drive-box {
    margin-bottom: 14px;
}

.gph-task-modal-lower .gph-modal-actions {
    padding-top: 2px;
}

.gph-task-modal-lower .gph-ghost-button {
    border-color: rgba(255,255,255,.26);
    color: #ffffff;
    background: transparent;
}

.gph-task-modal-lower .gph-ghost-button:hover {
    background: rgba(255,255,255,.08);
}

.gph-task-modal-lower .gph-public-button {
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

@media (max-width: 700px) {
    .gph-task-modal-lower {
        margin: 4px -18px -18px;
        padding: 16px 18px 18px;
        border-radius: 22px;
    }
}


/* GIPYC Project Hub v1.0.54 - sincronizar naranja y toggle superior blanco */
.gph-drive-sync-button {
    background: #f59e0b !important;
    border: 1px solid #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, .22);
}

.gph-drive-sync-button:hover {
    background: #ea8a00 !important;
    border-color: #ea8a00 !important;
}

.gph-task-modal-lower {
    position: relative;
    padding-top: 28px;
}

.gph-task-drive-box {
    overflow: visible !important;
}

.gph-drive-collapse-toggle {
    top: -18px !important;
    left: 50%;
    transform: translateX(-50%) !important;
    width: 54px;
    height: 34px;
    border-radius: 0 0 14px 14px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 14px 26px rgba(0,0,0,.20);
    border: 1px solid rgba(15,23,42,.12);
}

.gph-drive-collapse-toggle:hover {
    background: #f8fafc !important;
}

.gph-drive-collapse-toggle.is-open {
    top: -18px !important;
    transform: translateX(-50%) rotate(180deg) !important;
    border-radius: 14px 14px 0 0 !important;
}

@media (max-width: 700px) {
    .gph-task-modal-lower {
        padding-top: 26px;
    }
}


/* GIPYC Project Hub v1.0.54 - se elimina la leyenda de carpeta esperada */
.gph-task-drive-note {
    display: none !important;
}

.gph-task-drive-top {
    padding-bottom: 18px;
}


/* GIPYC Project Hub v1.0.54 - botón colapsable más grueso y gris */
.gph-drive-collapse-toggle {
    width: 62px !important;
    height: 42px !important;
    top: -22px !important;
    background: #d1d5db !important;
    color: #334155 !important;
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 14px 26px rgba(0,0,0,.24) !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
}

.gph-drive-collapse-toggle:hover {
    background: #c4c9d1 !important;
    color: #1f2937 !important;
}

.gph-drive-collapse-toggle.is-open {
    top: -22px !important;
    border-radius: 16px 16px 0 0 !important;
}


/* GIPYC Project Hub v1.0.54 - preview modal para archivos Drive */
.gph-drive-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 100005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.gph-drive-preview-modal.is-open {
    display: flex;
}

.gph-drive-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.74);
    backdrop-filter: blur(7px);
}

.gph-drive-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 96vw);
    height: min(760px, 90vh);
    border-radius: 24px;
    overflow: hidden;
    background: #07111f;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 90px rgba(0,0,0,.46);
    display: grid;
    grid-template-rows: auto 1fr;
}

.gph-drive-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: #0f1a29;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.gph-drive-preview-head strong {
    display: block;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gph-drive-preview-head span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: .86rem;
}

.gph-drive-preview-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gph-drive-preview-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    white-space: nowrap;
}

.gph-drive-preview-actions button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #07111f;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.gph-drive-preview-body {
    min-height: 0;
    background: #0b1220;
}

.gph-drive-preview-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.gph-drive-preview-fallback {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
    color: #ffffff;
}

.gph-drive-preview-fallback p {
    margin: 0;
    color: rgba(255,255,255,.66);
}

.gph-drive-preview-fallback a {
    display: inline-flex;
    justify-content: center;
    justify-self: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
}

body.gph-drive-preview-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .gph-drive-preview-modal {
        padding: 14px;
    }

    .gph-drive-preview-dialog {
        height: 92vh;
        border-radius: 18px;
    }

    .gph-drive-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gph-drive-preview-actions {
        width: 100%;
        justify-content: space-between;
    }

    .gph-drive-preview-head strong {
        max-width: 82vw;
    }
}


/* GIPYC Project Hub v1.0.54 - sección Archivos como pool por tarea */
.gph-section-intro {
    margin-top: -8px;
    color: #64748b;
}

.gph-files-task-pools {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.gph-files-task-pool {
    overflow: hidden;
    border-radius: 22px;
    background: #07111f;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.gph-files-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: #07111f;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gph-files-task-head strong {
    display: block;
    color: #ffffff;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    line-height: 1.25;
}

.gph-files-task-head span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: .88rem;
}

.gph-files-task-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.gph-files-page-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 18px;
    background: #121d2b;
}

.gph-files-empty-task {
    margin: 0;
    padding: 18px;
    background: #121d2b;
    color: rgba(255,255,255,.72);
}

.gph-empty-state {
    border-radius: 20px;
    padding: 24px;
    background: #07111f;
    color: #ffffff;
}

.gph-empty-state strong {
    display: block;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    margin-bottom: 6px;
}

.gph-empty-state p {
    margin: 0;
    color: rgba(255,255,255,.68);
}

@media (max-width: 760px) {
    .gph-files-task-head {
        align-items: stretch;
        flex-direction: column;
    }

    .gph-files-task-actions {
        justify-content: flex-start;
    }

    .gph-files-page-pool {
        grid-template-columns: 1fr;
    }
}


/* GIPYC Project Hub v1.0.55 - sección explicativa del proyecto */
.gph-project-heading p {
    margin: 4px 0 0;
    color: #64748b;
}
.gph-project-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}
.gph-project-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gph-project-hero h4 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    line-height: 1.08;
}
.gph-project-hero p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}
.gph-project-hero-progress {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.gph-project-hero-progress strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}
.gph-project-hero-progress small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}
.gph-project-explanation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.gph-project-explanation-block {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-project-explanation-block strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.88rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}
.gph-project-explanation-block p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}
.gph-project-explanation-block.is-internal {
    background: #111827;
    border-color: #111827;
}
.gph-project-explanation-block.is-internal strong,
.gph-project-explanation-block.is-internal p {
    color: #fff;
}
.gph-project-explanation-block.is-internal p {
    opacity: 0.84;
}
.gph-project-meta-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
}
.gph-project-meta-strip div {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-project-meta-strip strong {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gph-project-meta-strip span {
    display: block;
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.gph-project-empty {
    margin-bottom: 18px;
}
@media (max-width: 1100px) {
    .gph-project-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .gph-project-hero,
    .gph-project-heading {
        flex-direction: column;
        align-items: stretch;
    }
    .gph-project-hero-progress {
        min-height: 120px;
    }
    .gph-project-explanation-grid,
    .gph-project-meta-strip {
        grid-template-columns: 1fr;
    }
}

/* GIPYC Project Hub v1.0.56 - edición inline del proyecto */
.gph-project-inline-editor {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.10);
}
.gph-project-inline-editor[hidden] {
    display: none !important;
}
.gph-project-inline-editor label {
    color: #0f172a;
}
.gph-project-inline-editor textarea {
    min-height: 88px;
    resize: vertical;
    background: #fff;
}
.gph-project-editor-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.gph-project-read[hidden] {
    display: none !important;
}
@media (max-width: 760px) {
    .gph-project-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .gph-project-editor-actions .gph-public-button {
        width: 100%;
        justify-content: center;
    }
}

/* GIPYC Project Hub v1.0.57 - editor de proyecto abierto por omisión */
.gph-project-inline-editor.is-open{display:grid;}

.gph-project-autosave-status {
    align-self: center;
    color: #7b8494;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.gph-project-autosave-status.is-saving {
    color: #9a6b12;
}
.gph-project-autosave-status.is-saved {
    color: #1f7a4d;
}
.gph-project-autosave-status.is-error {
    color: #b42318;
}

.gph-project-ai-panel {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(39, 48, 64, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,247,250,0.96));
    box-shadow: 0 12px 30px rgba(18, 24, 38, 0.08);
}

.gph-project-ai-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.gph-project-ai-heading strong {
    display: block;
    font-size: 1.1rem;
    color: #273040;
}

.gph-project-ai-heading p {
    margin: 5px 0 0;
    color: rgba(39, 48, 64, 0.68);
}

.gph-project-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(39, 48, 64, 0.08);
    color: #273040;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.gph-project-ai-form textarea {
    width: 100%;
    resize: vertical;
}

.gph-project-ai-actions,
.gph-ai-apply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}


.gph-project-ai-submit,
.gph-ai-apply-actions .gph-public-button,
.gph-ai-apply-actions .gph-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 22px;
    border: 1px solid #000 !important;
    border-radius: 999px;
    background: #000 !important;
    color: #fff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.gph-project-ai-submit:hover,
.gph-project-ai-submit:focus,
.gph-ai-apply-actions .gph-public-button:hover,
.gph-ai-apply-actions .gph-public-button:focus,
.gph-ai-apply-actions .gph-secondary-button:hover,
.gph-ai-apply-actions .gph-secondary-button:focus {
    background: #171717 !important;
    border-color: #171717 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.gph-project-ai-submit:disabled,
.gph-ai-apply-actions .gph-public-button:disabled,
.gph-ai-apply-actions .gph-secondary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.gph-project-ai-actions span,
.gph-project-ai-actions [data-gph-ai-status] {
    color: rgba(39, 48, 64, 0.68);
    font-size: 0.9rem;
}

.gph-project-ai-actions .is-saving { color: #9a5a00; }
.gph-project-ai-actions .is-saved { color: #1f7a45; }
.gph-project-ai-actions .is-error { color: #9c1c1c; }

.gph-project-ai-result {
    margin-top: 18px;
}

.gph-ai-proposal-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(39, 48, 64, 0.1);
}

.gph-ai-proposal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.gph-ai-proposal-head strong {
    font-size: 1rem;
    color: #273040;
}

.gph-ai-proposal-head span {
    font-size: 0.82rem;
    color: rgba(39, 48, 64, 0.56);
}

.gph-ai-result-block strong,
.gph-ai-fields-grid article strong,
.gph-ai-task strong {
    display: block;
    color: #273040;
    margin-bottom: 6px;
}

.gph-ai-result-block p,
.gph-ai-fields-grid article p,
.gph-ai-task p {
    margin: 0;
    color: rgba(39, 48, 64, 0.76);
    line-height: 1.5;
}

.gph-ai-result-block ul {
    margin: 8px 0 0 18px;
    padding: 0;
    color: rgba(39, 48, 64, 0.76);
}

.gph-ai-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gph-ai-fields-grid article,
.gph-ai-task {
    padding: 14px;
    border-radius: 14px;
    background: rgba(39, 48, 64, 0.045);
}

.gph-ai-task-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.gph-ai-task span,
.gph-ai-task em {
    display: block;
    color: rgba(39, 48, 64, 0.58);
    font-size: 0.84rem;
    font-style: normal;
    margin-bottom: 6px;
}

@media (max-width: 760px) {
    .gph-project-ai-heading,
    .gph-ai-proposal-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .gph-ai-fields-grid {
        grid-template-columns: 1fr;
    }
}

.gph-form-actions-row,
.gph-modal-actions-split,
.gph-modal-actions-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gph-modal-actions-right {
    margin-left: auto;
}

.gph-trash-inline-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(39, 48, 64, 0.1);
}

.gph-trash-button,
.gph-restore-button,
.gph-delete-forever-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.gph-trash-button {
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.gph-trash-button:hover,
.gph-restore-button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.gph-restore-button {
    background: #f4f6f8;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.gph-pool-card-static {
    cursor: default;
}

.gph-card-action-form {
    margin-top: 14px;
}

.gph-trash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gph-trash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(39, 48, 64, 0.08);
}

.gph-trash-row:last-child {
    border-bottom: 0;
}

.gph-trash-row strong,
.gph-trash-row small {
    display: block;
}

.gph-trash-row small {
    color: rgba(39, 48, 64, 0.58);
    margin-top: 3px;
}

.gph-check-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .gph-trash-grid {
        grid-template-columns: 1fr;
    }
    .gph-trash-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* GIPYC Project Hub v1.0.64 - interfaz visible para enviar elementos a papelera */
.gph-pool-card-with-actions {
    padding: 0 !important;
    overflow: hidden;
}

.gph-pool-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 138px;
    padding: 20px 20px 12px;
    color: inherit;
    text-decoration: none;
}

.gph-pool-card-main:hover {
    text-decoration: none;
}

.gph-card-actions,
.gph-pool-header-actions,
.gph-modal-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gph-card-actions {
    justify-content: space-between;
    margin-top: auto;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.46);
}

.gph-card-actions .gph-card-action-form {
    margin: 0;
}

.gph-card-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #f4f6f8;
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: #111827;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.gph-card-edit-link:hover {
    background: #e5e9ee;
    text-decoration: none;
}

.gph-trash-button-small {
    min-height: 34px;
    padding: 9px 13px;
    font-size: 0.78rem;
}

.gph-heading-trash-form {
    margin-left: auto;
}

.gph-gantt-task-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: stretch;
    min-height: 52px;
    background: #eef1f4;
    border-top: 3px solid #f3f4f6;
    border-right: 3px solid #f3f4f6;
}

.gph-gantt-task-cell .gph-gantt-task-name {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    min-height: 49px;
    border: 0 !important;
    border-right: 1px solid rgba(17, 24, 39, 0.08) !important;
    background: transparent !important;
}

.gph-task-trash-mini {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-left: 1px solid rgba(17, 24, 39, 0.08);
    background: #111827;
    color: #ffffff;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.gph-task-trash-mini:hover {
    opacity: .9;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .gph-pool-header-actions,
    .gph-card-actions,
    .gph-modal-head-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .gph-heading-trash-form {
        margin-left: 0;
    }
}

/* GIPYC Project Hub v1.0.66 - botones de acciones con identidad visual */
.gph-trash-button,
.gph-restore-button,
.gph-trash-button-small,
.gph-card-edit-link,
.gph-task-trash-mini,
.gph-delete-forever-button,
.gph-modal-head-actions .gph-trash-button,
.gph-pool-header-actions .gph-trash-button,
.gph-card-actions .gph-trash-button,
.gph-card-actions .gph-card-edit-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #000 !important;
    border-radius: 999px !important;
    background: #000 !important;
    color: #fff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16) !important;
    cursor: pointer !important;
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.gph-trash-button,
.gph-restore-button,
.gph-delete-forever-button,
.gph-card-edit-link {
    min-height: 38px !important;
    padding: 11px 17px !important;
}

.gph-trash-button-small,
.gph-card-actions .gph-card-edit-link,
.gph-card-actions .gph-trash-button {
    min-height: 34px !important;
    padding: 9px 14px !important;
    font-size: 0.78rem !important;
}

.gph-trash-button:hover,
.gph-restore-button:hover,
.gph-delete-forever-button:hover,
.gph-card-edit-link:hover,
.gph-task-trash-mini:hover,
.gph-trash-button:focus,
.gph-restore-button:focus,
.gph-delete-forever-button:focus,
.gph-card-edit-link:focus,
.gph-task-trash-mini:focus {
    background: #171717 !important;
    border-color: #171717 !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.gph-task-trash-mini {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 49px !important;
    padding: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.24) !important;
    font-size: 1rem !important;
    box-shadow: none !important;
}

.gph-project-hero .gph-trash-button,
.gph-project-hero .gph-restore-button,
.gph-project-hero .gph-delete-forever-button,
.gph-project-hero .gph-card-edit-link,
.gph-dark-panel .gph-trash-button,
.gph-dark-panel .gph-restore-button,
.gph-dark-panel .gph-delete-forever-button,
.gph-dark-panel .gph-card-edit-link,
.gph-app-sidebar .gph-trash-button,
.gph-app-sidebar .gph-restore-button,
.gph-app-sidebar .gph-delete-forever-button,
.gph-app-sidebar .gph-card-edit-link,
.gph-empty-state .gph-trash-button,
.gph-empty-state .gph-restore-button,
.gph-empty-state .gph-delete-forever-button,
.gph-empty-state .gph-card-edit-link {
    background: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.12) !important;
}

.gph-project-hero .gph-trash-button:hover,
.gph-project-hero .gph-restore-button:hover,
.gph-project-hero .gph-card-edit-link:hover,
.gph-dark-panel .gph-trash-button:hover,
.gph-dark-panel .gph-restore-button:hover,
.gph-dark-panel .gph-card-edit-link:hover,
.gph-app-sidebar .gph-trash-button:hover,
.gph-app-sidebar .gph-restore-button:hover,
.gph-app-sidebar .gph-card-edit-link:hover,
.gph-empty-state .gph-trash-button:hover,
.gph-empty-state .gph-restore-button:hover,
.gph-empty-state .gph-card-edit-link:hover {
    background: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
    color: #000 !important;
}


.gph-trash-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.gph-trash-actions form {
    margin: 0;
}

.gph-delete-forever-button {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.gph-delete-forever-button:hover,
.gph-delete-forever-button:focus {
    background: #171717 !important;
    border-color: #171717 !important;
    color: #fff !important;
}

@media (max-width: 680px) {
    .gph-trash-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* GIPYC Project Hub v1.0.67 - alta rápida y bloqueo por interpretación IA */
.gph-project-start-panel .gph-card-heading {
    margin-bottom: 18px;
}

.gph-project-start-intro {
    margin-bottom: 18px;
}

.gph-project-quick-form {
    align-items: end;
}

.gph-nav-locked {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.42);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: not-allowed;
    user-select: none;
    position: relative;
}

.gph-nav-locked:after {
    content: 'IA';
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.gph-project-locked-state {
    min-height: 260px;
    align-items: flex-start;
}

.gph-project-locked-state .gph-public-button {
    margin-top: 12px;
}

.gph-project-ai-intro {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #07111f 0%, #10233f 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(7, 17, 31, 0.18);
}

.gph-project-ai-intro strong {
    color: #ffffff;
}

.gph-project-ai-intro p {
    color: rgba(255, 255, 255, 0.82);
}

/* GIPYC Project Hub v1.0.71 - propuesta IA persistente y selección de tareas */
.gph-ai-task {
    position: relative;
}

.gph-ai-task-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #07111f;
    color: #ffffff;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.gph-ai-task-select input {
    width: auto;
    margin: 0;
    accent-color: #000000;
}

.gph-ai-task-select span {
    color: #ffffff !important;
}

.gph-ai-proposal-card .gph-ai-apply-actions .gph-public-button[disabled] {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #ffffff !important;
    opacity: 0.75;
    cursor: not-allowed;
    box-shadow: none;
}

/* GIPYC Project Hub v1.0.74 - tareas IA editables y regenerables */
.gph-ai-task-help {
    margin: 6px 0 14px;
    color: rgba(39, 48, 64, 0.68);
    font-size: 0.92rem;
}

.gph-ai-task[data-gph-ai-task-card] {
    display: grid;
    gap: 10px;
}

.gph-ai-task[data-gph-ai-task-card] label {
    display: grid;
    gap: 5px;
    color: #273040;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

.gph-ai-task[data-gph-ai-task-card] input[type="text"],
.gph-ai-task[data-gph-ai-task-card] input[type="date"],
.gph-ai-task[data-gph-ai-task-card] select,
.gph-ai-task[data-gph-ai-task-card] textarea {
    width: 100%;
    border: 1px solid rgba(39, 48, 64, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #273040;
    padding: 9px 10px;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 600;
}

.gph-ai-task-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gph-ai-task small {
    color: rgba(39, 48, 64, 0.58);
}

.gph-ai-task-select {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: center;
    gap: 8px !important;
    width: fit-content;
    padding: 8px 13px;
    border: 1px solid #000000;
    border-radius: 999px;
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.gph-ai-task-select input {
    width: auto !important;
    margin: 0;
    accent-color: #ffffff;
}

.gph-ai-task-select span {
    color: #ffffff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-ai-task-select:has(input:not(:checked)) {
    background: #f3f4f6 !important;
    border-color: rgba(39, 48, 64, 0.22);
    color: #273040 !important;
    box-shadow: none;
}

.gph-ai-task-select:has(input:not(:checked)) span {
    color: #273040 !important;
}

@media (max-width: 900px) {
    .gph-ai-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gph-ai-task-grid {
        grid-template-columns: 1fr;
    }
}

/* GIPYC Project Hub v1.0.75 - calendario laboral */
.gph-gantt-scale span.is-non-working {
    background: #b42318 !important;
    color: #ffffff !important;
    position: relative;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 900;
    text-shadow: none;
}

.gph-gantt-scale span.is-non-working::after {
    content: none !important;
    display: none !important;
}

.gph-ai-task small.gph-ai-task-calendar-note {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #273040;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 700;
}


/* GIPYC Project Hub v1.0.78 - Gantt legible y desplazable */
.gph-gantt {
    grid-template-columns: minmax(190px, 260px) minmax(calc(var(--gph-gantt-columns) * var(--gph-gantt-column-min, 78px)), 1fr) !important;
    overflow-x: auto !important;
    overflow-y: visible;
}

.gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="month"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="week"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="year"] .gph-gantt-scale,
.gph-gantt[data-gph-gantt-view="day"] .gph-gantt-scale {
    grid-template-columns: repeat(var(--gph-gantt-columns), minmax(var(--gph-gantt-column-min, 78px), 1fr)) !important;
    grid-auto-columns: unset !important;
}

.gph-gantt-scale span {
    min-width: var(--gph-gantt-column-min, 78px);
    padding: 10px 6px;
    font-size: 0.72rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.gph-gantt-scale span.is-non-working {
    background: #b42318 !important;
    color: #ffffff !important;
}

.gph-gantt-bar {
    min-height: 38px;
    border-radius: 10px;
}

.gph-task-trash-mini {
    min-width: 42px;
    font-size: 1.08rem;
}

.gph-gantt-task-cell {
    grid-template-columns: minmax(0, 1fr) 42px;
}

@media (max-width: 760px) {
    .gph-gantt {
        grid-template-columns: minmax(150px, 190px) minmax(calc(var(--gph-gantt-columns) * var(--gph-gantt-column-min, 78px)), 1fr) !important;
    }
}


/* GIPYC Project Hub v1.0.80 - mes completo sobre fecha en Gantt */
.gph-gantt-scale span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    padding-inline: 4px;
}

.gph-gantt-month-label {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.64);
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
}

.gph-gantt-day-label {
    display: block;
    color: #ffffff;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}

.gph-gantt-scale span.is-non-working .gph-gantt-month-label {
    color: rgba(255, 255, 255, 0.78);
}

.gph-gantt-scale span.is-non-working .gph-gantt-day-label {
    color: #ffffff;
}

@media (max-width: 760px) {
    .gph-gantt-month-label {
        font-size: 0.58rem;
    }
    .gph-gantt-day-label {
        font-size: 0.74rem;
    }
}

/* GIPYC Project Hub v1.0.83 - Comunicación lateral permanente */
.gph-app-shell.has-communication {
    grid-template-columns: 250px minmax(0, 1fr) 340px;
    align-items: start;
}

.gph-communication-sidebar {
    position: sticky;
    top: 18px;
    min-width: 0;
}

.gph-communication-card {
    background: #0b1220;
    color: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
    overflow: hidden;
}

.gph-communication-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gph-communication-head strong {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
}

.gph-communication-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
}

.gph-communication-feed.gph-public-chat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1 1 auto;
    min-height: 240px;
    max-height: none;
    padding: 10px;
    margin-bottom: 12px;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.gph-communication-feed.gph-public-chat::-webkit-scrollbar {
    width: 10px;
}

.gph-communication-feed.gph-public-chat::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.gph-communication-feed.gph-public-chat::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
}

.gph-communication-feed.gph-public-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.62);
}

.gph-communication-feed .gph-public-message {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    color: #1f2933;
    margin-bottom: 10px;
}

.gph-communication-feed .gph-public-message.is-own {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.gph-communication-feed .gph-public-message strong {
    color: #111827;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-communication-feed .gph-public-message small {
    color: #64748b;
}

.gph-communication-empty {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}


.gph-communication-form {
    flex: 0 0 auto;
}

.gph-communication-form textarea {
    width: 100%;
    min-height: 94px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    margin: 0 0 10px;
}

.gph-communication-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.gph-communication-options label {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.78rem;
    font-weight: 800;
}

.gph-communication-options input,
.gph-communication-options select {
    width: 100%;
    margin-top: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: #ffffff;
    color: #111827;
    padding: 8px 10px;
}

.gph-communication-form .gph-public-button {
    width: 100%;
    justify-content: center;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-communication-form .gph-public-button:hover,
.gph-communication-form .gph-public-button:focus {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #000000 !important;
}

@media (max-width: 1280px) {
    .gph-app-shell.has-communication {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .gph-communication-sidebar {
        grid-column: 2;
        position: relative;
        top: auto;
    }

    .gph-communication-card {
        max-height: none;
    }

    .gph-communication-feed.gph-public-chat {
        max-height: 360px;
        overflow-y: auto !important;
    }
}

@media (max-width: 900px) {
    .gph-app-shell.has-communication {
        grid-template-columns: 1fr;
    }

    .gph-communication-sidebar {
        grid-column: auto;
    }
}

/* GIPYC Project Hub v1.0.87 - entregables con look and feel de tareas */
.gph-deliverables-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.gph-deliverable-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
}

.gph-deliverable-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
    background: #f4f6f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.gph-deliverable-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: #111827;
}

.gph-deliverable-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gph-deliverable-card-head strong {
    display: block;
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.gph-deliverable-card-head span,
.gph-deliverable-card-head em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gph-deliverable-card-head span {
    margin-top: 7px;
    padding: 6px 9px;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.gph-deliverable-card-head em {
    flex: 0 0 auto;
    padding: 8px 10px;
    background: #111827;
    color: #ffffff;
    font-style: normal;
    white-space: nowrap;
}

.gph-deliverable-card p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.45;
}

.gph-deliverable-muted {
    color: rgba(100, 116, 139, 0.74) !important;
    font-style: italic;
}

.gph-deliverable-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.gph-deliverable-meta div {
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.gph-deliverable-meta small {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gph-deliverable-meta b {
    display: block;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.gph-deliverable-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gph-deliverable-actions a:not(.gph-public-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 15px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.gph-deliverable-status-review::before { background: #f59e0b; }
.gph-deliverable-status-delivered::before { background: #2563eb; }
.gph-deliverable-status-approved::before { background: #16a34a; }
.gph-deliverable-status-requires_adjustments::before { background: #dc2626; }

.gph-deliverable-create-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 24px;
    background: #f4f6f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.gph-deliverable-create-head {
    margin-bottom: 14px;
}

.gph-deliverable-create-head h4 {
    margin: 0 0 4px;
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-deliverable-create-head p {
    margin: 0;
    color: #64748b;
}

.gph-deliverable-form label {
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.gph-deliverable-form input,
.gph-deliverable-form select,
.gph-deliverable-form textarea {
    background: #ffffff;
    border-radius: 14px !important;
}

.gph-deliverable-form .gph-public-button {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 800 !important;
}

.gph-deliverable-empty {
    margin: 16px 0 24px;
}

@media (max-width: 1100px) {
    .gph-deliverable-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gph-deliverable-meta {
        grid-template-columns: 1fr;
    }
}

/* GIPYC Project Hub v1.0.88 - Gantt de entregables */
.gph-deliverable-gantt {
    margin-top: 18px;
    margin-bottom: 22px;
}
.gph-deliverable-gantt .gph-gantt-left-head {
    background: #5f646b;
}
.gph-deliverable-gantt-cell .gph-gantt-task-name small {
    color: rgba(15, 23, 42, 0.62);
}
.gph-deliverable-gantt-bar {
    min-height: 28px;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.gph-deliverable-gantt-status-review { background: #f59e0b; }
.gph-deliverable-gantt-status-delivered { background: #2563eb; }
.gph-deliverable-gantt-status-approved { background: #16a34a; }
.gph-deliverable-gantt-status-requires_adjustments { background: #dc2626; }
.gph-deliverable-board-secondary {
    margin-top: 18px;
}
.gph-deliverable-actions .gph-public-button,
.gph-deliverable-edit-form .gph-public-button {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 800 !important;
}
.gph-deliverable-modal-card {
    max-width: 860px;
}
.gph-deliverable-modal-head {
    padding: 16px 18px;
    border-radius: 18px;
    background: #07111f;
    color: #fff;
    margin-bottom: 6px;
}
.gph-deliverable-modal-head span {
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.68);
}
.gph-deliverable-modal-head h4 {
    margin: 0;
    color: #fff;
}
.gph-deliverable-edit-trigger {
    cursor: pointer;
}
@media (max-width: 760px) {
    .gph-deliverable-gantt {
        --gph-gantt-column-min: 82px !important;
    }
}

/* GIPYC Project Hub v1.0.90 - entregables solo desde Gantt */
.gph-deliverable-board-secondary {
    display: none !important;
}
.gph-deliverable-gantt-cell .gph-gantt-task-name {
    gap: 3px;
    line-height: 1.12;
}
.gph-deliverable-gantt-cell .gph-gantt-task-name strong,
.gph-deliverable-gantt-cell .gph-gantt-task-name small {
    display: block;
    width: 100%;
}
.gph-deliverable-row-status {
    margin-top: 4px;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.72) !important;
}
.gph-deliverable-row-date {
    margin-top: 2px;
    color: rgba(15, 23, 42, 0.58) !important;
}

/* GIPYC Project Hub v1.0.92 - ajustes del proyecto en modal */
.gph-project-edit-modal-button {
    white-space: nowrap;
}

.gph-project-settings-modal-card {
    width: min(940px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.gph-project-settings-modal-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.gph-project-settings-modal-panel .gph-card-heading {
    align-items: flex-start;
    margin-bottom: 18px;
}

.gph-project-settings-modal-panel .gph-card-heading h3 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    margin: 0;
}

.gph-project-settings-modal-panel .gph-form-grid {
    margin-top: 0;
}

.gph-project-settings-modal-panel .gph-trash-inline-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.gph-project-settings-modal-panel .gph-modal-close {
    flex: 0 0 auto;
}


/* GIPYC Project Hub v1.0.93 - regla global de botones */
.gph-public .gph-public-button,
.gph-public .gph-secondary-button,
.gph-public .gph-card-edit-link,
.gph-public button.gph-public-button,
.gph-public a.gph-public-button,
.gph-public-form button,
.gph-modal-card .gph-public-button,
.gph-modal-card .gph-secondary-button,
.gph-modal-card button[type="submit"],
.gph-project-edit-modal-button,
.gph-deliverable-edit-trigger,
.gph-deliverable-edit-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px;
    padding: 11px 20px !important;
    border: 1px solid #000000 !important;
    border-radius: 999px !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.92rem;
    line-height: 1.05 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    text-shadow: none !important;
    opacity: 1 !important;
}

.gph-public .gph-public-button:hover,
.gph-public .gph-secondary-button:hover,
.gph-public .gph-card-edit-link:hover,
.gph-public-form button:hover,
.gph-modal-card .gph-public-button:hover,
.gph-modal-card .gph-secondary-button:hover,
.gph-modal-card button[type="submit"]:hover,
.gph-project-edit-modal-button:hover,
.gph-deliverable-edit-trigger:hover,
.gph-deliverable-edit-button:hover {
    background: #171717 !important;
    border-color: #171717 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.gph-public .gph-public-button:focus,
.gph-public .gph-secondary-button:focus,
.gph-public .gph-card-edit-link:focus,
.gph-public-form button:focus,
.gph-modal-card .gph-public-button:focus,
.gph-modal-card .gph-secondary-button:focus,
.gph-modal-card button[type="submit"]:focus,
.gph-project-edit-modal-button:focus,
.gph-deliverable-edit-trigger:focus,
.gph-deliverable-edit-button:focus {
    outline: 2px solid rgba(0, 0, 0, 0.22) !important;
    outline-offset: 2px;
}

.gph-project-hero .gph-public-button,
.gph-project-hero .gph-secondary-button,
.gph-dark-panel .gph-public-button,
.gph-dark-panel .gph-secondary-button,
.gph-empty-state .gph-public-button,
.gph-empty-state .gph-secondary-button,
.gph-app-sidebar .gph-public-button,
.gph-app-sidebar .gph-secondary-button,
.gph-communication-card .gph-public-button,
.gph-communication-card .gph-secondary-button,
.gph-communication-card button[type="submit"] {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.10);
}

.gph-project-hero .gph-public-button:hover,
.gph-project-hero .gph-secondary-button:hover,
.gph-dark-panel .gph-public-button:hover,
.gph-dark-panel .gph-secondary-button:hover,
.gph-empty-state .gph-public-button:hover,
.gph-empty-state .gph-secondary-button:hover,
.gph-app-sidebar .gph-public-button:hover,
.gph-app-sidebar .gph-secondary-button:hover,
.gph-communication-card .gph-public-button:hover,
.gph-communication-card .gph-secondary-button:hover,
.gph-communication-card button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.88) !important;
    color: #000000 !important;
}

.gph-public .gph-public-button[disabled],
.gph-public .gph-secondary-button[disabled],
.gph-public button[disabled],
.gph-public .is-disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* GIPYC Project Hub v1.0.94 - equipo del proyecto */
.gph-project-team-panel {
    margin: 22px 0 0;
    padding: 22px;
    border-radius: 24px;
    background: #f5f7fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.gph-project-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.gph-project-team-head strong {
    display: block;
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}
.gph-project-team-head p {
    margin: 4px 0 0;
    color: #6b7a90;
}
.gph-project-team-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.gph-project-team-group,
.gph-project-team-empty {
    border-radius: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-project-team-group h4 {
    margin: 0 0 12px;
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: .95rem;
}
.gph-project-member-list {
    display: grid;
    gap: 10px;
}
.gph-project-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.gph-project-member-card strong,
.gph-project-member-card span,
.gph-project-member-card small {
    display: block;
}
.gph-project-member-card strong {
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}
.gph-project-member-card span {
    color: #6b7a90;
    font-size: .88rem;
}
.gph-project-member-card small {
    color: #0f172a;
    font-weight: 700;
    margin-top: 4px;
}
.gph-project-team-empty {
    grid-column: 1 / -1;
    color: #6b7a90;
}
.gph-project-user-modal-card {
    width: min(1040px, calc(100vw - 42px));
}
.gph-project-user-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.gph-project-user-form {
    align-content: start;
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.gph-project-user-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gph-project-user-create-form .gph-project-user-field-password {
    grid-column: 1 / -1;
}

.gph-project-user-create-form .gph-project-user-field-global-role,
.gph-project-user-create-form .gph-project-user-field-project-role {
    grid-column: span 1;
}

.gph-project-user-create-form input,
.gph-project-user-create-form select {
    width: 100%;
}

.gph-project-user-create-form .gph-checkbox-line {
    margin-top: 2px;
}
.gph-project-user-form h4 {
    margin: 0 0 4px;
    color: #1f2937;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
}
.gph-checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gph-checkbox-line input {
    width: auto !important;
    margin: 0 !important;
}
@media (max-width: 980px) {
    .gph-project-team-groups,
    .gph-project-user-modal-grid {
        grid-template-columns: 1fr;
    }
    .gph-project-team-head,
    .gph-project-member-card {
        align-items: stretch;
        flex-direction: column;
    }
}

/* GIPYC Project Hub v1.0.96 - usuarios dentro del modal de proyecto */
.gph-project-users-modal-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gph-project-users-modal-note strong,
.gph-project-users-modal-note span {
    display: block;
}
.gph-project-users-modal-note strong {
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    color: #1f2937;
}
.gph-project-users-modal-note span {
    margin-top: 4px;
    color: #6b7a90;
}
.gph-project-settings-team-section {
    margin-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.gph-project-settings-team-section .gph-project-team-groups {
    grid-template-columns: 1fr;
}


/* GIPYC Project Hub v1.0.97 - modal anidado para agregar usuario */
#gph-project-user-modal {
    z-index: 100250 !important;
}

#gph-project-user-modal .gph-modal-backdrop {
    background: rgba(3, 7, 18, 0.58);
    backdrop-filter: blur(8px);
}

#gph-project-user-modal .gph-modal-dialog {
    z-index: 3;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

#gph-project-settings-modal.is-open:has(~ #gph-project-user-modal.is-open),
body:has(#gph-project-user-modal.is-open) #gph-project-settings-modal {
    z-index: 99999;
}


/* GIPYC Project Hub v1.0.98 - errores visibles sobre modales anidados */
.gph-live-toast {
    z-index: 100500 !important;
    position: fixed !important;
}
.gph-live-toast.is-error {
    box-shadow: 0 22px 60px rgba(153, 27, 27, 0.45) !important;
}

@media (max-width: 760px) {
    .gph-project-user-create-form {
        grid-template-columns: 1fr !important;
    }
    .gph-project-user-create-form .gph-project-user-field-global-role,
    .gph-project-user-create-form .gph-project-user-field-project-role {
        grid-column: 1 / -1;
    }
}


/* GIPYC Project Hub v1.0.101 - mostrar/ocultar contraseña en login */
.gph-login-password-field {
    position: relative;
    display: block;
}

.gph-login-password-field input {
    padding-right: 92px !important;
}

.gph-login-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 30px !important;
    padding: 7px 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #101827 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.gph-login-password-toggle:hover,
.gph-login-password-toggle:focus {
    background: #000000 !important;
    color: #ffffff !important;
}

/* GIPYC Project Hub v1.0.102 - contraseña visible por omisión en login */
.gph-login-password-field input[type="text"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 14px;
    padding: 10px 92px 10px 13px !important;
    box-sizing: border-box;
    background: #f8fafc;
}

.gph-login-password-field .gph-login-password-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 3;
}


/* GIPYC Project Hub v1.0.106 - visibilidad en cabecera de Comunicación */
.gph-communication-head {
    align-items: center;
}

.gph-communication-visibility-head {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.gph-communication-visibility-head select {
    width: 100%;
    max-width: 190px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 8px 34px 8px 14px;
    line-height: 1;
    outline: none;
}

.gph-communication-visibility-head.is-readonly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-family: 'Montserrat', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 8px 14px;
}

.gph-communication-live-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.gph-communication-options {
    display: none !important;
}
