/* Shared member/staff/owner personal exit. Reuses the live Hammer glass tokens. */
.hxe {
  --hxe-ink: var(--hw-ink, #f5f6f8);
  --hxe-muted: var(--hw-muted, #bec5ce);
  --hxe-gold: var(--hw-accent, #ffd28a);
  --hxe-edge: var(--hw-edge, rgba(255,255,255,.28));
  --hxe-glass: var(--hw-glass, rgba(32,39,51,.74));
  --hxe-font: var(--hw-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--hxe-ink);
  font-family: var(--hxe-font);
  margin: 0 0 24px;
}
.hxe *, .hxe *::before, .hxe *::after { box-sizing: border-box; }
.hxe .hxe-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--hxe-icon) center / contain no-repeat;
  mask: var(--hxe-icon) center / contain no-repeat;
}
.hxe-icon-exit { --hxe-icon: url('/images/hammer-exit-icons/log-out.svg'); }
.hxe-icon-next { --hxe-icon: url('/images/hammer-exit-icons/arrow-right.svg'); }
.hxe-icon-back { --hxe-icon: url('/images/hammer-exit-icons/arrow-left.svg'); }
.hxe-icon-close { --hxe-icon: url('/images/hammer-exit-icons/x.svg'); }
.hxe-icon-help { --hxe-icon: url('/images/hammer-exit-icons/help-circle.svg'); }
.hxe button {
  font-family: var(--hxe-font) !important;
  text-transform: none;
  letter-spacing: normal;
  -webkit-tap-highlight-color: transparent;
}
.hxe .hxe-launch {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 16px 20px;
  border: 1px solid var(--hxe-edge);
  border-radius: 24px;
  color: var(--hxe-ink);
  background: var(--hxe-glass);
  box-shadow: var(--hw-shadow, inset 0 1px 1px rgba(255,255,255,.32), inset 0 -1px 1px rgba(255,255,255,.12));
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.hxe .hxe-launch:hover { border-color: rgba(255,210,138,.45); }
.hxe-launch-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,210,138,.45);
  border-radius: 50%;
  background: rgba(255,210,138,.08);
  color: var(--hxe-gold);
}
.hxe-launch-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.hxe .hxe-launch-copy strong { font: 600 18px/1.3 var(--hxe-font); color: var(--hxe-gold); }
.hxe-launch-copy > span { font-size: 13px; line-height: 1.45; color: var(--hxe-muted); }
.hxe-launch > .hxe-icon { width: 20px; height: 20px; color: var(--hxe-muted); }
.hxe .hxe-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--hxe-edge);
  border-radius: 27px;
  background: var(--hw-base, #161b24);
  color: var(--hxe-ink);
  font: 400 15px/1.5 var(--hxe-font);
  box-shadow: 0 20px 80px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.2);
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}
.hxe-dialog:not([open]) { display: none; }
.hxe-dialog::backdrop { background: rgba(10,19,32,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hxe-screen { display: flex; flex-direction: column; min-height: min(790px, calc(100dvh - 34px)); padding: 20px 22px 24px; }
.hxe-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.hxe-logo { display: block; width: 158px; height: auto; max-height: 38px; object-fit: contain; }
.hxe .hxe-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--hxe-edge); border-radius: 15px; background: var(--hxe-glass);
  color: var(--hxe-muted); cursor: pointer; box-shadow: inset 0 1px 1px rgba(255,255,255,.18);
}
.hxe-context { display: flex; align-items: stretch; gap: 6px; padding: 4px; margin: 10px 0 0; border: 1px solid var(--hxe-edge); border-radius: 23px; background: var(--hxe-glass); box-shadow: inset 0 1px 1px rgba(255,255,255,.2); }
.hxe-context > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; font-size: 15px; line-height: 1.3; }
.hxe .hxe-context button { border: 0; padding: 8px; background: transparent; color: var(--hxe-muted); cursor: pointer; }
.hxe .hxe-context .hxe-icon { width: 17px; height: 17px; }
.hxe-context > span { border: 1px solid rgba(255,210,138,.45); border-radius: 19px; background: rgba(255,210,138,.1); color: var(--hxe-gold); font-weight: 600; }
.hxe .hxe-screen h2 { font: 600 32px/1.2 var(--hxe-font) !important; letter-spacing: -.035em; color: var(--hxe-ink) !important; text-transform: none; margin: 30px 0 14px; }
.hxe-state { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 0 16px; border-bottom: 1px solid rgba(224,233,247,.14); color: var(--hxe-muted); font-size: 14px; }
.hxe .hxe-state .hxe-icon { width: 23px; height: 23px; }
.hxe-control { display: flex; flex-direction: column; align-items: center; padding: 30px 0 24px; text-align: center; }
.hxe .hxe-circle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  width: min(70vw, 274px); height: min(70vw, 274px); flex: 0 0 auto;
  margin: 0; padding: 24px;
  border: 1px solid rgba(255,210,138,.72); border-radius: 50%;
  background: rgba(255,210,138,.07); color: var(--hxe-gold);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.22), inset 0 -2px 4px rgba(255,255,255,.1), 0 0 0 5px rgba(255,255,255,.035);
  font: 600 26px/1.2 var(--hxe-font); touch-action: none; user-select: none; -webkit-user-select: none;
}
.hxe .hxe-circle > .hxe-icon { width: 62px; height: 62px; }
.hxe .hxe-circle:disabled { opacity: .55 !important; cursor: not-allowed; }
.hxe .hxe-circle:not(:disabled) { cursor: pointer; }
.hxe .hxe-circle.hxe-holding { background: rgba(255,210,138,.2); box-shadow: inset 0 2px 3px rgba(255,255,255,.22), 0 0 0 7px rgba(255,210,138,.15); }
.hxe .hxe-instruction { font: 600 20px/1.3 var(--hxe-font); color: var(--hxe-muted); margin: 24px 0 12px; }
.hxe .hxe-explanation { font: 400 14px/1.6 var(--hxe-font); color: var(--hxe-muted); max-width: 300px; margin: 0; }
.hxe .hxe-refresh { min-height: 44px; margin-top: 12px; padding: 10px 16px; border: 1px solid var(--hxe-edge); border-radius: 16px; color: var(--hxe-gold); background: var(--hxe-glass); font: 500 14px/1.4 var(--hxe-font); cursor: pointer; }
.hxe .hxe-refresh:disabled { opacity: .55; cursor: wait; }
.hxe-help { margin: auto 0 0; padding-top: 20px; text-align: center; color: var(--hxe-muted); font-size: 14px; }
.hxe-help summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--hxe-gold); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.hxe-help summary::-webkit-details-marker { display: none; }
.hxe .hxe-help p { font: 400 14px/1.6 var(--hxe-font); color: var(--hxe-muted); margin: 10px 0 0; }
.hxe :focus-visible { outline: 2px solid var(--hxe-gold) !important; outline-offset: 4px; }
.hxe-noscript { font-size: 14px; color: var(--hxe-muted); }
.hxe-dialog.hxe-fallback { position: fixed; inset: 16px; z-index: 2147483600; }
@media (max-width: 600px) {
  .hxe .hxe-dialog { width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .hxe-screen { min-height: 100vh; min-height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); }
  .hxe .hxe-launch { min-height: 84px; padding: 14px 16px; gap: 12px; }
  .hxe-launch-icon { width: 46px; height: 46px; }
  .hxe .hxe-launch-copy strong { font-size: 17px; }
  .hxe-launch-copy > span { font-size: 12px; }
  .hxe-dialog.hxe-fallback { inset: 0; }
}
@media (prefers-reduced-motion: reduce) { .hxe *, .hxe *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .hxe .hxe-icon { forced-color-adjust: none; background-color: ButtonText; } .hxe .hxe-circle:disabled { opacity: 1 !important; color: GrayText; border-color: GrayText; } }
@media print { .hxe { display: none !important; } }
