/* Approved headers and Overview cards only. No shared button/nav/report-card rules. */
header.dcpa-header{position:relative;isolation:isolate;background:#FCFAF1;color:#4B4A48;border-bottom:1px solid #d8cbb5}
header.dcpa-header::before{content:"";position:absolute;top:8px;bottom:8px;left:var(--dcpa-left,0px);width:var(--dcpa-width,0px);z-index:-1;pointer-events:none;background-color:#B07A30;mask-image:var(--dcpa-art);mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--dcpa-art);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;opacity:.45}
header.dcpa-header .brand{min-width:0}
header.dcpa-header .brand>div{min-width:0;overflow-wrap:anywhere}
header.dcpa-header h1{font-size:20px;line-height:1.2;margin:0 0 4px}
header.dcpa-header .dcpa-header-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
header.dcpa-header .dcpa-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;position:relative;flex-wrap:wrap;min-width:0}
header.dcpa-header .dcpa-actions .dcpl-language-select{width:auto;max-width:6.5rem}
.dcpa-login-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dcpa-login-heading h2{margin-right:auto}
.dcpa-login-language{width:auto;max-width:6.5rem;padding:5px 8px;border:1px solid #c9c1b0;border-radius:8px;color:#4B4A48;background:#FDF9E7;font:inherit;font-size:13px}

#dc53-panel-overview .dco-activity{position:relative;display:flex;flex-direction:column;min-width:0}
#dc53-panel-overview .dco-activity::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:#B07A30;pointer-events:none}
#dc53-panel-overview .dco-file-top{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
#dc53-panel-overview .dco-file-top .dc53-file-label{flex:1 1 100px;min-width:0;overflow-wrap:anywhere}
#dc53-panel-overview .dco-file-type{display:inline-flex;align-items:center;gap:4px;flex:none;border:1px solid #d8cbb5;border-radius:5px;padding:3px 4px;font-size:10px;line-height:1.2;color:#4B4A48;background:#FCFAF1}
#dc53-panel-overview .dco-file-type svg{flex:none}
#dc53-panel-overview .dco-activity-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px;padding-bottom:5px;border-bottom:1px solid #e4d3ae}
#dc53-panel-overview .dco-portrait{width:36px;height:36px;flex:none;border-radius:50%;object-fit:cover;object-position:50% 30%}
#dc53-panel-overview .dco-portrait[hidden]{display:none}
#dc53-panel-overview .dco-period{margin-top:0}
#dc53-panel-overview .dco-metrics{margin:12px 0 16px}
#dc53-panel-overview .dco-score-scale{font-size:12px;color:#666;margin-bottom:8px}
#dc53-panel-overview .dco-bars{display:grid;gap:10px}
#dc53-panel-overview .dco-score{display:grid;grid-template-columns:minmax(0,1fr) minmax(45px,1.3fr) auto;align-items:center;gap:8px;font-size:13px}
#dc53-panel-overview .dco-skill{overflow-wrap:anywhere;min-width:0}
#dc53-panel-overview .dco-track{display:block;height:10px;border-radius:4px;background:#eee7d3;overflow:hidden}
#dc53-panel-overview .dco-track>span{display:block;height:100%;border-radius:4px;background:#B07A30}
#dc53-panel-overview .dco-score-value{white-space:nowrap;font-variant-numeric:tabular-nums}
#dc53-panel-overview .dco-totals{display:flex;gap:18px;flex-wrap:wrap;margin-top:16px;padding:12px 0;border-top:1px solid #d8cbb5;border-bottom:1px solid #d8cbb5}
#dc53-panel-overview .dco-totals>div{flex:1;min-width:85px}
#dc53-panel-overview .dco-totals span{display:block;font-size:12px;color:#666}
#dc53-panel-overview .dco-totals strong{display:block;font-size:20px;line-height:1.4;font-variant-numeric:tabular-nums}
#dc53-panel-overview .dco-current-progress{min-width:0;overflow-wrap:anywhere}
#dc53-panel-overview .dco-excerpt{font-size:13px;line-height:1.4}
@media(max-width:600px){header.dcpa-header .dcpa-actions{justify-content:flex-start}header.dcpa-header h1{font-size:18px}}

header.dcpa-header .dcpa-motto{font-size:13px;line-height:1.4;color:#856127;margin:3px 0}

header.dcpa-header .logo{width:64px;height:64px;flex:0 0 64px;object-fit:contain;background:#FDF9E7}
/* 1.1.8: compact artwork and spacing on mobile only. */
@media(max-width:850px){
 header.dcpa-header{--dcpa-mobile-art:clamp(74px,23vw,112px);padding-bottom:0}
 header.dcpa-header::before{top:12px;bottom:auto;left:auto;right:12px;width:var(--dcpa-mobile-art);height:68px;mask-size:auto 100%;mask-position:80% center;-webkit-mask-size:auto 100%;-webkit-mask-position:80% center}
 header.dcpa-header>.wrap{padding:12px}
 header.dcpa-header .top,header.dcpa-header .dcpa-header-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
 header.dcpa-header .brand{flex:0 0 calc(100% - var(--dcpa-mobile-art) - 10px);max-width:calc(100% - var(--dcpa-mobile-art) - 10px);min-height:68px;gap:8px}
 header.dcpa-header .logo{width:44px;height:44px;flex:0 0 44px}
 header.dcpa-header h1,header.dcpa-header .brand>div>b{font-size:16px;line-height:1.2}
 header.dcpa-header .brand>div>div:last-child{font-size:12px;line-height:1.3}
 header.dcpa-header .dcpa-motto{font-size:12px;line-height:1.3;margin:2px 0}
 header.dcpa-header .dcpa-actions{flex:0 0 100%;width:100%;gap:6px;justify-content:flex-start}
 header.dcpa-header .dcpa-actions>.btn,header.dcpa-header [data-dcpl-admin-actions]>.btn,header.dcpa-header .top>a[href="/logout.php"]{margin:0}
 header.dcpa-header [data-dcpl-admin-actions]{flex:0 0 100%;justify-content:flex-end}
 header.dcpa-header .top>a[href="/logout.php"]{margin-left:auto}
 header.dcpa-header>.wrap.brand{width:100%;max-width:560px;min-height:92px;padding-right:calc(12px + var(--dcpa-mobile-art) + 10px)}
}

/* Existing page/form headers: decoration only, no width/height/padding changes. */
.dcpa-page-header{position:relative;isolation:isolate;background:#FCFAF1;color:#4B4A48;border-color:#d8cbb5}
.dcpa-page-header::before{content:"";position:absolute;left:var(--dcph-left,0px);top:var(--dcph-top,0px);width:var(--dcph-width,0px);height:var(--dcph-height,0px);z-index:-1;pointer-events:none;background-color:#B07A30;mask-image:var(--dcpa-art);mask-size:auto 100%;mask-position:80% center;mask-repeat:no-repeat;-webkit-mask-image:var(--dcpa-art);-webkit-mask-size:auto 100%;-webkit-mask-position:80% center;-webkit-mask-repeat:no-repeat;opacity:.45}
.dcpa-page-header h1,.dcpa-page-header .sub{color:inherit}

/* 1.1.9: dashboard controls left; larger artwork on mobile only. */
@media(max-width:850px){
 header.dcpa-mobile119 [data-dcpl-admin-actions]{justify-content:flex-start}
 header.dcpa-mobile119 .top>a[href="/logout.php"]{margin-left:0}
 header.dcpa-mobile119::before{width:var(--dc119-art-width,var(--dcpa-mobile-art));height:var(--dc119-art-height,68px)}
 header.dcpa-mobile119[data-dcpa-category="active-companions"]::before{mask-position:67% center;-webkit-mask-position:67% center}
 header.dcpa-mobile119 .dcpa-club-full{display:none}
 header.dcpa-mobile119 .dcpa-club-short{display:inline}
}
@media(max-width:420px){
 header.dcpa-mobile119 .dcpa-actions{display:grid;grid-template-columns:repeat(3,max-content);flex:0 0 auto;width:max-content;max-width:100%;justify-content:start}
 header.dcpa-mobile119 .dcpa-actions>.dc53-bell{grid-row:1;grid-column:1}
 header.dcpa-mobile119 .dcpa-actions>.dcpl-language-select{grid-row:1;grid-column:2}
 header.dcpa-mobile119 .dcpa-actions>a[href="/client-profile.php"]{grid-row:1;grid-column:3}
 header.dcpa-mobile119 .dcpa-actions>.dcpa-club{grid-row:2;grid-column:1 / 3;justify-self:start}
 header.dcpa-mobile119 .dcpa-actions>a[href="/logout.php"]{grid-row:2;grid-column:3;justify-self:start}
 header.dcpa-mobile119 .dc53-note-list{left:0;right:auto}
}

/* 1.1.10: fill the mobile Club span under the bell and language selector. */
@media(max-width:850px){
 header.dcpa-mobile119 .dcpa-actions>.dcpa-club{white-space:nowrap;text-align:center}
}
@media(max-width:420px){
 header.dcpa-mobile119 .dcpa-actions>.dcpa-club{justify-self:stretch}
}
