.festival-presence-header{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
.festival-presence-header .presence-state{font-size:13px;color:var(--muted)}
.festival-presence-header .presence-state.present{color:var(--green,var(--sand))}
.festival-presence-header .btn{min-height:44px}
body.festival-layout .festival-brandbar{flex-wrap:wrap}
.home-phase-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 16px}
.home-metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;padding:14px;background:var(--bg2);color:var(--text);border:1px solid var(--line);border-radius:12px;cursor:pointer;font:inherit;min-width:0}
.home-metric:hover,.home-metric:focus-visible{border-color:var(--sand)}
.home-metric strong{font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.home-metric small{color:var(--muted);font-size:12px;line-height:1.4}
.home-urgent{display:grid;gap:12px;margin:10px 0 14px}
.home-absence-alerts{border-left:3px solid var(--sand)}
.home-absence-event{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);align-items:center}
.home-absence-event p{margin:4px 0;color:var(--muted);font-size:13px}
.home-alert-actions{display:flex;flex-wrap:wrap;gap:6px}
.modal.sheet.ro-person-card{width:min(980px,96vw)!important;max-height:94dvh!important;overflow-y:auto!important;display:block!important}
.ro-person-card .ro-person-hero{position:static!important;padding:14px!important;gap:12px!important;display:grid!important;grid-template-columns:56px minmax(0,1fr)!important}
.ro-person-card .ro-person-avatar,.ro-person-card .ro-person-avatar .avatar{width:56px!important;height:56px!important}
.ro-person-card .ro-person-identity h3{font-size:22px!important;margin:2px 0!important}
.ro-person-card .ro-person-hero-actions,.ro-person-card .ro-person-pager{grid-column:1/-1;display:flex!important;flex-wrap:wrap;gap:6px!important;margin:0!important}
.ro-person-card .ro-person-quickstats{gap:14px!important;margin-top:6px!important;display:flex!important}
.ro-person-card .ro-person-quickstats span{padding:0!important;background:none!important;flex:0 1 auto!important}
.ro-person-card .ro-person-quickstats b{font-size:15px!important}
.ro-person-card .sheet-body.compact-person-body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px!important;overflow:visible!important;max-height:none!important}
.compact-person-body>*{min-width:0;margin:0!important}
.compact-person-body .dossier-sec{padding:12px!important;border:1px solid var(--line);border-radius:10px}
.compact-person-body h4{font-size:15px!important;margin:0 0 8px!important}
.compact-person-body .person-shifts,.compact-person-body .person-edit-fold,.compact-person-body .sheet-foot,.compact-person-body .festival-person-scoring{grid-column:1/-1}
.compact-person-body .dossier-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.compact-person-body .row{flex-wrap:wrap}
.compact-person-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.compact-person-body dt{font-size:11px;color:var(--muted)}
.compact-person-body dd{margin:2px 0 0;font-size:13px;overflow-wrap:anywhere}
.compact-person-body .person-edit-fold>summary{cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:8px;font-weight:600}
.compact-person-body textarea{min-height:70px!important}
@media(max-width:700px){
 .festival-presence-header{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:7px}
 .home-phase-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .home-metric{padding:11px}.home-metric strong{font-size:21px}.home-metric span{font-size:13px}
 .home-absence-event{align-items:flex-start;flex-direction:column}
 .modal.sheet.ro-person-card{width:100%!important;max-height:96dvh!important}
 .ro-person-card .sheet-body.compact-person-body{grid-template-columns:minmax(0,1fr)!important;gap:8px;padding:8px!important}
 .compact-person-body .dossier-grid{grid-template-columns:minmax(0,1fr)!important}
 .ro-person-card .ro-person-hero-actions .btn{flex:1;min-height:44px!important}
}
.person-shift-list{display:grid;gap:6px}
.person-shift-row{display:grid;grid-template-columns:100px 95px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--line);font-size:13px}
.person-shift-row>div{min-width:0;overflow-wrap:anywhere}
.person-shift-row>div:last-child{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:700px){
 .person-shift-row{grid-template-columns:1fr 1fr;gap:6px}
 .person-shift-row>div:nth-child(3),.person-shift-row>div:nth-child(4){grid-column:1/-1}
 .person-shift-row .btn{min-height:44px!important;white-space:normal}
}

.home-critical-bar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.home-critical-bar .btn{white-space:normal;text-align:left;border-color:var(--accent,#c8ad64);padding:10px 12px}.home-critical-bar strong{font-variant-numeric:tabular-nums}

.compact-person-body .person-summary{grid-column:1/-1}
@media(min-width:701px){.compact-person-body .person-summary dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
