/* Client milestones share the portal's navy, gold and accessible theme surfaces. */
.crm-sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}.crm-sidebar .sidebar-bottom{flex-shrink:0}.crm-sidebar .sidebar-label,.crm-sidebar .sidebar-brand{flex-shrink:0}
.client-theme-toggle{flex:none;display:inline-grid!important;place-items:center;min-width:36px;width:36px;height:36px;border:1px solid #c8d6de;background:#f5f8fa;color:#25465e;border-radius:50%;opacity:1!important}.client-theme-toggle:hover{border-color:#b59b64!important}.auth-main>.client-theme-toggle{position:absolute;right:30px;top:24px}html[data-workspace-theme=dark] .client-theme-toggle{background:#1e394b;color:#f3daa4;border-color:#526471}html[data-workspace-theme=dark] .auth-shell{background:var(--bg)}html[data-workspace-theme=dark] .auth-main .auth-card input{background:var(--field);color:var(--ink);border-color:var(--line)}html[data-workspace-theme=dark] .auth-main :is(.auth-private,.auth-support,.back-site){color:var(--muted)}
@media(min-width:901px) and (max-height:850px){.crm-sidebar{padding-top:19px;padding-bottom:14px}.crm-sidebar .sidebar-brand{padding-bottom:15px}.crm-sidebar .sidebar-label{padding-bottom:12px}.crm-sidebar .nav-item{min-height:36px;padding-top:9px;padding-bottom:9px}.crm-sidebar nav{gap:3px}.crm-sidebar .sidebar-bottom{padding-top:12px}.crm-sidebar .sidebar-bottom>p{margin-top:10px;padding-top:12px}}
@media(max-width:700px){.client-topbar .topbar-right{gap:7px}.client-topbar:has(.main-journey-nav) .main-journey-nav{max-width:calc(100vw - 215px);margin:0 3px}.client-theme-toggle{min-width:33px;width:33px;height:33px}.client-topbar .client-brand{flex:none}.client-topbar .client-brand>span{display:none}.client-topbar .client-profile-menu summary{gap:0}.client-topbar .client-profile-menu summary>svg{display:none}}
@media(prefers-reduced-motion:reduce){.client-theme-toggle{transition:none}}

.milestone-nav-badge{margin-left:auto}.milestone-nav-badge .red-badge{border-color:#1b3545}

/* The calendar is the focus; names open the existing client records. */
.milestones-desk{--ms-rule:var(--line);color:var(--ink);max-width:74rem;margin-inline:auto}
.milestones-header,.milestone-agenda-head,.milestone-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.milestones-header{margin:4px 0 18px}.milestones-header h1{font:normal calc(32px * var(--workspace-text-scale,1))/1.12 WGEditorial,Georgia,serif;margin:0}
.milestones-header .crm-btn{min-height:40px;flex-wrap:wrap;font-size:calc(14px * var(--workspace-text-scale,1))}
.milestone-highlights{display:grid;grid-template-columns:1fr 1fr;border-radius:14px;overflow:hidden;background:linear-gradient(115deg,#13354a 0%,#102a3c 55%,#163638 100%);color:#f8f2e9;border:1px solid #446066}
.milestone-highlight{min-width:0;padding:clamp(18px,2.4vw,33px)}.milestone-highlight+.milestone-highlight{border-left:1px solid #51666c}
.milestone-caption,.milestone-date{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.milestone-caption{color:#e6d1a1;font:600 calc(14px * var(--workspace-text-scale,1))/1.4 WGText,Arial,sans-serif;letter-spacing:.025em;margin:0 0 10px}
.milestone-highlight .milestone-name,.milestone-highlight h2{display:block;border:0;background:none;padding:0;text-align:left;color:#fff8ee;font:normal calc(27px * var(--workspace-text-scale,1))/1.15 WGEditorial,Georgia,serif;overflow-wrap:anywhere;margin:0}
.milestone-name:hover,.milestone-record:hover{text-decoration:underline;text-underline-offset:3px}
.milestone-date,.milestone-empty-hint{margin:9px 0 0;color:#d4e1e4;font-size:calc(14px * var(--workspace-text-scale,1))}
.milestone-date span{border:1px solid #607575;border-radius:20px;padding:2px 8px;color:#f5e2b6;font-size:calc(13px * var(--workspace-text-scale,1));white-space:nowrap}
.milestone-agenda-head{margin:24px 0 12px}.milestone-agenda-head h2{font:normal calc(23px * var(--workspace-text-scale,1))/1.2 WGEditorial,Georgia,serif;margin:0}.milestone-agenda-head>span,.milestone-about{font-size:calc(14px * var(--workspace-text-scale,1));color:var(--muted)}
.milestone-toolbar{justify-content:flex-start;gap:8px 14px;margin:0 0 16px}.milestone-toolbar .milestone-search{display:flex;align-items:center;gap:8px;margin:0;padding:0 10px;width:min(100%,19rem);border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink)}
.milestone-search:focus-within{outline:2px solid var(--gold);outline-offset:1px}.milestone-toolbar .milestone-search input{width:100%;min-width:0;min-height:40px;margin:0;border:0;outline:0;box-shadow:none;background:transparent;color:inherit;padding:8px 0;font-size:calc(14px * var(--workspace-text-scale,1))}
.milestone-kinds{display:inline-flex;max-width:100%;flex-wrap:wrap;gap:2px;padding:2px;border:1px solid var(--line);border-radius:8px}
.milestone-kinds button{padding:7px 12px;min-height:35px;border-radius:5px;font-size:calc(14px * var(--workspace-text-scale,1));color:var(--muted)}
.milestone-kinds button[aria-pressed=true]{color:var(--ink);background:var(--surface);box-shadow:inset 0 -2px var(--gold);font-weight:700}
.milestone-month{margin:16px 0 4px;font:600 calc(14px * var(--workspace-text-scale,1))/1.4 WGText,Arial,sans-serif;color:var(--muted)}
.milestone-agenda-list{list-style:none;margin:0;padding:0}.milestone-agenda-list li{display:grid;grid-template-columns:2.5rem minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--ms-rule)}
.milestone-day{width:2.5rem;padding:8px 2px;text-align:center;border:1px solid var(--line);border-radius:7px;background:var(--surface);font:normal calc(20px * var(--workspace-text-scale,1))/1 WGEditorial,Georgia,serif;font-variant-numeric:tabular-nums}
.milestone-person{min-width:0;display:grid;justify-items:start}.milestone-record{font-size:calc(16px * var(--workspace-text-scale,1));font-weight:600;padding:0;text-align:left;overflow-wrap:anywhere}.milestone-person>span,.milestone-row-end small,.milestone-edit,.milestone-about p{color:var(--muted);font-size:calc(14px * var(--workspace-text-scale,1))}
.milestone-row-end{text-align:right}.milestone-edit{min-height:36px;padding-inline:10px;text-decoration:underline;text-underline-offset:3px}.milestone-about{margin-top:20px}.milestone-about summary{cursor:pointer}.milestone-about p{max-width:56rem;line-height:1.65;margin:8px 0}
.milestone-empty{padding:20px 0;color:var(--muted)}.milestone-more{margin-top:12px}.dob-field .field-help{display:block}
@media(max-width:650px){.milestones-header{margin-bottom:12px}.milestone-highlights{grid-template-columns:1fr}.milestone-highlight{padding:16px}.milestone-highlight+.milestone-highlight{border-left:0;border-top:1px solid #51666c}.milestone-highlight .milestone-name,.milestone-highlight h2{font-size:calc(23px * var(--workspace-text-scale,1))}.milestone-caption{margin-bottom:6px}.milestone-toolbar .milestone-search{width:100%}.milestone-kinds button,.milestone-edit{min-height:42px}.milestone-agenda-list li{grid-template-columns:2.5rem minmax(0,1fr) auto;gap:5px 10px}.milestone-row-end:has(small){grid-column:2/-1;text-align:left}}
