.cg-home,.cg-dash{max-width:1460px;margin:auto;min-width:0}.cg-home-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px;background:#fff;border:1px solid #dce7ef;border-radius:17px;margin-bottom:15px}.cg-home-hero h2{font-size:30px;color:#173b56;font-weight:850;letter-spacing:-.04em;margin:5px 0}.cg-home-hero small{color:#147b74;font-weight:800;font-size:11px;text-transform:uppercase}.cg-home-hero p{font-size:13px;color:#718499;margin:0}.cg-home-hero #home-context,.cg-dash-tabs{display:flex;gap:6px;flex-wrap:wrap}.cg-home-hero button,.cg-dash-tabs button{border:1px solid #d6e2ea;background:white;color:#38566f;border-radius:9px;padding:10px 15px;font-weight:750;font-size:13px;min-height:44px}.cg-home-hero button[aria-pressed=true],.cg-dash-tabs button[aria-selected=true]{background:#173b56;color:white;border-color:#173b56}.cg-dash-tabs{margin-bottom:16px}.cg-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.cg-home-card,.fat-card{background:white;border:1px solid #dce7ef;border-radius:15px;padding:17px;min-width:0}.cg-home-card header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}.cg-home-card h3,.fat-card h3{font-size:16px;font-weight:850;margin:0;color:#173b56}.cg-home-card a{color:#176b83;text-decoration:none;font-size:12px;font-weight:750}.cg-home-list{display:grid;gap:8px}.cg-home-item{display:block;padding:10px;border:1px solid #e3eaf0;border-radius:9px;text-decoration:none;color:#24455e}.cg-home-item strong{display:block;font-size:13px}.cg-home-item small{display:block;color:#647b91;font-size:11px;margin-top:4px}.cg-home-empty{color:#718499;font-size:12px;padding:8px}.cg-home #home-todo{padding:12px 0;max-width:100%}.cg-home #home-operations .ct{padding:10px 14px 16px}.cg-dash [hidden],.cg-home [hidden]{display:none!important}.fat-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.fat-head h2{font-size:27px;font-weight:850;color:#173b56;margin:0}.fat-head p,.fat-note{font-size:12px;color:#6c8195}.fat-controls{display:flex;gap:8px;flex-wrap:wrap}.fat-controls select,.fat-controls input{padding:9px;border:1px solid #d4e1ea;border-radius:8px;min-height:44px;background:white;color:#173b56}.fat-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.fat-kpis strong{display:block;font-size:clamp(16px,2.2vw,25px);font-weight:850;color:#173b56;overflow-wrap:anywhere}.fat-kpis small{color:#6c8195;font-size:11px}.fat-chart{display:flex;align-items:flex-end;gap:8px;height:210px;padding:10px 4px 0;border-bottom:1px solid #dce7ef}.fat-month{flex:1;min-width:0;display:flex;align-items:flex-end;justify-content:center;gap:3px;position:relative;height:100%;padding-bottom:22px}.fat-month i{display:block;width:34%;max-width:32px;border-radius:5px 5px 0 0;min-height:1px;background:#245d70}.fat-month i+ i{background:#6bb4a6}.fat-month span{position:absolute;bottom:0;font-size:10px;color:#647b91}.fat-scroll{overflow-x:auto}.fat-table{width:100%;border-collapse:collapse;font-size:12px;min-width:600px}.fat-table td,.fat-table th{padding:10px;border-bottom:1px solid #e4edf4;text-align:right;white-space:nowrap}.fat-table th:first-child,.fat-table td:first-child{text-align:left}.fat-table th{color:#6c8195;font-size:11px}.fat-card{margin-bottom:12px}.fat-legend{font-size:12px;color:#647b91;margin:8px 0}.fat-warning{background:#fff8e9;padding:12px;border:1px solid #eedbb1;border-radius:9px;font-size:12px;color:#795922;margin-bottom:12px}.cg-dash .pt-page{margin-top:15px}
@media(max-width:768px){.cg-home-hero{padding:16px;flex-direction:column;align-items:stretch}.cg-home-hero h2{font-size:23px}.cg-home-hero #home-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.cg-home-hero button{padding:8px 4px;font-size:12px}.cg-home-grid{grid-template-columns:1fr}.cg-home-card,.fat-card{padding:13px}.cg-dash-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.cg-dash-tabs button{font-size:12px;padding:8px 4px}.fat-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fat-head h2{font-size:22px}.fat-chart{height:170px;gap:2px}.fat-month span{font-size:9px}.fat-controls{width:100%}.fat-controls>*{flex:1;min-width:0}.cg-home .td-board{display:grid;grid-template-columns:1fr!important;overflow:visible!important}.cg-home .td-column{min-width:0!important;width:100%!important}.cg-home .td-cards{max-height:350px;overflow:auto}.cg-home .td-toolbar{flex-wrap:wrap}.cg-home #home-operations .ct{padding:8px}.cg-dash .pt-scroll{overflow:auto}}

/* Results: profit and revenue in the same chart, with zero baseline for losses. */
#fat-root .fat-profit{color:#087552;font-weight:850}
#fat-root .fat-kpis small{display:block;line-height:1.4}
#fat-root .fat-kpis .fat-card:nth-child(-n+2){border-color:#b9d6d2}
#fat-root .fat-kpis .fat-card:nth-child(2) strong{color:#087552}
#fat-root .fat-key{display:inline-flex;align-items:center;gap:5px;margin-right:12px}
#fat-root .fat-key::before{content:'';width:10px;height:10px;border-radius:3px;background:#245d70}
#fat-root .fat-key-1::before{background:#16856c}#fat-root .fat-key-2::before{background:#d8a14d}
#fat-root .fat-result-month{display:block;padding:0 0 22px}
#fat-root .fat-result-month .fat-bars{height:100%;display:flex;gap:3px;justify-content:center;position:relative}
#fat-root .fat-has-negative .fat-bars::before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px dashed #a7b8c8}
#fat-root .fat-bar-slot{position:relative;flex:1;max-width:28px;height:100%;min-width:0}
#fat-root .fat-bar-slot i{position:absolute;width:100%;max-width:none;left:0;min-height:0;border-radius:3px 3px 0 0}
#fat-root .fat-bar-slot .fat-bar-0{background:#245d70}#fat-root .fat-bar-slot .fat-bar-1{background:#16856c}#fat-root .fat-bar-slot .fat-bar-2{background:#d8a14d}
#fat-root .fat-result-month span{left:0;right:0;text-align:center}
#fat-root .fat-history-profit{display:block;color:#087552;font-size:10px;margin-top:4px}
#fat-root .fat-scroll a{color:#176b83;text-decoration:none;font-weight:700}
@media(max-width:768px){#fat-root .fat-kpis{gap:7px}#fat-root .fat-kpis .fat-card{margin:0;padding:11px 9px}#fat-root .fat-kpis{margin-bottom:12px}#fat-root .fat-kpis strong{font-size:clamp(15px,4.5vw,21px)}#fat-root .fat-bar-slot{max-width:15px}#fat-root .fat-result-month .fat-bars{gap:1px}#fat-root .fat-table{min-width:650px}#fat-root .fat-scroll{overscroll-behavior-x:contain;max-width:100%}}

/* Home priorities: compact preview, full board stays on todo.html. */
.cg-home .cg-home-priorities{margin-top:14px;min-width:0}.cg-home-priorities header small{display:block;color:#62768b;font-size:11px;margin-top:4px}.cg-priority-totals{display:flex;gap:8px;padding:10px 16px 3px}.cg-priority-count{display:flex;gap:8px;align-items:center;min-width:125px;padding:7px 12px;border:1px solid #dce5ee;border-radius:8px;color:#314c63;text-decoration:none;background:#f6f9fc;font-size:12px}.cg-priority-count strong{font-size:20px;line-height:1.15}.cg-priority-count.late strong,.cg-priority-date.late{color:#b52c43}.cg-priority-count.today strong,.cg-priority-date.today{color:#9b651d}.cg-priority-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid #edf1f5;text-decoration:none;color:#213c55}.cg-priority-row:hover{background:#f5f8fb}.cg-priority-row>div{min-width:0}.cg-priority-row strong,.cg-priority-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cg-priority-row strong{font-size:12px}.cg-priority-row small{font-size:11px;color:#64778a;margin-top:3px}.cg-priority-date{font-size:11px;font-weight:800;white-space:nowrap}.cg-priority-more{display:block;padding:11px 16px;color:#2158a0;font-size:12px;font-weight:750;text-decoration:none}.cg-priority-warning,#home-priority-list>p{padding:10px 16px;color:#64778a;font-size:11px;margin:0}.cg-priority-warning{color:#9b651d!important}.cg-home-priorities[hidden]{display:none!important}@media(max-width:550px){.cg-priority-totals{padding:8px 12px 3px}.cg-priority-count{flex:1;min-width:0}.cg-priority-row{padding:10px 12px}}
