.cadre-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);margin:auto;border:1px solid var(--line,#dbe1ed);border-radius:24px;padding:22px;background:var(--surface,#fff);color:var(--ink,#17213c);overflow:auto;overscroll-behavior:contain}
.cadre-dialog::backdrop{background:rgba(8,20,44,.48)}
.cadre-dialog-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.cadre-dialog-head h2{margin:0;font-size:1.3rem}.cadre-dialog-head button{flex:none;min-height:44px;min-width:44px;padding:8px;border-radius:50%}
.cadre-dialog form,.cadre-request-card form{display:grid;gap:14px}.cadre-dialog fieldset,.cadre-request-card fieldset{border:0;padding:0;margin:0;display:grid;gap:14px;min-width:0}
.cadre-dialog label,.cadre-request-card label{display:grid;gap:6px;font-weight:650}
.cadre-dialog input,.cadre-dialog textarea,.cadre-request-card textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid var(--line,#dbe1ed);border-radius:14px;background:var(--surface,#fff);color:inherit;min-height:46px}
.cadre-dialog textarea,.cadre-request-card textarea{resize:vertical;min-height:120px}.cadre-dialog p{overflow-wrap:anywhere}
.cadre-request-card{padding:20px;border:1px solid var(--line,#dbe1ed);border-radius:20px;background:var(--surface,#fff);margin:14px 0;overflow-wrap:anywhere;min-width:0}
.cadre-request-card h2{font-size:1.15rem;margin:8px 0}.cadre-request-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:var(--muted,#5e6878);font-size:.9rem}
.cadre-request-text{white-space:pre-wrap;overflow-wrap:anywhere}.cadre-request-response{padding:14px;background:var(--surface-alt,#f4f6fc);border-radius:14px;margin:14px 0}
.cadre-request-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.cadre-request-card details{margin-top:14px}.cadre-request-card summary{cursor:pointer;font-weight:700;padding:8px 0}
.cadre-request-status{display:inline-flex;padding:5px 10px;border-radius:999px;background:var(--surface-alt,#edf1fb);font-weight:700;color:var(--ink,#17213c)}
.cadre-request-card.is-selected{outline:2px solid #7fa1e7}.cadre-request-feedback{min-height:1.3em;margin:6px 0}.demo-mode-notice{padding:12px 16px;border-radius:16px;border:1px solid #d7b351;background:var(--surface,#fff);color:var(--ink,#17213c);font-size:.92rem;margin-bottom:16px}
@media(max-width:480px){.cadre-dialog{padding:18px}.cadre-request-card{padding:16px}.cadre-request-actions .btn-outline{white-space:normal}}

/* La consigne reste visible même si aucune échéance n’a été saisie. */
.cadre-requests-urgent{border:2px solid var(--danger,#c51130);border-left-width:6px}
.cadre-requests-urgent h2{color:var(--danger,#c51130)}
.cadre-request-notice{padding:14px;border-radius:14px;border:1px solid var(--danger,#c51130);background:var(--surface-alt,#f4f6fc);line-height:1.5}

/* Un seul bouton natif couvre toute la carte : avatar, texte et espaces libres. */
.student-card{position:relative;isolation:isolate}
.student-card-open{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.student-card-open:focus-visible{outline:3px solid #7fa1e7;outline-offset:2px}
.student-card:has(.student-card-open:hover){border-color:var(--ink,#17213c);box-shadow:0 4px 16px rgba(12,31,64,.08)}
.student-chip-action:focus-visible{outline:3px solid #7fa1e7;outline-offset:2px}
.student-action-person{display:flex;align-items:center;gap:12px;min-width:0}.student-action-person>div{min-width:0}.student-action-person h2{overflow-wrap:anywhere}
.student-action-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:16px;background:var(--surface-alt,#edf1fb);color:var(--ink,#17213c);font-weight:800;overflow:hidden}
.student-action-avatar img{width:100%;height:100%;object-fit:cover}.student-action-person .eyebrow{font-size:.7rem;margin:0 0 5px}.student-action-person p.muted{margin:5px 0 0}
.student-actions{display:grid;gap:10px}.student-action{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:14px;border:1px solid var(--line,#dbe1ed);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#17213c);font:inherit;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box}
.student-action:hover{background:var(--surface-alt,#edf1fb);border-color:var(--ink,#17213c)}.student-action:focus-visible{outline:3px solid #7fa1e7;outline-offset:2px}
.student-action>span:nth-child(2){flex:1;min-width:0}.student-action strong,.student-action small{display:block;overflow-wrap:anywhere}.student-action strong{font-size:.95rem}.student-action small{font-size:.8rem;color:var(--muted,#5e6878);margin-top:4px;line-height:1.4}
.student-action-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:var(--surface-alt,#edf1fb)}.student-action-icon svg{width:22px;height:22px}.student-action-arrow{font-size:1.5rem;color:var(--muted,#5e6878)}
.student-action-roles{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}.student-action-roles span{padding:5px 9px;background:var(--surface-alt,#edf1fb);border-radius:999px;font-size:.8rem}
.student-actions-back{margin:0 0 16px;padding:8px 0;min-height:44px;background:none;border:0;color:var(--muted,#5e6878);font:inherit;cursor:pointer;text-align:left}
.cadre-request-filter{padding:12px 16px;border:1px solid var(--line,#dbe1ed);border-radius:14px;background:var(--surface,#fff);overflow-wrap:anywhere}
@media(max-width:360px){.student-actions-dialog{padding:16px}.student-action{padding:12px;gap:10px}.student-action-person{gap:8px}.student-action-avatar{width:38px;height:38px;flex-basis:38px}.student-action-person h2{font-size:1.1rem}}

/* Les coordonnées et fonctions sont consultées dans la fiche, jamais sur la carte. */
.person-grade{display:block;margin:5px 0 0;font-size:.78rem;line-height:1.35;color:var(--muted,#5e6878)}
.people-grid .person-card{display:flex;align-items:center;gap:14px;min-height:112px}
.people-grid .person-card .avatar{width:48px;height:48px;border-radius:16px}
.person-identity{min-width:0;flex:1}.person-identity h3{margin:0;font-size:1rem;overflow-wrap:anywhere}
.org-chip-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:var(--dark,#001640);color:#fff;font-weight:750;font-size:.65rem}
.org-chip-avatar img{width:100%;height:100%;object-fit:cover}
.org-chip-identity{min-width:0;text-align:left}.org-chip-identity b,.org-chip-identity small{display:block}.org-chip-identity small{margin-top:2px}
.student-chip-action .grade-badge{width:20px;height:20px}.student-chip-action .grade-badge svg{width:20px;height:20px}

.student-chip-action{font-family:inherit;cursor:pointer;min-height:36px;color:inherit}

/* Page de suivi : mêmes droits, présentation distincte des fiches de l'organigramme. */
/* main occupe toute la fenêtre ; le shell centre déjà le contenu par son padding. */
.cadre-requests-page{--content-max:1240px}
.requests-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:10px;color:var(--muted);font-size:.85rem;font-weight:650;text-decoration:none}
.requests-back:hover{color:var(--ink)}
.requests-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.requests-heading>div:first-child{min-width:0}.requests-heading h1{font-size:clamp(1.8rem,3.2vw,2.7rem);line-height:1.12;letter-spacing:-.035em;margin:8px 0 12px;max-width:720px}
.requests-heading .lead{margin:0;max-width:660px;font-size:.98rem;line-height:1.6;color:var(--muted)}
.requests-scope{display:inline-flex;margin:12px 0 0;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);font-size:.73rem;font-weight:650}
.requests-heading-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.requests-heading-actions .btn,.requests-heading-actions .btn-outline{min-height:44px;padding:12px 16px;font-size:.84rem;text-align:center;text-decoration:none;margin:0;border-radius:14px}
.requests-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.requests-workspace,.requests-sidebar{min-width:0}.requests-sidebar{display:grid;gap:16px}
.requests-access,.requests-how{padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.requests-sidebar h2{font-size:1.04rem;line-height:1.4;margin:10px 0 14px}.requests-sidebar p{font-size:.86rem;line-height:1.65;overflow-wrap:anywhere}.requests-access .eyebrow{font-size:.68rem;margin-top:16px}.requests-access p:last-child{margin-bottom:0}
.requests-access-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--surface-hover);color:var(--ink)}.requests-access-icon svg{width:23px;height:23px}
.requests-how ol{list-style:none;counter-reset:steps;margin:0;padding:0;display:grid;gap:20px}.requests-how li{counter-increment:steps;position:relative;padding-left:34px;font-size:.82rem;line-height:1.5}.requests-how li::before{content:counter(steps);position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;font-size:.72rem;font-weight:750;color:var(--muted)}
.requests-how li strong,.requests-how li span{display:block}.requests-how li span{color:var(--muted);margin-top:5px}.requests-how .requests-guidance{border-top:1px solid var(--line);padding-top:16px;margin:22px 0 0;font-size:.77rem;color:var(--muted)}
.cadre-requests-page .cadre-request-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 16px;padding:16px 18px}.cadre-request-filter[hidden]{display:none!important}.cadre-request-filter span,.cadre-request-filter strong{display:block}.cadre-request-filter span{font-size:.72rem;color:var(--muted);margin-bottom:4px}.cadre-request-filter a{font-size:.8rem;color:var(--ink);text-underline-offset:3px}
.requests-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}.requests-stats[hidden]{display:none}.requests-stats button{display:flex;flex-direction:column;gap:10px;align-items:flex-start;min-width:0;padding:16px 14px;border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--muted);font:inherit;cursor:pointer;text-align:left}.requests-stats button span{font-size:.78rem;font-weight:650}.requests-stats strong{font-size:1.7rem;line-height:1;color:var(--ink)}.requests-stats button[aria-pressed=true]{background:var(--ink);color:var(--canvas);border-color:var(--ink)}.requests-stats button[aria-pressed=true] strong{color:inherit}.requests-stats button:focus-visible{outline:3px solid #7fa1e7;outline-offset:2px}
.requests-search{display:grid;gap:8px;font-size:.8rem;font-weight:650;color:var(--muted)}.requests-search input{width:100%;min-height:48px;box-sizing:border-box;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px}
.requests-feedback{color:var(--danger);font-size:.9rem;line-height:1.5}.requests-feedback:empty{display:none}.cadre-requests-page #cadre-requests-count{font-size:.78rem;margin:16px 0 12px}
.cadre-requests-page .cadre-request-card{margin:0 0 16px;padding:24px;border-radius:22px}.cadre-requests-page .cadre-request-card h2{font-size:1.2rem;line-height:1.45;margin:16px 0 20px}.cadre-requests-page .cadre-request-meta{justify-content:space-between;gap:8px;font-size:.72rem}.cadre-requests-page .cadre-request-status{font-size:.73rem;padding:7px 10px;background:var(--surface-hover)}.cadre-request-card.is-overdue{border-color:var(--danger)}.cadre-request-card.is-overdue .cadre-request-status{color:var(--danger);background:var(--surface-alt)}.cadre-request-card.is-closed .cadre-request-status{color:var(--muted);background:var(--surface-alt)}
.requests-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 20px}.requests-people div{min-width:0}.requests-people dt{font-size:.69rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:var(--muted);margin-bottom:7px}.requests-people dd{margin:0;font-size:.88rem;font-weight:700}.requests-people small{display:block;color:var(--muted);font-size:.75rem;font-weight:500;margin-top:5px}
.requests-deadline{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;background:var(--surface-alt);border:1px solid var(--line);padding:12px 14px;border-radius:12px;font-size:.8rem;line-height:1.5;margin:0 0 20px}.requests-deadline span,.requests-deadline small{color:var(--muted)}.requests-deadline small{font-size:.7rem}.is-overdue .requests-deadline strong{color:var(--danger)}
.requests-instructions h3{font-size:.8rem;margin:20px 0 8px}.requests-instructions p{font-size:.9rem;line-height:1.65;margin:0}.requests-closed-date{font-size:.75rem;margin:18px 0 0}.cadre-requests-page .cadre-request-notice{font-size:.83rem;margin:20px 0 0}.cadre-requests-page .cadre-request-card details{border-top:1px solid var(--line);padding-top:12px;margin-top:20px}.cadre-requests-page .cadre-request-card summary{font-size:.85rem;min-height:44px;box-sizing:border-box}.cadre-requests-page .cadre-request-card label{font-size:.83rem}.cadre-requests-page .cadre-request-card form{margin-top:12px}.cadre-requests-page .cadre-request-card .btn-outline{justify-self:start;white-space:normal}
.requests-empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:48px 24px;border:1px dashed var(--line);border-radius:22px;background:var(--surface)}.requests-empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:var(--surface-alt);color:var(--muted);font-size:1.5rem}.requests-empty h2{font-size:1.14rem;margin:6px 0 0}.requests-empty p{max-width:390px;margin:0;color:var(--muted);font-size:.9rem;line-height:1.65}.requests-empty .btn-outline{margin-top:8px;font-size:.83rem;text-decoration:none}
@media(max-width:1000px){.requests-heading{align-items:flex-start;flex-direction:column;gap:16px}.requests-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}}
@media(max-width:760px){.requests-heading{margin-bottom:22px}.requests-layout{display:flex;flex-direction:column;gap:24px}.requests-workspace,.requests-sidebar{width:100%}.requests-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.requests-stats{gap:8px}.requests-stats button{padding:14px 10px}.requests-stats button span{font-size:.75rem}.cadre-requests-page .cadre-request-card{padding:18px}.requests-access,.requests-how{padding:20px}.requests-back{margin-top:-8px}}
@media(max-width:540px){.requests-sidebar{grid-template-columns:1fr}.requests-people{gap:14px}.requests-reference{font-size:.68rem}.requests-heading h1{max-width:340px}.requests-heading-actions{width:100%}.requests-heading-actions>*{flex:1}.requests-empty{padding:32px 18px}.requests-stats button span{font-size:.7rem}}
