/* Long Pause Media EmergeCE claim flow · 0.15.0 */
.emergece-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(540px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f4f9ff;
  background: #071321;
  box-shadow: -24px 0 80px rgba(0,0,0,.5);
}
.emergece-dialog::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(7px); }
.emergece-sheet { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; }
.emergece-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid rgba(150,204,242,.13); }
.emergece-head > div { display:grid; gap:4px; min-width:0; }
.emergece-head span { color:#67dcff; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.emergece-head strong { font-size:21px; }
.emergece-close { width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(151,205,243,.16); border-radius:13px; color:#fff; background:rgba(255,255,255,.04); }
.emergece-close svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; }
.emergece-body { min-height:0; overflow:auto; padding:24px 22px calc(28px + env(safe-area-inset-bottom)); }
.emergece-state { display:grid; gap:18px; }
.emergece-state h2 { margin:0; font-size:28px; letter-spacing:-.035em; }
.emergece-state p { margin:0; color:rgba(220,235,248,.68); line-height:1.6; }
.emergece-status-card { display:grid; gap:10px; padding:18px; border:1px solid rgba(102,220,255,.18); border-radius:18px; background:linear-gradient(145deg,rgba(28,105,148,.2),rgba(18,31,50,.65)); }
.emergece-spinner { width:34px; height:34px; border:3px solid rgba(104,220,255,.18); border-top-color:#6de2ff; border-radius:50%; animation:emergeSpin .8s linear infinite; }
@keyframes emergeSpin { to { transform:rotate(360deg); } }
.emergece-form { display:grid; gap:15px; }
.emergece-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.emergece-form .field { margin:0; }
.emergece-form label { color:#dcebf7; font-size:12px; }
.emergece-form input,.emergece-form select,.emergece-form textarea { width:100%; color:#fff; background:#040d18; border-color:rgba(143,196,235,.22); }
.emergece-form textarea { min-height:110px; resize:vertical; }
.emergece-actions { display:flex; flex-wrap:wrap; gap:10px; }
.emergece-actions .btn { flex:1 1 180px; }
.emergece-certificate { display:grid; gap:16px; padding:20px; border:1px solid rgba(63,213,152,.25); border-radius:18px; background:rgba(32,139,94,.12); }
.emergece-certificate-mark { width:54px; height:54px; display:grid; place-items:center; border-radius:50%; color:#071321; background:#74e6b5; font-size:26px; font-weight:900; }
.emergece-error { padding:14px 16px; border:1px solid rgba(244,102,125,.3); border-radius:14px; color:#ffbac4; background:rgba(143,37,56,.13); }
.account-ce-stack { display:grid; gap:22px; }
.account-ce-details { padding:14px 0 0; border-top:1px solid var(--line); }
.account-ce-details summary { cursor:pointer; font-weight:800; }
.account-ce-details[open] summary { margin-bottom:16px; }
.account-ce-claim-list { display:grid; gap:9px; }
.account-ce-claim-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:14px; }
.account-ce-claim-row > div { display:grid; gap:3px; min-width:0; }
.account-ce-claim-row > div span { color:var(--ink-muted); font-size:12px; }
.emergece-test-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; }
.emergece-test-row .field { margin:0; }
.emergece-admin-claims { display:grid; gap:7px; margin-top:12px; }
.emergece-admin-claims > div { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.emergece-admin-claims > div span:not(.badge) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-muted); font-size:12px; }
@media (max-width:760px) {
  .emergece-dialog { inset:auto 0 0; width:100vw; height:min(92dvh,820px); border-radius:24px 24px 0 0; box-shadow:0 -20px 70px rgba(0,0,0,.55); }
  .emergece-head { padding:18px 18px 14px; }
  .emergece-body { padding:20px 18px calc(24px + env(safe-area-inset-bottom)); }
  .emergece-form-grid,.account-ce-name-grid { grid-template-columns:1fr !important; }
  .account-ce-claim-row { grid-template-columns:minmax(0,1fr) auto; }
  .account-ce-claim-row .btn { grid-column:1 / -1; width:100%; }
  .emergece-test-row { grid-template-columns:1fr; }
}
