:root{--coach-ink:#1d1d19;--coach-muted:#6e6b62;--coach-paper:#f5f1e9;--coach-card:#fffdf8;--coach-line:#ddd5c8;--coach-sage:#68705f;--coach-sage-deep:#4f584b;--coach-sidebar:#e8e6de;--coach-gold:#ad8444;--coach-gold-soft:#eee1ca;--coach-shadow:0 14px 40px rgba(45,36,29,.08)}
*{box-sizing:border-box}
body.coach-unified{margin:0!important;background:var(--coach-paper)!important;color:var(--coach-ink)!important;font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.coach-global-shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}
.coach-global-sidebar{position:sticky;top:0;height:100vh;background:var(--coach-sidebar);border-right:1px solid var(--coach-line);padding:28px 22px;display:flex;flex-direction:column;z-index:20}
.coach-global-brand{display:flex;align-items:center;gap:11px;color:var(--coach-gold);font:700 23px/1 Georgia,serif;letter-spacing:.08em;text-decoration:none}.coach-global-brand img{width:42px;height:42px;object-fit:contain;mix-blend-mode:multiply;clip-path:inset(9px 0 0 0)}.coach-global-environment{margin-top:10px;color:var(--coach-muted);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.coach-global-nav{margin-top:38px;display:grid;gap:6px}.coach-global-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;text-decoration:none;color:#4f5049;font-weight:650}.coach-global-nav a:hover,.coach-global-nav a.active{background:var(--coach-card);color:var(--coach-sage-deep);box-shadow:0 7px 22px rgba(66,67,58,.07)}.coach-global-nav i{width:20px;font-style:normal;text-align:center;color:var(--coach-gold)}
.coach-global-footer{margin-top:auto;border-top:1px solid var(--coach-line);padding-top:18px}.coach-global-footer strong{display:block}.coach-global-footer span{font-size:12px;color:var(--coach-muted)}.coach-global-footer a{display:block;margin-top:14px;color:#88672f;font-size:13px;text-decoration:none}
.coach-global-content{min-width:0;padding:0 0 70px}.coach-unified .wrap{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;min-height:0!important}.coach-unified .top{background:transparent!important;color:var(--coach-ink)!important;border-radius:0!important;padding:34px clamp(20px,4vw,58px) 18px!important}.coach-unified .top .back{color:#88672f!important;font-size:13px!important}.coach-unified .top .eye,.coach-unified .kicker,.coach-unified .eye{color:var(--coach-gold)!important;font-size:11px!important;letter-spacing:.16em!important;font-weight:800!important}.coach-unified .top h1,.coach-unified .hero h1{font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(34px,4vw,50px)!important;line-height:1.05!important;font-weight:400!important;margin:12px 0 8px!important;color:var(--coach-ink)!important}.coach-unified .top p,.coach-unified .hero p{color:var(--coach-muted)!important;opacity:1!important;max-width:720px}
.coach-unified .wrap>main,.coach-unified .wrap main{padding:0 clamp(20px,4vw,58px) 50px!important}.coach-unified .card,.coach-unified .detail,.coach-unified .output-card,.coach-unified .context-card,.coach-unified .source,.coach-unified .values,.coach-unified .editor,.coach-unified aside{background:var(--coach-card)!important;border:1px solid var(--coach-line)!important;border-radius:18px!important;box-shadow:var(--coach-shadow)!important;color:var(--coach-ink)!important}.coach-unified .card{padding:22px!important;margin:0 0 16px!important}.coach-unified h2,.coach-unified h3,.coach-unified h4{font-family:Georgia,"Times New Roman",serif!important;font-weight:400!important;color:var(--coach-ink)!important}
.coach-unified label{color:var(--coach-muted)!important;font-size:10px!important;letter-spacing:.08em!important;font-weight:700}.coach-unified input,.coach-unified select,.coach-unified textarea{background:#fff!important;color:var(--coach-ink)!important;border:1px solid var(--coach-line)!important;border-radius:11px!important;min-height:44px!important}.coach-unified input:focus,.coach-unified select:focus,.coach-unified textarea:focus{outline:2px solid rgba(173,132,68,.22)!important;border-color:var(--coach-gold)!important}
.coach-unified button,.coach-unified .btn,.coach-unified .primary,.coach-unified .soft,.coach-unified .ghost{border-radius:11px!important;min-height:42px!important;font-weight:750!important}.coach-unified .btn,.coach-unified .primary{background:var(--coach-sage-deep)!important;color:#fff!important;border:1px solid var(--coach-sage-deep)!important}.coach-unified .soft,.coach-unified .ghost{background:var(--coach-card)!important;color:var(--coach-sage-deep)!important;border:1px solid var(--coach-line)!important}
.coach-unified .notice,.coach-unified .safety,.coach-unified .direct-status{background:#e6eee7!important;color:#52705b!important;border:1px solid #d6e1d7!important;border-radius:12px!important}.coach-unified .coach{border-left:4px solid var(--coach-gold)!important;background:linear-gradient(145deg,#eef1ea,var(--coach-card))!important}
.coach-unified table{width:100%;border-collapse:separate;border-spacing:0;background:var(--coach-card);border:1px solid var(--coach-line);border-radius:14px;overflow:hidden}.coach-unified th{background:#eeeae1;color:var(--coach-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;text-align:left;padding:12px}.coach-unified td{padding:13px 12px;border-top:1px solid var(--coach-line)}.coach-unified tbody tr:hover{background:#faf7f0}.coach-unified .source-table,.coach-unified .partner-list,.coach-unified .queue{border-radius:16px!important;overflow:hidden!important}.coach-unified .source-table>* ,.coach-unified .partner-list>* ,.coach-unified .queue>*{border-color:var(--coach-line)!important;background:var(--coach-card)!important}
.coach-unified .app>header{display:none!important}.coach-unified .app main{background:var(--coach-paper)!important}.coach-unified .app .hero{padding:34px clamp(20px,4vw,58px) 28px!important;background:transparent!important;color:var(--coach-ink)!important}.coach-unified .app .body,.coach-unified .app .content{padding-left:clamp(20px,4vw,58px)!important;padding-right:clamp(20px,4vw,58px)!important}.coach-unified .stats article{background:var(--coach-card)!important;border-color:var(--coach-line)!important;color:var(--coach-ink)!important;border-radius:16px!important}.coach-unified .stats strong{color:var(--coach-gold)!important}
.coach-unified .gate{z-index:100!important;background:var(--coach-paper)!important;color:var(--coach-ink)!important}.coach-unified .gate span{color:var(--coach-gold)!important}
@media(max-width:820px){.coach-global-shell{display:block}.coach-global-sidebar{position:relative;height:auto;padding:20px}.coach-global-nav{display:flex;overflow-x:auto;margin-top:18px;padding-bottom:3px}.coach-global-nav a{white-space:nowrap}.coach-global-footer{display:none}.coach-global-content{padding-bottom:50px}.coach-unified .app .workspace{grid-template-columns:1fr!important}}
@media(max-width:520px){.coach-unified .row,.coach-unified .form-grid,.coach-unified .output-grid{grid-template-columns:1fr!important}.coach-unified .top,.coach-unified .app .hero{padding-left:16px!important;padding-right:16px!important}.coach-unified .wrap>main,.coach-unified .wrap main,.coach-unified .app .body,.coach-unified .app .content{padding-left:16px!important;padding-right:16px!important}}
.coach-global-nav{overflow-y:auto;min-height:0;padding-right:3px}.coach-global-nav::-webkit-scrollbar{width:4px}.coach-global-nav::-webkit-scrollbar-thumb{background:#c9c1b5;border-radius:99px}.coach-profile-link{display:block!important;margin:0!important;color:inherit!important;text-decoration:none!important}.coach-profile-link:hover strong{color:var(--coach-gold)}
.module-page{padding:34px clamp(20px,4vw,58px) 60px}.module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.module-head h1{font:400 clamp(34px,4vw,50px)/1.05 Georgia,"Times New Roman",serif;margin:8px 0}.module-intro{max-width:720px;color:var(--coach-muted);margin:0}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module-card{background:var(--coach-card);border:1px solid var(--coach-line);border-radius:18px;padding:22px;box-shadow:var(--coach-shadow)}.module-card.wide{grid-column:1/-1}.module-card h2{font-size:25px!important;margin:4px 0 8px!important}.module-card p{color:var(--coach-muted);margin:0 0 16px}.empty-state{padding:30px 20px;text-align:center;border:1px dashed #cec5b7;border-radius:14px;background:#faf7f0}.empty-state strong{display:block;font:400 21px Georgia,serif;margin-bottom:6px}.empty-state span{color:var(--coach-muted);font-size:13px}.module-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 16px;flex-wrap:wrap}.module-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;border-radius:11px;border:1px solid var(--coach-line);background:var(--coach-card);color:var(--coach-ink);text-decoration:none;font-weight:750;font-size:13px}.module-button.primary{background:var(--coach-sage-deep);border-color:var(--coach-sage-deep);color:#fff}.status-pill{display:inline-flex;padding:5px 9px;border-radius:99px;background:#e6eee7;color:#52705b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.module-table-wrap{overflow-x:auto;border:1px solid var(--coach-line);border-radius:14px}.module-table-wrap table{border:0!important;border-radius:0!important}.profile-list{display:grid;gap:12px}.profile-row{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--coach-line)}.profile-row:last-child{border-bottom:0}.profile-row span{color:var(--coach-muted)}.scope-note{padding:14px 16px;background:#f3e9da;border:1px solid #e5d3b7;border-radius:13px;color:#795a2a;font-size:13px}
@media(max-width:820px){.coach-global-nav{overflow-x:auto;overflow-y:hidden}.module-page{padding:25px 16px 55px}.module-head{display:block}.module-grid{grid-template-columns:1fr}.module-card.wide{grid-column:auto}}
.coach-logout{display:block;width:100%;margin-top:14px;padding:9px 11px!important;min-height:38px!important;border:1px solid #cfc6b8!important;border-radius:10px!important;background:transparent!important;color:#685f53!important;text-align:left;font:700 12px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer}.coach-logout:hover{background:var(--coach-card)!important;color:var(--coach-sage-deep)!important}.coach-logout:disabled{opacity:.6;cursor:wait}


/* Mobile Coach Center navigation V1 */
.coach-mobile-nav,.coach-mobile-more{display:none}
@media(max-width:820px){
  body.coach-unified{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .coach-global-sidebar{position:sticky;top:0;height:auto;padding:13px 16px 12px;background:rgba(39,47,34,.97);border:0;border-bottom:1px solid rgba(196,154,83,.28);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);z-index:80}
  .coach-global-brand{gap:9px;color:#d8b779;font-size:20px}
  .coach-global-brand img{width:34px;height:34px;mix-blend-mode:normal;clip-path:none}
  .coach-global-environment{margin:4px 0 0 43px;color:rgba(255,255,255,.62);font-size:9px}
  .coach-global-nav,.coach-global-footer{display:none!important}
  .coach-global-content{padding-bottom:18px}
  .coach-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));min-height:68px;padding:7px 5px;border:1px solid rgba(216,183,121,.3);border-radius:20px;background:rgba(39,47,34,.97);box-shadow:0 14px 34px rgba(24,27,21,.3);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:100}
  .coach-mobile-nav a,.coach-mobile-nav button{min-width:0;min-height:54px;padding:5px 2px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:rgba(255,255,255,.7)!important;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:650 10px/1.1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;box-shadow:none!important}
  .coach-mobile-nav i{display:grid;place-items:center;width:25px;height:25px;color:#d8b779;font:400 18px/1 Georgia,serif}
  .coach-mobile-nav a.active{background:rgba(255,253,248,.13)!important;color:#fff!important}
  .coach-mobile-nav a:focus-visible,.coach-mobile-nav button:focus-visible{outline:2px solid #d8b779;outline-offset:1px}
  .coach-mobile-more{position:fixed;display:none;inset:0;background:rgba(18,21,16,.42);z-index:110}
  .coach-mobile-more.open{display:block}
  .coach-mobile-more-panel{position:absolute;left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));max-height:min(72vh,620px);overflow:auto;padding:18px 14px 16px;border:1px solid rgba(216,183,121,.35);border-radius:24px;background:#f7f3eb;box-shadow:0 24px 60px rgba(18,21,16,.38)}
  .coach-mobile-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 14px}
  .coach-mobile-more-head strong{font:400 24px/1.1 Georgia,"Times New Roman",serif;color:var(--coach-ink)}
  .coach-mobile-more-close{width:42px;height:42px;min-height:42px!important;padding:0!important;border:1px solid var(--coach-line)!important;border-radius:50%!important;background:var(--coach-card)!important;color:var(--coach-ink)!important;font-size:20px!important}
  .coach-mobile-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .coach-mobile-more-grid a{min-width:0;min-height:58px;padding:11px 10px;border:1px solid var(--coach-line);border-radius:14px;background:var(--coach-card);color:var(--coach-ink);text-decoration:none;display:flex;align-items:center;gap:9px;font-weight:700;font-size:12px}
  .coach-mobile-more-grid a i{flex:0 0 23px;color:var(--coach-gold);font-style:normal;text-align:center}
  .coach-mobile-more-grid a.active{border-color:var(--coach-gold);background:var(--coach-gold-soft)}
  .coach-mobile-more-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid var(--coach-line)}
  .coach-mobile-more-actions a,.coach-mobile-more-actions button{min-height:46px!important;margin:0!important;padding:10px!important;border:1px solid var(--coach-line)!important;border-radius:13px!important;background:var(--coach-card)!important;color:var(--coach-sage-deep)!important;text-decoration:none;text-align:center;font:700 12px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
  .module-page{padding-bottom:28px}
  .business-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;overflow:visible!important;padding:8px!important}
  .business-tabs .business-tab{min-width:0!important;width:100%;min-height:48px!important;padding:9px 7px!important;white-space:normal!important;line-height:1.15!important;text-align:center}
  .invoice-flow{grid-template-columns:1fr!important}
}
@media(max-width:380px){
  .coach-mobile-nav{left:6px;right:6px}
  .coach-mobile-nav a,.coach-mobile-nav button{font-size:9px!important}
  .coach-mobile-more-grid{grid-template-columns:1fr}
}

/* Coach Agenda Mobile V1 — full-width week and month */
@media(max-width:820px){
  .coach-unified .calendar-shell{width:100%;max-width:100%;border-radius:18px;overflow:hidden}
  .coach-unified .calendar-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title title" "controls switch";align-items:center;gap:11px 8px;padding:14px 12px}
  .coach-unified .calendar-bar h2{grid-area:title;font-size:clamp(21px,6vw,27px)!important;line-height:1.12!important;overflow-wrap:anywhere}
  .coach-unified .calendar-controls{grid-area:controls;min-width:0;gap:5px}
  .coach-unified .view-switch{grid-area:switch;gap:5px}
  .coach-unified .calendar-control{min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
  .coach-unified #prevPeriod,.coach-unified #nextPeriod{width:40px;padding:0!important}
  .coach-unified .calendar-scroll{width:100%;max-width:100%;overflow-x:hidden!important}
  .coach-unified .week-calendar{width:100%;min-width:0!important;grid-template-columns:44px repeat(7,minmax(0,1fr))}
  .coach-unified .week-head{min-width:0;padding:10px 1px}
  .coach-unified .week-head span{font-size:8px;letter-spacing:.02em}
  .coach-unified .week-head strong{font-size:15px}
  .coach-unified .time-cell{min-width:0;padding:7px 4px;font-size:9px}
  .coach-unified .week-slot{min-width:0}
  .coach-unified .month-calendar{width:100%;min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))}
  .coach-unified .month-day-head{min-width:0;padding:9px 1px;font-size:8px;letter-spacing:.04em}
  .coach-unified .month-cell{min-width:0;min-height:68px;padding:5px 3px}
  .coach-unified .month-number{font-size:15px}
  .coach-unified .calendar-empty{display:none}
}
@media(max-width:390px){
  .coach-unified .calendar-bar{grid-template-columns:1fr}
  .coach-unified .calendar-bar h2,.coach-unified .calendar-controls,.coach-unified .view-switch{grid-column:1}
  .coach-unified .calendar-bar h2{grid-row:1}
  .coach-unified .calendar-controls{grid-row:2;justify-content:space-between}
  .coach-unified .view-switch{grid-row:3}
  .coach-unified #todayPeriod{flex:1}
  .coach-unified .view-switch .calendar-control{flex:1}
  .coach-unified .week-calendar{grid-template-columns:40px repeat(7,minmax(0,1fr))}
}

/* Coach Agenda Mobile V2 */
.agenda-legend{display:flex;gap:13px;flex-wrap:wrap;padding:10px 18px;border-bottom:1px solid rgba(163,127,69,.15);font-size:10px;color:var(--coach-muted)}
.agenda-legend span{display:flex;align-items:center;gap:5px}.agenda-legend i,.selected-day-event>i{width:9px;height:9px;border-radius:50%;display:inline-block}
.event-coach,.agenda-legend .event-coach,.selected-day-event.event-coach>i{--event-color:#a98345;background-color:#a98345}
.event-training,.agenda-legend .event-training,.selected-day-event.event-training>i{--event-color:#526d5a;background-color:#526d5a}
.event-nutrition,.agenda-legend .event-nutrition,.selected-day-event.event-nutrition>i{--event-color:#b66f4b;background-color:#b66f4b}
.event-lab,.agenda-legend .event-lab,.selected-day-event.event-lab>i{--event-color:#637594;background-color:#637594}
.event-internal,.agenda-legend .event-internal,.selected-day-event.event-internal>i{--event-color:#7b746a;background-color:#7b746a}
.week-head.agenda-day-select{font:inherit;color:inherit;background:transparent;border:0;border-left:1px solid rgba(221,214,198,.65);cursor:pointer}
.week-head.agenda-day-select.selected,.month-cell.agenda-day-select.selected{background:rgba(182,148,88,.2);box-shadow:inset 0 -3px #ad8444}
.week-slot{overflow:hidden;cursor:pointer;padding:2px}.week-slot.selected-day{background:rgba(245,238,223,.35)}
.calendar-event{display:flex;align-items:center;gap:4px;width:100%;min-width:0;min-height:18px!important;margin:1px 0;padding:2px 4px!important;border:0!important;border-radius:6px!important;background:var(--event-color)!important;color:#fff!important;font:700 8px/1 Inter,sans-serif!important;cursor:pointer;overflow:hidden;box-shadow:none!important}
.calendar-event b,.calendar-event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event.completed{opacity:.48;text-decoration:line-through}
.month-cell.agenda-day-select{font:inherit;color:inherit;text-align:left;background:transparent;border:0;border-left:1px solid rgba(221,214,198,.55);border-bottom:1px solid rgba(221,214,198,.55);cursor:pointer}
.month-events{display:grid;gap:2px;margin-top:3px}.month-events small{font-size:8px;color:var(--coach-muted)}
.agenda-form-actions{display:flex;gap:9px;flex-wrap:wrap}.agenda-form-actions .module-button{flex:1}
.selected-day-list{display:grid;gap:9px}.selected-day-empty{width:100%;padding:25px 15px;border:1px dashed var(--coach-line);border-radius:14px;background:#faf7f0;color:var(--coach-ink);cursor:pointer}.selected-day-empty strong,.selected-day-empty span{display:block}.selected-day-empty strong{font:400 20px Georgia,serif}.selected-day-empty span{margin-top:5px;color:var(--coach-muted);font-size:12px}
.selected-day-event{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:58px;padding:10px 12px;border:1px solid var(--coach-line);border-radius:14px;background:var(--coach-card);color:var(--coach-ink);text-align:left;cursor:pointer}.selected-day-event span{display:grid;gap:2px}.selected-day-event small{color:var(--coach-muted)}.selected-day-event>strong{font-size:22px;color:var(--coach-gold)}.selected-day-event.completed{opacity:.58}
.agenda-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid var(--coach-line);border-radius:22px;background:#f7f3eb;color:var(--coach-ink);box-shadow:0 30px 80px rgba(25,27,22,.36)}.agenda-dialog::backdrop{background:rgba(20,23,18,.55);backdrop-filter:blur(4px)}.agenda-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.agenda-dialog-head h2{margin:5px 0 0;font:400 28px/1.1 Georgia,serif}.agenda-dialog-close{flex:0 0 42px;width:42px;min-height:42px!important;padding:0!important;border:1px solid var(--coach-line)!important;border-radius:50%!important;background:var(--coach-card)!important;color:var(--coach-ink)!important;font-size:21px!important}.agenda-dialog-meta{display:grid;gap:7px;margin:20px 0;padding:14px;border-radius:13px;background:var(--coach-card);color:var(--coach-muted);font-size:13px}.agenda-dialog-status{margin-bottom:16px;color:var(--coach-sage-deep);font-weight:700}.agenda-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.agenda-dialog-actions .agenda-delete{grid-column:1/-1;color:#8b493f!important}.agenda-followup{margin-top:18px;padding-top:16px;border-top:1px solid var(--coach-line)}
@media(max-width:820px){
  .agenda-legend{justify-content:space-between;gap:7px;padding:9px 10px}.agenda-legend span{font-size:8px}
  .week-slot .calendar-event{justify-content:center;padding:2px 1px!important}.week-slot .calendar-event b{font-size:7px}.week-slot .calendar-event span{display:none}
  .month-events .calendar-event{height:8px;min-height:8px!important;padding:0!important;border-radius:99px!important}.month-events .calendar-event b,.month-events .calendar-event span{display:none}
  .agenda-dialog{padding:18px 16px;margin:auto}.agenda-dialog-actions{grid-template-columns:1fr}
  .agenda-dialog-actions .agenda-delete{grid-column:auto}.agenda-followup .journey-actions{display:grid;grid-template-columns:1fr 1fr}.agenda-followup .journey-actions .primary{grid-column:1/-1}
}

/* Coach Agenda V3 secure sync status */
.agenda-sync-state{padding:9px 18px;border-bottom:1px solid rgba(163,127,69,.15);background:rgba(230,238,231,.72);color:#52705b;font-size:11px;font-weight:750}
.agenda-sync-state[data-state="loading"]{background:#f3e9da;color:#795a2a}
.agenda-sync-state[data-state="error"]{background:#f3dfdc;color:#8b493f}
@media(max-width:820px){.agenda-sync-state{padding:8px 10px;font-size:10px}}

/* Coach Agenda V4.2 calendar export */
.agenda-calendar-export{margin-top:18px;padding-top:16px;border-top:1px solid var(--coach-line)}
.agenda-calendar-export p{margin:6px 0 12px;color:var(--coach-muted);font-size:12px}
.agenda-calendar-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.agenda-calendar-actions .module-button{min-width:0;padding-left:8px;padding-right:8px}
@media(max-width:520px){.agenda-calendar-actions{grid-template-columns:1fr}.agenda-calendar-actions .module-button{width:100%}}

/* Coach Agenda V4.3 — connected calendar and reminder center */
.agenda-integrations{margin-top:20px}
.agenda-integrations-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.agenda-integrations-head h2{margin:5px 0 7px!important}
.agenda-integrations-head p{max-width:720px;margin:0;color:var(--coach-muted);font-size:13px}
.agenda-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.agenda-provider{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px;border:1px solid var(--coach-line);border-radius:15px;background:#faf7f0}
.agenda-provider-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff;border:1px solid var(--coach-line);color:#4775d1;font:800 18px/1 Inter,sans-serif}
.agenda-provider-mark.microsoft{color:#3367a8}
.agenda-provider div{display:grid;gap:3px;min-width:0}.agenda-provider strong{font-size:13px}.agenda-provider small{color:var(--coach-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agenda-provider small[data-state="connected"]{color:#52705b;font-weight:750}.agenda-provider small[data-state="attention"]{color:#8b493f;font-weight:750}
.agenda-delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.agenda-delivery-grid>div{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;row-gap:2px;padding:13px;border:1px solid var(--coach-line);border-radius:14px;background:var(--coach-card)}
.agenda-delivery-grid strong{font-size:13px}.agenda-delivery-grid small{grid-column:2;color:var(--coach-muted);font-size:10px}
.agenda-delivery-grid>div:last-child{grid-template-columns:1fr}.agenda-delivery-grid>div:last-child strong{font:400 25px/1 Georgia,serif;color:var(--coach-gold)}.agenda-delivery-grid>div:last-child small{grid-column:1}
.agenda-delivery-dot{width:10px;height:10px;border-radius:50%;background:#b8afa2;box-shadow:0 0 0 4px rgba(184,175,162,.16)}.agenda-delivery-dot.active{background:#5c7b64;box-shadow:0 0 0 4px rgba(92,123,100,.14)}
.agenda-provider-note{margin-top:12px}
@media(max-width:820px){
  .agenda-integrations-head{display:grid}.agenda-integrations-head .module-button{width:100%}
  .agenda-provider-grid,.agenda-delivery-grid{grid-template-columns:1fr}
  .agenda-provider{grid-template-columns:38px minmax(0,1fr) auto;padding:11px}
  .agenda-provider-mark{width:38px;height:38px}
}
@media(max-width:390px){
  .agenda-provider{grid-template-columns:38px minmax(0,1fr)}
  .agenda-provider .module-button{grid-column:1/-1;width:100%}
}
