.template-card .library-card-head { align-items: flex-start; gap: 1rem; }
.template-card .library-card-head > div:first-child { min-width: 0; }
.template-preview { margin-top: 1rem; border: 1px solid var(--line, #d7dee7); border-radius: 12px; background: #f7f9fb; overflow: hidden; }
.template-preview summary { cursor: pointer; padding: .8rem 1rem; font-weight: 750; color: var(--navy, #17233c); list-style: none; }
.template-preview summary::-webkit-details-marker { display: none; }
.template-preview summary::after { content: "+"; float: right; color: var(--teal, #387f76); }
.template-preview[open] summary::after { content: "−"; }
.template-preview-body { padding: 0 1rem 1rem; color: var(--muted, #657087); }
.template-preview-body p { margin: .35rem 0; }
.template-stage-list { margin: .65rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.template-stage-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .45rem .6rem; border-radius: 8px; background: #fff; border: 1px solid var(--line, #d7dee7); }
.template-stage-list strong { color: var(--navy, #17233c); }
@media (max-width: 720px) {
  .template-card .library-card-head { display: block; }
  .template-card .card-actions { margin-top: .75rem; }
  .template-stage-list li { grid-template-columns: 1fr; }
}

/* Keep legacy hidden inputs and neutral calendar dates out of the brand button theme. */
#calendarForm [hidden], #templateForm [hidden] { display: none !important; }
#holidayMonthGrid .holiday-day { background: #fff !important; color: #243654 !important; border: 1px solid #d7dee7 !important; box-shadow: none !important; }
#holidayMonthGrid .holiday-day:hover { background: #f0f8f5 !important; border-color: #7db9a7 !important; }
#holidayMonthGrid .holiday-day.selected, #holidayMonthGrid .holiday-day.range { background: #dff2eb !important; color: #245e53 !important; border-color: #77b9a5 !important; }
/* Match the scheduler's permanent company footer, outside scrollable navigation. */
.hosted-workspace-link{display:flex!important;align-items:center;gap:10px;margin-top:12px!important;padding:12px 5px!important;background:transparent!important;border-top:1px solid rgba(255,255,255,.18)!important;color:#fff}
.hosted-workspace-link span:last-child{display:grid}
.hosted-workspace-link small{color:#a8bed2}
.hosted-workspace-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#325577}
