* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.pending-match-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  border: none;
  background: #fff7e6;
  color: #111;
  border-radius: 0;
  padding: 7px 18px;
  margin: 0 auto;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.pending-match-banner[hidden] { display: none; }
.pending-match-banner-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8a327;
  animation: pending-match-pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pending-match-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.pending-match-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12.5px;
  font-weight: 700;
}
.pending-match-banner-sub { font-size: 11px; font-weight: 500; color: #8a6d1f; }
.pending-match-banner svg { flex-shrink: 0; color: #8a6d1f; }

body {
  background: #fff;
  color: #1d1d1f;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    SF Pro Text,
    Helvetica Neue,
    Arial,
    sans-serif;
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  body {
    background: #000;
  }
}

.panel-root {
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  display: block;
  isolation: isolate;
  margin: 0 auto;
  max-width: 430px;
  min-height: 100svh;
  padding: 16px 18px 28px;
  position: relative;
  width: 100%;
}

.panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.panel-close-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  padding: 4px;
  place-items: center;
}

.panel-close-button svg {
  fill: none;
  height: 24px;
  stroke: #1d1d1f;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 24px;
}

.panel-user {
  border-bottom: 1px solid #ececef;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.panel-user-name {
  font-size: 19px;
  font-weight: 700;
}

.panel-user-email {
  color: #8a8a8e;
  font-size: 15px;
}

.panel-user-held-balance {
  color: #8a8a8e;
  font-size: 13px;
}

.panel-menu {
  display: flex;
  flex-direction: column;
}

.panel-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  justify-content: space-between;
  padding: 12px 0;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.panel-menu-item-chevron {
  fill: none;
  height: 18px;
  stroke: #8a8a8e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.2s ease;
  width: 18px;
}

.panel-menu-item-chevron-open {
  transform: rotate(180deg);
}

.panel-account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 20px;
}

.panel-account-form[hidden] {
  display: none;
}

.panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.panel-field-label {
  color: #8a8a8e;
  font-size: 13px;
  font-weight: 500;
}

.panel-field-input {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 0;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  width: 100%;
}

.panel-field-input:focus {
  border-color: #1d1d1f;
  outline: none;
}

.panel-field-input-group {
  position: relative;
}

.panel-field-input-group .panel-field-input {
  padding-right: 44px;
}

.panel-field-toggle-visibility {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  height: 24px;
  padding: 0;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}

.panel-field-toggle-visibility svg {
  fill: none;
  height: 20px;
  stroke: #8a8a8e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 20px;
}

.panel-eye-icon-open {
  display: none;
}

.panel-field-toggle-visibility[aria-pressed="true"] .panel-eye-icon-closed {
  display: none;
}

.panel-field-toggle-visibility[aria-pressed="true"] .panel-eye-icon-open {
  display: block;
}

.panel-save-button {
  background: #1d1d1f;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 46px;
  transition: opacity 0.15s ease;
  width: 100%;
}

.panel-save-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.panel-form-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.panel-form-actions .panel-save-button {
  margin-top: 0;
}

.panel-delete-button {
  background: transparent;
  border: 0.75px solid #e5342e;
  border-radius: 999px;
  color: #e5342e;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  min-height: 46px;
  transition: opacity 0.15s ease;
  width: 100%;
}

.panel-delete-button:disabled {
  background: transparent;
  border-color: #b3b3b5;
  color: #b3b3b5;
  cursor: not-allowed;
  opacity: 1;
}

.panel-delete-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.44);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 100;
}

.panel-delete-modal[hidden] {
  display: none;
}

.panel-delete-dialog {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  padding: 24px 20px 20px;
  width: 100%;
}

.panel-delete-dialog h2 {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.panel-delete-dialog p {
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 22px;
}

.panel-delete-dialog-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.panel-delete-dialog-actions button {
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
}

.panel-delete-dialog-cancel {
  background: transparent;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
}

.panel-delete-dialog-confirm {
  background: #e5342e;
  border: 1px solid #e5342e;
  color: #fff;
}

.panel-exchange-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 20px;
}

.panel-exchange-content[hidden] {
  display: none;
}

.panel-exchange-card-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-exchange-card-subtitle {
  color: #8a8a8e;
  font-size: 13px;
  font-weight: 500;
}

.panel-exchange-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.panel-field-textarea {
  min-height: 80px;
  resize: vertical;
}

.panel-logout {
  color: #e5342e;
}
