.cg-objectives {display:grid;gap:20px;min-width:0}
.cg-objectives h2,.cg-objectives h3,.cg-objectives h4 {margin:0 0 8px}
.cg-objectives .objective-assurance-gate {margin:0;padding:20px}
.cg-objectives .objective-assurance-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.cg-objectives .objective-assurance-card b {font-size:24px;margin:5px 0}
.cg-objectives .cg-goal-section {padding:18px;border:1px solid #dbeafe;border-radius:18px;background:#fff;min-width:0}
.cg-goal-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cg-goal {border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(120deg,#f8fbff,#fff);padding:16px;min-width:0;overflow-wrap:anywhere}
.cg-goal header {display:flex;gap:12px;justify-content:space-between;align-items:start}
.cg-goal small,.cg-goal p {line-height:1.5}
.cg-goal .cg-goal-code {color:#0f766e;font-weight:800}
.cg-goal dl {margin:12px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cg-goal dt {font-size:12px;color:#475569}
.cg-goal dd {margin:3px 0 0;font-weight:700}
.cg-goal details {margin:12px 0 0;border-top:1px solid #dbeafe;padding-top:10px}
.cg-goal summary {cursor:pointer;font-weight:700;color:#1e40af;min-height:32px}
.cg-goal-links {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.cg-goal-link {background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:5px 8px;font-size:13px;color:#1e3a8a}
.cg-goal-note {font-size:13px;color:#475569;margin:8px 0}
.cg-goal-form {margin:16px 0;padding:18px;border:1px solid #93c5fd;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#faf5ff);scroll-margin-top:88px}
.cg-goal-form label {display:grid;gap:6px;font-size:14px;font-weight:600;min-width:0}
.cg-goal-form input,.cg-goal-form textarea,.cg-goal-form select {box-sizing:border-box;max-width:100%;width:100%;min-height:42px;padding:9px 11px;font:inherit;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a}
.cg-goal-form textarea {min-height:78px;resize:vertical}
.cg-goal-form-grid {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cg-goal-form .wide {grid-column:1/-1}
.cg-goal-form fieldset {margin:0;min-width:0;border:1px solid #cbd5e1;border-radius:12px;padding:12px;background:#fff}
.cg-goal-form legend {font-weight:800;color:#1e40af;padding:0 5px}
.cg-goal-checklist {max-height:240px;overflow:auto;margin-top:8px;display:grid;gap:6px}
.cg-goal-form .cg-goal-check {display:flex;align-items:start;gap:9px;min-height:44px;padding:7px;border-radius:8px;font-weight:400}
.cg-goal-check:hover {background:#eff6ff}
.cg-goal-form input[type=checkbox] {flex:0 0 18px;width:18px;min-height:18px;margin:3px 0;accent-color:#2563eb}
.cg-goal-form .review {display:flex;align-items:start;gap:9px;font-weight:400;background:#fff;padding:12px;border-radius:10px}
.cg-objectives :focus-visible {outline:3px solid #2563eb;outline-offset:3px}
.cg-goal-error {color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:12px;margin-bottom:12px}
.cg-goal-success {color:#115e59;background:#f0fdfa;border:1px solid #99f6e4;padding:10px;border-radius:10px}
.cg-macro-select {margin-top:9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
.cg-macro-select>summary {box-sizing:border-box;cursor:pointer;min-height:44px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#1e40af;font-weight:700}
.cg-macro-select>summary:after {content:'▾';font-size:14px}
.cg-macro-select[open]>summary:after {content:'▴'}
.cg-macro-select [data-macro-count] {margin-left:auto;background:#eff6ff;border-radius:20px;padding:2px 8px;min-width:16px;text-align:center}
.cg-macro-menu {border-top:1px solid #dbeafe;padding:12px}
.cg-macro-menu .cg-goal-checklist {gap:0;align-content:start}
.cg-goal-form .cg-macro-menu .cg-goal-check {box-sizing:border-box;align-items:center;min-height:44px;padding:4px 7px;margin:0}
.cg-goal-form .cg-macro-menu input[type=checkbox] {height:18px;padding:0}
.cg-macro-field [data-macro-selected] {min-height:24px;overflow-wrap:anywhere}
.cg-objectives [hidden] {display:none!important}
.cg-objectives .toolbar {gap:12px;flex-wrap:wrap}
.cg-objectives .btn {min-height:40px}
@media(max-width:760px){.cg-goal-grid,.cg-goal-form-grid,.cg-objectives .objective-assurance-grid {grid-template-columns:1fr}.cg-goal-form .wide{grid-column:auto}.cg-goal header{flex-wrap:wrap}.cg-objectives .cg-goal-section,.cg-goal-form{padding:13px}.cg-goal dl{grid-template-columns:1fr}.cg-objectives .toolbar .btn{width:100%}}
/* 3.9.22: aviso de solo lectura en lugar de un botón que no aparece sin explicación. */
.cg-objectives .cg-goal-readonly {margin:0;max-width:420px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.45}
.cg-objectives .cg-goal-readonly b {display:block;color:#0f2a4a;margin-bottom:2px}
@media(max-width:760px){.cg-objectives .cg-goal-readonly{max-width:none}}
/* 3.9.27: formulario de objetivo CG en cuatro pasos, unidad visible y contribuciones bajo cada objetivo del negocio. */
.cg-objective-form .cg-step {display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin:0 0 14px}
.cg-objective-form .cg-step > p, .cg-objective-form .cg-step > .cg-goal-checklist, .cg-objective-form .cg-step > .cg-macro-field {grid-column:1/-1;margin:0}
.cg-objective-form .cg-step legend {display:flex;align-items:center;gap:8px;font-size:15px}
.cg-step__n {display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#1e40af;color:#fff;font-size:13px;font-weight:700}
.cg-objective-form [hidden] {display:none!important}
.cg-unit-input {display:flex;align-items:stretch;border:1px solid #cbd5e1;border-radius:10px;background:#fff;overflow:hidden}
.cg-unit-input:focus-within {outline:2px solid #2563eb;outline-offset:1px}
.cg-goal-form .cg-unit-input input {border:0;border-radius:0;outline:none;min-width:0}
.cg-unit-input__suffix {display:flex;align-items:center;padding:0 12px;background:#f1f5f9;color:#0f2a4a;font-weight:700;white-space:nowrap;border-left:1px solid #cbd5e1}
.cg-unit-input__suffix:empty {display:none}
.cg-goal-summary {margin:0;padding:10px 12px;border-radius:10px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-weight:600}
.cg-goal-warning {margin:0;padding:10px 12px;border-radius:10px;background:#fffbeb;border:1px solid #fcd34d;color:#92400e}
.cg-contrib {display:grid;gap:8px;margin:10px 0;padding:10px 12px;border:1px dashed #a5b4fc;border-radius:12px;background:#f8faff}
.cg-contrib__list {margin:0;padding:0;list-style:none;display:grid;gap:6px}
.cg-contrib__list li {display:grid;gap:2px;font-size:14px}
.cg-contrib__list small {color:#475569}
.cg-contrib .btn {justify-self:start}
.cg-goal-next {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:12px 14px;border:1px solid #93c5fd;border-radius:12px;background:#eff6ff}
.cg-goal-next p {margin:0}
@media(max-width:760px){.cg-objective-form .cg-step{grid-template-columns:1fr}}
/* 3.9.31: objetivos en filas, más compactos que las tarjetas. */
.cg-objectives .objective-assurance-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.cg-rows {display:grid;border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}
.cg-row {display:grid;gap:12px 18px;align-items:start;padding:12px 16px;border-top:1px solid #e2e8f0}
.cg-row:first-child {border-top:0}
.cg-row:hover {background:#f8fafc}
.cg-row--business {grid-template-columns:minmax(220px,1.3fr) minmax(220px,1.4fr) 110px auto}
.cg-row--cg {grid-template-columns:minmax(220px,1.3fr) minmax(150px,1fr) minmax(200px,1.3fr) minmax(150px,.9fr) auto}
.cg-row__main {display:grid;gap:3px;min-width:0}
.cg-row__title {margin:0;font-size:14px;font-weight:700;line-height:1.35;color:#0f172a}
.cg-row__desc {margin:0;font-size:13px;line-height:1.45;color:#475569;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cg-row__cell {display:grid;gap:4px;min-width:0;font-size:13px;line-height:1.4;color:#334155}
.cg-row__label {font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}
.cg-row__chips {margin:0;padding:0;list-style:none;display:grid;gap:3px}
.cg-row__chips li {overflow-wrap:anywhere}
.cg-row__chips small, .cg-row__meta {color:#64748b;font-size:12px}
.cg-row__text {overflow-wrap:anywhere}
.cg-row__link {justify-self:start;padding:2px 0;border:0;background:none;color:#1d4ed8;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:32px}
.cg-row__link:hover {text-decoration:underline}
.cg-row__link:focus-visible {outline:2px solid #2563eb;outline-offset:2px;border-radius:4px}
.cg-row__actions {display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:flex-start}
.cg-row__more {font-size:12px}
.cg-row__more summary {cursor:pointer;color:#1d4ed8;font-weight:600;min-height:28px;display:flex;align-items:center}
.cg-row__more p {margin:4px 0;color:#475569}
.cg-row .cg-goal-links {margin:2px 0 0}
.cg-row .improvement-pill {justify-self:start;width:auto}
.cg-result {justify-self:start;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid}
.cg-result--pending {background:#f8fafc;border-color:#cbd5e1;color:#475569}
.cg-result--ok {background:#ecfdf5;border-color:#6ee7b7;color:#065f46}
.cg-result--warn {background:#fffbeb;border-color:#fcd34d;color:#92400e}
@media(max-width:1100px){.cg-objectives .objective-assurance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-row--business,.cg-row--cg{grid-template-columns:1fr 1fr}.cg-row__main{grid-column:1/-1}.cg-row__actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:640px){.cg-objectives .objective-assurance-grid{grid-template-columns:1fr}.cg-row--business,.cg-row--cg{grid-template-columns:1fr}}
