@font-face{font-family:Terrain;src:url('/assets/terrain.woff') format('woff');font-display:swap}*{box-sizing:border-box}html{color:#242725;background:#f6f0e6;font-family:Arial,Helvetica,sans-serif;font-size:16px}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #cfc9be;background:#fffdf8;color:#242725;border-radius:10px;padding:11px 17px;font-weight:700}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-underline-offset:3px}button:hover{border-color:#a5342c}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b34333;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12}h1{font-family:Terrain,Arial,sans-serif;font-size:clamp(38px,4.4vw,66px);font-weight:700}h2{font-size:24px}h3{font-size:19px}p{line-height:1.6}.top{max-width:1480px;margin:auto;padding:28px 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d4ccbf}.brand{font-size:20px;font-weight:800;text-decoration:none;display:flex;gap:22px;align-items:center}.brand span{font-size:12px;letter-spacing:1.2px;text-transform:uppercase;padding-left:22px;border-left:1px solid #cfc9be}#account{display:flex;gap:18px;align-items:center}#account-email{font-size:14px}.quiet{background:transparent;border-color:transparent}.primary{background:#ff5145;border-color:#ff5145;color:#202423;min-height:48px}.secondary{background:#242725;color:#fffdf8;border-color:#242725}.eyebrow{text-transform:uppercase;letter-spacing:1.4px;font-size:12px;font-weight:800;display:block;margin-bottom:16px}.eyebrow:before{content:'';display:inline-block;width:25px;height:3px;background:#ff5145;vertical-align:middle;margin-right:10px}main{max-width:1480px;margin:auto;padding:40px 36px 64px}.login{min-height:65vh;display:grid;grid-template-columns:1fr .85fr;gap:10%;align-items:center;padding:20px 5%}.login-intro h1{font-size:clamp(50px,5.5vw,82px)}.login-intro p{max-width:390px;margin:26px 0 30px;font-size:18px}.private-note{display:flex;gap:12px;align-items:center;font-size:14px}.private-note span{border:1px solid #b9c5bd;background:#e6ece6;border-radius:50%;padding:8px 10px}.login-card{padding:38px;background:#fffdf8;border:1px solid #d5cdbf;border-radius:24px;box-shadow:0 12px 36px #24272506}.login-card h2{font-size:29px;margin-bottom:30px}.login-card .primary{width:100%;margin:16px 0}.login-card .muted{font-size:14px}label{display:block;font-weight:700;font-size:14px;margin:0 0 9px}input,select{width:100%;min-height:48px;padding:12px;border:1px solid #b7b7ad;border-radius:9px;background:#fffdf8;color:#242725}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#242725 50%),linear-gradient(135deg,#242725 50%,transparent 50%);background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}.muted,.calendar-note{color:#65675f;font-size:14px}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.tabs{display:flex;gap:8px;border-bottom:1px solid #d5cdbf;margin-bottom:25px}.tabs button{background:transparent;border:0;border-radius:0;padding:16px 23px}.tabs .selected{box-shadow:inset 0 -3px #ff5145}.tabs span{font-size:12px;background:#e1dacf;padding:3px 6px;border-radius:5px;margin-left:5px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:30px}.stat{border:1px solid #d5cdbf;border-radius:15px;padding:22px;display:flex;gap:17px;align-items:center;background:#fffdf8}.stat strong{font-size:34px;line-height:1}.stat span{font-size:14px;line-height:1.45}.stat.warning{background:#ffe6db;border-color:#efb5a3}.week-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.week-toolbar>div{display:flex;align-items:center;gap:8px}.week-navigation h2{font-size:20px;min-width:240px;text-align:center}.week-navigation button{font-size:23px;line-height:1;width:42px;padding:9px}#sync-status{min-height:32px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #d5cdbf;border-radius:18px;overflow:hidden;background:#fffdf8}.day-column{border-right:1px solid #ded8ce;min-height:370px;min-width:0}.day-column:last-child{border-right:0}.day-head{padding:16px;border-bottom:1px solid #ded8ce;display:flex;align-items:center;justify-content:space-between;font-size:14px}.day-head strong{font-size:24px}.today .day-head{background:#242725;color:#fffdf8}.rest{background:#edece4}.rest .day-head{background:#e4e7df}.day-events{padding:9px;display:grid;gap:9px}.event{width:100%;text-align:left;border:0;border-left:3px solid #ff5145;border-radius:7px;padding:12px 10px;background:#fce3d8;overflow-wrap:anywhere;font-size:14px;font-weight:400;line-height:1.4}.event strong{display:block;margin:5px 0}.event small{font-size:12px;color:#595b53}.event.call{background:#e4ebe4;border-color:#759182}.event.busy{background:#ece9e2;border-color:#aaa99f;color:#62665c}.event.review{background:#ffead2;border-color:#c5902b}.day-empty{padding:35px 12px;text-align:center;color:#73776b;font-size:14px;line-height:1.5}.rest .day-empty{padding-top:55px}.rest .day-empty strong{display:block;font-size:23px;color:#4d5e4f;margin-bottom:9px}.calendar-note{margin-top:16px}.day-tabs{display:none}.issue-box{padding:20px;margin-top:20px;border:1px solid #d9b98a;border-radius:15px;background:#fff4e2}.issue-box h3{margin-bottom:12px}.issue-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #e4d9c8}.issue-row button{font-size:14px}.list-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:24px}.list-toolbar>label{white-space:nowrap;margin:0}.list-toolbar input[type=search]{max-width:460px}.check{display:flex;gap:8px;align-items:center;font-weight:400;font-size:14px}.check input{width:18px;min-height:18px}.client-list{display:grid;gap:10px}.client-card{text-align:left;border-radius:13px;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:#fffdf8}.client-card strong{display:block;font-size:18px;margin-bottom:6px}.client-card small{display:block;color:#62665c;font-size:14px;font-weight:400;overflow-wrap:anywhere}.balance{display:flex;align-items:center;gap:12px}.balance b{font-size:30px}.balance span{font-size:14px;font-weight:400}.balance.low{color:#a63b2d}.empty{padding:36px;border:1px dashed #b9baaf;border-radius:16px;text-align:center;color:#65675f}.empty h3{color:#242725;margin-bottom:10px}dialog{border:1px solid #d5cdbf;border-radius:20px;padding:28px;background:#fffdf8;color:#242725;width:min(570px,calc(100% - 24px));max-height:90vh;overflow-y:auto}dialog::backdrop{background:#1d2422aa}.profile-dialog{width:min(900px,calc(100% - 24px))}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.dialog-head .eyebrow{margin:0}.dialog-head button{font-size:14px}.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.profile-heading h2{font-size:36px;margin-bottom:12px}.profile-heading a{display:block;line-height:1.7}.profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.pack-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 26px}.pack{border:1px solid #d5cdbf;border-radius:14px;padding:20px;background:#f6f0e6}.pack .pack-balance{display:flex;align-items:baseline;gap:10px;margin:16px 0}.pack-balance b{font-size:40px}.pack .muted{margin-bottom:10px}.profile-section{margin-top:26px;border-top:1px solid #d5cdbf;padding-top:22px}.profile-section h3{margin-bottom:15px}.booking-row{border:1px solid #ddd5c8;border-radius:12px;padding:16px;margin-bottom:10px}.booking-row-header{display:flex;justify-content:space-between;gap:12px;align-items:start}.booking-row-header small{display:block;font-size:14px;color:#64685d;margin-top:7px}.booking-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.booking-actions button{font-size:14px;padding:8px 12px}.badge{display:inline-block;font-size:12px;padding:5px 8px;border-radius:5px;background:#eee9df;line-height:1.4}.badge.coral{background:#ffe2d5;color:#843729}.ledger-row{font-size:14px;line-height:1.6;padding:11px 0;border-bottom:1px solid #e8e1d6;display:flex;gap:15px}.ledger-row b{min-width:30px}.ledger-row small{display:block;color:#62665c;font-size:12px}.field{margin-bottom:18px}.field-help{font-size:14px;color:#62665c;margin:8px 0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#edit-submit{width:100%}#app-status,#edit-status,#login-status{color:#973729;font-size:14px;margin-top:12px;line-height:1.5}.coach-footer{max-width:1408px;margin:auto;padding:25px 0;border-top:1px solid #d4ccbf;display:flex;justify-content:space-between;gap:15px;font-size:13px;color:#62665c}#edit-fields .time-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.slot-choice{margin:0}.slot-choice input{position:absolute;opacity:0;width:1px;min-height:1px}.slot-choice span{display:block;text-align:center;border:1px solid #cfc9be;border-radius:8px;padding:12px;font-size:14px}.slot-choice input:checked+span{border-color:#a5342c;background:#ffe2d5}.slot-choice input:focus-visible+span{outline:3px solid #a5342c}.slot-choice input:disabled+span{opacity:.5}.slot-choice small{display:block;font-size:11px;margin-top:4px}
@media(max-width:1000px){.top,main{padding-left:22px;padding-right:22px}.week-grid{grid-template-columns:repeat(7,minmax(130px,1fr));overflow:auto}.week-toolbar{flex-wrap:wrap}.login{gap:5%;padding:25px 0}.coach-footer{margin:0 22px}.day-head{padding:12px}.event{font-size:13px}}
@media(max-width:760px){.top{padding:20px 18px}.brand{gap:12px;font-size:18px}.brand span{font-size:10px;padding-left:12px}#account-email{display:none}#logout{font-size:12px;padding:8px}.login{display:block;min-height:0}.login-intro h1{font-size:48px}.login-intro p{font-size:16px;margin:18px 0}.private-note{margin-bottom:28px}.login-card{padding:25px}.login-card h2{font-size:26px}main{padding:28px 16px 40px}.dashboard-heading{gap:12px;align-items:flex-end}.dashboard-heading h1{font-size:42px}.dashboard-heading .primary{font-size:13px;max-width:130px;padding:10px 13px}.eyebrow{font-size:11px;margin-bottom:12px}.tabs{margin-bottom:20px}.stats{gap:8px;margin-bottom:23px}.stat{display:block;padding:14px 10px;border-radius:11px}.stat strong{display:block;font-size:28px;margin-bottom:7px}.stat span{font-size:12px}.week-toolbar{display:block}.week-toolbar>div{justify-content:space-between}.week-navigation h2{font-size:17px;min-width:0}.week-toolbar>div+div{margin-top:13px}.week-toolbar .secondary,.week-toolbar .quiet{font-size:13px;padding:10px}#sync-status{margin-top:10px;font-size:12px}.day-tabs{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:12px}.day-tabs button{font-size:11px;padding:9px 2px;background:#fffdf8}.day-tabs button strong{display:block;margin-top:6px;font-size:18px}.day-tabs .selected{background:#242725;color:#fffdf8;border-color:#242725}.week-grid{display:block;border-radius:14px}.day-column{display:none;border:0;min-height:260px}.day-column.active-day{display:block}.day-head{padding:18px;font-size:16px}.day-events{padding:14px;gap:12px}.event{font-size:16px;padding:17px}.event small{font-size:13px}.day-empty{padding:40px}.list-toolbar{display:block}.list-toolbar input[type=search]{margin:10px 0 15px}.list-toolbar .check{font-size:14px}.client-card{padding:18px 14px;gap:15px}.client-card strong{font-size:17px}.client-card small{font-size:12px}.balance{gap:7px;flex-shrink:0}.balance b{font-size:27px}.balance span{font-size:12px}dialog{padding:20px;max-height:93vh}.profile-heading{display:block}.profile-heading h2{font-size:30px}.profile-heading button{margin-top:15px}.pack-list{grid-template-columns:1fr}.booking-row-header{display:block}.booking-row-header>.badge{margin-top:10px}.coach-footer{font-size:12px;flex-wrap:wrap;margin:0 18px}.coach-footer span{order:3;flex-basis:100%}.field-grid{gap:10px}.issue-row{align-items:flex-start}.issue-row p{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Les réservations du site gardent un repère écrit, en plus de la couleur. */
.calendar-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin:8px 0 20px;font-size:13px;line-height:1.5;color:#50564d}.calendar-legend>span{display:inline-flex;align-items:center;gap:8px}.calendar-legend i{width:10px;height:10px;flex-shrink:0;border-radius:3px}.legend-session{background:#ff5145}.legend-call{background:#4d7660}.legend-busy{background:#a7aaa0}
.site-event{border:1px solid #edbcac;border-left:4px solid #ff5145;background:#ffede5;box-shadow:0 2px 4px #24272504}.site-event.call{border:1px solid #b8cebe;border-left:4px solid #4d7660;background:#edf3ed}.site-event.review{border-style:dashed;border-left-style:solid}.event-type{display:inline-block;border-radius:5px;padding:3px 7px;background:#ff5145;color:#242725;font-size:14px;font-weight:800;line-height:1.5;letter-spacing:.2px}.call .event-type{background:#c9dfcf;color:#243c2d}.event-time{display:block;font-size:14px;font-weight:700;line-height:1.6}.site-event .event-time{margin-top:9px}.site-event strong{font-size:16px;line-height:1.3;margin:7px 0 5px}.event-detail{display:block;line-height:1.5}.event-source{display:flex;flex-wrap:wrap;gap:5px 12px;justify-content:space-between;align-items:center;margin-top:11px;padding-top:8px;border-top:1px solid #e8c6b8;font-size:12px;color:#6a4236;line-height:1.5}.call .event-source{border-color:#c9dacd;color:#3e5c49}.event-open{font-weight:700}.site-event[data-client]:hover{background:#ffe4d7;border-color:#b64b3c}.site-event.call[data-client]:hover{background:#e1eee3;border-color:#4d7660}.event.busy{border-left:3px solid #b6b7ae;background:#efede7;color:#62665c}.event.busy strong{font-size:14px;font-weight:600}.event.busy small{color:#6d7067}
@media(max-width:760px){.calendar-legend{gap:8px 15px;margin:14px 0 18px;font-size:12px}.site-event strong{font-size:19px}.event-type{font-size:14px;padding:4px 9px}.event-time{font-size:14px}.event-source{font-size:12px}.event.busy strong{font-size:16px}}

.rest.today .day-head{background:#d7e2d5;color:#243c2d}
.coach-identity{display:flex;align-items:center;gap:22px;min-width:0}
.coach-home{display:inline-flex;align-items:center;min-height:44px;padding-left:22px;border-left:1px solid #cfc9be;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
.coach-home:hover{text-decoration:underline}
.dashboard-add{border-color:#cfc9be;font-size:14px;min-height:44px}
.tabs{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:820px;padding:12px 0 18px;margin:0 0 24px;border:0;background:#f6f0e6}
.tabs button{display:flex;align-items:center;justify-content:center;gap:13px;min-width:0;min-height:76px;padding:17px 24px;border:2px solid #cfc9be;border-radius:16px;background:#fffdf8;font-size:22px;font-weight:800;line-height:1.2}
.tabs button:hover{border-color:#b34333;background:#fff5ed}
.tabs button.selected{border-color:#ff5145;background:#ff5145;color:#242725;box-shadow:0 4px 0 #b6392f}
.tabs button:focus-visible{outline-offset:5px}
.tabs .tab-icon{width:28px;height:28px;flex:0 0 auto}
.tabs .tab-label{font:inherit;background:none;padding:0;margin:0}
.tabs .tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:29px;min-height:27px;margin:0;padding:4px 7px;border-radius:7px;background:#f0e9de;font-size:14px;font-weight:700}
.tabs .selected .tab-count{background:#fffdf8a6}
@media(max-width:760px){
 .top{flex-wrap:wrap;gap:8px 12px}
 .coach-identity{gap:12px}
 .coach-home{font-size:12px;padding-left:12px}
 #account{margin-left:auto}
 .tabs{gap:9px;padding:10px 0 15px;margin-bottom:22px;max-width:none}
 .tabs button{gap:8px;min-height:64px;padding:13px 9px;font-size:17px;border-radius:12px}
 .tabs .tab-icon{width:23px;height:23px}
 .tabs .tab-count{min-width:23px;min-height:23px;padding:3px 5px;font-size:12px}
 .dashboard-heading .dashboard-add{font-size:13px;max-width:130px;padding:10px 13px}
}
@media(max-width:350px){.tabs button{font-size:16px;gap:6px}.tabs .tab-icon{width:21px;height:21px}}
.legacy-cancel{display:block;width:100%;margin-top:12px;min-height:44px;padding:8px;border:1px solid #b58070;background:#fffdf8;color:#853c2d;font-size:14px}.call .legacy-cancel{border-color:#8da894;color:#334f3c}.legacy-cancel:hover{background:#fff6f0;border-color:#853c2d}.legacy-summary{padding:18px;margin-bottom:18px;border-radius:12px;background:#f6f0e6;border-left:4px solid #ff5145}.legacy-summary strong{display:block;font-size:20px;margin-bottom:5px}.legacy-summary p{font-size:14px}.keep-booking{width:100%;margin-top:16px}#planning-feedback{margin:0 0 18px;padding:16px 20px;border:1px solid #afc5b5;border-radius:12px;background:#edf3ed;color:#2e4936;line-height:1.6;font-size:14px}#planning-feedback:focus{outline:2px solid #4d7660;outline-offset:3px}
/* Suivi : accès secondaire, repères lisibles et données réelles. */
.tabs{max-width:1040px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 140px}
.tabs .tab-insights{min-height:48px;align-self:center;padding:12px 16px;border-width:1px;border-radius:12px;background:transparent;font-size:16px;font-weight:700;box-shadow:none}
.tabs .tab-insights .tab-icon{width:22px;height:22px}
.tabs .tab-insights.selected{color:#fffdf8;background:#242725;border-color:#242725;box-shadow:none}
.insights-heading,.insights-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}
.insights-heading{margin:8px 0 25px}.insights-heading h2{font-size:28px}.insights-heading .eyebrow{font-size:12px;margin-bottom:10px}.insights-period{padding:15px 0;border-top:1px solid #d5cdbf;border-bottom:1px solid #d5cdbf}.insights-period h3{font-size:18px;text-align:center}.insights-period>.quiet{min-height:44px}
#insights-status{min-height:24px;margin:14px 0 20px}.insight-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}.insight-metric{padding:23px;background:#fffdf8;border:1px solid #d5cdbf;border-radius:16px;display:flex;flex-direction:column;gap:12px}.insight-metric>span{font-size:15px;font-weight:700;line-height:1.35}.insight-metric>strong{font-size:44px;line-height:1}.insight-metric>small{font-size:14px;line-height:1.5;color:#60665b}.insight-metric:nth-child(3){border-top:4px solid #ff5145}.insight-metric:nth-child(4){border-top:4px solid #759182}
.insights-panel{border:1px solid #d5cdbf;border-radius:18px;padding:26px;background:#fffdf8;margin-bottom:25px;min-width:0}.insights-panel-heading{margin-bottom:12px}.insights-panel-heading>span{font-size:14px;color:#60665b;line-height:1.5}.activity-legend{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px;margin:22px 0}.activity-legend>span{display:flex;align-items:center;gap:8px}.activity-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.done{background:#242725}.past{background:#ff5145}.planned{background:#a9c8b2}
.activity-chart{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:15px;margin-top:24px}.activity-week{text-align:center;min-width:0;padding:0 8px;border-radius:9px}.activity-week.current{background:#f6f0e6}.activity-total{font-size:17px;font-weight:700;display:block;margin:12px 0}.activity-track{height:160px;display:flex;flex-direction:column-reverse;justify-content:flex-start;max-width:50px;margin:auto;border-bottom:2px solid #cfc9be}.activity-segment{display:block;width:100%;flex:0 0 auto}.activity-date{display:block;font-size:14px;font-weight:700;line-height:1.5;margin:12px 0}.activity-date>span{display:block;font-size:12px;font-weight:400}.activity-data{margin-top:22px;border-top:1px solid #e2dbd0;padding-top:16px}.activity-data summary{font-size:14px;cursor:pointer;font-weight:700;min-height:32px}.activity-table-wrap{overflow-x:auto}.activity-data table{border-collapse:collapse;width:100%;font-size:14px;margin-top:12px;text-align:left}.activity-data caption{text-align:left;color:#60665b;margin-bottom:12px}.activity-data th,.activity-data td{padding:12px 10px;border-bottom:1px solid #e2dbd0;line-height:1.4}
.followup-section>.muted{margin-bottom:20px}.followup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.followup-grid h4{font-size:19px;margin:0 0 10px;line-height:1.3}.followup-list{display:grid;gap:8px;max-height:420px;overflow-y:auto;margin-top:18px}.followup-client{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:15px 13px;border-radius:10px}.followup-client>span{min-width:0}.followup-client>span:last-child{text-align:right;flex:0 0 100px}.followup-client strong{font-size:16px;display:block;margin-bottom:6px}.followup-client b{font-size:24px}.followup-client small{display:block;color:#60665b;font-size:13px;font-weight:400;line-height:1.5}.insights-empty{padding:24px 0 6px;font-size:14px;color:#60665b}.insights-coverage{font-size:14px;line-height:1.65;border-left:3px solid #b7b7ad;padding:5px 0 5px 16px;color:#60665b;max-width:1050px}
@media(max-width:1050px){.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.followup-grid{grid-template-columns:1fr}}
@media(max-width:760px){.tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tabs .tab-insights{grid-column:1/-1;justify-self:end;min-height:44px;padding:10px 15px;font-size:14px}.insights-heading{align-items:flex-start;gap:12px}.insights-heading h2{font-size:25px}.insights-heading .quiet{padding:10px;font-size:14px}.insight-metrics{gap:10px}.insight-metric{padding:17px 13px;gap:10px}.insight-metric>strong{font-size:35px}.insight-metric>span,.insight-metric>small{font-size:14px}.insights-panel{padding:19px 14px}.insights-panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.insights-panel-heading h3{font-size:20px}.activity-chart{gap:5px}.activity-week{padding:0 3px}.activity-track{height:125px}.activity-date{font-size:14px}.activity-date>span{font-size:12px}.activity-legend{font-size:13px;gap:10px 15px}.followup-grid{gap:0}.followup-client{padding:14px 10px;gap:10px}.followup-client>span:last-child{flex-basis:85px}.followup-client small{font-size:12px}.insights-period .week-navigation{display:flex;justify-content:space-between;gap:8px}.insights-period h3{font-size:16px}.insights-period>.quiet{display:block;margin:10px auto 0}}
.client-import{margin:0 0 22px;padding:16px 18px;border:1px solid #d5cdbf;border-radius:12px;background:#fffdf8}
.client-import>button{min-height:44px;background:transparent}
.client-import p{margin-top:10px}.client-import p:empty{display:none}
.client-import-list,.client-import-review{margin:16px 0;padding-left:22px;line-height:1.7}
.client-import-review{font-size:14px;color:#853c2d}
.calendar-client-event{border-left-color:#759182;background:#edf2e9}
.event .event-origin{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#62665c}

/* Client history and recoverable removal. */
.profile-removal{padding-top:24px;margin-top:24px;border-top:1px solid var(--line,#d2cbbf)}
.profile-removal .danger{color:#a33127;border-color:#b65e53}
#show-deleted{margin-top:20px;margin-bottom:0;font-weight:400}
.annual-history{margin-top:24px}.annual-history>summary{cursor:pointer;font-weight:700;padding:8px 0}.annual-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}.annual-toolbar p{margin:0;max-width:500px}.annual-toolbar button{flex-shrink:0}.history-list{display:grid;gap:8px}.history-client{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;width:100%;border:1px solid #d2cbbf;border-radius:14px;padding:14px 16px;background:#fffdf7}.history-client strong,.history-client small{display:block}.history-client small{font-weight:400;margin-top:4px;color:#60615a}.history-client .history-count{text-align:right;white-space:nowrap}.history-note{font-size:13px;color:#60615a;margin-top:16px}.history-total{font-size:20px;margin:16px 0}.history-client .badge{margin-top:6px;font-size:12px}.history-client .badge.inactive{background:#fce1d5;color:#763c26}
@media(max-width:600px){.annual-toolbar{align-items:stretch;flex-direction:column}.annual-toolbar button{width:100%}.tabs .tab-label{font-size:clamp(11px,3.2vw,15px)}.history-client{padding:12px;gap:10px}}

.insights-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0 28px}.metric-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #d2cbbf;border-radius:18px;background:#fffdf7;padding:20px;min-height:154px}.metric-card strong{font-size:38px;line-height:1.1;display:block;margin-bottom:12px}.metric-card span{font-weight:700;line-height:1.3}.metric-card small{font-size:12px;color:#63655f;font-weight:400;margin-top:7px;line-height:1.35}.metric-total{background:#242a26;color:#fffdf7;border-color:#242a26}.metric-card:hover{box-shadow:0 3px 12px #24272515}.metric-card:focus-visible{outline:3px solid #c34c3e;outline-offset:3px}
@media(max-width:850px){.insights-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-total{grid-column:1/-1;flex-direction:row;align-items:center;gap:18px;min-height:88px}.metric-total strong{margin:0}.metric-card{padding:16px}.metric-card:not(.metric-total){min-height:150px}}
