/*  Communication propriétaire, étape 1 : ergonomie Hospitalisation */
.communication-root{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}
.comm-patient-list{padding:12px;position:sticky;top:122px;max-height:calc(100vh - 150px);overflow:hidden;display:flex;flex-direction:column}
.comm-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 10px}
.comm-list-head h2{margin:2px 0 0;font-size:20px}.comm-list-head>span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:20px;background:#eaf2ff;color:#174dbb;font-weight:800}
.comm-search-wrap{margin-bottom:9px}.comm-patient-rows{display:flex;flex-direction:column;gap:7px;overflow:auto;padding-right:2px}
.comm-patient-row{width:100%;border:1px solid #dfe6ef;background:#fff;border-radius:11px;padding:9px;display:grid;grid-template-columns:46px minmax(0,1fr) 10px;gap:9px;align-items:center;text-align:left;color:var(--ink)}
.comm-patient-row:hover{background:#f7faff}.comm-patient-row.active{border-color:#6f9eea;background:#edf4ff;box-shadow:0 0 0 2px rgba(23,77,187,.06)}
.comm-list-photo,.comm-header-photo{display:block;object-fit:cover;background:#eaf2ff;color:#174dbb;font-weight:800;text-align:center}
.comm-list-photo{width:46px;height:46px;border-radius:10px;line-height:46px;font-size:20px}.comm-header-photo{width:76px;height:76px;border-radius:15px;line-height:76px;font-size:30px}
.comm-photo-fallback{display:block}.comm-patient-copy{min-width:0}.comm-patient-copy b,.comm-patient-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comm-patient-copy b{font-size:14px;color:#123d81}.comm-patient-copy small{font-size:10.5px;color:#66758a;margin-top:2px}
.comm-current-dot{width:8px;height:8px;border-radius:50%;background:#2fa56b;justify-self:end}.comm-list-empty{padding:24px 8px;color:var(--muted);text-align:center;font-size:12px}
.comm-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.comm-patient-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.comm-patient-identity{display:flex;align-items:center;gap:13px;min-width:0}.comm-patient-identity>div{min-width:0}
.comm-name-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.comm-name-line h1{margin:0;font-size:25px;color:#102d60}.comm-patient-details,.comm-owner,.comm-email{font-size:12px;color:#617089;margin-top:5px;overflow-wrap:anywhere}.comm-owner{font-weight:700;color:#354762}.comm-email{color:#174dbb}
.comm-access-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.comm-access-chip>span{width:8px;height:8px;border-radius:50%}.comm-access-chip.pending{background:#fff5df;color:#865300}.comm-access-chip.pending>span{background:#e39b19}.comm-access-chip.warning{background:#fff0f1;color:#a5253a}.comm-access-chip.warning>span{background:#d64b5e}
.comm-access-actions{display:flex;flex-direction:column;align-items:flex-end;gap:5px;max-width:310px}.comm-access-actions .primary{display:inline-flex;align-items:center;gap:7px}.comm-access-actions small{font-size:10px;color:#7b8798;text-align:right}
.comm-btn-icon,.comm-action-icon,.comm-compose-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.comm-btn-icon svg,.comm-action-icon svg{width:18px;height:18px}.comm-compose-icon svg{width:22px;height:22px}
.comm-call-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 13px;border:1px solid #dfe6ef;background:#f7f9fc;border-radius:11px}.comm-call-icon{font-size:19px;color:#426187}.comm-call-strip b,.comm-call-strip small{display:block}.comm-call-strip b{font-size:12px}.comm-call-strip small{font-size:10.5px;color:#738096;margin-top:2px}.comm-call-state{font-size:10.5px;padding:5px 8px;border-radius:999px;background:#eef1f5;color:#637087;font-weight:700}
.comm-feed{min-height:320px;display:flex;flex-direction:column}.comm-feed-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.comm-feed-head h2{margin:3px 0 0;font-size:19px}.comm-feed-count{font-size:11px;color:#62718a;background:#f1f5fa;border-radius:999px;padding:6px 9px}
.comm-feed-empty{flex:1;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#758298;padding:24px}.comm-feed-empty b{color:#40516a;margin-top:10px}.comm-feed-empty span{font-size:12px;max-width:520px;margin-top:5px}.comm-feed-empty-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:#174dbb}.comm-feed-empty-icon svg{width:27px;height:27px}
.comm-compose{padding:12px 14px}.comm-compose-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.comm-compose-title small{color:#7a8798}
.comm-compose-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.comm-compose-btn{min-height:52px;border-radius:10px;border:1px solid #bfd2ec;background:#f6faff;color:#174dbb;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}.comm-compose-btn:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(30,64,120,.08)}.comm-video{background:#f2f4ff;color:#4f57bc;border-color:#d5d7f2}.comm-voice{background:#f8efff;color:#8b3fc0;border-color:#e5cff3}.comm-text{background:#eff9f3;color:#267f59;border-color:#c9e8d7}.comm-retention-note{text-align:center;color:#7b8798;font-size:10.5px;margin-top:9px}
.comm-empty-main{min-height:420px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#708096}.comm-empty-main h2{margin:12px 0 5px;color:#344760}.comm-empty-main p{margin:0;max-width:480px}.comm-empty-icon{width:62px;height:62px;border-radius:50%;background:#eaf2ff;color:#174dbb;display:grid;place-items:center}.comm-empty-icon svg{width:31px;height:31px}
.communication-hospital-btn,.is-communication-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.hospital-actions .communication-hospital-btn{padding-inline:10px}
@media(max-width:1050px){
  .communication-root{grid-template-columns:220px minmax(0,1fr)}
  .comm-patient-header{align-items:flex-start}.comm-access-actions{max-width:250px}
}
@media(max-width:900px){
  .communication-root{grid-template-columns:1fr}
  .comm-patient-list{position:static;max-height:none;padding:10px}
  .comm-list-head{padding-bottom:6px}.comm-list-head h2{font-size:17px}
  .comm-patient-rows{display:flex;flex-direction:row;overflow-x:auto;gap:8px;padding:2px 1px 5px}
  .comm-patient-row{flex:0 0 190px;grid-template-columns:42px minmax(0,1fr) 8px;padding:7px}.comm-list-photo{width:42px;height:42px;line-height:42px}
  .comm-patient-copy small:last-of-type{display:none}
  .comm-patient-header{gap:10px}.comm-header-photo{width:64px;height:64px;line-height:64px}
  .comm-name-line h1{font-size:21px}
}
@media(max-width:700px){
  .comm-search-wrap{display:none}
  .comm-patient-list{margin:0 -2px;padding:8px}
  .comm-patient-row{flex-basis:150px;grid-template-columns:38px minmax(0,1fr);gap:7px}.comm-patient-row .comm-current-dot{display:none}.comm-list-photo{width:38px;height:38px;line-height:38px;border-radius:8px}.comm-patient-copy b{font-size:12.5px}.comm-patient-copy small{font-size:9.5px}
  .comm-patient-header{padding:12px;display:block}.comm-patient-identity{align-items:flex-start}.comm-header-photo{width:58px;height:58px;line-height:58px;border-radius:12px}.comm-name-line{gap:6px}.comm-name-line h1{font-size:20px}.comm-access-chip{padding:4px 7px;font-size:9.5px}.comm-patient-details,.comm-owner,.comm-email{font-size:11px;margin-top:3px}
  .comm-access-actions{max-width:none;align-items:stretch;margin-top:10px}.comm-access-actions .primary{justify-content:center;min-height:44px}.comm-access-actions small{text-align:center}
  .comm-call-strip{grid-template-columns:auto 1fr;padding:9px}.comm-call-state{grid-column:2;justify-self:start}.comm-feed{min-height:280px;padding:12px}.comm-feed-head h2{font-size:16px}.comm-feed-count{display:none}.comm-feed-empty{min-height:185px;padding:16px 8px}
  .comm-compose{position:sticky;bottom:6px;z-index:5;padding:9px;background:rgba(255,255,255,.97);box-shadow:0 -4px 18px rgba(30,55,90,.08)}.comm-compose-title{display:none}.comm-compose-actions{gap:6px}.comm-compose-btn{min-height:54px;flex-direction:column;gap:2px;font-size:10px;padding:6px 3px}.comm-compose-icon svg{width:21px;height:21px}.comm-retention-note{font-size:9px;margin-top:6px}
  .hospital-actions .communication-hospital-btn > span:last-child{display:none}.hospital-actions .communication-hospital-btn{padding:8px 6px}
  .hospital-actions .communication-hospital-btn .comm-action-icon{display:inline-flex!important}
  .is-communication-button > span:last-child{display:none}.is-communication-button{width:42px;padding-inline:8px}.is-communication-button .comm-action-icon{display:inline-flex!important}
}


/*  les cartes d’hospitalisation restent contenues et la carte sélectionne le patient. */
.hospital-card{min-width:0;overflow:hidden}
.hospital-card.hospital-selectable{cursor:pointer}
.hospital-card.hospital-selectable:focus-visible{outline:3px solid rgba(23,77,187,.22);outline-offset:2px}
.hospital-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;min-width:0}
.hospital-actions>button{min-width:0!important;width:100%!important;max-width:100%;padding:9px 8px;white-space:normal;overflow-wrap:anywhere;line-height:1.15}
.hospital-actions .communication-hospital-btn{padding-inline:8px}
.hospital-actions .comm-action-icon{flex:0 0 auto}
.hospital-actions .comm-action-icon svg{display:block}
@media(max-width:1100px){
  .hospital-actions{gap:6px}
  .hospital-actions>button{padding-inline:6px;font-size:12px}
}
@media(max-width:700px){
  .hospital-actions{grid-template-columns:minmax(0,1.35fr) 50px minmax(72px,.8fr);gap:7px}
  .hospital-actions>button{min-height:56px;padding:7px 5px!important;font-size:14px}
  .hospital-actions .communication-hospital-btn{display:flex!important;align-items:center;justify-content:center;width:100%!important}
  .hospital-actions .communication-hospital-btn > span:last-child{display:none!important}
  .hospital-actions .communication-hospital-btn .comm-action-icon{display:inline-flex!important;color:#174dbb}
  .hospital-actions .communication-hospital-btn .comm-action-icon svg{display:block!important;width:23px!important;height:23px!important}
}

/*  puce Communication lisible dans le bloc patient. */
@media(max-width:700px){#is-root .is-patient-quick-actions .is-communication-button{width:auto!important;padding:7px 10px!important}#is-root .is-patient-quick-actions .is-communication-button>span:last-child{display:inline!important}}

/*  Web/mobile & Electron — Communication V2 + portail propriétaire */
.comm-access-chip.success{background:#eaf8f1;color:#1d754d}.comm-access-chip.success>span{background:#2fa56b}
.comm-access-chip.muted{background:#eef1f5;color:#667085}.comm-access-chip.muted>span{background:#8b96a7}
.comm-call-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.comm-call-controls .outline{padding:7px 10px;font-size:11px}
.comm-feed-tools{display:flex;align-items:center;gap:6px}.comm-refresh{width:34px;height:34px;padding:6px;display:grid;place-items:center}.comm-refresh svg{width:18px;height:18px}
.comm-boundary-note{margin:10px 0 2px;padding:8px 10px;border-radius:9px;background:#f7f9fc;border:1px solid #e2e7ee;color:#617089;font-size:10.5px}
.comm-feed-items{display:flex;flex-direction:column;gap:10px;padding-top:10px}.comm-feed-item{border:1px solid #dfe6ef;border-radius:12px;background:#fff;padding:11px 12px;box-shadow:0 2px 7px rgba(29,54,88,.035)}
.comm-feed-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.comm-feed-item-head>div:first-child b,.comm-feed-item-head>div:first-child span{display:block}.comm-feed-item-head b{font-size:12px;color:#21436f}.comm-feed-item-head span{font-size:10px;color:#7b8798;margin-top:2px}.comm-feed-text{font-size:13px;line-height:1.45;color:#26374e;overflow-wrap:anywhere}
.comm-item-actions{display:flex;align-items:center;gap:5px}.comm-read-chip{font-size:9.5px;font-weight:800;padding:4px 7px;border-radius:999px}.comm-read-chip.unread{background:#eef1f5;color:#687489}.comm-read-chip.read{background:#eaf8f1;color:#267653}.comm-delete{width:30px;height:30px;padding:5px;display:grid;place-items:center;color:#9a4150}.comm-delete svg{width:16px!important;height:16px!important}
.comm-server-warning{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#7a5660;padding:22px}.comm-server-warning b{color:#8d2f43}.comm-server-warning span{max-width:540px;font-size:12px}.comm-server-warning button{margin-top:5px}
.comm-text-dialog textarea{width:100%;resize:vertical;min-height:125px}.comm-text-dialog #commTextError{min-height:18px;color:#a3293d;font-size:12px;margin-top:6px}
@media(max-width:700px){.comm-call-controls{grid-column:2;justify-content:flex-start}.comm-call-controls .comm-call-state{grid-column:auto}.comm-call-strip{align-items:start}.comm-feed-item{padding:10px}.comm-feed-item-head{gap:6px}.comm-feed-text{font-size:12.5px}.comm-boundary-note{font-size:9.5px}.comm-refresh{width:32px;height:32px}}

/* vNext — fiche interactive : validation rapide de l'appel vétérinaire. */
#is-root .is-vet-call-button{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border-radius:999px;border:1px solid #e2a3ab;background:#fff0f2;color:#bb2940;font-size:19px;font-weight:900;display:inline-grid;place-items:center;line-height:1;box-shadow:none;touch-action:manipulation}
#is-root .is-vet-call-button:hover{background:#ffe5e9;border-color:#d87986}
#is-root .is-vet-call-button.done{background:#e9f8f0;border-color:#9fd1b8;color:#238058}
#is-root .is-vet-call-button.saving{opacity:.58;cursor:wait}
#is-root .is-vet-call-button:disabled{opacity:.45;cursor:not-allowed}
#is-root .is-patient-quick-actions{gap:7px!important}
@media(max-width:850px){#is-root .is-patient-quick-actions{gap:6px!important}}
@media(max-width:850px){#is-root .is-patient-actions .is-patient-quick-actions{grid-column:2!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important}#is-root .is-patient-quick-actions .is-communication-button{grid-column:auto!important;justify-self:auto!important}}
@media(max-width:560px){#is-root .is-vet-call-button{width:36px;height:36px;min-width:36px;min-height:36px;font-size:18px}}

/* Service en charge et ordre mobile : service, alerte, téléphone. */
#is-root .service-badge,.is-service-choice .service-badge,.hospital-service-badge{width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:50%;border:1px solid rgba(0,0,0,.24);display:inline-grid;place-items:center;color:#000;font-size:15px;font-weight:950;line-height:1;box-shadow:0 1px 2px rgba(20,35,55,.12);touch-action:manipulation;user-select:none;-webkit-user-select:none}
#is-root .service-badge.service-unknown,.is-service-choice .service-badge.service-unknown,.hospital-service-badge.service-unknown{background:#A4B0AD}
#is-root .service-badge.service-surgery,.is-service-choice .service-badge.service-surgery,.hospital-service-badge.service-surgery{background:#F50213}
#is-root .service-badge.service-hospital,.is-service-choice .service-badge.service-hospital,.hospital-service-badge.service-hospital{background:#025BF5}
#is-root .service-badge.service-medicine,.is-service-choice .service-badge.service-medicine,.hospital-service-badge.service-medicine{background:#38A687}
#is-root .service-badge.service-emergency,.is-service-choice .service-badge.service-emergency,.hospital-service-badge.service-emergency{background:#F2A00A}
#is-root button.service-badge,button.hospital-service-badge{cursor:pointer}
#is-root button.service-badge.armed,button.hospital-service-badge.armed{outline:2px solid #3486bb;outline-offset:2px}
.is-service-choice-grid{display:grid;grid-template-columns:repeat(5,minmax(88px,1fr));gap:10px;margin:12px 0}
.is-service-choice{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:94px;padding:10px!important;margin:0!important;border:1px solid #cad8e7;border-radius:12px;background:#fff;cursor:pointer;text-align:center}
.is-service-choice input{position:absolute;opacity:0;pointer-events:none}
.is-service-choice:has(input:checked){border-color:#174dbb;box-shadow:0 0 0 2px #174dbb;background:#f3f7ff}
.is-service-choice b{font-size:12px;color:#24394e}
@media(max-width:850px){
 #is-root .is-patient-actions{grid-column:1 / -1!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;justify-content:stretch!important;gap:6px 8px!important;width:100%!important;min-width:0!important;margin-top:2px!important}
 #is-root .is-patient-status-row{grid-column:1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:nowrap!important;min-width:0!important;margin:0!important;position:static!important;inset:auto!important;pointer-events:auto!important}
 #is-root .is-patient-quick-actions{grid-column:2!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:wrap!important;min-width:0!important;margin:0!important;position:static!important}
 #is-root .is-patient-status-row .service-badge{order:1;flex:0 0 36px}
 #is-root .is-patient-status-row .treatment-alert{order:2;display:inline-flex!important;visibility:visible!important;opacity:1!important;position:static!important;margin:0!important;flex:0 0 auto!important}
 #is-root .is-patient-quick-actions .is-vet-call-button{order:1;display:inline-grid!important;visibility:visible!important;opacity:1!important}
 #is-root .is-patient-quick-actions .is-communication-button{order:2;grid-column:auto!important;justify-self:auto!important}
 #is-root .is-patient-quick-actions .is-operator-chip{order:3;flex:1 0 100%;justify-self:start;width:max-content;max-width:100%}
}
@media(max-width:600px){.is-service-choice-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:360px){#is-root .is-patient-quick-actions .is-communication-button{width:36px!important;height:36px!important;min-width:36px!important;padding:6px!important}#is-root .is-patient-quick-actions .is-communication-button>span:last-child{display:none!important}}

/*  accès propriétaire sécurisé */
.comm-access-dialog{display:grid;gap:14px;min-width:min(640px,88vw)}
.comm-access-dialog label{display:grid;gap:6px;font-weight:800;color:#1c3157;font-size:12px;letter-spacing:.02em}
.comm-access-dialog input{width:100%;box-sizing:border-box;border:1px solid #ccd7e7;border-radius:10px;padding:11px 12px;background:#fff;font:inherit;color:#132445}
.comm-access-security{display:grid;gap:4px;padding:12px 14px;border-radius:12px;background:#f4f7fb;border:1px solid #dfe7f2;color:#42516c}
.comm-access-security b{color:#1b3158}
.comm-access-security span{font-size:12px;line-height:1.45}
.comm-generated-link{display:grid;gap:8px;padding:12px;border:1px solid #cfe1d7;background:#f4fbf7;border-radius:12px}
.comm-generated-link input{font-size:12px}
.comm-generated-link small{color:#64748b;line-height:1.35}
.comm-access-toolbar{justify-content:flex-end;flex-wrap:wrap}
#commAccessError{min-height:18px;color:#a32929;font-size:12px;font-weight:700}
@media(max-width:700px){.comm-access-dialog{min-width:0}.comm-access-toolbar{display:grid;grid-template-columns:1fr}.comm-access-toolbar button{width:100%}}

/*  médias Communication : photo, vidéo courte, vocal */
.comm-media-body{margin-top:6px}.comm-photo-open{display:block;width:min(520px,100%);padding:0;border:0;background:transparent;border-radius:14px;overflow:hidden;cursor:zoom-in}.comm-media-photo{display:block;width:100%;max-height:430px;object-fit:cover;border-radius:14px;border:1px solid #dfe6ef;background:#f3f6f9}.comm-media-video{display:block;width:min(620px,100%);max-height:430px;border-radius:14px;background:#0f172a;border:1px solid #dfe6ef}.comm-media-audio{width:min(520px,100%);margin-top:2px}.comm-media-caption{margin-top:9px}.comm-media-expired{display:flex;align-items:center;gap:8px;padding:12px 13px;border:1px dashed #cfd8e6;background:#f7f9fc;border-radius:12px;color:#69778b}.comm-media-expired b{font-size:12px;color:#3d4f69}.comm-media-expired span{font-size:11px}.comm-media-dialog{display:grid;gap:13px;min-width:min(640px,88vw)}.comm-media-dialog label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#1c3157}.comm-media-dialog textarea{width:100%;resize:vertical;min-height:82px}.comm-file-picker input{display:block;width:100%;margin-top:4px}.comm-media-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.comm-media-source-actions button{width:100%;min-height:48px}.comm-media-source-help{font-size:11px;color:#66758a;text-align:center;margin-top:-4px}.comm-media-preview{min-height:42px;display:grid;gap:7px;align-items:start}.comm-media-preview small{color:#69778b}.comm-preview-photo,.comm-preview-video{display:block;width:min(460px,100%);max-height:320px;object-fit:contain;border-radius:12px;border:1px solid #dfe6ef;background:#f5f7fa}.comm-preview-audio{width:min(460px,100%)}.comm-media-limits{font-size:11px;color:#66758a;background:#f7f9fc;border:1px solid #e1e7ef;border-radius:10px;padding:8px 10px}.comm-media-dialog #commMediaError{min-height:18px;color:#a3293d;font-size:12px;font-weight:700}.comm-recorder{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.comm-recorder #commRecordTimer{font-variant-numeric:tabular-nums;font-weight:800;color:#43536c}.comm-recorder button{min-width:105px}
@media(max-width:700px){.comm-media-dialog{min-width:0}.comm-media-source-actions{grid-template-columns:1fr 1fr;gap:8px}.comm-media-source-actions button{min-height:52px;padding:10px 8px;font-size:12px}.comm-photo-open,.comm-media-video,.comm-media-audio{width:100%}.comm-media-photo,.comm-media-video{max-height:310px}.comm-recorder{display:grid;grid-template-columns:1fr 1fr}.comm-recorder #commRecordTimer{grid-column:1/-1;text-align:center}.comm-media-dialog .toolbar{display:grid;grid-template-columns:1fr 1fr}.comm-media-dialog .toolbar button{width:100%}}

/*  gestion complète de l'accès propriétaire */
.comm-access-chip.invited{background:#eaf3ff;color:#1e5fa8}.comm-access-chip.invited>span{background:#438bd4}
.comm-access-status-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dfe7f2;background:#fbfcfe;border-radius:12px}.comm-access-status-card small{color:#64748b;text-align:right;line-height:1.35}
.comm-access-history{border:1px solid #e0e7f0;border-radius:12px;background:#fafbfd;padding:0 12px}.comm-access-history summary{cursor:pointer;padding:10px 0;font-weight:800;color:#334b70}.comm-access-history>div{border-top:1px solid #e6ebf2;padding:4px 0 8px}.comm-access-history-row{display:flex;justify-content:space-between;gap:14px;padding:7px 0}.comm-access-history-row span{font-size:12px;color:#243a5c}.comm-access-history-row small{font-size:10px;color:#7b8798;text-align:right}
@media(max-width:700px){.comm-access-status-card{display:grid}.comm-access-status-card small{text-align:left}.comm-access-history-row{display:grid;gap:2px}.comm-access-history-row small{text-align:left}}

/*  lien propriétaire persistant / multi-appareils */
.comm-generate-choices{margin-top:10px;padding:12px;border:1px solid var(--line,#dbe3ef);border-radius:12px;background:rgba(248,250,252,.85)}
.comm-generate-choices>small{display:block;margin:4px 0 10px}.comm-generate-choices .toolbar{justify-content:flex-start;flex-wrap:wrap}
.comm-generated-link input[readonly]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}

.comm-mail-last-sent{display:block;margin-top:7px;color:#55706f;font-size:12px}
