/* CCFT v1.23.1 — Communio brand layer + aligned dashboard actions. Loaded after module styles so existing modules remain intact. */
:root{
  --communio-red:#8f1d2c;
  --communio-red-dark:#651421;
  --communio-red-deep:#451019;
  --communio-red-soft:#f8ecee;
  --communio-red-pale:#fff7f8;
  --communio-charcoal:#27272a;
  --communio-muted:#6b6265;
  --communio-border:#e5d4d8;
}
.header{background:linear-gradient(135deg,var(--communio-red-deep),var(--communio-red),#b33a49)!important;color:#fff!important}
.header h1,.header h2,.header p{color:#fff!important}
.navigation{border-color:var(--communio-border)!important}
.navigation button{border-color:transparent!important}
.navigation button:hover,.navigation button.active{background:var(--communio-red)!important;color:#fff!important}
button,.primary-button,.tool-card button,.card button{accent-color:var(--communio-red)}
button:not(#darkModeButton):not(.nzccap-vle-tabs button){border-color:var(--communio-red)!important}
.tool-card button,.primary-button,.card button[type="submit"]{background:var(--communio-red)!important;color:#fff!important}
.tool-card button:hover,.primary-button:hover,.card button[type="submit"]:hover{background:var(--communio-red-dark)!important}
a{color:var(--communio-red)}
.tool-card{border-color:var(--communio-border)!important}
.tool-card:hover{border-color:#c78e98!important;box-shadow:0 10px 26px rgba(101,20,33,.12)!important}
.card h2,.tool-card h3{color:var(--communio-charcoal)}
.dashboard-card-icon{font-size:2.15rem;line-height:1;margin-bottom:8px}
.cpd-dashboard-card,.conference-dashboard-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,var(--communio-red-pale))!important}
.cpd-dashboard-card:before,.conference-dashboard-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--communio-red)}
/* Module brand harmonisation */
.cpd-hero,.conference-hero,.alert-hero{background:linear-gradient(135deg,var(--communio-red-deep),var(--communio-red),#b33a49)!important;color:#fff!important}
.cpd-hero h2,.conference-hero h2,.alert-hero h2{color:#fff!important}
.cpd-drop{border-color:#c78e98!important;background:var(--communio-red-pale)!important}
.alert-refresh{background:var(--communio-red)!important}
.alert-refresh:hover{background:var(--communio-red-dark)!important}
.alert-actions a{color:var(--communio-red-dark)!important;border-color:#d9b3ba!important}
.alert-source-tile{border-color:var(--communio-border)!important;background:linear-gradient(145deg,#fff,var(--communio-red-pale))!important}
/* Preserve semantic clinical alert severity colours; these indicate risk, not branding. */
.dark-mode .card h2,.dark-mode .tool-card h3{color:#f5f5f5}
.dark-mode .cpd-dashboard-card,.dark-mode .conference-dashboard-card,.dark-mode .alert-source-tile{background:#251a1d!important;border-color:#70434b!important;color:#f5f5f5!important}


/* v1.23.1 dashboard card alignment — keeps all actions on a common baseline. */
#dashboard .dashboard-grid{align-items:stretch!important}
#dashboard .tool-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  box-sizing:border-box!important;
}
#dashboard .tool-card p{margin-bottom:18px}
#dashboard .tool-card>button,
#dashboard .tool-card>.primary-button{
  margin-top:auto!important;
  width:100%!important;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
#dashboard .pm-photo-dashboard-tile .primary-button{margin-top:auto!important}

/* Slightly more polished dashboard presentation matching the Communio concept. */
#dashboard .tool-card{border-radius:16px!important;padding:24px!important}
#dashboard .tool-card h3{margin-top:0}
#dashboard .dashboard-card-icon,.pm-photo-tile-icon{min-height:34px}
