/* M7.2: private client, couple and exact approval experience. */
.ed-app{container:ed-portal/inline-size}
.ed-app .ed-main{container:ed-main/inline-size}
.ed-app .ed-eyebrow{display:block;margin:0 0 6px;color:#5b4638;font-size:11px;font-weight:750;line-height:1.35;letter-spacing:.09em;text-transform:uppercase}
.ed-app .ed-client-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;margin:0 0 26px;padding:clamp(20px,3vw,30px);border:1px solid #bfd1c4;border-radius:18px;background:radial-gradient(circle at 100% 0,rgba(189,136,67,.12),transparent 42%),linear-gradient(135deg,#fff 0%,#eef5f0 100%);box-shadow:0 14px 34px rgba(34,53,47,.07)}
.ed-app .ed-client-hero h2{margin:3px 0 8px;font-size:clamp(23px,3vw,32px)}
.ed-app .ed-client-hero p{max-width:68ch;margin-bottom:0}
.ed-app .ed-client-hero>.ed-actions{justify-content:flex-end;margin:0}
.ed-app .ed-client-hero>button{min-width:180px;margin:0}
.ed-app .ed-client-help{margin:-10px 0 28px;padding:18px 20px;border:1px solid #d7e2da;border-radius:14px;background:#fff}
.ed-app .ed-client-help h3{margin:0 0 8px;font-size:17px}
.ed-app .ed-client-help ol{display:grid;gap:7px;margin:0;padding-left:22px}
.ed-app .ed-couple-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:28px}
.ed-app .ed-couple-slot{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;min-height:210px;margin:0;border-color:#cbd9cf;box-shadow:0 8px 22px rgba(34,53,47,.045)}
.ed-app .ed-couple-slot.is-empty{border-style:dashed;background:#f8faf8;box-shadow:none}
.ed-app .ed-couple-slot-number{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e4eee7;color:#244f3a;font-weight:800}
.ed-app .ed-couple-slot h3{margin:3px 0 7px}
.ed-app .ed-couple-slot p{margin:6px 0 12px}
.ed-app .ed-couple-slot .ed-actions{margin-top:auto}
.ed-app .ed-couple-slot :is(button,.ed-btn),.ed-app .ed-client-review :is(button,.ed-btn),.ed-app .ed-client-hero :is(button,.ed-btn){min-height:44px}
.ed-app .ed-pill.is-active,.ed-app .ed-pill.is-accepted,.ed-app .ed-pill.is-approved,.ed-app .ed-client-decision.is-approve{border:1px solid #a9cdb4;background:#e7f3ea;color:#1f5a37}
.ed-app .ed-pill.is-pending,.ed-app .ed-client-decision.is-pending{border:1px solid #dfc27e;background:#fff3d6;color:#6b4700}
.ed-app .ed-pill.is-expired,.ed-app .ed-pill.is-revoked,.ed-app .ed-pill.is-changes_requested,.ed-app .ed-client-decision.is-changes_requested{border:1px solid #dfafb3;background:#fdebec;color:#7a2930}
.ed-app .ed-pill.is-superseded,.ed-app .ed-pill.is-cancelled{border:1px solid #cbd3ce;background:#eef1ef;color:#47574f}
.ed-app .ed-client-review-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:16px;align-items:start;margin-bottom:28px}
.ed-app .ed-client-review-layout>.ed-card{height:100%;margin:0}
.ed-app .ed-client-review.is-current{border-color:#aac5b3;background:linear-gradient(145deg,#fff 0%,#f4f8f5 100%);box-shadow:0 10px 26px rgba(34,53,47,.06)}
.ed-app .ed-client-progress{display:grid;gap:12px;margin:16px 0;padding:15px;border:1px solid #d5e1d8;border-radius:12px;background:#f8faf8}
.ed-app .ed-client-progress>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ed-app .ed-client-progress>div strong{font-size:22px;color:#244f3a}
.ed-app .ed-client-progress>div span{color:var(--ed-muted);font-size:13px}
.ed-app .ed-client-progress progress{width:100%;height:12px;accent-color:var(--ed-green)}
.ed-app .ed-client-progress ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.ed-app .ed-client-progress li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:7px;border-top:1px solid #e0e7e2}
.ed-app .ed-client-decision{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border:1px solid #cbd3ce;border-radius:999px;background:#eef1ef;color:#47574f;font-size:12px;line-height:1.2;white-space:nowrap}
.ed-app .ed-client-frozen{border-color:#d7dfd9}
.ed-app .ed-client-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 18px}
.ed-app .ed-client-facts>div{min-width:0;padding:11px 12px;border:1px solid #dde5df;border-radius:9px;background:#f8faf8}
.ed-app .ed-client-facts dt{color:var(--ed-muted);font-size:11px;font-weight:750;letter-spacing:.045em;text-transform:uppercase}
.ed-app .ed-client-facts dd{margin:4px 0 0;font-weight:650;overflow-wrap:anywhere}
.ed-app .ed-client-change-list{display:grid;gap:6px;margin:9px 0 0;padding-left:21px}
.ed-app .ed-client-change-list li::marker{color:var(--ed-green)}
.ed-app .ed-client-no-review{padding:clamp(20px,3vw,28px);border-style:dashed;background:#fbfcfa}
.ed-app .ed-client-history>summary{min-height:44px;cursor:pointer;color:#29483a;font-weight:750}
.ed-app .ed-client-history>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:18px}
.ed-app .ed-client-history>div>.ed-card{margin:0}
.ed-app .ed-client-ready{border-left-color:#39714f;background:#edf7ef;color:#244f3a}
.ed-app .ed-invite-secret .ed-code{max-height:150px;overflow:auto;word-break:break-all;user-select:all}
.ed-app .ed-main:focus-visible{outline:3px solid #bd8843!important;outline-offset:6px}
.ed-notice{display:flex;align-items:flex-start;gap:14px}
.ed-notice.is-error{background:#91262f}
.ed-notice .ed-notice-close{min-width:36px;min-height:36px;margin:-7px -10px -7px auto;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:transparent;color:#fff;font-size:23px;line-height:1}
dialog.ed-dialog.ed-app :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus-visible{outline:3px solid #bd8843!important;outline-offset:2px!important;box-shadow:0 0 0 1px #fff!important}

/* Use the actual WordPress/Salient column width, not only the viewport. */
@container ed-portal (max-width:760px){
  .ed-app .ed-layout{grid-template-columns:1fr;gap:20px}
  .ed-app .ed-side nav{display:flex;overflow-x:auto;padding-bottom:7px}
  .ed-app .ed-side nav button{width:auto;flex:0 0 auto}
}
@container ed-main (max-width:860px){
  .ed-app .ed-client-review-layout,.ed-app .ed-client-history>div{grid-template-columns:1fr}
}
@container ed-main (max-width:660px){
  .ed-app .ed-client-hero,.ed-app .ed-couple-slots{grid-template-columns:1fr}
  .ed-app .ed-client-hero>.ed-actions{justify-content:stretch}
  .ed-app .ed-client-hero :is(button,.ed-btn),.ed-app .ed-couple-slot .ed-actions :is(button,.ed-btn){width:100%;margin-right:0}
  .ed-app .ed-client-facts{grid-template-columns:1fr}
  .ed-app .ed-client-progress>div,.ed-app .ed-client-progress li{align-items:flex-start;flex-direction:column}
  .ed-app .ed-pill,.ed-app .ed-client-decision{white-space:normal}
}
@media(forced-colors:active){
  .ed-app .ed-client-hero,.ed-app .ed-couple-slot,.ed-app .ed-client-review,.ed-app .ed-client-frozen,.ed-app .ed-client-no-review{border-color:CanvasText}
  .ed-app .ed-pill,.ed-app .ed-client-decision{border:1px solid currentColor}
  .ed-app :is(button,a,input,select,textarea,summary):focus-visible{outline-color:Highlight!important}
}
