/* HOME DESK20 — Home only. Original workspaces, forms and record states untouched. */
@media screen {
.hd-home{max-width:1600px;margin:auto}
.hd-home .da-home-heading{margin-bottom:14px!important}
.hd-jumps{display:flex;gap:8px;align-items:center}
.hd-jumps button{background:#f8fafc;border:1px solid #bfcede;border-radius:10px;padding:9px 12px;font:650 12px system-ui;color:#244a73;cursor:pointer}
.hd-jumps .hd-calendar-link{display:flex;gap:8px}
.hd-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}
.hd-agenda,.hd-side{min-width:0}.hd-side{display:grid;gap:14px;scroll-margin-top:150px}
.hd-home .cc-root{margin:0;padding:18px;border:1px solid #cbd9e8;border-radius:18px;background:#f8fafc;box-shadow:0 5px 20px #233f6010;scroll-margin-top:145px}
.hd-home .cc-header{align-items:start;gap:7px}
.hd-home .cc-header h2{font:750 23px/1.2 system-ui!important;color:#20364e;letter-spacing:-.5px}
.hd-home .cc-controls{gap:5px}.hd-home .cc-controls button{font-size:11px;padding:7px 9px;min-height:32px}
.hd-home .cc-primary{background:#155bc2!important;border-color:#155bc2!important}
.hd-home .cc-status{margin:8px 0;color:#54697e}
.hd-home .cc-kpis{margin:12px 0;gap:7px}
.hd-home .cc-kpis button{padding:11px 9px;border-radius:11px;background:#eaf0f7;border:1px solid #c6d5e5}
.hd-home .cc-kpis strong{font:750 27px/1 system-ui}
.hd-home .cc-kpis button[aria-pressed=true]{background:#dceafa;border-color:#286bc6;color:#174d93;box-shadow:inset 0 -3px #286bc6}
.hd-home .cc-filter-disclosure{border-bottom:1px solid #d7e1eb;padding:7px 0;font-size:12px;color:#3b5772}
.cc-filter-disclosure>summary{cursor:pointer;font-weight:700}
.hd-home .cc-layout{display:flex;flex-direction:column;gap:12px}
.hd-home .cc-calendar,.hd-home .cc-day-list{width:100%}
.hd-home .cc-toolbar{margin:8px 0}
.hd-home .cc-toolbar>strong{font-size:16px}
.hd-home .cc-day{min-height:63px!important;padding:7px!important;border-color:#cbd7e6}
.hd-home .cc-day>strong{font-size:23px!important}
.hd-home .cc-day[aria-current=date]{box-shadow:inset 0 0 0 1px #2468bb}
.hd-home .cc-day[aria-pressed=true]{background:#dceafa;border-color:#286bc6;color:#174d93}
.hd-home .cc-list-heading{padding:8px 0}
.hd-home .cc-entry{margin:0;padding:10px 0 10px 9px;grid-template-columns:55px minmax(0,1fr) auto}
.hd-home .cc-entry-title{font-weight:750!important}
.hd-home .cc-entry:hover{background:#eaf1f9}
.hd-home .cc-footer{margin-top:12px;gap:9px}
.hd-home .cc-footer small{font-size:11px}
.hd-home .da-home{padding:14px!important;margin:0!important;border-radius:16px!important;background:#f8fafc!important;border:1px solid #cbd9e8!important;box-shadow:none!important}
.hd-home .da-home>header{margin-bottom:10px!important}
.hd-home .da-home h2{font:750 17px system-ui!important}
.hd-home .da-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
.hd-home .da-action{min-height:82px!important;padding:10px!important;border:1px solid #c6d6e7!important;border-radius:11px!important;box-shadow:none!important;background:#edf3fa!important;gap:5px!important}
.hd-home .da-action strong{font:700 12px/1.25 system-ui!important}
.hd-home .da-action span:not(.tl-category-icon){font-size:10px!important;line-height:1.3!important}
.hd-home .da-action .tl-category-icon{width:25px!important;height:25px!important;padding:3px!important}
.hd-home .da-worklinks{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:10px!important;padding-top:10px!important}
.hd-home .da-worklinks button{text-align:left!important;padding:6px!important;background:#fff!important;border:1px solid #dae3ed!important;border-radius:7px!important;font:600 11px/1.3 system-ui!important}
.hd-area-panel{background:#f8fafc;border:1px solid #cbd9e8;border-radius:16px;padding:14px;color:#29415b}
.hd-area-panel h2{margin:0 0 5px;font:750 17px system-ui}
.hd-area-panel>small{display:block;font:11px/1.4 system-ui;color:#62778c;margin:7px 0}
.hd-area-legend,.hd-area-row{display:grid;grid-template-columns:minmax(0,1fr) 39px 39px 54px;gap:5px;align-items:center}
.hd-area-legend{font-size:9px;margin:14px 0 6px;color:#63778a}.hd-area-legend span:not(:first-child){text-align:center}
.hd-area-row{padding:8px 0;border-top:1px solid #dce5ee}
.hd-area-row strong{font-size:11px}
.hd-area-track{display:block;background:#e0e8f1;height:4px;border-radius:4px;margin-top:6px;overflow:hidden}
.hd-area-track i{display:block;height:100%;background:var(--cc-color,#3478bc)}
.hd-area-count{padding:7px 2px;border-radius:8px;background:#eaf1fa;border:1px solid #cbd9e8;color:#294d75;font:750 14px system-ui;cursor:pointer}
.hd-area-count[aria-pressed=true]{background:#155bc2;color:white;border-color:#155bc2}
.hd-area-count:disabled{opacity:.45;cursor:default}
.hd-home .fp-root{margin:0!important;padding:14px!important;border:1px solid #cbd9e8!important;border-radius:16px!important;background:#f8fafc!important;box-shadow:none!important}
.hd-home .fp-heading h2{font:750 17px system-ui!important}.hd-home .fp-heading{gap:8px!important}
.hd-home .fp-kpis{grid-template-columns:1fr!important;gap:7px!important}
.hd-home .fp-tile{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;min-height:48px!important;padding:9px 12px!important}
.hd-home .fp-tile strong{font-size:23px!important}.hd-home .fp-tile span{font-size:12px!important}
.hd-home .fp-note,.hd-home .fp-root small{font-size:11px!important}
.hd-home .cc-registry-details{margin-top:16px}
.hd-home button:focus-visible,.cc-filter-disclosure summary:focus-visible{outline:3px solid #2468bb!important;outline-offset:3px}
@media(max-width:1050px){
 .hd-layout{grid-template-columns:minmax(0,1fr)}
 .hd-side{grid-template-columns:1fr 1fr}.hd-side>.da-home{grid-column:1/-1}
 .hd-home .da-actions{grid-template-columns:repeat(3,1fr)!important}
 .hd-jumps{flex-wrap:wrap}
}
@media(max-width:600px){
 .hd-home .da-home-heading{align-items:stretch;flex-direction:column;gap:10px}
 .hd-home .cc-root{padding:12px}
 .hd-home .cc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hd-home .cc-kpis strong{font-size:24px}
 .hd-side{grid-template-columns:1fr}.hd-home .da-actions{grid-template-columns:repeat(2,1fr)!important}
 .hd-home .cc-entry{grid-template-columns:46px minmax(0,1fr)}.hd-home .cc-open{grid-column:2;justify-self:start}
}
}


/* Calendar events20: month first, actual entries, orange brand accents. */
@media screen {
.hd-layout{grid-template-columns:minmax(0,1fr)}
.hd-side{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.hd-side>.da-home{grid-column:auto}
.hd-home .cc-root,.cc-root{--cc-accent:#b4480c;--cc-line:#e3e5e8;background:#fffdfb!important;border-color:#e1d8d1!important;box-shadow:0 4px 18px #35271e08!important}
.cc-root .cc-eyebrow{display:none}
.cc-root .cc-primary{background:#b4480c!important;border-color:#b4480c!important;color:#fff!important}
.cc-root button[aria-pressed=true]{background:#ffead9!important;border-color:#d86b23!important;color:#813508!important}
.cc-root button:focus-visible,.cc-root summary:focus-visible,.cc-root input:focus-visible,.cc-root select:focus-visible,.cc-calendar:focus-visible{outline:3px solid #b4480c!important;outline-offset:2px!important}
.cc-root .cc-status{font-size:11px;margin:5px 0}
.cc-root .cc-filter-disclosure{border:0;padding:5px 0;color:#5c5149}
.cc-root .cc-toolbar{padding:8px 0 12px;margin:0;gap:8px}
.cc-root .cc-toolbar>strong{font:650 23px/1.2 system-ui;letter-spacing:-.03em}
.cc-root .cc-layout{display:block!important}
.cc-root .cc-calendar{width:100%;overflow:auto;border:1px solid #d9dde2;border-radius:10px;scroll-margin-top:140px;background:#fff}
.cc-root .cc-weekdays,.cc-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;min-width:840px}
.cc-root .cc-weekdays{border-bottom:1px solid #d9dde2;background:#fafafa}
.cc-root .cc-weekdays span{padding:8px;font:650 11px/1.2 system-ui;letter-spacing:.03em;color:#5d6269;text-transform:uppercase}
.cc-month-cell{position:relative;min-width:0;min-height:152px;padding:4px;display:flex;flex-direction:column;align-items:stretch;gap:3px;border-right:1px solid #e0e3e7;border-bottom:1px solid #e0e3e7;background:#fff}
.cc-month-cell:nth-child(7n){border-right:0}
.cc-month-cell:nth-last-child(-n+7){border-bottom:0}
.cc-month-cell.cc-outside{background:#f7f8fa}
.cc-month-cell.cc-selected{background:#fff8f1}
.cc-root .cc-date-button{align-self:center;display:grid;place-items:center;padding:0;border:0;border-radius:50%;width:28px;min-height:28px;flex:none;font:650 14px/1 system-ui;color:#252a31;background:transparent}
.cc-root .cc-date-button:hover{background:#ffead9;color:#813508}
.cc-root .cc-outside .cc-date-button{color:#717780}
.cc-root .cc-today .cc-date-button{background:#b4480c;color:#fff}
.cc-root .cc-event{position:relative;display:block;width:100%;min-width:0;min-height:33px;padding:3px 5px 3px 7px;text-align:left;border:0;border-left:3px solid var(--cc-color,#b4480c);border-radius:4px;background:#f1f3f6;color:#222c36;font:600 13px/1.25 system-ui}
.cc-root .cc-event:hover{background:#ffe8d5;box-shadow:0 0 0 1px #dfb08e}
.cc-event-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-event-meta{display:block;font:500 11px/1.2 system-ui;color:#4f5965;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.cc-event[data-state=cancelled] .cc-event-name{text-decoration:line-through}
.cc-event:has(.cc-event-signal){padding-right:18px}
.cc-event-signal{position:absolute;right:5px;top:4px;font-weight:800}
.cc-root .cc-more{border:0;background:transparent;min-height:24px;padding:2px 6px;text-align:left;font:650 11px/1.25 system-ui;color:#714322}
.cc-root .cc-more:hover{background:#ffead9}
.cc-scroll-hint{display:none;color:#5d6269;font:11px/1.4 system-ui;padding:6px}
.cc-root .cc-day-list[hidden]{display:none!important}
.cc-work-controls{margin-top:12px;border-top:1px solid #e3e5e8;padding-top:10px;font:12px/1.4 system-ui;color:#5c5149}
.cc-work-controls>summary{cursor:pointer;font-weight:650}
.cc-root .cc-kpis button{background:#faf7f3;border-color:#e1d8d1}
.cc-root .cc-kpis button[aria-pressed=true]{background:#ffead9;box-shadow:inset 0 -3px #ee7d32}
.cc-root .cc-day-list{margin-top:16px}
.cc-root .cc-list-heading>strong{background:#ffe6d1;color:#813508}
.cc-root .cc-entry:hover{background:#fff5ec}
.cc-root .cc-day-dialog{width:min(780px,calc(100% - 24px));padding:20px;max-height:85vh}
.cc-day-dialog h2{text-transform:capitalize;font-size:21px}
.cc-root .cc-day-dialog-list{margin-top:12px}
.cc-root .cc-dialog .cc-entry{grid-template-columns:60px minmax(0,1fr) auto}
.cc-root .cc-dialog .cc-entry-title{font-size:14px}
.cc-root .cc-week-view .cc-month-cell{min-height:180px}
@media(max-width:1050px){
 .hd-side{grid-template-columns:1fr 1fr}.hd-side>.da-home{grid-column:1/-1}
 .cc-scroll-hint{display:block}
}
@media(max-width:600px){
 .hd-side{grid-template-columns:1fr}
 .hd-home .cc-root,.cc-root{padding:10px;border-radius:12px}
 .cc-root .cc-header{align-items:start}
 .cc-root .cc-toolbar>strong{font-size:20px;min-width:155px}
 .cc-root .cc-controls{gap:5px}
 .cc-root .cc-controls button{font-size:11px}
 .cc-root .cc-dialog .cc-entry{grid-template-columns:45px minmax(0,1fr)}
 .cc-root .cc-dialog .cc-open{grid-column:2}
 .cc-root .cc-day-dialog{padding:14px}
}
}

/* Calendar job cards: date purpose and source remain distinct. */
.cc-root .cc-event{padding:5px 7px;border-radius:6px;min-height:54px}
.cc-root .cc-event-name{font-weight:720;line-height:1.3}
.cc-root .cc-event-party{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 10px/1.3 system-ui;color:#65707a;margin-top:3px}
.cc-root .cc-event-meta{color:#74441d;font-size:10px}
.cc-root .cc-date-purpose{color:#8b4b17;font-weight:650}
.cc-action-dialog{width:min(740px,calc(100% - 24px));padding:24px;background:#fff}
.cc-action-dialog h2{line-height:1.2;overflow-wrap:anywhere;margin:16px 0 20px}
.cc-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cc-facts>div{padding:14px;background:#f6f7f8;border:1px solid #e5e8eb;border-radius:12px;min-width:0}
.cc-facts small{display:block;color:#626d79;font-size:11px;margin-bottom:7px}
.cc-facts strong{display:block;font-size:15px;overflow-wrap:anywhere}
.cc-facts>div:first-child{background:#fff3e7;border-color:#f2cfad}
.cc-detail-actions{margin:20px 0}.cc-root .cc-detail-actions .cc-primary{background:#b94a09;border-color:#b94a09;color:white}
.cc-next-step{border-left:3px solid #c55c17;padding:1px 15px;background:#faf8f5;border-radius:0 10px 10px 0}
.cc-next-step h3{font-size:12px;color:#6f543d;margin:12px 0 0}.cc-next-step .cc-description{line-height:1.6;max-height:180px}
.cc-source-detail{margin-top:18px;border-top:1px solid #e2e7ec;padding-top:14px;font-size:12px}.cc-source-detail summary{cursor:pointer;font-weight:650}
.cc-action-dialog .cc-source-detail dl{grid-template-columns:130px minmax(0,1fr)}
@media(max-width:550px){.cc-action-dialog{padding:16px}.cc-facts{grid-template-columns:1fr}.cc-facts>div{padding:10px}.cc-facts strong{font-size:14px}.cc-detail-actions>*{width:100%}.cc-action-dialog .cc-source-detail dl{grid-template-columns:90px minmax(0,1fr)}}
