/* Emergency data is a separate private surface; the collectible dimensions stay fixed. */
.emergency-root{margin-block:24px;min-width:0;--emergency-ink:#f5f7ef;--emergency-muted:#c3d0c8;--emergency-line:#71897a}
.emergency-root .emergency-panel{margin:0;border:1px solid var(--emergency-line);border-radius:var(--bdr-radius-panel,12px);background:#17221e;color:var(--emergency-ink);overflow:hidden}
.emergency-panel>summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:16px 20px;cursor:pointer;list-style:none;font-weight:750}
.emergency-panel>summary::-webkit-details-marker{display:none}
.emergency-panel>summary>svg{width:24px;height:24px;flex:none;fill:none;stroke:#b7ff45;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.emergency-panel>summary small{display:block;margin-top:4px;color:var(--emergency-muted);font-size:13px;font-weight:400}
.emergency-root .emergency-body{display:grid;gap:20px;padding:0 20px 20px;min-width:0;line-height:1.5}
.emergency-root p{margin:0;font-size:14px}
.emergency-root .emergency-visibility{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px 12px;padding:16px;border:1px solid var(--bdr-line,#435e4d);border-radius:var(--bdr-radius-control,8px);background:var(--bdr-glass-base,#101e1c);min-width:0}
.emergency-visibility>svg{width:22px;height:22px;color:var(--bdr-secondary,#c3d0c8)}
.emergency-visibility>div{display:grid;gap:4px;min-width:0}
.emergency-visibility strong{font-size:15px;line-height:1.4;color:var(--emergency-ink);overflow-wrap:anywhere}
.emergency-visibility p,.emergency-visibility>small{color:var(--emergency-muted);font-size:13px;line-height:1.5}
.emergency-visibility>small,.emergency-visibility>.emergency-view-card{grid-column:1/-1}
.emergency-root .emergency-view-card{justify-content:flex-start;margin-top:4px;background:transparent}
.emergency-root .emergency-view-card>svg{width:20px;height:20px;flex:none;margin-right:8px}
.emergency-root .emergency-view-card:disabled{background:transparent;color:var(--bdr-disabled-ink,#c3d0c8);border-color:var(--bdr-line,#435e4d)}
.emergency-root form{display:grid;gap:20px;min-width:0}
.emergency-root .emergency-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.emergency-root .emergency-field{display:grid;gap:8px;min-width:0;color:var(--emergency-ink);font-size:14px;font-weight:650}
.emergency-root .emergency-field :is(input,select){width:100%;min-width:0;height:48px;box-sizing:border-box;padding:11px 14px;border:1px solid #82917c;border-radius:var(--bdr-radius-control,8px);background:#f7f9f2;color:#17241b;font:500 16px/1.4 var(--body,system-ui,sans-serif);caret-color:#17241b}
.emergency-root .emergency-field select{appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317241b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px}
.emergency-root input::placeholder{color:#526358;opacity:1}
.emergency-root .emergency-muted{color:var(--emergency-muted);font-weight:400}
.emergency-root .emergency-error{color:#ffd39c;font-weight:500}
.emergency-root .emergency-error:empty{display:none}
.emergency-root [aria-invalid=true]{border-color:#ffbc82}
.emergency-root .emergency-actions{display:flex;gap:12px;flex-wrap:wrap}
.emergency-root button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:11px 16px;border:1px solid var(--emergency-line);border-radius:var(--bdr-radius-control,8px);background:#25372e;color:var(--emergency-ink);font:650 14px/1.4 var(--body,system-ui,sans-serif);cursor:pointer;transition:background-color 140ms ease,transform 140ms ease}
.emergency-root button.emergency-primary{background:#b7ff45;border-color:#b7ff45;color:#172013}
.emergency-root button:disabled{background:#34483a;color:#c3d0c8;cursor:default}
.emergency-root .emergency-sharing{display:grid;gap:16px;min-width:0;padding-top:24px;border-top:1px solid var(--emergency-line)}
.emergency-root .emergency-sharing h4{margin:0;font:750 18px/1.4 var(--body,system-ui,sans-serif)}
.emergency-root .emergency-consent{display:flex;align-items:flex-start;gap:12px;padding:12px 0;min-height:44px;box-sizing:border-box;font-size:14px;line-height:1.5;cursor:pointer}
.emergency-root .emergency-consent input{flex:none;width:22px;height:22px;margin:0;accent-color:#b7ff45}
.emergency-root .emergency-pending{display:grid;gap:12px;padding:16px;border:1px solid #b99a64;border-radius:var(--bdr-radius-control,8px);background:#302b20;color:#ffe5b7}
.emergency-root :is(button,input,select,summary):focus-visible{outline:2px solid #b7ff45;outline-offset:3px}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card[hidden]{display:none!important}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card{display:grid;gap:5px;min-width:0;margin-block:10px;padding-block:10px;border-block:1px solid var(--athlete-line,#617e40);text-align:left;color:var(--athlete-ink,#172013);font:500 13px/1.35 var(--body,system-ui,sans-serif)}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card :is(span,small,strong){min-width:0;color:inherit}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-heading{font-size:11px;font-weight:750}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-blood{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-blood>svg{width:20px;height:24px;flex:none}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-blood>span{display:grid;gap:3px;flex:1;min-width:0}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-blood strong{font:800 28px/1 var(--body,system-ui,sans-serif);padding:8px;min-width:48px;text-align:center;border:1px solid currentColor;border-radius:6px;font-variant-numeric:tabular-nums}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-contact{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card-phone{font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .emergency-card small{font-size:10px;line-height:1.4}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .street-card-back:has(.emergency-card:not([hidden])){gap:6px;overflow-y:auto;overscroll-behavior:contain}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .street-card-back:has(.emergency-card:not([hidden]))>strong{margin:8px 0;font-size:clamp(18px,3vw,28px)}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .street-card-back:has(.emergency-card:not([hidden]))>.sticker-attributes{display:none}
body.organization-ui.matchday-ui.street-ui .street-athlete-card .street-card-back:has(.emergency-card:not([hidden]))>.street-card-rule{display:none}
body.organization-ui.matchday-ui.street-ui #profileSummaryCard [data-sticker-side-command]{min-height:44px;margin:0 auto;justify-self:center;scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
@media(hover:hover){.emergency-root button:not(:disabled):hover{background:#2d4535;border-color:#b7ff45}.emergency-root button.emergency-primary:not(:disabled):hover{background:#c9ff70;color:#172013}}
.emergency-root button:not(:disabled):active{transform:translateY(1px)}
@media(max-width:560px){.emergency-root .emergency-fields{grid-template-columns:minmax(0,1fr)}.emergency-panel>summary{padding:16px}.emergency-root .emergency-body{padding:0 16px 16px}.emergency-root .emergency-actions>button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.emergency-root button{transition:none}.emergency-root button:not(:disabled):active{transform:none}}
/* App exports never include the live private face, even if a print dialog is opened. */
@media print{.emergency-root,[data-emergency-card]{display:none!important}}
/* The saved back is dark regardless of the collectible's front colour. */
body.organization-ui.matchday-ui.street-ui :is(#appShell,#playerCardModal) .album-sticker[data-sticker-edition="v168"] .street-card-back .emergency-card,
body.organization-ui.matchday-ui.street-ui :is(#appShell,#playerCardModal) .album-sticker[data-sticker-edition="v168"] .street-card-back .emergency-card :is(span,small,strong){color:#f3f5e8}
body.organization-ui.matchday-ui.street-ui :is(#appShell,#playerCardModal) .album-sticker[data-sticker-edition="v168"] .street-card-back:has(.emergency-card:not([hidden])){gap:6px;overflow-y:auto;justify-content:flex-start}
body.organization-ui.matchday-ui.street-ui :is(#appShell,#playerCardModal) .album-sticker[data-sticker-edition="v168"] .street-card-back:has(.emergency-card:not([hidden]))>.sticker-attributes,
body.organization-ui.matchday-ui.street-ui :is(#appShell,#playerCardModal) .album-sticker[data-sticker-edition="v168"] .street-card-back:has(.emergency-card:not([hidden]))>.street-card-rule{display:none}
/* Expand an individual collectible without making the roster's compact rows taller. */
.roster-row>.roster-collectible{grid-column:1/-1;min-width:0;margin:8px 0 0;border:0;border-top:1px solid #71897a;border-radius:0;background:transparent}
.roster-collectible>summary{display:flex;align-items:center;min-height:44px;padding:8px 0;cursor:pointer;color:#d3ecc0;font-weight:650;font-size:14px}
.roster-collectible .roster-collectible-body{display:grid;justify-items:center;gap:16px;padding:16px;min-width:0}
.roster-collectible .roster-collectible-body>.street-athlete-card{width:260px;max-width:100%;aspect-ratio:5/7}
.roster-collectible .roster-collectible-body>small{max-width:340px;color:#c3d0c8;line-height:1.5;text-align:center}
.roster-collectible .roster-collectible-body>[data-sticker-side-command]{min-height:44px;min-width:44px}
.emergency-panel>summary>.emergency-chevron{width:18px;height:18px;margin-left:auto;stroke:#c3d0c8;transition:transform 140ms ease}
.emergency-panel[open]>summary>.emergency-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.emergency-panel>summary>.emergency-chevron{transition:none}}
