.auth-shell {
  display: flex;
  align-items: center;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-actions--logged-in {
  position: relative;
}

.auth-notification-wrap {
  position: relative;
}

.auth-notification {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(104, 195, 255, 0.42);
  background: rgba(8, 14, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(4, 10, 24, 0.35);
  color: rgba(220, 234, 255, 0.82);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.auth-notification:hover,
.auth-notification:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 199, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 46px rgba(4, 10, 24, 0.42);
  color: #fff;
  outline: none;
}

.auth-notification__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-notification__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.auth-notification__count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff6b81, #ff7b7b);
  box-shadow: 0 10px 22px rgba(255, 96, 96, 0.28);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.auth-notification.has-unread {
  border-color: rgba(255, 116, 138, 0.34);
  color: #ffd7de;
}

.auth-notification__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 26, 43, 0.98), rgba(10, 16, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(3, 7, 20, 0.5);
  z-index: 25;
}

.auth-notification__menu[hidden] {
  display: none;
}

.auth-notification__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-notification__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.auth-notification__item:hover,
.auth-notification__item:focus-visible {
  background: rgba(78, 199, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.auth-notification__ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(78, 199, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.18);
  color: #9be8ff;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.auth-notification__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-notification__body strong {
  color: inherit;
  font-size: var(--text-sm);
  line-height: 1.35;
  word-break: break-word;
}

.auth-notification__body small {
  color: rgba(194, 214, 245, 0.72);
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.auth-notification__footer {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #9be8ff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-notification__footer:hover,
.auth-notification__footer:focus-visible {
  background: rgba(78, 199, 255, 0.12);
  color: #fff;
  outline: none;
}

.auth-notification__empty {
  padding: 12px;
  border-radius: 16px;
  color: rgba(194, 214, 245, 0.72);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.auth-notification__empty--compact {
  padding-top: 4px;
}

.auth-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.auth-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 0;
}

.auth-pill > * {
  position: relative;
  z-index: 1;
}

.auth-pill:hover,
.auth-pill:focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible,
.auth-provider:hover,
.auth-provider:focus-visible {
  transform: translateY(-2px);
}

.auth-pill:focus-visible,
.auth-submit:focus-visible,
.auth-provider:focus-visible,
.auth-modal__close:focus-visible,
.auth-modal__link:focus-visible,
.auth-field input:focus-visible,
.auth-consent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 199, 255, 0.18);
}

.auth-pill--secondary {
  border-color: rgba(109, 228, 255, 0.45);
  background: rgba(78, 199, 255, 0.12);
  color: #d9f6ff;
}

.auth-pill--secondary::before {
  background: rgba(78, 199, 255, 0.14);
}

.auth-pill--primary {
  color: #06101d;
  background: var(--button-ice);
  box-shadow: 0 16px 36px rgba(78, 199, 255, 0.26);
}

.auth-pill--primary::before {
  background: linear-gradient(120deg, rgba(190, 245, 255, 0.48), rgba(109, 228, 255, 0.48));
}

.auth-pill--primary:hover,
.auth-pill--primary:focus-visible {
  box-shadow: 0 22px 44px rgba(78, 199, 255, 0.36);
}

.auth-pill:hover::before,
.auth-pill:focus-visible::before {
  opacity: 1;
}

.auth-user {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px 0 12px;
  min-width: 0;
}

.auth-user strong {
  font-size: var(--text-base);
  line-height: 1.1;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-user small {
  color: var(--color-primary-strong);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-profile {
  position: relative;
}

.auth-profile__trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(4, 10, 24, 0.35);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-profile__trigger:hover,
.auth-profile__trigger:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 199, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 46px rgba(4, 10, 24, 0.42);
}

.auth-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(93, 199, 255, 0.24), rgba(178, 102, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-profile__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 26, 43, 0.98), rgba(10, 16, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(3, 7, 20, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 25;
}

.auth-profile__menu[hidden] {
  display: none;
}

.auth-profile__menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-profile__menu-item--with-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-profile__menu-item:hover,
.auth-profile__menu-item:focus-visible {
  background: rgba(78, 199, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.auth-profile__menu-item--danger:hover,
.auth-profile__menu-item--danger:focus-visible {
  background: rgba(255, 96, 96, 0.12);
  color: #ffb1b1;
}

.auth-profile__menu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 96, 96, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 116, 138, 0.22);
  color: #ffd2d8;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.auth-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(93, 199, 255, 0.2), rgba(178, 102, 255, 0.24));
  box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.18);
  color: #9be8ff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-role-badge--inline {
  vertical-align: middle;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 130;
  transition: opacity 0.22s ease;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(78, 199, 255, 0.12), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(191, 123, 255, 0.12), transparent 30%),
    rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(14px);
}

.auth-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  margin: 36px auto;
  max-height: none;
  overflow: visible;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(17, 26, 43, 0.96), rgba(11, 17, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 34px 100px rgba(2, 5, 16, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(158, 117, 255, 0.2),
    0 0 24px rgba(78, 199, 255, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
}

.auth-modal[data-auth-modal="register"] .auth-modal__dialog {
  width: min(100%, 906px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  align-items: start;
  gap: 26px;
  padding: 22px 26px 26px;
}

.auth-modal[data-auth-modal="login"] .auth-modal__dialog {
  width: min(100%, 626px);
  padding: 38px;
}

.auth-modal__dialog--settings {
  width: min(100%, 960px);
}

.auth-modal.is-open .auth-modal__dialog {
  transform: translateY(0) scale(1);
}

.auth-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(78, 199, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(191, 123, 255, 0.14), transparent 32%);
  pointer-events: none;
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(142, 162, 197, 0.28);
  background: rgba(7, 12, 23, 0.58);
  color: var(--color-muted);
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.auth-modal__close:hover {
  color: var(--color-primary-strong);
  border-color: rgba(78, 199, 255, 0.35);
  background: rgba(12, 19, 35, 0.96);
}

.auth-modal__title,
.auth-modal__switch,
.auth-modal__form,
.auth-register__main,
.auth-register__aside,
.auth-divider,
.auth-provider-grid {
  position: relative;
  z-index: 1;
}

.auth-register__main {
  min-width: 0;
}

.auth-register__aside {
  align-self: start;
  margin-top: 70px;
  padding: 26px 22px 24px;
  border-radius: 9px;
  background:
    radial-gradient(circle at top right, rgba(93, 199, 255, 0.34), transparent 31%),
    radial-gradient(circle at bottom right, rgba(178, 102, 255, 0.38), transparent 30%),
    linear-gradient(150deg, rgba(12, 28, 52, 0.78), rgba(5, 10, 22, 0.9));
  border: 1px solid rgba(109, 228, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 34px rgba(78, 199, 255, 0.08),
    0 18px 42px rgba(2, 5, 16, 0.34),
    0 0 22px rgba(122, 98, 255, 0.22);
  overflow: hidden;
}

.auth-register__aside h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: #eef6ff;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.auth-register__aside h3::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(142, 162, 197, 0.18);
}

.auth-register__aside p {
  margin: 0 0 18px;
  color: rgba(194, 214, 245, 0.82);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.auth-register__aside ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-register__aside li {
  display: block;
  padding: 18px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(142, 162, 197, 0.16);
  color: rgba(230, 241, 255, 0.88);
}

.auth-register__aside strong,
.auth-register__aside small {
  display: block;
}

.auth-register__aside strong {
  color: #f4f8ff;
  font-size: var(--text-base);
  line-height: 1.25;
}

.auth-register__aside small {
  margin-top: 5px;
  color: rgba(194, 214, 245, 0.76);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.auth-modal__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.auth-modal__title::after {
  content: "";
  display: block;
  width: 78px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 22px rgba(78, 199, 255, 0.34);
}

.auth-modal__switch {
  margin: 0 0 26px;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.auth-modal__link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--color-primary-strong);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-modal__link:hover {
  color: #fff;
}

.auth-modal__link--muted {
  font-weight: 600;
  color: var(--color-muted);
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal[data-auth-modal="register"] .auth-modal__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  align-items: start;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modal[data-auth-modal="register"] .auth-field {
  min-width: 0;
}

.auth-field > span {
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
}

.auth-field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.8);
  color: var(--color-text);
  padding: 15px 18px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.password-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding-right: 12px;
  background: rgba(5, 9, 20, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field > .password-control {
  font: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}

.password-control input {
  min-height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-right: 12px;
}

.password-control:focus-within {
  border-color: rgba(78, 199, 255, 0.6);
  background: rgba(7, 13, 26, 0.98);
  box-shadow:
    0 0 0 4px rgba(78, 199, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.password-control .password-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(142, 162, 197, 0.82);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.password-control .password-toggle:hover,
.password-control .password-toggle:focus-visible,
.password-control .password-toggle.is-visible {
  color: var(--color-primary-strong);
  background: transparent !important;
  outline: none;
}

.password-control .password-toggle:focus-visible {
  outline: 2px solid rgba(109, 228, 255, 0.5);
  outline-offset: 2px;
}

.password-control .password-toggle .ui-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.password-control .password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-field select {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.8);
  color: var(--color-text);
  padding: 10px 13px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field textarea {
  width: 100%;
  min-height: 156px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.8);
  color: var(--color-text);
  padding: 15px 18px;
  font: inherit;
  line-height: 1.65;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(142, 162, 197, 0.72);
}

.auth-field textarea::placeholder {
  color: rgba(142, 162, 197, 0.72);
}

.auth-field input:focus-visible {
  border-color: rgba(78, 199, 255, 0.6);
  background: rgba(7, 13, 26, 0.98);
  box-shadow:
    0 0 0 4px rgba(78, 199, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-field select:focus-visible {
  outline: none;
  border-color: rgba(78, 199, 255, 0.6);
  background: rgba(7, 13, 26, 0.98);
  box-shadow:
    0 0 0 4px rgba(78, 199, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-field textarea:focus-visible {
  outline: none;
  border-color: rgba(78, 199, 255, 0.6);
  background: rgba(7, 13, 26, 0.98);
  box-shadow:
    0 0 0 4px rgba(78, 199, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-field input.is-error {
  border-color: rgba(255, 104, 104, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 104, 104, 0.08);
}

.auth-field textarea.is-error {
  border-color: rgba(255, 104, 104, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 104, 104, 0.08);
}

.auth-field__error {
  min-height: 12px;
  color: #ff7b7b;
  font-size: var(--text-sm);
  line-height: 1.35;
}

.auth-field__error:empty {
  min-height: 0;
}

.auth-field__hint {
  color: var(--color-muted);
  font-size: var(--text-2xs);
  line-height: 1.4;
}

.auth-field__counter {
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.auth-field__counter.is-limit {
  color: #ffb2b2;
}

.auth-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.48);
  border: 1px solid rgba(109, 228, 255, 0.12);
  color: var(--color-text);
  line-height: 1.5;
}

.auth-modal[data-auth-modal="register"] .auth-consent,
.auth-modal[data-auth-modal="register"] .auth-field__error--consent,
.auth-modal[data-auth-modal="register"] .auth-form__notice,
.auth-modal[data-auth-modal="register"] .auth-submit,
.auth-modal[data-auth-modal="register"] .auth-register__actions {
  grid-column: 1 / -1;
}

/* Private account order history */
.account-settings-page--orders {
  min-height: calc(100vh - var(--frostline-fixed-stack-height, 72px));
}

.account-settings-page--orders .account-settings-page__shell {
  max-width: 1240px;
}

.my-orders__hero {
  max-width: 760px;
}

.my-orders {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.my-orders__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20, 48, 83, 0.82), rgba(9, 22, 43, 0.92));
  box-shadow:
    0 18px 38px rgba(2, 8, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.my-orders__summary > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.my-orders__summary-icon,
.my-orders__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(93, 199, 255, 0.28);
  border-radius: 15px;
  color: #70d5ff;
  background: rgba(93, 199, 255, 0.09);
}

.my-orders__summary-icon svg,
.my-orders__empty-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.my-orders__summary small,
.my-order-card small,
.my-order-card__address > small {
  display: block;
  color: #8fa5c7;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-orders__summary strong {
  display: block;
  margin-top: 3px;
  color: #f7fbff;
  font-size: var(--text-md);
}

.my-orders__summary .auth-pill {
  min-height: 44px;
  white-space: nowrap;
}

.my-orders__list {
  display: grid;
  gap: 14px;
}

.my-order-card {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13, 31, 58, 0.98), rgba(7, 20, 39, 0.98));
  box-shadow:
    0 20px 44px rgba(2, 8, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.my-order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
}

.my-order-card__header h2 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
  line-height: 1.1;
}

.my-order-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(93, 199, 255, 0.25);
  border-radius: 999px;
  color: #8de0ff;
  background: rgba(93, 199, 255, 0.09);
  font-size: var(--text-2xs);
  font-weight: 700;
}

.my-order-card__status--completed,
.my-order-card__status--delivered {
  border-color: rgba(72, 216, 145, 0.28);
  color: #78e8ae;
  background: rgba(72, 216, 145, 0.09);
}

.my-order-card__status--cancelled,
.my-order-card__status--failed,
.my-order-card__status--refunded {
  border-color: rgba(255, 116, 139, 0.3);
  color: #ff9bae;
  background: rgba(255, 116, 139, 0.08);
}

.my-order-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 24px 18px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 29, 0.46);
}

.my-order-card__facts > span {
  min-width: 0;
  padding: 14px 16px;
}

.my-order-card__facts > span + span {
  border-left: 1px solid rgba(126, 164, 220, 0.14);
}

.my-order-card__facts strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #f5f9ff;
  font-size: var(--text-base);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-order-card__details {
  border-top: 1px solid rgba(126, 164, 220, 0.14);
}

.my-order-card__details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  color: #a9bdd9;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.my-order-card__details > summary::-webkit-details-marker {
  display: none;
}

.my-order-card__details > summary:hover,
.my-order-card__details > summary:focus-visible {
  color: #fff;
  background: rgba(93, 199, 255, 0.05);
}

.my-order-card__details > summary:focus-visible {
  outline: 2px solid rgba(93, 199, 255, 0.7);
  outline-offset: -3px;
}

.my-order-card__details > summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 160ms ease-out;
}

.my-order-card__details[open] > summary svg {
  transform: rotate(180deg);
}

.my-order-card__detail-body {
  display: grid;
  gap: 16px;
  padding: 2px 24px 24px;
}

.my-order-card__items {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 29, 0.38);
}

.my-order-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  color: #f4f8ff;
}

.my-order-card__item + .my-order-card__item {
  border-top: 1px solid rgba(126, 164, 220, 0.12);
}

.my-order-card__item > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.my-order-card__item small {
  display: block;
  margin: 4px 0 0;
  color: #86a1c7;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.my-order-card__totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.my-order-card__totals > span,
.my-order-card__address {
  padding: 15px 16px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 29, 0.34);
}

.my-order-card__totals strong {
  display: block;
  margin-top: 5px;
  color: #f4f8ff;
}

.my-order-card__address address {
  margin-top: 8px;
  color: #d7e2f2;
  font-style: normal;
  line-height: 1.65;
}

.my-order-card__actions {
  display: flex;
  justify-content: flex-end;
}

.my-order-card__actions .auth-pill {
  min-height: 42px;
}

.my-orders__empty {
  display: grid;
  justify-items: center;
  padding: clamp(36px, 7vw, 70px) 24px;
  border: 1px dashed rgba(126, 164, 220, 0.24);
  border-radius: 24px;
  background: rgba(7, 20, 39, 0.64);
  text-align: center;
}

.my-orders__empty h2 {
  margin: 18px 0 8px;
  color: #f7fbff;
}

.my-orders__empty p {
  max-width: 590px;
  margin: 0 0 22px;
  color: #96aaca;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .my-orders__summary {
    align-items: stretch;
    flex-direction: column;
  }

  .my-orders__summary .auth-pill {
    justify-content: center;
    width: 100%;
  }

  .my-order-card__header {
    align-items: flex-start;
    padding: 19px 18px 14px;
  }

  .my-order-card__facts {
    grid-template-columns: 1fr;
    margin: 0 18px 16px;
  }

  .my-order-card__facts > span + span {
    border-top: 1px solid rgba(126, 164, 220, 0.14);
    border-left: 0;
  }

  .my-order-card__details > summary {
    padding: 0 18px;
  }

  .my-order-card__detail-body {
    padding: 2px 18px 18px;
  }

  .my-order-card__item {
    align-items: flex-start;
  }

  .my-order-card__totals {
    grid-template-columns: 1fr;
  }

  .my-order-card__actions .auth-pill {
    width: 100%;
  }
}

/* Compact order ledger */
.my-orders__table {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13, 31, 58, 0.97), rgba(7, 20, 39, 0.98));
  box-shadow:
    0 22px 48px rgba(2, 8, 20, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.my-orders__table-head,
.my-order-row__summary {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.85fr)
    minmax(180px, 1.35fr)
    minmax(140px, 1fr)
    minmax(120px, 0.85fr)
    34px;
  align-items: center;
  column-gap: 18px;
}

.my-orders__table-head {
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(126, 164, 220, 0.16);
  color: #8299bb;
  background: rgba(4, 14, 29, 0.46);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.my-orders__table-head > span:nth-child(4) {
  text-align: right;
}

.my-order-row {
  background: rgba(8, 22, 42, 0.32);
  transition:
    background-color 300ms ease-out,
    box-shadow 300ms ease-out;
}

.my-order-row + .my-order-row {
  border-top: 1px solid rgba(126, 164, 220, 0.12);
}

.my-order-row__summary {
  position: relative;
  min-height: 68px;
  padding: 0 22px;
  color: #dce7f6;
  cursor: pointer;
  list-style: none;
  transition:
    color 300ms ease-out,
    background-color 300ms ease-out;
}

.my-order-row__summary::-webkit-details-marker {
  display: none;
}

.my-order-row__summary:hover,
.my-order-row__summary:focus-visible {
  color: #fff;
  background: rgba(93, 199, 255, 0.055);
}

.my-order-row__summary:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(93, 199, 255, 0.72);
  outline-offset: -3px;
}

.my-order-row[open] {
  background: rgba(11, 29, 54, 0.82);
  box-shadow: inset 3px 0 0 rgba(93, 199, 255, 0.78);
}

.my-order-row__cell {
  min-width: 0;
}

.my-order-row__cell > small {
  display: none;
}

.my-order-row__cell > strong,
.my-order-row__cell > time {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: var(--text-base);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-order-row__number strong {
  color: #75d8ff;
  font-size: var(--text-base);
  letter-spacing: 0.015em;
}

.my-order-row__date time {
  color: #afc0d9;
  font-weight: 700;
}

.my-order-row__amount {
  text-align: right;
}

.my-order-row__amount strong {
  color: #f7fbff;
}

.my-order-row__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 10px;
  color: #8ea7cb;
  background: rgba(5, 15, 31, 0.5);
  transition:
    color 300ms ease-out,
    border-color 300ms ease-out,
    background-color 300ms ease-out;
}

.my-order-row__summary:hover .my-order-row__toggle {
  border-color: rgba(93, 199, 255, 0.32);
  color: #72d6ff;
  background: rgba(93, 199, 255, 0.09);
}

.my-order-row__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 300ms ease-out;
}

.my-order-row[open] .my-order-row__toggle svg {
  transform: rotate(180deg);
}

.my-order-row__details {
  border-top: 1px solid rgba(126, 164, 220, 0.13);
}

.my-order-row__details .my-order-card__detail-body {
  padding: 20px 22px 22px;
}

@media (prefers-reduced-motion: reduce) {
  .my-order-row,
  .my-order-row__summary,
  .my-order-row__toggle,
  .my-order-row__toggle svg {
    transition: none;
  }
}

@media (max-width: 720px) {
  .my-orders__table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .my-orders__table-head {
    display: none;
  }

  .my-orders__table-body {
    display: grid;
    gap: 12px;
  }

  .my-order-row,
  .my-order-row + .my-order-row {
    overflow: hidden;
    border: 1px solid rgba(126, 164, 220, 0.18);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(13, 31, 58, 0.97), rgba(7, 20, 39, 0.98));
    box-shadow: 0 16px 32px rgba(2, 8, 20, 0.22);
  }

  .my-order-row[open] {
    border-color: rgba(93, 199, 255, 0.27);
    box-shadow:
      inset 3px 0 0 rgba(93, 199, 255, 0.78),
      0 16px 32px rgba(2, 8, 20, 0.24);
  }

  .my-order-row__summary {
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    gap: 15px 18px;
    min-height: 0;
    padding: 18px 52px 18px 18px;
  }

  .my-order-row__cell > small {
    display: block;
    margin-bottom: 5px;
    color: #7790b3;
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .my-order-row__date {
    text-align: right;
  }

  .my-order-row__date time {
    white-space: normal;
  }

  .my-order-row__amount {
    text-align: right;
  }

  .my-order-row__toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
  }

  .my-order-row__summary .my-order-card__status {
    max-width: 100%;
  }

  .my-order-row__details .my-order-card__detail-body {
    padding: 16px 18px 18px;
  }
}

.auth-register__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: start;
}

.auth-register__actions .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 216px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
}

.auth-register__actions span {
  color: rgba(194, 214, 245, 0.76);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.auth-modal[data-auth-modal="login"] .auth-modal__form {
  gap: 18px;
}

.auth-modal[data-auth-modal="login"] .auth-field input,
.auth-modal[data-auth-modal="login"] .password-control {
  min-height: 70px;
  border-radius: 22px;
}

.auth-modal[data-auth-modal="login"] .auth-field input {
  padding: 18px 20px;
}

.auth-modal[data-auth-modal="login"] .password-control {
  grid-template-columns: minmax(0, 1fr) 30px;
  padding-right: 18px;
}

.auth-modal[data-auth-modal="login"] .password-control input {
  min-height: 68px;
  padding-right: 14px;
}

.auth-modal[data-auth-modal="login"] .password-control .password-toggle {
  width: 30px;
  height: 30px;
}

.auth-modal[data-auth-modal="login"] .auth-submit {
  width: 100%;
  min-height: 68px;
  margin-top: 10px;
  border-radius: 999px;
  font-size: var(--text-md);
}

.auth-modal__dialog--verification {
  width: min(520px, calc(100vw - 32px));
}

.auth-verification-email-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.auth-verification-form {
  gap: 18px;
}

.auth-verification-form [data-verification-main],
.auth-verification-correction {
  display: grid;
  gap: 16px;
}

.auth-verification-form [hidden] {
  display: none;
}

.auth-verification-code-field input {
  min-height: 68px;
  padding: 14px 18px;
  border-color: rgba(109, 228, 255, 0.34);
  border-radius: 18px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.auth-verification-code-field input::placeholder {
  letter-spacing: 0.14em;
}

.auth-verification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
}

.auth-verification-actions .auth-modal__link:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-verification-spam-hint {
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
  text-align: center;
}

.auth-verification-correction > .auth-modal__link {
  justify-self: center;
}

.auth-modal__dialog [data-staff-next-step-hide][hidden],
.auth-verification-success[hidden] {
  display: none;
}

.auth-verification-success {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.auth-verification-staff-notice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(191, 123, 255, 0.3);
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(78, 199, 255, 0.08), rgba(191, 123, 255, 0.1));
}

.auth-verification-staff-notice strong {
  color: var(--color-text);
  font-size: var(--text-base);
}

.auth-verification-staff-notice p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.auth-verification-success__actions {
  display: grid;
  gap: 10px;
}

.auth-verification-success > .auth-modal__link {
  justify-self: center;
}

.auth-login__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -4px;
}

.auth-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(194, 214, 245, 0.78);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.auth-login__remember input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(142, 162, 197, 0.42);
  border-radius: 5px;
  background: rgba(5, 9, 20, 0.82);
  display: inline-grid;
  place-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-login__remember input::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #06101e;
  border-bottom: 2px solid #06101e;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.16s ease;
}

.auth-login__remember input:checked {
  border-color: rgba(109, 228, 255, 0.9);
  background: linear-gradient(135deg, #5dc7ff, #8d77ff);
  box-shadow: 0 0 16px rgba(78, 199, 255, 0.2);
}

.auth-login__remember input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.auth-login__remember input:focus-visible {
  outline: 2px solid rgba(109, 228, 255, 0.55);
  outline-offset: 3px;
}

.auth-login__options .auth-modal__link--muted {
  color: var(--color-primary-strong);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.auth-login__security {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 -4px;
  color: rgba(142, 162, 197, 0.76);
  font-size: var(--text-2xs);
  line-height: 1.4;
  text-align: center;
}

.auth-login__security-icon {
  width: 17px;
  height: 17px;
  color: #5dc7ff;
  flex: 0 0 auto;
}

.auth-login__security-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.auth-consent a {
  color: var(--color-primary-strong);
  text-decoration: underline;
  text-decoration-color: rgba(109, 228, 255, 0.55);
}

.auth-field__error--consent {
  margin-top: -6px;
}

.auth-form__notice {
  display: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: var(--text-base);
  line-height: 1.45;
}

.auth-form__notice.is-visible {
  display: block;
}

.auth-form__notice.is-error {
  background: rgba(255, 81, 81, 0.12);
  color: #ff9a9a;
  border: 1px solid rgba(255, 81, 81, 0.24);
}

.auth-form__notice.is-success {
  background: rgba(78, 199, 255, 0.11);
  color: var(--color-primary-strong);
  border: 1px solid rgba(78, 199, 255, 0.26);
}

.auth-form__notice--standalone {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--button-ice);
  color: #050315;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(78, 199, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  box-shadow: 0 22px 54px rgba(78, 199, 255, 0.38);
}

.auth-submit[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.auth-submit--compact {
  min-height: 50px;
  width: fit-content;
  min-width: 180px;
}

.auth-submit--ghost {
  background: rgba(78, 199, 255, 0.12);
  color: #d9f6ff;
  border: 1px solid rgba(109, 228, 255, 0.45);
  box-shadow: none;
}

.auth-submit--ghost:hover,
.auth-submit--ghost:focus-visible {
  box-shadow: 0 18px 36px rgba(6, 12, 24, 0.24);
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0 16px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 62px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16));
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
  transform: scaleX(-1);
}

.auth-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-provider {
  min-height: 90px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(109, 228, 255, 0.12);
  background: rgba(8, 13, 26, 0.72);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(2, 5, 16, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.auth-provider__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(2, 5, 16, 0.24);
  overflow: hidden;
}

.auth-provider__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-provider__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.auth-provider__title {
  display: block;
  color: #f4f8ff;
  font-size: var(--text-md);
  line-height: 1.2;
}

.auth-provider small {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
}

.auth-provider[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

.auth-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-settings__card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(7, 12, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-settings__card--profile {
  grid-column: 1 / -1;
}

.auth-settings__secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.auth-settings__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-settings__heading h3 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
}

.auth-settings__heading p {
  margin: 0;
  color: var(--color-muted);
}

.auth-settings__forgot-link {
  margin-top: 8px;
  align-self: flex-start;
}

.auth-settings__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-profile-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-profile-editor__avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(93, 199, 255, 0.24), rgba(178, 102, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}

.auth-profile-editor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-profile-editor__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-profile-editor__meta strong {
  font-size: var(--text-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-profile-editor__meta small {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.auth-connections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-connection-stack {
  position: relative;
}

.auth-connection-stack--disconnect > .auth-connection {
  position: relative;
  padding-right: 112px;
}

.auth-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 26, 0.8);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-connection--static {
  cursor: default;
}

.auth-connection__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.auth-connection__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.auth-connection__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-connection__icon--minecraft {
  background: linear-gradient(135deg, rgba(120, 215, 106, 0.22), rgba(64, 141, 57, 0.28));
  color: #eafff0;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: var(--text-2xs);
}

.auth-connection__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.auth-connection:hover,
.auth-connection:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 199, 255, 0.24);
  box-shadow: 0 20px 40px rgba(4, 10, 24, 0.24);
}

.auth-connection--static:hover,
.auth-connection--static:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.auth-connection.is-locked,
.auth-connection[aria-disabled="true"]:not(.is-disabled) {
  cursor: not-allowed;
}

.auth-connection.is-locked:hover,
.auth-connection.is-locked:focus-visible,
.auth-connection[aria-disabled="true"]:not(.is-disabled):hover,
.auth-connection[aria-disabled="true"]:not(.is-disabled):focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.auth-connection strong,
.auth-connection small,
.auth-connection span {
  display: block;
}

.auth-connection small {
  color: var(--color-muted);
  margin-top: 3px;
}

.auth-connection__detail {
  color: rgba(255, 255, 255, 0.7);
}

.auth-connection__lock {
  color: rgba(255, 183, 183, 0.92);
}

.auth-connection > span {
  color: var(--color-primary-strong);
  font-weight: 700;
}

.auth-connection.is-connected > span {
  color: #99f1c0;
}

.auth-connection__vip {
  text-align: right;
  color: var(--color-primary-strong);
  font-weight: 700;
}

.auth-connection.is-connected .auth-connection__vip {
  color: #99f1c0;
}

.auth-connection__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.auth-connection.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.auth-connection__secondary {
  width: fit-content;
  margin: -2px 0 6px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffb7b7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.auth-connection__secondary:hover,
.auth-connection__secondary:focus-visible {
  color: #ffd1d1;
  transform: translateX(-2px);
}

.auth-connection__secondary[hidden] {
  display: none;
}

.auth-connection__secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.auth-connection__secondary--inline {
  margin: 0;
}

.auth-connection-stack--disconnect > .auth-connection__secondary {
  position: absolute;
  right: 18px;
  top: 72px;
  bottom: auto;
  margin: 0;
  z-index: 2;
}

.auth-connection-stack--disconnect > .auth-connection > [data-auth-connect-label],
.auth-connection-stack--disconnect > .auth-connection > .auth-connection__vip {
  position: absolute;
  top: 34px;
  right: 18px;
  text-align: right;
}

.auth-minecraft-linker,
.auth-fivem-linker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8, 13, 26, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-minecraft-linker__help,
.auth-fivem-linker__help {
  margin: 0;
  color: var(--color-muted);
}

.auth-minecraft-linker__actions,
.auth-fivem-linker__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-minecraft-linker__actions .auth-connection__secondary,
.auth-fivem-linker__actions .auth-connection__secondary {
  margin: 0;
}

.auth-minecraft-linker__code,
.auth-fivem-linker__code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(4, 8, 17, 0.72);
  border: 1px solid rgba(93, 199, 255, 0.16);
}

.auth-minecraft-linker__code strong,
.auth-fivem-linker__code strong {
  font-size: var(--text-lg);
  letter-spacing: 0.12em;
}

.auth-minecraft-linker__code code,
.auth-fivem-linker__code code {
  display: inline-block;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(93, 199, 255, 0.08);
  color: #dff4ff;
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

.account-settings-page {
  position: relative;
  overflow: hidden;
  padding: calc(var(--frostline-fixed-stack-height, 72px) + 16px) 0 88px;
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.82) 0%, rgba(4, 12, 26, 0.96) 56%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(4, 14, 31, 0.4), rgba(4, 14, 31, 0.14), rgba(4, 14, 31, 0.54)),
    var(--frostline-page-bg-image) center 28% / cover no-repeat;
}

.account-settings-page::before,
.account-settings-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.account-settings-page::before {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(78, 199, 255, 0.12), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(4, 12, 26, 0.7) 48%, rgba(2, 4, 9, 1) 100%);
}

.account-settings-page::after {
  top: auto;
  height: 260px;
  background: linear-gradient(180deg, rgba(2, 4, 9, 0) 0%, #020409 38%, #020409 100%);
}

.account-settings-page > .site-container {
  position: relative;
  z-index: 1;
}

.account-settings-page--panel > .site-container {
  max-width: 1680px;
}

.page-template-page-installningar .site-footer,
.page-template-page-installningar-php .site-footer,
.page-template-page-panel .site-footer,
.page-template-page-panel-php .site-footer,
.page-template-page-profile .site-footer,
.page-template-page-profile-php .site-footer,
.page-template-page-mina-arenden .site-footer,
.page-template-page-mina-arenden-php .site-footer,
.page-template-page-support-arende .site-footer,
.page-template-page-support-arende-php .site-footer,
.page-template-page-aterstall-losenord .site-footer,
.page-template-page-aterstall-losenord-php .site-footer {
  margin-top: 0;
}

.account-settings-page__shell {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.account-settings-page__hero {
  max-width: 760px;
}

.account-settings-page__eyebrow {
  margin: 0 0 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
}

.account-settings-page__hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.account-settings-page__hero p {
  margin: 0;
  max-width: 620px;
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.account-settings-page__panel,
.account-settings-page__guest-card {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(17, 26, 43, 0.96), rgba(11, 17, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 34px 100px rgba(2, 5, 16, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(78, 199, 255, 0.05);
}

.account-settings-page__panel::before,
.account-settings-page__guest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(78, 199, 255, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(191, 123, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.account-settings-page__panel > *,
.account-settings-page__guest-card > * {
  position: relative;
  z-index: 1;
}

.account-settings-page__guest-card {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-settings-page__guest-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.04;
}

.account-settings-page__guest-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.account-settings-page__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel-layout--with-history {
  grid-template-columns: 240px minmax(0, 1fr) minmax(270px, 320px);
  gap: 18px;
}

.panel-sidebar {
  position: sticky;
  top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
  max-height: calc(100dvh - var(--frostline-fixed-stack-height, 72px) - 36px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 22, 42, 0.97), rgba(7, 14, 28, 0.98));
  box-shadow:
    0 22px 44px rgba(3, 8, 21, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 199, 255, 0.28) transparent;
}

.panel-sidebar__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 8px 12px;
  color: #8fa5c7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-sidebar__eyebrow::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(126, 164, 220, 0.16);
}

.panel-sidebar__eyebrow--section {
  margin-top: 22px;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.panel-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.panel-nav__item:hover,
.panel-nav__item:focus-visible {
  border-color: rgba(93, 199, 255, 0.22);
  background: rgba(126, 164, 220, 0.07);
  color: #fff;
}

.panel-nav__item:focus-visible {
  outline: 2px solid rgba(93, 199, 255, 0.72);
  outline-offset: 2px;
}

.panel-nav__item.is-active,
.panel-nav__item--workspace.is-active {
  border-color: rgba(126, 164, 220, 0.12);
  background: rgba(126, 164, 220, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 #5dc7ff;
}

.panel-nav__item--workspace {
  min-height: 54px;
  margin-top: 3px;
}

.panel-nav-group {
  min-width: 0;
}

.panel-nav-group > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.panel-nav-group > summary::-webkit-details-marker {
  display: none;
}

.panel-nav-group > summary.is-current-group,
.panel-nav-group[open] > summary {
  border-color: rgba(93, 199, 255, 0.16);
  background: rgba(61, 112, 173, 0.12);
  color: #fff;
}

.panel-nav-group > summary .panel-nav__chevron {
  transition:
    color 160ms ease-out,
    transform 160ms ease-out;
}

.panel-nav-group[open] > summary .panel-nav__chevron {
  color: #5dc7ff;
  transform: rotate(180deg);
}

.panel-nav-group__items {
  display: grid;
  gap: 3px;
  margin: 3px 0 5px 18px;
  padding: 4px 0 4px 11px;
  border-left: 1px solid rgba(93, 199, 255, 0.2);
}

.panel-nav-group__items .panel-nav__item {
  min-height: 42px;
  padding-right: 10px;
  font-size: 0.92rem;
}

.panel-nav-group__items .panel-nav__icon {
  width: 18px;
  height: 18px;
}

/* Staff product management */
.panel-product-management {
  display: grid;
  gap: 20px;
}

.panel-product-editor__toolbar,
.panel-product-toolbar,
.panel-product-filter,
.panel-product-row__actions,
.panel-product-editor__save {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-product-editor__toolbar {
  justify-content: space-between;
}

.panel-product-toolbar {
  align-items: end;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(93, 199, 255, 0.18);
  border-radius: 18px;
  background: rgba(6, 18, 36, 0.72);
}

.panel-product-filter {
  flex: 1;
  align-items: end;
  flex-wrap: wrap;
}

.panel-product-filter .auth-field:first-of-type {
  flex: 1 1 280px;
}

.panel-product-filter .auth-field:nth-of-type(2) {
  flex: 0 1 220px;
}

.panel-product-filter .auth-field {
  margin: 0;
}

.panel-product-filter .auth-pill,
.panel-product-toolbar > .auth-submit {
  min-height: 48px;
  justify-content: center;
}

.panel-product-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
}

.panel-product-editor__main,
.panel-product-editor__side {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.panel-product-editor__side {
  position: sticky;
  top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
  max-height: calc(100dvh - var(--frostline-fixed-stack-height, 72px) - 36px);
  overflow-y: auto;
}

.panel-product-editor__section {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.panel-product-editor__section[hidden] {
  display: none !important;
}

.panel-product-editor__section .panel-card__head {
  margin: 0;
}

.panel-product-editor__section .panel-card__head h2 {
  margin-top: 3px;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.panel-product-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel-product-editor__wide {
  grid-column: 1 / -1;
}

.panel-product-editor__shipping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.panel-product-editor .auth-field {
  min-width: 0;
  margin: 0;
}

.panel-product-editor .auth-field > span,
.panel-product-attribute-name > span {
  display: block;
  margin-bottom: 7px;
  color: #c8d7ed;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.panel-product-editor input[type="text"],
.panel-product-editor input[type="number"],
.panel-product-editor input[type="search"],
.panel-product-editor input[type="file"],
.panel-product-editor select,
.panel-product-editor textarea {
  width: 100%;
  border-color: rgba(111, 164, 221, 0.28);
  background: rgba(2, 12, 28, 0.68);
  color: #f5f9ff;
}

.panel-product-editor textarea {
  resize: vertical;
}

.panel-product-editor input[type="file"] {
  padding: 10px;
  font-size: 0.82rem;
}

.panel-product-editor input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: rgba(93, 199, 255, 0.14);
  color: #dff7ff;
  font-weight: 700;
  cursor: pointer;
}

.panel-product-check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(111, 164, 221, 0.18);
  border-radius: 13px;
  background: rgba(3, 14, 31, 0.46);
  cursor: pointer;
}

.panel-product-check input,
.panel-product-categories input,
.panel-product-image__remove input,
.panel-product-variation__remove input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #5dc7ff;
}

.panel-product-check span {
  display: grid;
  gap: 3px;
}

.panel-product-check strong {
  color: #f7fbff;
  font-size: 0.9rem;
}

.panel-product-check small {
  color: #8fa7c6;
  line-height: 1.45;
}

.panel-product-stock-fields {
  margin-top: -2px;
}

.panel-product-attribute-select {
  display: grid;
  gap: 10px;
}

.panel-product-attribute-select__label {
  margin: 0;
  color: #c8d7ed;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-product-attribute-select__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-product-attribute-option {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(111, 164, 221, 0.2);
  border-radius: 13px;
  background: rgba(3, 14, 31, 0.5);
  cursor: pointer;
}

.panel-product-attribute-option:has(input:checked) {
  border-color: rgba(93, 199, 255, 0.55);
  background: rgba(38, 112, 160, 0.18);
}

.panel-product-attribute-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #5dc7ff;
}

.panel-product-attribute-option span {
  display: grid;
  gap: 4px;
}

.panel-product-attribute-option strong {
  color: #f7fbff;
}

.panel-product-attribute-option small,
.panel-product-attribute-select > small {
  color: #8fa7c6;
  line-height: 1.45;
}

.panel-product-variation-builder {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(93, 199, 255, 0.23);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(21, 67, 105, 0.28), rgba(3, 14, 31, 0.54));
}

.panel-product-variation-builder__intro {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr);
  gap: 18px;
  align-items: end;
}

.panel-product-variation-builder__intro h3 {
  margin: 4px 0 0;
  color: #f7fbff;
  font-size: 1.05rem;
}

.panel-product-variation-builder__intro > p {
  margin: 0;
  color: #8fa7c6;
  font-size: 0.8rem;
  line-height: 1.5;
}

.panel-product-size-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.panel-product-size-picker legend {
  margin-bottom: 7px;
  color: #c8d7ed;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-product-size-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.panel-product-size-picker label {
  cursor: pointer;
}

.panel-product-size-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.panel-product-size-picker span {
  display: grid;
  min-width: 48px;
  min-height: 43px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(111, 164, 221, 0.25);
  border-radius: 10px;
  background: rgba(2, 12, 28, 0.68);
  color: #c8d7ed;
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-product-size-picker input:checked + span {
  border-color: rgba(93, 199, 255, 0.7);
  background: rgba(93, 199, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(93, 199, 255, 0.12);
}

.panel-product-size-picker input:focus-visible + span {
  outline: 3px solid rgba(93, 199, 255, 0.18);
  outline-offset: 2px;
}

.panel-product-variation-builder__feedback {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: #87dfff;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-product-variations {
  display: grid;
  gap: 7px;
}

.panel-product-variation-group {
  overflow: hidden;
  border: 1px solid rgba(111, 164, 221, 0.22);
  border-radius: 14px;
  background: rgba(3, 14, 31, 0.58);
}

.panel-product-variation-group > summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto 30px;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  color: #eef8ff;
  cursor: pointer;
  list-style: none;
}

.panel-product-variation-group > summary::-webkit-details-marker {
  display: none;
}

.panel-product-variation-group > summary:hover {
  background: rgba(93, 199, 255, 0.06);
}

.panel-product-variation-group[open] > summary {
  border-bottom: 1px solid rgba(111, 164, 221, 0.16);
  background: rgba(93, 199, 255, 0.08);
}

.panel-product-variation-group__identity {
  display: grid;
  gap: 2px;
}

.panel-product-variation-group__identity small {
  color: #62d6ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-product-variation-group__identity strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-product-variation-group__metric {
  padding: 7px 10px;
  border: 1px solid rgba(111, 164, 221, 0.16);
  border-radius: 999px;
  color: #a9bdd6;
  background: rgba(3, 14, 31, 0.46);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-product-variation-group__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #69d8ff;
  border-bottom: 2px solid #69d8ff;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms ease;
}

.panel-product-variation-group[open] .panel-product-variation-group__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.panel-product-variation-group__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.panel-product-variation-group__rows {
  display: grid;
  gap: 7px;
}

.panel-product-variations.is-grouped
  .panel-product-variation-group[data-group-field="color"]:not([data-group-key=""])
  [data-attribute-field="color"],
.panel-product-variations.is-grouped
  .panel-product-variation-group[data-group-field="model"]:not([data-group-key=""])
  [data-attribute-field="model"] {
  display: none !important;
}

.panel-product-variation-table-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--variation-column-count, 6), minmax(100px, 1fr));
  gap: 9px;
  padding: 0 78px 0 10px;
  color: #6f89ab;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-product-variation-table-head [data-variation-column="actions"] {
  position: absolute;
  right: 13px;
  width: 56px;
  text-align: center;
}

.panel-product-variations__stock-help {
  margin: -2px 0 2px;
  color: #8298b7;
  font-size: 0.74rem;
  line-height: 1.45;
}

.panel-product-variation {
  position: relative;
  padding: 10px 78px 10px 10px;
  border: 1px solid rgba(111, 164, 221, 0.2);
  border-radius: 12px;
  background: rgba(3, 14, 31, 0.52);
}

.panel-product-variation__primary {
  display: grid;
  grid-template-columns: repeat(var(--variation-column-count, 6), minmax(100px, 1fr));
  gap: 9px;
  align-items: end;
}

.panel-product-variation__primary > .auth-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.panel-product-variation__primary > .auth-field input {
  min-height: 42px;
}

.panel-product-variation [data-attribute-field][hidden] {
  display: none !important;
}

.panel-product-variation__details {
  grid-column: 1 / -1;
  min-width: 0;
}

.panel-product-variation__details > summary {
  box-sizing: border-box;
  position: absolute;
  top: 18px;
  right: 13px;
  display: grid;
  min-width: 56px;
  min-height: 34px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(93, 199, 255, 0.22);
  border-radius: 9px;
  background: rgba(30, 91, 132, 0.16);
  color: #9ee7ff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.panel-product-variation__details > summary::-webkit-details-marker {
  display: none;
}

.panel-product-variation__details[open] > summary {
  border-color: rgba(93, 199, 255, 0.52);
  background: rgba(93, 199, 255, 0.14);
  color: #fff;
}

.panel-product-variation__advanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(111, 164, 221, 0.15);
}

.panel-product-variation__description {
  grid-column: 1 / -1;
}

.panel-product-variation__description textarea {
  min-height: 94px;
  resize: vertical;
}

.panel-product-variation__description small {
  color: #7892b2;
  font-size: 0.72rem;
  line-height: 1.45;
}

.panel-product-variation__image-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 72px minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(111, 164, 221, 0.16);
  border-radius: 12px;
  background: rgba(2, 12, 28, 0.5);
}

.panel-product-variation__image-preview {
  display: grid;
  width: 72px;
  height: 72px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(111, 164, 221, 0.24);
  border-radius: 10px;
  background: rgba(2, 12, 28, 0.82);
  color: #5dc7ff;
  font-size: 1.5rem;
}

.panel-product-variation__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-product-variation__image-field .auth-field small {
  display: block;
  margin-top: 6px;
  color: #7892b2;
  font-size: 0.7rem;
  line-height: 1.35;
}

.panel-product-variation__remove-image {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #ffb5c7;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.panel-product-variation__remove-image input {
  width: 17px;
  height: 17px;
  accent-color: #ff7c9a;
}

.panel-product-variation__actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.panel-product-variation__remove,
.panel-product-variation__duplicate,
.panel-product-variation__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 43px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 124, 154, 0.24);
  border-radius: 10px;
  background: rgba(80, 21, 42, 0.18);
  color: #ffb5c7;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.panel-product-variation__duplicate {
  border-color: rgba(93, 199, 255, 0.22);
  background: rgba(30, 91, 132, 0.16);
  color: #9ee7ff;
  white-space: nowrap;
}

.panel-product-variation__delete {
  white-space: nowrap;
}

.panel-product-publish .auth-field + .auth-field {
  margin-top: 0;
}

.panel-product-image {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto minmax(28px, auto) auto;
  gap: 10px 12px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(111, 164, 221, 0.18);
  border-radius: 16px;
  background: rgba(2, 12, 28, 0.42);
}

.panel-product-image__intro {
  margin: 0 0 14px;
  color: #9bb2ce;
  font-size: 0.83rem;
  line-height: 1.55;
}

.panel-product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.panel-product-image__label {
  grid-column: 1 / -1;
  min-height: 2.2em;
  color: #dcecff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.panel-product-image--featured {
  border-color: rgba(93, 199, 255, 0.38);
  background: rgba(24, 77, 112, 0.18);
}

.panel-product-image__preview,
.panel-product-image__empty {
  grid-column: 1;
  grid-row: 2 / span 2;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(111, 164, 221, 0.22);
  border-radius: 14px;
  background: rgba(2, 12, 28, 0.7);
}

.panel-product-image__preview {
  display: block;
  object-fit: contain;
}

.panel-product-image__empty {
  display: grid;
  place-items: center;
  color: #49698f;
}

.panel-product-image__empty svg {
  width: 56px;
  fill: currentColor;
}

.panel-product-image__remove {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffb5c7;
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-product-image > .auth-field {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
}

.panel-product-categories {
  display: grid;
  gap: 5px;
  max-height: 220px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(111, 164, 221, 0.18);
  border-radius: 12px;
  background: rgba(2, 12, 28, 0.48);
}

.panel-product-categories label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #c8d7ed;
  font-size: 0.84rem;
  cursor: pointer;
}

.panel-product-categories label:hover {
  background: rgba(93, 199, 255, 0.08);
}

.panel-product-category-create {
  display: grid;
  gap: 9px;
}

.panel-product-category-create .auth-submit {
  width: 100%;
  min-height: 42px;
}

.panel-product-category-create small {
  color: #7892b2;
  font-size: 0.76rem;
  line-height: 1.45;
}

.panel-product-editor__save {
  display: grid;
  text-align: center;
}

.panel-product-editor__save .auth-submit {
  width: 100%;
}

.panel-product-editor__save small {
  color: #7892b2;
  font-size: 0.76rem;
}

.panel-product-delete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 102, 139, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(86, 13, 39, 0.24), rgba(19, 8, 27, 0.18)),
    rgba(4, 15, 31, 0.82);
}

.panel-product-delete__content {
  display: grid;
  gap: 7px;
}

.panel-product-delete__eyebrow {
  color: #ff9bb5;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-product-delete h2,
.panel-product-delete p {
  margin: 0;
}

.panel-product-delete h2 {
  color: #fff;
  font-size: 1.05rem;
}

.panel-product-delete p {
  max-width: 820px;
  color: #9ab0cb;
  font-size: 0.84rem;
  line-height: 1.55;
}

.panel-product-delete__confirm {
  grid-column: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dbe8f7;
  font-size: 0.8rem;
  line-height: 1.45;
}

.panel-product-delete__confirm input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #ff668b;
}

.panel-product-delete__button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  min-width: 220px;
  background: linear-gradient(135deg, #ff668b, #c93d67);
  box-shadow: 0 14px 32px rgba(255, 77, 128, 0.18);
  color: #fff;
}

.panel-product-delete__button:hover,
.panel-product-delete__button:focus-visible {
  box-shadow: 0 17px 38px rgba(255, 77, 128, 0.3);
  transform: translateY(-1px);
}

.panel-product-list {
  overflow: hidden;
}

.panel-product-list__count {
  padding: 7px 10px;
  border: 1px solid rgba(93, 199, 255, 0.2);
  border-radius: 999px;
  color: #9edfff;
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-product-table {
  overflow: hidden;
  border: 1px solid rgba(111, 164, 221, 0.17);
  border-radius: 15px;
}

.panel-product-table__head,
.panel-product-row {
  display: grid;
  grid-template-columns: minmax(300px, 2.2fr) minmax(115px, 0.72fr) minmax(110px, 0.72fr) minmax(115px, 0.72fr) minmax(110px, auto);
  gap: 15px;
  align-items: center;
}

.panel-product-table__head {
  padding: 11px 16px;
  background: rgba(93, 199, 255, 0.07);
  color: #7f9aba;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-product-row {
  min-height: 90px;
  padding: 13px 16px;
  background: rgba(3, 14, 31, 0.45);
}

.panel-product-row + .panel-product-row {
  border-top: 1px solid rgba(111, 164, 221, 0.14);
}

.panel-product-row:hover {
  background: rgba(22, 51, 86, 0.42);
}

.panel-product-row__product {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.panel-product-row__image {
  display: block;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(111, 164, 221, 0.2);
  border-radius: 12px;
  background: rgba(2, 12, 28, 0.8);
}

.panel-product-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-product-row__product > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.panel-product-row__product > div > a {
  overflow: hidden;
  color: #f6f9ff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-product-row__product small,
.panel-product-row__stock small {
  color: #7895b9;
  font-size: 0.72rem;
}

.panel-product-row__stock {
  display: grid;
  gap: 4px;
}

.panel-product-stock,
.panel-product-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid rgba(111, 164, 221, 0.2);
  border-radius: 999px;
  color: #b5c8e0;
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-product-stock.is-instock,
.panel-product-status.is-publish {
  border-color: rgba(68, 218, 157, 0.28);
  background: rgba(34, 125, 93, 0.15);
  color: #75e7b7;
}

.panel-product-stock.is-outofstock {
  border-color: rgba(255, 111, 139, 0.26);
  background: rgba(125, 35, 60, 0.14);
  color: #ff9db4;
}

.panel-product-status.is-draft,
.panel-product-status.is-pending {
  border-color: rgba(255, 198, 91, 0.25);
  background: rgba(128, 91, 24, 0.14);
  color: #ffd27d;
}

.panel-product-row__price {
  color: #f7fbff;
}

.panel-product-row__actions {
  justify-content: flex-end;
}

.panel-product-row__view {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(111, 164, 221, 0.22);
  border-radius: 50%;
  color: #8edaff;
  font-size: 1.1rem;
}

.panel-product-list__empty {
  padding: 54px 20px;
  text-align: center;
}

.panel-product-list__empty strong {
  color: #f6f9ff;
  font-size: 1.05rem;
}

.panel-product-list__empty p {
  margin: 7px 0 0;
  color: #8199b7;
}

.panel-product-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.panel-product-pagination a {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(111, 164, 221, 0.2);
  border-radius: 10px;
  color: #a9bdd6;
  font-weight: 700;
}

.panel-product-pagination a.is-current {
  border-color: rgba(93, 199, 255, 0.48);
  background: rgba(93, 199, 255, 0.13);
  color: #fff;
}

@media (max-width: 1180px) {
  .panel-product-editor {
    grid-template-columns: 1fr;
  }

  .panel-product-editor__side {
    position: static;
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-product-editor__save {
    align-content: center;
  }

  .panel-product-variation__image-field {
    grid-column: 1 / -1;
  }

  .panel-product-variation-builder {
    grid-template-columns: 1fr 1.5fr;
  }

  .panel-product-variation-builder > .auth-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .panel-product-table {
    border: 0;
  }

  .panel-product-table__head {
    display: none;
  }

  .panel-product-row {
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(105px, 0.65fr));
    border: 1px solid rgba(111, 164, 221, 0.16);
    border-radius: 14px;
  }

  .panel-product-row + .panel-product-row {
    margin-top: 9px;
  }

  .panel-product-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .panel-product-toolbar,
  .panel-product-editor__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-product-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-product-toolbar > .auth-submit,
  .panel-product-editor__toolbar .auth-pill {
    width: 100%;
  }

  .panel-product-editor__grid,
  .panel-product-editor__shipping-grid,
  .panel-product-editor__side,
  .panel-product-variation__primary,
  .panel-product-variation__advanced {
    grid-template-columns: 1fr;
  }

  .panel-product-variation-table-head {
    display: none;
  }

  .panel-product-variation {
    padding: 12px;
  }

  .panel-product-variation__primary > .auth-field > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .panel-product-variation__details > summary {
    position: static;
    width: 100%;
    margin-top: 2px;
  }

  .panel-product-variation-group > summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
    min-height: 64px;
  }

  .panel-product-variation-group__metric {
    display: none;
  }

  .panel-product-variation-group__body {
    padding: 8px;
  }

  .panel-product-attribute-select__options {
    grid-template-columns: 1fr;
  }

  .panel-product-variation-builder,
  .panel-product-variation-builder__intro {
    grid-template-columns: 1fr;
  }

  .panel-product-variation-builder > .auth-pill {
    width: 100%;
    justify-content: center;
  }

  .panel-product-variation__image-field {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .panel-product-variation__image-preview {
    width: 62px;
    height: 62px;
  }

  .panel-product-variation__remove-image {
    grid-column: 1 / -1;
  }

  .panel-product-editor__section {
    padding: 17px;
  }

  .panel-product-editor__wide {
    grid-column: auto;
  }

  .panel-product-delete {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .panel-product-delete__confirm,
  .panel-product-delete__button {
    grid-column: 1;
    grid-row: auto;
  }

  .panel-product-delete__button {
    width: 100%;
    min-width: 0;
  }

  .panel-product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .panel-product-row__product,
  .panel-product-row__actions {
    grid-column: 1 / -1;
  }

  .panel-product-row__actions .auth-pill {
    flex: 1;
    justify-content: center;
  }
}

.panel-sidebar__subnav {
  position: relative;
  margin-top: 10px;
  padding-left: 20px;
}

.panel-sidebar__subnav::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 12px;
  left: 8px;
  width: 1px;
  background: rgba(126, 164, 220, 0.19);
}

.panel-sidebar__subnav .panel-nav__item.is-active {
  border-color: rgba(93, 199, 255, 0.22);
  background: rgba(50, 95, 151, 0.24);
  box-shadow:
    inset 3px 0 0 #5dc7ff,
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.panel-sidebar__subnav .panel-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5dc7ff;
  transform: translateY(-50%);
}

.panel-nav__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-strong);
  flex-shrink: 0;
}

.panel-nav__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.panel-nav__chevron,
.panel-nav__external {
  width: 18px;
  height: 18px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fa5c7;
  flex-shrink: 0;
}

.panel-nav__chevron svg,
.panel-nav__external svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.panel-nav__item--workspace.is-active .panel-nav__chevron {
  color: #5dc7ff;
}

.panel-nav__count {
  margin-left: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.panel-sidebar__subnav .panel-nav__item.is-active .panel-nav__count {
  background: #5dc7ff;
  color: #07101f;
}

.panel-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel-hero {
  max-width: none;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.panel-stat,
.panel-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 28, 0.84);
  box-shadow: 0 22px 44px rgba(3, 8, 21, 0.22);
}

.panel-stat small,
.panel-card__eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-stat strong {
  font-size: 1.65rem;
  color: #fff;
}

.profile-page__layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-page__summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-page__identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-page__avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5dc7ff, #7a5cff);
  color: #fff;
  font-size: var(--text-2xl);
  font-weight: 700;
  box-shadow: 0 18px 38px rgba(93, 199, 255, 0.22);
}

.profile-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-page__identity-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.profile-page__identity-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-page__identity-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.96;
}

.profile-page__identity-copy p {
  margin: 0;
  color: var(--color-muted);
}

.profile-page__admin-games,
.panel-admin-games {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.profile-page__admin-game {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(127, 214, 255, 0.22);
  border-radius: 9px;
  background: rgba(8, 22, 35, 0.72);
}

.profile-page__admin-game img,
.panel-admin-games img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-page__bio {
  margin: 0;
  color: #dfe9ff;
  line-height: 1.7;
  white-space: pre-wrap;
}

.profile-page__url {
  color: #9be8ff;
  text-decoration: none;
  word-break: break-all;
}

.profile-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-page__action-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 38px rgba(4, 10, 24, 0.28);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.profile-page__action-link::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(93, 199, 255, 0.32), rgba(178, 102, 255, 0.32));
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 0;
}

.profile-page__action-link:hover,
.profile-page__action-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 199, 255, 0.26);
  box-shadow: 0 22px 44px rgba(89, 177, 255, 0.22);
  color: #fff;
  outline: none;
}

.profile-page__action-link:hover::before,
.profile-page__action-link:focus-visible::before {
  opacity: 1;
}

.profile-page__action-link > * {
  position: relative;
  z-index: 1;
}

.profile-page__cards {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.profile-page__provider-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.profile-page__favorite-server {
  grid-column: 1 / -1;
}

.profile-page__favorite-server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(93, 199, 255, 0.08)),
    rgba(8, 14, 28, 0.76);
}

.profile-page__favorite-server-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  flex-shrink: 0;
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
  font-size: var(--text-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-page__favorite-server-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-page__favorite-server-copy small,
.profile-page__favorite-server-copy span {
  color: var(--color-muted);
}

.profile-page__favorite-server-copy strong {
  color: #fff;
  font-size: var(--text-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__provider-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(93, 199, 255, 0.12);
  border: 1px solid rgba(93, 199, 255, 0.2);
  color: #d8f6ff;
  font-weight: 700;
}

.profile-page__provider-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(93, 199, 255, 0.18);
  background: rgba(93, 199, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.profile-page__provider-card:hover {
  border-color: rgba(93, 199, 255, 0.34);
  background: rgba(93, 199, 255, 0.12);
  transform: translateY(-1px);
}

.profile-page__provider-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
}

.profile-page__provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-page__provider-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-page__provider-copy small,
.profile-page__provider-copy span {
  color: var(--color-muted);
}

.profile-page__provider-copy strong {
  color: #fff;
  font-size: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-page__game-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.profile-page__game-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-page__game-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(93, 199, 255, 0.18);
  border-radius: 999px;
  background: rgba(93, 199, 255, 0.08);
  color: var(--color-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.profile-page__game-button:hover,
.profile-page__game-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(93, 199, 255, 0.32);
  background: rgba(93, 199, 255, 0.12);
  color: #fff;
  outline: none;
}

.profile-page__game-button.is-active {
  border-color: rgba(93, 199, 255, 0.42);
  background: linear-gradient(120deg, rgba(93, 199, 255, 0.2), rgba(122, 92, 255, 0.22));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(93, 199, 255, 0.16);
}

.profile-page__game-panel {
  display: grid;
  gap: 16px;
}

.profile-page__game-panel[hidden] {
  display: none;
}

.profile-page__game-summary {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(93, 199, 255, 0.08);
  border: 1px solid rgba(93, 199, 255, 0.16);
}

.profile-page__game-summary small {
  display: block;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-page__game-summary strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.profile-page__game-stat-list {
  display: grid;
  gap: 12px;
}

.profile-page__game-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page__game-stat-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-page__game-stat-row span {
  color: var(--color-muted);
}

.profile-page__game-stat-row strong {
  color: #fff;
  text-align: right;
}

.profile-page__status-list {
  display: grid;
  gap: 14px;
}

.profile-page__status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page__status-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-page__status-item span,
.profile-page__muted {
  color: var(--color-muted);
}

/* Account settings dashboard */
.account-settings-page--settings {
  padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 30px);
  background:
    radial-gradient(ellipse at 76% 10%, rgba(34, 148, 202, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(3, 12, 25, 0.78) 0%, rgba(3, 10, 22, 0.96) 62%, #020409 100%),
    var(--frostline-page-bg-image) center 15% / cover no-repeat;
}

.account-settings-page--settings::before {
  background:
    radial-gradient(ellipse at 16% 20%, rgba(78, 199, 255, 0.1), transparent 30%),
    radial-gradient(ellipse at 80% 22%, rgba(132, 91, 255, 0.08), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 16, 0.38) 48%, #020409 100%);
}

.account-settings-page--settings::after {
  display: none;
}

.settings-page__container {
  max-width: 1480px;
}

.settings-page__layout {
  grid-template-columns: 248px minmax(0, 1fr);
}

.settings-page__hero {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.settings-page__hero h1 {
  margin-bottom: 8px;
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
}

.settings-page__secure-badge {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(67, 218, 140, 0.32);
  border-radius: 999px;
  background: rgba(31, 144, 90, 0.11);
  color: #77e5a9;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-page__secure-badge > span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #49dc91;
  color: #062617;
  font-size: var(--text-2xs);
}

.account-settings-page--settings .account-settings-page__panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-settings-page--settings .account-settings-page__panel::before {
  display: none;
}

.account-settings-page--settings .auth-form__notice--standalone:empty {
  display: none;
}

.account-settings-page--settings .auth-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.account-settings-page--settings .auth-settings__card {
  min-width: 0;
  padding: 26px;
  gap: 18px;
  border: 1px solid rgba(129, 177, 222, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 21, 39, 0.95), rgba(4, 13, 27, 0.93));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.account-settings-page--settings .auth-settings__card--profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "heading heading"
    "identity description"
    "avatar description";
  grid-template-rows: auto min-content 1fr;
  align-items: start;
  column-gap: 30px;
}

.account-settings-page--settings .auth-settings__heading {
  grid-area: heading;
}

.account-settings-page--settings .auth-settings__heading h3 {
  color: #f7fbff;
  font-size: var(--text-lg);
}

.account-settings-page--settings .auth-settings__heading p {
  color: #91a4c0;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.account-settings-page--settings .auth-profile-editor {
  grid-area: identity;
  align-items: center;
}

.account-settings-page--settings .auth-profile-editor__avatar {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  border-color: rgba(120, 204, 255, 0.28);
  box-shadow: 0 14px 32px rgba(0, 6, 20, 0.4);
}

.account-settings-page--settings .auth-profile-editor__meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-settings-page--settings .auth-profile-editor__meta strong {
  flex-wrap: wrap;
}

.auth-profile-editor__verified {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(102, 205, 155, 0.22);
  border-radius: 8px;
  background: rgba(65, 175, 117, 0.08);
  color: #b8d8c8;
  font-size: var(--text-2xs);
  font-weight: 700;
}

.auth-profile-editor__verified > span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #4add91;
  color: #062617;
  font-size: var(--text-2xs);
}

.account-settings-page--settings .auth-settings__form--avatar {
  grid-area: avatar;
  align-items: flex-start;
}

.auth-avatar-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  cursor: pointer;
}

.auth-avatar-picker > strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(105, 183, 239, 0.4);
  border-radius: 8px;
  color: #dceeff;
  background: rgba(24, 70, 108, 0.25);
  font-size: var(--text-sm);
}

.auth-avatar-picker:hover > strong,
.auth-avatar-picker:focus-within > strong {
  border-color: #5dc7ff;
  background: rgba(24, 70, 108, 0.45);
}

.auth-avatar-picker:focus-within > strong {
  outline: 2px solid #5dc7ff;
  outline-offset: 3px;
}

.auth-avatar-picker > small:not(.auth-field__error),
.auth-avatar-picker__filename {
  color: #91a4c0;
  font-size: var(--text-2xs);
  overflow-wrap: anywhere;
}

.auth-avatar-picker__filename:empty {
  display: none;
}

.auth-settings__form--avatar.is-avatar-ready > .auth-submit[hidden] {
  display: none;
}

.auth-avatar-dropzone {
  display: grid;
  min-height: 168px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed rgba(133, 176, 219, 0.42);
  border-radius: 14px;
  background: rgba(3, 12, 25, 0.45);
  color: #dce9f9;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;
}

.auth-avatar-dropzone:hover,
.auth-avatar-dropzone:focus-within {
  border-color: rgba(79, 198, 255, 0.76);
  background: rgba(30, 103, 151, 0.1);
  transform: translateY(-2px);
}

.auth-avatar-dropzone input[type="file"],
.auth-avatar-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-avatar-dropzone__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(78, 199, 255, 0.28);
  border-radius: 50%;
  background: rgba(43, 157, 218, 0.1);
  color: #62ceff;
  font-size: var(--text-xl);
}

.auth-avatar-dropzone strong {
  font-size: var(--text-sm);
}

.auth-avatar-dropzone small {
  color: #8398b6;
  font-size: var(--text-2xs);
}

.account-settings-page--settings .auth-settings__card--profile > .auth-settings__form:not(.auth-settings__form--avatar) {
  grid-area: description;
}

.account-settings-page--settings .auth-settings__card--profile textarea {
  height: 116px;
  min-height: 116px;
  resize: vertical;
}

.account-settings-page--settings .auth-submit {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: none;
}

.account-settings-page--settings .auth-submit--outline {
  background: transparent;
  color: #8bd3ff;
  border: 1px solid rgba(105, 183, 239, 0.45);
}

.account-settings-page--settings .auth-submit--outline:hover {
  background: rgba(24, 70, 108, 0.25);
}

.account-settings-page--settings .auth-settings__form > p {
  margin: 0;
  color: #91a4c0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.account-settings-page--settings .auth-security-score {
  grid-template-columns: minmax(0, 1fr) minmax(80px, 0.8fr);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-settings-page--settings .auth-security-score__icon {
  display: none;
}

.account-settings-page--settings .auth-security-score__bars {
  grid-column: auto;
}

.auth-security-score {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(150px, 0.85fr);
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(133, 177, 219, 0.16);
  border-radius: 13px;
  background: rgba(5, 15, 29, 0.7);
}

.auth-security-score__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(135, 199, 255, 0.26);
  border-radius: 50%;
  color: #a8d7ff;
  font-size: var(--text-lg);
}

.auth-security-score > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.auth-security-score small {
  color: #8397b4;
  font-size: var(--text-2xs);
}

.auth-security-score strong {
  color: #8fa4c1;
  font-size: var(--text-sm);
  transition: color 0.25s ease-out;
}

.auth-security-score__bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.auth-security-score__bars i {
  height: 5px;
  border-radius: 999px;
  background: rgba(121, 148, 183, 0.2);
}

.auth-security-score__bars i {
  transition: background-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.auth-security-score__bars i.is-active {
  background: #50dd94;
  box-shadow: 0 0 9px rgba(80, 221, 148, 0.2);
}

.auth-security-score[data-strength="1"] strong,
.auth-security-score[data-strength="1"] .auth-security-score__icon {
  color: #ff7185;
}

.auth-security-score[data-strength="1"] .auth-security-score__bars i.is-active {
  background: #ff5f77;
  box-shadow: 0 0 9px rgba(255, 95, 119, 0.22);
}

.auth-security-score[data-strength="2"] strong,
.auth-security-score[data-strength="2"] .auth-security-score__icon {
  color: #ffb968;
}

.auth-security-score[data-strength="2"] .auth-security-score__bars i.is-active {
  background: #f4a94f;
  box-shadow: 0 0 9px rgba(244, 169, 79, 0.22);
}

.auth-security-score[data-strength="3"] strong,
.auth-security-score[data-strength="3"] .auth-security-score__icon {
  color: #f4dc66;
}

.auth-security-score[data-strength="3"] .auth-security-score__bars i.is-active {
  background: #dfc951;
  box-shadow: 0 0 9px rgba(223, 201, 81, 0.2);
}

.auth-security-score[data-strength="4"] strong,
.auth-security-score[data-strength="5"] strong,
.auth-security-score[data-strength="4"] .auth-security-score__icon,
.auth-security-score[data-strength="5"] .auth-security-score__icon {
  color: #5be39b;
}

.account-settings-page--settings .auth-settings__forgot-link {
  margin-top: 0;
  align-self: center;
}

.account-settings-page--settings .auth-field > input,
.account-settings-page--settings .auth-field > textarea {
  border-radius: 11px;
  background: rgba(2, 9, 20, 0.72);
  border-color: rgba(124, 163, 205, 0.2);
}

.account-settings-page--settings .auth-connections {
  gap: 8px;
}

.account-settings-page--settings .auth-connection {
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(4, 14, 27, 0.74);
}

.account-settings-page--settings .auth-connection__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.account-settings-page--settings .auth-connection__secondary {
  border-radius: 8px;
}

.account-settings-page--settings .auth-connection-stack--disconnect > .auth-connection {
  padding-right: 94px;
}

.account-settings-page--settings .auth-connection__text {
  gap: 2px;
  overflow-wrap: anywhere;
}

.account-settings-page--settings .auth-connection small {
  margin-top: 0;
  font-size: var(--text-2xs);
  line-height: 1.4;
}

.account-settings-page--settings .auth-connection-stack--disconnect > .auth-connection__secondary {
  top: auto;
  bottom: 10px;
  right: 14px;
  min-height: 32px;
  font-size: var(--text-xs);
}

.account-settings-page--settings .auth-connection-stack--disconnect > .auth-connection > [data-auth-connect-label],
.account-settings-page--settings .auth-connection-stack--disconnect > .auth-connection > .auth-connection__vip {
  top: 12px;
  right: 14px;
  font-size: var(--text-2xs);
}

@media (hover: hover) {
  .account-settings-page--settings .auth-settings__card {
    transition: border-color 0.2s ease-out;
  }

  .account-settings-page--settings .auth-settings__card:hover {
    border-color: rgba(83, 191, 255, 0.25);
  }
}

/* Profile dashboard */
.account-settings-page--profile {
  padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 32px);
  background:
    radial-gradient(ellipse at 72% 8%, rgba(35, 128, 190, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(3, 12, 25, 0.76) 0%, rgba(3, 10, 22, 0.96) 58%, #020409 100%),
    var(--frostline-page-bg-image) center 16% / cover no-repeat;
}

.account-settings-page--profile::before {
  background:
    radial-gradient(ellipse at 16% 18%, rgba(78, 199, 255, 0.1), transparent 30%),
    radial-gradient(ellipse at 78% 18%, rgba(132, 91, 255, 0.1), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 16, 0.38) 45%, #020409 100%);
}

.account-settings-page--profile::after {
  display: none;
}

.profile-page__container {
  max-width: 1480px;
}

.profile-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 20px;
}

.profile-page__summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(440px, auto);
  align-items: center;
  gap: 34px;
  min-height: 210px;
  padding: 32px 34px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(7, 20, 38, 0.96) 0%, rgba(9, 24, 44, 0.86) 45%, rgba(16, 22, 48, 0.8) 100%),
    var(--frostline-page-bg-image) 78% 38% / cover no-repeat;
  border-color: rgba(125, 198, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 5, 18, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-page__summary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 48%, rgba(76, 134, 255, 0.08), rgba(158, 86, 255, 0.08));
}

.profile-page__identity,
.profile-page__member-since,
.profile-page__actions {
  position: relative;
  z-index: 1;
}

.profile-page__avatar {
  width: 126px;
  height: 126px;
  border-radius: 22px;
  border: 1px solid rgba(141, 207, 255, 0.25);
  box-shadow: 0 18px 44px rgba(0, 7, 22, 0.46), 0 0 0 5px rgba(81, 188, 255, 0.04);
}

.profile-page__identity-copy h2 {
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
}

.profile-page__admin-game {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.profile-page__member-since {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-page__member-since > span:last-child {
  display: grid;
  gap: 5px;
}

.profile-page__member-since small,
.profile-page__metric small {
  color: #8195b6;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-page__member-since strong {
  color: #fff;
  font-size: var(--text-base);
}

.profile-page__member-calendar {
  position: relative;
  width: 28px;
  height: 27px;
  border: 2px solid #8ca4c7;
  border-radius: 5px;
}

.profile-page__member-calendar::before,
.profile-page__member-calendar::after {
  content: "";
  position: absolute;
}

.profile-page__member-calendar::before {
  left: -2px;
  right: -2px;
  top: 6px;
  border-top: 2px solid #8ca4c7;
}

.profile-page__member-calendar::after {
  left: 5px;
  top: -5px;
  width: 14px;
  height: 7px;
  border-left: 2px solid #8ca4c7;
  border-right: 2px solid #8ca4c7;
}

.profile-page__actions {
  justify-content: flex-end;
  gap: 10px;
}

.profile-page__action-link {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  background: rgba(4, 13, 27, 0.7);
  border-color: rgba(152, 190, 228, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 4, 14, 0.18);
  font-size: var(--text-sm);
}

.profile-page__action-link:first-child {
  border-color: rgba(46, 194, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(46, 194, 255, 0.14), 0 12px 28px rgba(21, 151, 224, 0.12);
}

.profile-page__action-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  color: #7bd8ff;
  font-size: var(--text-base);
  line-height: 1;
}

.profile-page__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.profile-page__metric {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 100px;
  padding: 20px 22px;
  border: 1px solid rgba(133, 177, 220, 0.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 24, 43, 0.92), rgba(6, 16, 31, 0.88));
  box-shadow: 0 18px 44px rgba(0, 5, 17, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profile-page__metric > span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-page__metric strong {
  overflow: hidden;
  color: #f7fbff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__metric-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgba(63, 194, 255, 0.26);
  border-radius: 50%;
  background: rgba(33, 160, 225, 0.1);
  color: #44c7ff;
  font-size: var(--text-lg);
}

.profile-page__metric--playtime .profile-page__metric-icon::before { content: "◷"; }
.profile-page__metric--servers .profile-page__metric-icon::before { content: "▤"; }
.profile-page__metric--warden .profile-page__metric-icon::before { content: "◇"; }
.profile-page__metric--results .profile-page__metric-icon::before { content: "♜"; }

.profile-page__metric--warden .profile-page__metric-icon,
.profile-page__metric--results .profile-page__metric-icon {
  border-color: rgba(166, 99, 255, 0.3);
  background: rgba(145, 79, 230, 0.12);
  color: #ad75ff;
}

.profile-page__playtime-card {
  grid-column: 1 / 3;
  grid-row: 3;
}

.profile-page__cards {
  display: contents;
}

.profile-page__cards > .profile-page__game-card {
  grid-column: 3;
  grid-row: 3;
}

.profile-page__connections {
  grid-column: 1 / 3;
  grid-row: 4;
}

.profile-page__favorite-server {
  grid-column: 3;
  grid-row: 4;
}

.profile-page__layout:not(:has(.profile-page__cards > .profile-page__game-card)) .profile-page__playtime-card,
.profile-page__layout:not(:has(.profile-page__favorite-server)) .profile-page__connections {
  grid-column: 1 / -1;
}

.profile-page__playtime-card,
.profile-page__cards > .panel-card {
  padding: 24px;
  border-radius: 18px;
  border-color: rgba(127, 178, 224, 0.14);
  background: linear-gradient(145deg, rgba(6, 18, 34, 0.94), rgba(4, 12, 25, 0.92));
  box-shadow: 0 20px 52px rgba(0, 4, 15, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profile-page__game-card .panel-card__eyebrow,
.profile-page__connections .panel-card__eyebrow,
.profile-page__favorite-server .panel-card__eyebrow {
  color: #dce9fb;
}

.profile-page__game-switcher {
  gap: 8px;
}

.profile-page__game-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: var(--text-2xs);
}

.profile-page__game-panel {
  gap: 14px;
}

.profile-page__playtime-card .profile-page__game-panel {
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.profile-page__game-summary {
  min-height: 130px;
  padding: 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 15%, rgba(97, 83, 255, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(25, 62, 92, 0.56), rgba(9, 30, 50, 0.7));
}

.profile-page__game-summary strong {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.profile-page__game-stat-list {
  gap: 0;
}

.profile-page__game-stat-row {
  min-height: 43px;
  padding: 9px 0;
}

.profile-page__game-stat-row span {
  overflow: hidden;
  color: #8ca0be;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page__provider-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-page__provider-card {
  min-width: 0;
  padding: 15px;
  border-radius: 15px;
  background: rgba(16, 39, 61, 0.64);
}

.profile-page__provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.profile-page__provider-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-page__online-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #40d98a;
  box-shadow: 0 0 10px rgba(64, 217, 138, 0.42);
}

.profile-page__provider-arrow {
  margin-left: auto;
  color: #8ea9c8;
  font-size: var(--text-xl);
  line-height: 1;
}

.profile-page__favorite-server-card {
  min-height: 128px;
  border-radius: 16px;
}

.profile-page__favorite-server-icon svg {
  width: 25px;
  height: 25px;
  fill: rgba(255, 209, 102, 0.2);
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (hover: hover) {
  .profile-page__metric,
  .profile-page__playtime-card,
  .profile-page__cards > .panel-card {
    transition: transform 0.3s ease-out, border-color 0.3s ease-out;
  }

  .profile-page__metric:hover,
  .profile-page__playtime-card:hover,
  .profile-page__cards > .panel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(83, 191, 255, 0.25);
  }
}

.panel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-card__head h2 {
  margin: 0;
  color: #fff;
}

.panel-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.panel-card__actions form {
  margin: 0;
}

.panel-archive-link,
.panel-archive-action,
.panel-card__actions .panel-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.panel-stats--support-performance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-ticket-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) repeat(3, minmax(110px, 0.8fr)) minmax(185px, auto);
  align-items: end;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(112, 164, 235, 0.16);
  border-radius: 18px;
  background: rgba(6, 13, 27, 0.52);
}

.panel-ticket-filters label,
.panel-ticket-filters label > span {
  display: grid;
  gap: 7px;
}

.panel-ticket-filters label > span {
  color: rgba(187, 211, 246, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel-ticket-filters input,
.panel-ticket-filters select,
.panel-ticket-classification select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(112, 164, 235, 0.2);
  border-radius: 12px;
  background: rgba(6, 13, 27, 0.92);
  color: #eef5ff;
}

.panel-ticket-filters > div {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.panel-ticket-filters .auth-pill,
.panel-ticket-filters .auth-submit {
  min-height: 44px;
}

.panel-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.panel-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(112, 164, 235, 0.2);
  border-radius: 12px;
  color: rgba(220, 234, 255, 0.82);
  text-decoration: none;
}

.panel-pagination a.is-active {
  border-color: rgba(78, 199, 255, 0.58);
  background: rgba(78, 199, 255, 0.16);
  color: #fff;
}

.panel-ticket-classification,
.panel-ticket-history {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(112, 164, 235, 0.16);
  border-radius: 18px;
  background: rgba(6, 13, 27, 0.52);
}

.panel-ticket-tools,
.panel-internal-note-panel {
  margin: 16px 0;
  border: 1px solid rgba(112, 164, 235, 0.18);
  border-radius: 18px;
  background: rgba(6, 13, 27, 0.52);
  overflow: hidden;
}

.panel-ticket-tools > summary,
.panel-internal-note-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.panel-ticket-tools > summary::-webkit-details-marker,
.panel-internal-note-panel > summary::-webkit-details-marker {
  display: none;
}

.panel-ticket-tools > summary::after,
.panel-internal-note-panel > summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(93, 199, 255, 0.1);
  color: #8edfff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.panel-ticket-tools[open] > summary::after,
.panel-internal-note-panel[open] > summary::after {
  content: "−";
}

.panel-ticket-tools > summary > span:first-child,
.panel-internal-note-panel > summary > span:first-child,
.panel-ticket-tools > summary strong,
.panel-ticket-tools > summary small,
.panel-internal-note-panel > summary strong,
.panel-internal-note-panel > summary small {
  display: block;
}

.panel-ticket-tools > summary strong,
.panel-internal-note-panel > summary strong {
  color: #fff;
}

.panel-ticket-tools > summary small,
.panel-internal-note-panel > summary small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.panel-ticket-tools__summary-badges {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.panel-ticket-tools__body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(112, 164, 235, 0.12);
}

.panel-ticket-tools__body .panel-ticket-classification {
  margin-top: 14px;
}

.panel-internal-note-panel {
  border-color: rgba(255, 190, 82, 0.24);
  background: rgba(255, 176, 58, 0.06);
}

.panel-internal-note-panel .panel-internal-note-form {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 190, 82, 0.18);
  border-radius: 0;
}

.panel-history-sidebar {
  position: sticky;
  top: calc(var(--frostline-fixed-stack-height, 90px) + 18px);
  max-height: calc(100vh - var(--frostline-fixed-stack-height, 90px) - 36px);
  margin-top: 0;
  overflow-y: auto;
}

.panel-ticket-classification {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(280px, 1.5fr) auto;
  align-items: end;
  gap: 16px;
}

.panel-layout--with-history .panel-ticket-classification {
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
}

.panel-layout--with-history .panel-ticket-classification > .auth-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.panel-ticket-label-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.panel-ticket-label-picker legend {
  margin-bottom: 8px;
  color: rgba(187, 211, 246, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel-ticket-label-picker > div,
.panel-ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-ticket-label-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(220, 234, 255, 0.86);
  font-size: 0.82rem;
}

.panel-ticket-history ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.panel-ticket-history li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.panel-ticket-history li > span {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #55c9ff;
  box-shadow: 0 0 14px rgba(85, 201, 255, 0.55);
}

.panel-ticket-history li div,
.panel-ticket-history li small {
  display: grid;
  gap: 2px;
}

.panel-ticket-history li small,
.panel-ticket-history > p {
  color: var(--color-muted);
}

.panel-internal-note-form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 190, 82, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 176, 58, 0.1), rgba(255, 122, 82, 0.05));
}

.panel-internal-note-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(255, 190, 82, 0.24);
  border-radius: 14px;
  background: rgba(6, 13, 27, 0.9);
  color: #f5f8ff;
  font: inherit;
  line-height: 1.55;
}

.panel-internal-note-form .auth-submit {
  justify-self: start;
}

.panel-thread__item--internal .panel-thread__bubble {
  border-color: rgba(255, 190, 82, 0.34);
  background: linear-gradient(135deg, rgba(255, 176, 58, 0.14), rgba(255, 122, 82, 0.08));
}

.panel-thread__item--internal .panel-thread__avatar {
  background: linear-gradient(135deg, #ffbe52, #ff7959);
  color: #181006;
}

.panel-thread__internal-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 190, 82, 0.34);
  border-radius: 999px;
  background: rgba(255, 176, 58, 0.1);
  color: #ffd58d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-ticket-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.panel-ticket-metrics > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(112, 164, 235, 0.16);
  border-radius: 15px;
  background: rgba(6, 13, 27, 0.52);
}

.panel-ticket-metrics span {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.panel-ticket-metrics strong {
  color: #fff;
}

.panel-support-benchmarks {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(78, 199, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(78, 199, 255, 0.08), rgba(105, 93, 255, 0.06));
}

.panel-support-benchmarks > div:first-child > span {
  color: #66d2ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-support-benchmarks h3 {
  margin: 5px 0 0;
  color: #fff;
}

.panel-ticket-metrics--benchmarks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

@media (max-width: 1050px) {
  .panel-ticket-filters,
  .panel-ticket-classification {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-history-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .panel-stats--support-performance,
  .panel-ticket-filters,
  .panel-ticket-classification,
  .panel-ticket-metrics,
  .panel-ticket-metrics--benchmarks {
    grid-template-columns: 1fr;
  }

  .panel-layout--with-history .panel-ticket-classification {
    grid-template-columns: 1fr;
  }
}

.panel-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  line-height: 1.45;
}

.panel-notice--success {
  background: rgba(31, 173, 101, 0.12);
  border-color: rgba(31, 173, 101, 0.22);
  color: #9af0bf;
}

.panel-notice--warning {
  background: rgba(255, 198, 84, 0.12);
  border-color: rgba(255, 198, 84, 0.2);
  color: #ffe39a;
}

.panel-notice--error {
  background: rgba(255, 98, 98, 0.12);
  border-color: rgba(255, 98, 98, 0.2);
  color: #ff9d9d;
}

.panel-draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-draft-notice__clear {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-announcement__status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-announcement__status strong,
.panel-announcement__status small,
.panel-announcement__message {
  display: block;
}

.panel-announcement__status strong {
  color: #fff;
}

.panel-announcement__status small {
  margin-top: 6px;
  color: var(--color-muted);
}

.panel-announcement__status.is-active {
  background: rgba(63, 20, 20, 0.72);
  border-color: rgba(255, 102, 102, 0.32);
}

.panel-announcement__status.is-active strong,
.panel-announcement__status.is-active small {
  color: #ffe1e1;
}

.panel-announcement__status.is-expired {
  background: rgba(255, 198, 84, 0.08);
  border-color: rgba(255, 198, 84, 0.16);
}

.panel-announcement__status.is-empty {
  background: rgba(78, 199, 255, 0.06);
  border-color: rgba(78, 199, 255, 0.14);
}

.panel-announcement__message {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(7, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f7dada;
  line-height: 1.7;
}

.panel-card--announcement .panel-announcement__status.is-active {
  background: rgba(78, 199, 255, 0.08);
  border-color: rgba(78, 199, 255, 0.22);
}

.panel-card--announcement .panel-announcement__status.is-active strong {
  color: #dff7ff;
}

.panel-card--announcement .panel-announcement__status.is-active small {
  color: #9ecfe2;
}

.panel-card--announcement .panel-announcement__message {
  background: rgba(6, 17, 34, 0.82);
  border-color: rgba(78, 199, 255, 0.12);
  color: var(--color-text);
}

.panel-card--announcement .panel-announcement__message strong {
  color: var(--color-primary);
}

.panel-announcement-form {
  margin-top: 20px;
}

.panel-announcement-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: 14px;
}

.panel-announcement-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.panel-admins__head {
  align-items: center;
}

.panel-admins__summary {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(78, 199, 255, 0.08);
  border: 1px solid rgba(93, 199, 255, 0.16);
  text-align: right;
}

.panel-admins__summary small,
.panel-admins__summary strong {
  display: block;
}

.panel-admins__summary small {
  color: var(--color-muted);
}

.panel-admins__summary strong {
  margin-top: 4px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.panel-admin-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.panel-admin-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-admin-search__reset {
  min-height: 50px;
}

.panel-admin-active {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-admin-active__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-admin-active__head strong,
.panel-admin-active__head small {
  display: block;
}

.panel-admin-active__head small,
.panel-admin-active__empty {
  color: var(--color-muted);
}

.panel-admin-active__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 18, 32, 0.74);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel-admin-chip:hover,
.panel-admin-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(93, 199, 255, 0.26);
  box-shadow: 0 18px 34px rgba(4, 10, 24, 0.2);
}

.panel-admin-chip__avatar,
.panel-member-card__avatar,
.panel-member-detail__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(93, 199, 255, 0.24), rgba(178, 102, 255, 0.22));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.panel-admin-chip__avatar img,
.panel-member-card__avatar img,
.panel-member-detail__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-admin-chip__text,
.panel-member-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.panel-admin-chip__text strong,
.panel-member-card__copy strong,
.panel-member-detail__identity h3 {
  color: #fff;
}

.panel-admin-chip__text small,
.panel-member-card__copy small,
.panel-member-card__copy span,
.panel-member-detail__identity p {
  color: var(--color-muted);
}

.panel-member-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-member-item {
  display: flex;
  flex-direction: column;
}

.panel-member-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  appearance: none;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 28, 0.7);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel-member-card:hover,
.panel-member-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(93, 199, 255, 0.26);
  box-shadow: 0 18px 34px rgba(4, 10, 24, 0.22);
}

.panel-member-item.is-selected > .panel-member-card {
  border-color: rgba(93, 199, 255, 0.32);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 18px 34px rgba(4, 10, 24, 0.22);
}

.panel-member-card__meta,
.panel-member-detail__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.panel-member-card__meta {
  flex: 1 1 auto;
}

.panel-member-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.panel-member-card__state {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-member-card__state.is-active {
  color: #99f1c0;
}

.panel-admin-games {
  margin-top: 0.35rem;
}

.panel-admin-games img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.panel-admin-game-picker {
  width: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 14px;
}

.panel-admin-game-picker legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.panel-dev-role-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(70, 230, 177, 0.2);
  border-radius: 14px;
  background: rgba(40, 192, 145, 0.07);
  cursor: pointer;
}

.panel-dev-role-option input {
  margin-top: 4px;
}

.panel-dev-role-option span,
.panel-dev-role-option strong,
.panel-dev-role-option small {
  display: block;
}

.panel-dev-role-option strong {
  color: #c6ffeb;
}

.panel-dev-role-option small {
  margin-top: 4px;
  color: var(--color-muted);
  line-height: 1.45;
}

.panel-admin-game-picker__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.panel-admin-game-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(127, 214, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
}

.panel-admin-game-option:has(input:checked) {
  border-color: rgba(127, 214, 255, 0.55);
  background: rgba(40, 141, 192, 0.13);
}

.panel-admin-game-option img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.panel-member-card__badges,
.panel-member-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-member-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-member-badge--staff {
  background: rgba(93, 199, 255, 0.12);
  border-color: rgba(93, 199, 255, 0.24);
  color: #9fe9ff;
}

.panel-member-badge--admin {
  background: rgba(178, 102, 255, 0.14);
  border-color: rgba(178, 102, 255, 0.26);
  color: #e0b9ff;
}

.panel-member-badge--dev {
  background: rgba(70, 230, 177, 0.12);
  border-color: rgba(70, 230, 177, 0.26);
  color: #a5f5d8;
}

.panel-member-badge--member {
  background: rgba(255, 255, 255, 0.05);
  color: #d9e6ff;
}

.panel-member-detail {
  margin-top: 0;
  padding: 20px 20px 22px;
  border: 1px solid rgba(93, 199, 255, 0.22);
  border-top: 0;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.96), rgba(9, 13, 24, 0.94));
}

.panel-member-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-member-detail__identity {
  align-items: flex-start;
}

.panel-member-detail__avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.2rem;
}

.panel-member-detail__identity h3,
.panel-member-detail__identity p {
  margin: 0;
}

.panel-member-detail__identity p {
  margin-top: 4px;
}

.panel-member-detail__badges {
  margin-top: 10px;
}

.panel-member-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.panel-member-detail__item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-member-detail__item span,
.panel-member-detail__item strong {
  display: block;
}

.panel-member-detail__item span {
  color: var(--color-muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.panel-member-detail__item strong {
  color: #fff;
}

.panel-member-detail__note {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.panel-member-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .panel-admin-search {
    grid-template-columns: 1fr;
  }

  .panel-admin-search__actions,
  .panel-member-detail__actions {
    width: 100%;
  }

  .panel-admin-search__actions .auth-submit,
  .panel-admin-search__actions .auth-pill,
  .panel-member-detail__actions .auth-submit {
    width: 100%;
  }

  .panel-admin-active__head,
  .panel-member-card,
  .panel-member-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-member-card__aside {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .panel-announcement-form__grid {
    grid-template-columns: 1fr;
  }

  .panel-announcement-form__actions .auth-submit {
    width: 100%;
  }
}

.panel-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(135, 164, 255, 0.35) rgba(255, 255, 255, 0.04);
}

.panel-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.panel-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(135, 164, 255, 0.35);
}

.panel-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.panel-table th,
.panel-table td {
  padding: 16px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.panel-table thead th {
  border-top: 0;
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-ticket-title strong,
.panel-user strong {
  color: #fff;
}

.panel-ticket-title small,
.panel-user small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
}

.panel-ticket-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(78, 199, 255, 0.08);
  color: #9edfff;
  font-size: 0.72rem;
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d8cff, #5899ff);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.panel-user__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-status__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-status__badge--open {
  background: rgba(33, 201, 110, 0.12);
  color: #7bf0a8;
  box-shadow: inset 0 0 0 1px rgba(33, 201, 110, 0.22);
}

.panel-status__badge--hold {
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.2);
}

.panel-status__badge--closed {
  background: rgba(255, 255, 255, 0.08);
  color: #c4ccda;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.panel-status__priority {
  font-weight: 700;
}

.panel-status__priority--low {
  color: #79e4aa;
}

.panel-status__priority--medium {
  color: #ffd96d;
}

.panel-status__priority--high,
.panel-status__priority--urgent {
  color: #ff924f;
}

.panel-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #5dc7ff, #6f8fff);
  color: #08101f;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(93, 199, 255, 0.22);
}

.panel-manage:hover,
.panel-manage:focus-visible {
  background: linear-gradient(120deg, #74d2ff, #86a0ff);
}

.panel-empty {
  padding: 24px 0 8px;
}

.panel-empty h3,
.panel-empty p,
.panel-ticket-message__body {
  margin: 0;
}

.panel-empty p {
  margin-top: 10px;
  color: var(--color-muted);
}

.panel-ticket-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.panel-ticket-meta__item {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-ticket-meta__item span {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.panel-ticket-meta__item strong {
  display: block;
  color: #fff;
  line-height: 1.35;
}

.panel-ticket-meta__item small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-ticket-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-ticket-actions__head span,
.panel-ticket-actions__head small {
  display: block;
}

.panel-ticket-actions__head span {
  color: #fff;
  font-weight: 700;
}

.panel-ticket-actions__head small {
  margin-top: 4px;
  color: var(--color-muted);
  line-height: 1.5;
}

.panel-ticket-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-ticket-action {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.9);
  color: #d8e2f6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.panel-ticket-action:hover,
.panel-ticket-action:focus-visible {
  border-color: rgba(93, 199, 255, 0.45);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.panel-ticket-action.is-active {
  color: #08101f;
}

.panel-ticket-action--open.is-active {
  background: linear-gradient(120deg, #74f0a5, #4fd98f);
  border-color: rgba(116, 240, 165, 0.5);
}

.panel-ticket-action--hold.is-active {
  background: linear-gradient(120deg, #ffd166, #ffb84d);
  border-color: rgba(255, 209, 102, 0.5);
}

.panel-ticket-action--closed.is-active {
  background: linear-gradient(120deg, #c6d1e4, #96a4bb);
  border-color: rgba(198, 209, 228, 0.45);
}

.panel-ticket-message {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-ticket-message__body {
  color: #eef3ff;
  line-height: 1.7;
  white-space: pre-wrap;
}

.panel-thread {
  display: grid;
  gap: 18px;
  margin: 8px 0 22px;
}

.panel-thread__item {
  display: grid;
  gap: 4px;
  width: 100%;
}

.panel-thread__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.panel-thread__meta strong,
.panel-thread__meta small {
  display: block;
}

.panel-thread__meta strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.panel-thread__avatar-link {
  display: inline-flex;
  border-radius: 999px;
  text-decoration: none;
}

.panel-thread__avatar-link:focus-visible {
  outline: 2px solid rgba(93, 199, 255, 0.9);
  outline-offset: 3px;
}

.panel-thread__author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.panel-thread__author-link:hover,
.panel-thread__author-link:focus-visible {
  color: #8fd4ff;
}

.panel-thread__author-link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.panel-thread__meta small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.panel-thread__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d8cff, #5899ff);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(61, 140, 255, 0.26);
}

.panel-thread__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.panel-thread__item--admin .panel-thread__avatar {
  background: linear-gradient(135deg, #5dc7ff, #b266ff);
  box-shadow: 0 14px 32px rgba(148, 109, 255, 0.24);
}

.panel-thread__bubble {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-top: 2px;
}

.panel-thread__bubble-inner {
  display: inline-block;
  width: auto;
  max-width: min(100%, 34rem);
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  position: relative;
  background: linear-gradient(180deg, rgba(18, 29, 52, 0.96), rgba(12, 20, 38, 0.94));
  border: 1px solid rgba(116, 146, 201, 0.22);
  color: #eef3ff;
  line-height: 1.5;
  white-space: normal;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  box-shadow: 0 10px 26px rgba(5, 10, 24, 0.16);
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: visible;
  box-sizing: border-box;
  z-index: 0;
}

.panel-thread__bubble-inner .frostline-support-message-link {
  color: #70d9ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(112, 217, 255, 0.5);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.panel-thread__bubble-inner .frostline-support-message-link:hover,
.panel-thread__bubble-inner .frostline-support-message-link:focus-visible {
  color: #b8efff;
  text-decoration-color: currentColor;
}

.panel-thread__bubble-inner::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
  z-index: 0;
}

.panel-thread__item--user .panel-thread__meta,
.panel-thread__item--user .panel-thread__bubble {
  justify-content: flex-start;
}

.panel-thread__item--user .panel-thread__bubble-inner {
  background: linear-gradient(180deg, rgba(18, 31, 56, 0.98), rgba(12, 22, 41, 0.95));
  border-color: rgba(104, 168, 255, 0.28);
  box-shadow:
    0 10px 26px rgba(5, 10, 24, 0.16),
    0 0 0 1px rgba(104, 168, 255, 0.04);
}

.panel-thread__item--user .panel-thread__bubble-inner::after {
  left: -6px;
  border-right: 0;
  border-top: 0;
}

.panel-thread__item--admin .panel-thread__meta,
.panel-thread__item--admin .panel-thread__bubble {
  justify-content: flex-end;
}

.panel-thread__item--admin .panel-thread__bubble-inner {
  background: linear-gradient(180deg, rgba(36, 28, 66, 0.98), rgba(24, 20, 46, 0.95));
  border-color: rgba(176, 118, 255, 0.28);
  box-shadow:
    0 12px 30px rgba(59, 23, 101, 0.18),
    0 0 0 1px rgba(176, 118, 255, 0.04);
}

.panel-thread__item--admin .panel-thread__bubble-inner::after {
  right: -6px;
  border-left: 0;
  border-bottom: 0;
}

.panel-thread--admin-view .panel-thread__item--admin .panel-thread__meta,
.panel-thread--admin-view .panel-thread__item--admin .panel-thread__bubble {
  justify-content: flex-start;
}

.panel-thread--admin-view .panel-thread__item--admin .panel-thread__bubble-inner::after {
  left: -6px;
  right: auto;
  border-right: 0;
  border-top: 0;
  border-left: inherit;
  border-bottom: inherit;
}

.panel-thread--admin-view .panel-thread__item--user .panel-thread__meta,
.panel-thread--admin-view .panel-thread__item--user .panel-thread__bubble {
  justify-content: flex-end;
}

.panel-thread--admin-view .panel-thread__item--user .panel-thread__bubble-inner::after {
  right: -6px;
  left: auto;
  border-left: 0;
  border-bottom: 0;
  border-right: inherit;
  border-top: inherit;
}

.panel-thread--user-view .panel-thread__item--user .panel-thread__meta,
.panel-thread--user-view .panel-thread__item--user .panel-thread__bubble {
  justify-content: flex-start;
}

.panel-thread--user-view .panel-thread__item--user .panel-thread__bubble-inner::after {
  left: -6px;
  right: auto;
  border-right: 0;
  border-top: 0;
  border-left: inherit;
  border-bottom: inherit;
}

.panel-thread--user-view .panel-thread__item--admin .panel-thread__meta,
.panel-thread--user-view .panel-thread__item--admin .panel-thread__bubble {
  justify-content: flex-end;
}

.panel-thread--user-view .panel-thread__item--admin .panel-thread__bubble-inner::after {
  right: -6px;
  left: auto;
  border-left: 0;
  border-bottom: 0;
  border-right: inherit;
  border-top: inherit;
}

.panel-reply-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-reply-form__field textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.8);
  color: var(--color-text);
  padding: 15px 18px;
  font: inherit;
  line-height: 1.7;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.panel-reply-form__field textarea::placeholder {
  color: rgba(142, 162, 197, 0.72);
}

.panel-reply-form__field textarea:focus-visible {
  outline: none;
  border-color: rgba(78, 199, 255, 0.6);
  background: rgba(7, 13, 26, 0.98);
  box-shadow:
    0 0 0 4px rgba(78, 199, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-back {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: static;
    max-height: none;
  }

  .panel-ticket-meta {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .panel-table {
    min-width: 760px;
  }

  .auth-actions {
    gap: 10px;
  }

  .auth-pill {
    min-height: 42px;
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .panel-stats {
    grid-template-columns: 1fr;
  }

  .profile-page__cards {
    grid-template-columns: 1fr;
  }

  .panel-layout {
    gap: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .auth-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .panel-admin-game-picker__options {
    grid-template-columns: 1fr;
  }

  .panel-ticket-meta {
    grid-template-columns: 1fr;
  }

  .panel-table {
    min-width: 680px;
  }

  .panel-thread__item {
    max-width: 100%;
  }

  .panel-thread__bubble-inner {
    max-width: min(100%, 88vw);
  }

  .panel-card,
  .panel-stat,
  .panel-sidebar {
    padding: 18px;
    border-radius: 20px;
  }

  .panel-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-settings-page {
    padding: 34px 0 62px;
    background-position: 58% center;
  }

  .account-settings-page__panel,
  .account-settings-page__guest-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .account-settings-page__guest-actions {
    flex-direction: column;
  }

  .account-settings-page__guest-actions .auth-pill {
    width: 100%;
  }

  .auth-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .auth-modal__dialog {
    width: 100%;
    margin: 70px auto 18px;
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .auth-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .auth-modal[data-auth-modal="register"] .auth-modal__dialog {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-register__aside {
    margin-top: 0;
    padding: 16px;
  }

  .auth-modal__dialog--settings {
    width: 100%;
  }

  .auth-modal__title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .auth-field__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-modal[data-auth-modal="register"] .auth-modal__form {
    grid-template-columns: 1fr;
  }

  .auth-modal[data-auth-modal="register"] .auth-submit {
    max-width: none;
    width: 100%;
  }

  .auth-register__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .auth-register__actions span {
    text-align: center;
  }

  .auth-profile__menu {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .profile-page__identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-page__avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .profile-page__actions .btn {
    width: 100%;
  }

  .auth-profile-editor {
    align-items: flex-start;
  }

  .auth-submit--compact {
    width: 100%;
  }

  .auth-provider-grid {
    grid-template-columns: 1fr;
  }

  .auth-login__options {
    align-items: flex-start;
  }

  .auth-login__security {
    padding: 0 8px;
  }
}

/* Matches the collapsed header menu in main.css. */
@media (max-width: 1180px) {
  .site-header .auth-shell {
    width: 100%;
  }

  .site-header .auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .site-header .auth-pill {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    box-shadow: none;
  }

  .site-header .auth-actions--logged-in {
    display: flex;
    justify-content: space-between;
  }

  .site-header .auth-profile,
  .site-header .auth-profile__trigger,
  .site-header .auth-notification-wrap {
    min-width: 0;
  }

  .site-header .auth-profile {
    flex: 1 1 auto;
  }

  .site-header .auth-profile__trigger {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: none;
  }

  .site-header .auth-notification {
    width: 46px;
    height: 46px;
    box-shadow: none;
  }

  .auth-notification__menu,
  .auth-profile__menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: var(--frostline-header-bottom, 82px);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--frostline-header-bottom, 82px) - 18px);
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .account-settings-page__hero h1,
  .profile-page__identity-copy h2,
  .panel-hero h1 {
    letter-spacing: 0;
    line-height: 1.04;
  }

  .account-settings-page__panel,
  .account-settings-page__guest-card,
  .panel-card,
  .panel-stat,
  .panel-sidebar {
    width: 100%;
  }

  .panel-sidebar {
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .panel-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .panel-nav__item {
    min-height: 44px;
    min-width: 0;
    white-space: normal;
  }

  .panel-nav__item.is-active {
    box-shadow: inset 0 -3px 0 #5dc7ff;
  }

  .panel-nav__item--workspace {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .panel-nav-group {
    grid-column: 1 / -1;
  }

  .panel-nav-group__items {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .panel-sidebar__subnav {
    margin-top: 12px;
    padding-left: 0;
  }

  .panel-sidebar__subnav::before,
  .panel-sidebar__subnav .panel-nav__item.is-active::before {
    display: none;
  }

  .panel-sidebar__subnav .panel-nav__item.is-active {
    box-shadow: inset 0 -3px 0 #5dc7ff;
  }

  .panel-nav__item:hover,
  .panel-nav__item:focus-visible,
  .panel-nav__item.is-active {
    transform: none;
  }

  .profile-page__actions,
  .profile-page__game-switcher,
  .account-settings-page__guest-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .profile-page__actions > *,
  .profile-page__game-button,
  .account-settings-page__guest-actions > *,
  .auth-submit,
  .account-settings-page__guest-actions .auth-pill {
    width: 100%;
  }

  .profile-page__provider-card {
    align-items: flex-start;
  }

  .panel-table-wrap,
  .auth-table-wrap {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .site-header .auth-actions {
    gap: 8px;
  }

  .site-header .auth-pill,
  .auth-submit {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-notification__menu,
  .auth-profile__menu {
    left: 10px;
    right: 10px;
  }

  .account-settings-page {
    padding-top: 26px;
  }

  .account-settings-page__panel,
  .account-settings-page__guest-card,
  .panel-card,
  .panel-stat,
  .panel-sidebar {
    padding: 16px;
    border-radius: 18px;
  }

  .panel-card__head,
  .profile-page__provider-card,
  .panel-ticket-meta__item,
  .panel-thread__meta {
    min-width: 0;
  }

  .profile-page__provider-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .panel-ticket-meta__item {
    padding: 14px;
  }

  .panel-thread__bubble-inner {
    padding: 14px;
    border-radius: 18px;
  }
}

@media (max-width: 1180px) {
  .profile-page__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page__summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-page__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .profile-page__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page__playtime-card,
  .profile-page__cards > .profile-page__game-card,
  .profile-page__connections,
  .profile-page__favorite-server,
  .profile-page__layout:not(:has(.profile-page__cards > .profile-page__game-card)) .profile-page__playtime-card,
  .profile-page__layout:not(:has(.profile-page__favorite-server)) .profile-page__connections {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .profile-page__cards {
    display: contents;
  }

  .profile-page__provider-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .account-settings-page--profile {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
    background-attachment: scroll;
  }

  .profile-page__layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-page__summary {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .profile-page__member-since {
    min-height: 0;
    padding: 0;
    border-left: 0;
  }

  .profile-page__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-page__metric {
    min-height: 90px;
    padding: 16px;
  }

  .profile-page__metric-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .profile-page__playtime-card .profile-page__game-panel {
    grid-template-columns: 1fr;
  }

  .profile-page__provider-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .account-settings-page--profile {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 12px);
  }

  .profile-page__summary,
  .profile-page__playtime-card,
  .profile-page__cards > .panel-card {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-page__identity {
    gap: 15px;
  }

  .profile-page__avatar {
    width: 84px;
    height: 84px;
    border-radius: 17px;
  }

  .profile-page__identity-copy h2 {
    font-size: 2.15rem;
  }

  .profile-page__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page__action-link {
    width: 100%;
    padding: 0 12px;
  }

  .profile-page__stats {
    grid-template-columns: 1fr;
  }

  .profile-page__metric {
    min-height: 82px;
  }

  .profile-page__provider-list {
    grid-template-columns: 1fr;
  }

  .profile-page__game-switcher {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .profile-page__game-button {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page__metric,
  .profile-page__playtime-card,
  .profile-page__cards > .panel-card,
  .profile-page__action-link,
  .profile-page__provider-card {
    transition: none;
  }
}

@media (max-width: 860px) {
  .account-settings-page--settings {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
    background-attachment: scroll;
  }

  .settings-page__hero {
    align-items: flex-start;
  }

  .account-settings-page--settings .auth-settings {
    grid-template-columns: 1fr;
  }

  .account-settings-page--settings .auth-settings__card--profile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "identity"
      "avatar"
      "description";
  }
}

@media (max-width: 560px) {
  .account-settings-page--settings {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 12px);
  }

  .settings-page__hero {
    display: grid;
  }

  .settings-page__secure-badge {
    justify-self: start;
  }

  .account-settings-page--settings .auth-settings__card {
    padding: 18px;
    border-radius: 17px;
  }

  .account-settings-page--settings .auth-profile-editor {
    flex-direction: row;
  }

  .account-settings-page--settings .auth-profile-editor__avatar {
    width: 76px;
    height: 76px;
  }

  .auth-avatar-dropzone {
    min-height: 150px;
  }

  .auth-security-score {
    grid-template-columns: auto 1fr;
  }

  .auth-security-score__bars {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-settings-page--settings .auth-settings__card,
  .auth-avatar-dropzone {
    transition: none;
  }
}

/* Staff order management */
.panel-order-management {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel-order-management__stats .panel-stat {
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.09), transparent 42%),
    rgba(9, 14, 28, 0.88);
}

.panel-order-archive-stat {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.panel-order-archive-stat:hover,
.panel-order-archive-stat:focus-visible,
.panel-order-archive-stat.is-active {
  border-color: rgba(93, 199, 255, 0.3);
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.16), transparent 46%),
    rgba(10, 22, 40, 0.94);
}

.panel-order-archive-stat:hover,
.panel-order-archive-stat:focus-visible {
  transform: translateY(-2px);
}

.panel-order-archive-stat:focus-visible {
  outline: 2px solid rgba(93, 199, 255, 0.72);
  outline-offset: 3px;
}

.panel-order-archive-stat span {
  display: block;
  margin-top: 8px;
  color: #8ccff5;
  font-size: 0.74rem;
  font-weight: 700;
}

.panel-order-connection__state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 179, 107, 0.28);
  border-radius: 999px;
  color: #ffc58d;
  background: rgba(255, 153, 71, 0.09);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-order-connection__state.is-connected {
  border-color: rgba(72, 216, 145, 0.3);
  color: #78e8ae;
  background: rgba(72, 216, 145, 0.09);
}

.panel-order-connection__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.panel-order-connection__details > span {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 29, 0.38);
}

.panel-order-connection__details small,
.panel-order-detail__facts small,
.panel-order-kustom__grid small {
  display: block;
  color: #8299bb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-order-connection__details strong,
.panel-order-detail__facts strong,
.panel-order-kustom__grid strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #f6f9ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-connection__details .auth-pill {
  align-self: center;
  justify-content: center;
  white-space: nowrap;
}

.panel-order-connection .panel-notice {
  margin-top: 14px;
}

.panel-order-ledger__total {
  color: #91a7c7;
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-order-ledger__head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-order-filters {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(200px, 0.75fr) auto auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-thread__attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.panel-thread__attachment {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(105, 190, 255, 0.22);
  border-radius: 11px;
  color: inherit;
  background: rgba(3, 15, 30, 0.38);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.panel-thread__attachment:hover {
  border-color: rgba(91, 215, 255, 0.7);
  background: rgba(23, 63, 96, 0.58);
}

.panel-thread__attachment img {
  width: 76px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.panel-thread__attachment > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.panel-thread__attachment strong,
.panel-thread__attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-thread__attachment strong {
  font-size: 0.76rem;
}

.panel-thread__attachment small {
  color: var(--auth-muted, #8ea5c5);
  font-size: 0.68rem;
}

@media (max-width: 680px) {
  .panel-thread__attachments {
    grid-template-columns: 1fr;
  }
}

.panel-order-filters__dates {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 12px;
}

.panel-order-filters__dates .auth-field {
  width: min(180px, 100%);
}

.panel-order-filters__searches {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.panel-order-filters__searches legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #89a6d0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-order-filters .auth-submit,
.panel-order-filters .auth-pill {
  min-height: 46px;
  justify-content: center;
}

.panel-order-filters > .auth-submit,
.panel-order-filters > .auth-pill {
  margin-top: 25px;
}

.panel-order-table {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 18px;
  background: rgba(4, 14, 29, 0.34);
}

.panel-order-table__head,
.panel-order-table__row {
  display: grid;
  grid-template-columns:
    minmax(130px, 0.85fr)
    minmax(190px, 1.35fr)
    minmax(125px, 0.85fr)
    minmax(130px, 0.9fr)
    minmax(100px, 0.65fr)
    30px;
  gap: 15px;
  align-items: center;
}

.panel-order-table__head {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(126, 164, 220, 0.14);
  color: #7f96b7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-order-table__head > span:nth-child(5) {
  text-align: right;
}

.panel-order-table__row {
  min-height: 70px;
  padding: 10px 18px;
  color: #dbe7f7;
  text-decoration: none;
  transition:
    color 160ms ease-out,
    background-color 160ms ease-out,
    box-shadow 160ms ease-out;
}

.panel-order-table__row + .panel-order-table__row {
  border-top: 1px solid rgba(126, 164, 220, 0.11);
}

.panel-order-table__row:hover,
.panel-order-table__row:focus-visible,
.panel-order-table__row.is-selected {
  color: #fff;
  background: rgba(93, 199, 255, 0.06);
}

.panel-order-table__row.is-selected {
  box-shadow: inset 3px 0 0 #5dc7ff;
}

.panel-order-table__row:focus-visible {
  outline: 2px solid rgba(93, 199, 255, 0.72);
  outline-offset: -3px;
}

.panel-order-table__row > span {
  min-width: 0;
}

.panel-order-table__number strong,
.panel-order-table__customer strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-table__number strong {
  color: #70d5ff;
  font-size: 1rem;
}

.panel-order-table__number small,
.panel-order-table__customer small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7f96b7;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-table__payment {
  overflow: hidden;
  color: #aebfda;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-table__amount {
  color: #f7fbff;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.panel-order-table__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7e9bc2;
}

.panel-order-table__open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.panel-order-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #8ea4c4;
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-order-ledger__empty {
  padding: 36px 20px;
}

.panel-order-detail {
  scroll-margin-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
}

.panel-order-detail__navigation {
  display: flex;
  align-items: center;
}

.panel-order-detail__navigation .auth-pill {
  gap: 8px;
}

.panel-order-detail__navigation svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.panel-order-detail__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.panel-order-detail__facts > span {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 29, 0.38);
}

.panel-order-detail__facts em {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #8299bb;
  font-size: 0.74rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-detail__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 14px;
  margin-top: 14px;
}

.panel-order-detail__items,
.panel-order-detail__address,
.panel-order-kustom,
.panel-order-refunds,
.panel-order-timeline,
.panel-order-action {
  padding: 18px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 18px;
  background: rgba(4, 14, 29, 0.34);
}

.panel-order-detail__items h3,
.panel-order-detail__address h3,
.panel-order-kustom h3,
.panel-order-refunds h3,
.panel-order-timeline h3,
.panel-order-action h3 {
  margin: 0 0 14px;
  color: #f7fbff;
  font-size: 1rem;
}

.panel-order-detail__items > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: #f2f7ff;
}

.panel-order-detail__items > div + div {
  border-top: 1px solid rgba(126, 164, 220, 0.11);
}

.panel-order-detail__items small {
  display: block;
  margin-top: 4px;
  color: #8299bb;
  font-size: 0.72rem;
}

.panel-order-detail__product {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.panel-order-detail__thumbnail {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(111, 203, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(32, 65, 105, 0.72), rgba(7, 20, 39, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-order-detail__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-order-detail__thumbnail--placeholder svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #6f8bad;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.panel-order-detail__product-copy {
  min-width: 0;
}

.panel-order-detail__product-copy > strong {
  display: block;
  overflow-wrap: anywhere;
}

.panel-order-detail__item-price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.panel-order-detail__address address,
.panel-order-detail__address p {
  margin: 0;
  color: #b4c5dd;
  font-style: normal;
  line-height: 1.65;
}

.panel-order-detail__address p {
  margin-top: 10px;
}

.panel-order-customer-editor {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(93, 199, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.08), transparent 42%),
    rgba(4, 14, 29, 0.38);
}

.panel-order-customer-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #f5f9ff;
  cursor: pointer;
  list-style: none;
}

.panel-order-customer-editor > summary::-webkit-details-marker {
  display: none;
}

.panel-order-customer-editor > summary::after {
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-right: 2px solid #76d5ff;
  border-bottom: 2px solid #76d5ff;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.panel-order-customer-editor[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.panel-order-customer-editor > summary > span:first-child {
  min-width: 0;
}

.panel-order-customer-editor > summary strong,
.panel-order-customer-editor > summary small {
  display: block;
}

.panel-order-customer-editor > summary strong {
  font-size: 0.9rem;
}

.panel-order-customer-editor > summary small {
  margin-top: 2px;
  color: #8ea5c5;
  font-size: 0.7rem;
  line-height: 1.35;
}

.panel-order-customer-editor__state {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(91, 220, 181, 0.22);
  border-radius: 999px;
  color: #8de9cb;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(91, 220, 181, 0.08);
}

.panel-order-customer-editor__state.is-locked {
  border-color: rgba(255, 178, 91, 0.2);
  color: #ffd39d;
  background: rgba(255, 178, 91, 0.07);
}

.panel-order-customer-editor__body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(126, 164, 220, 0.12);
}

.panel-order-customer-editor__sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.panel-order-customer-editor__sections > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 164, 220, 0.13);
  border-radius: 16px;
  background: rgba(6, 18, 36, 0.5);
}

.panel-order-customer-editor__heading h3 {
  margin: 0 0 14px;
  color: #f7fbff;
  font-size: 0.95rem;
}

.panel-order-customer-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-order-customer-editor__wide {
  grid-column: 1 / -1;
}

.panel-order-customer-editor__readonly {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(126, 164, 220, 0.13);
  border-radius: 12px;
  background: rgba(3, 12, 25, 0.45);
}

.panel-order-customer-editor__readonly > span,
.panel-order-customer-editor__readonly > strong,
.panel-order-customer-editor__readonly > small {
  display: block;
}

.panel-order-customer-editor__readonly > span {
  color: #9fb1ca;
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-order-customer-editor__readonly > strong {
  overflow: hidden;
  margin-top: 5px;
  color: #edf7ff;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-customer-editor__readonly > small {
  margin-top: 6px;
  color: #728baa;
  font-size: 0.68rem;
  line-height: 1.45;
}

.panel-order-customer-editor__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(93, 199, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 37, 61, 0.23);
}

.panel-order-customer-editor__footer .panel-order-confirm {
  max-width: 620px;
  margin-right: auto;
}

.panel-order-kustom {
  margin-top: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.09), transparent 42%),
    rgba(4, 14, 29, 0.42);
}

.panel-order-kustom__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-order-kustom__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panel-order-kustom__grid > span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(126, 164, 220, 0.13);
  border-radius: 14px;
  background: rgba(6, 18, 36, 0.52);
}

.panel-order-kustom__id {
  margin-top: 12px;
  color: #8fa6c7;
  font-size: 0.76rem;
}

.panel-order-kustom__id summary {
  cursor: pointer;
  font-weight: 700;
}

.panel-order-kustom__id code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #bfeaff;
  background: rgba(0, 0, 0, 0.24);
}

.panel-order-refunds {
  margin-top: 14px;
  border-color: rgba(255, 178, 91, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 178, 91, 0.07), transparent 44%),
    rgba(37, 24, 7, 0.2);
}

.panel-order-refunds__head,
.panel-order-refunds__item,
.panel-order-timeline__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-order-refunds__head > strong {
  color: #ffd39d;
  font-size: 1.05rem;
}

.panel-order-refunds__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.panel-order-refunds__item {
  padding: 12px 14px;
  border: 1px solid rgba(255, 178, 91, 0.12);
  border-radius: 13px;
  color: #f5f8ff;
  background: rgba(6, 18, 36, 0.4);
}

.panel-order-refunds__item span {
  min-width: 0;
}

.panel-order-refunds__item small,
.panel-order-refunds__item em {
  display: block;
  margin-top: 3px;
  color: #91a6c5;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.45;
}

.panel-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panel-order-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-order-action > div > p:not(.panel-card__eyebrow) {
  margin: -6px 0 0;
  color: #91a6c5;
  font-size: 0.82rem;
  line-height: 1.55;
}

.panel-order-action--danger {
  border-color: rgba(255, 116, 139, 0.2);
  background: rgba(50, 14, 28, 0.19);
}

.panel-order-action--price-adjustment {
  grid-column: 1 / -1;
  border-color: rgba(93, 199, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(173, 103, 255, 0.13), transparent 38%),
    radial-gradient(circle at 0 100%, rgba(93, 199, 255, 0.1), transparent 40%),
    rgba(5, 21, 42, 0.72);
}

.panel-order-price-adjustment__head,
.panel-order-price-adjustment__history > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-order-price-adjustment__head > div {
  min-width: 0;
}

.panel-order-price-adjustment__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(93, 199, 255, 0.3);
  border-radius: 999px;
  color: #83e3ff;
  background: rgba(49, 130, 172, 0.17);
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-order-price-adjustment__payment-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid rgba(93, 199, 255, 0.2);
  border-radius: 14px;
  color: #ddecff;
  background: rgba(4, 16, 32, 0.58);
}

.panel-order-price-adjustment__payment-guide > div {
  min-width: 0;
  padding: 14px 16px;
}

.panel-order-price-adjustment__payment-guide > div + div {
  border-left: 1px solid rgba(93, 199, 255, 0.16);
}

.panel-order-price-adjustment__payment-guide small {
  display: block;
  margin-bottom: 6px;
  color: #7f9fc9;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-order-price-adjustment__payment-guide strong {
  display: block;
  color: #f6fbff;
  font-size: 0.92rem;
}

.panel-order-price-adjustment__payment-state strong {
  color: #83e3ff;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
}

.panel-order-price-adjustment__payment-guide span {
  display: block;
  margin-top: 5px;
  color: #91a6c5;
  font-size: 0.72rem;
  line-height: 1.5;
}

.panel-order-price-adjustment__payment-guide--refund {
  border-color: rgba(255, 137, 190, 0.24);
}

.panel-order-price-adjustment__payment-guide--refund > div + div {
  border-left-color: rgba(255, 137, 190, 0.18);
}

.panel-order-price-adjustment__payment-guide--refund .panel-order-price-adjustment__payment-state strong {
  color: #ff9bc6;
}

.panel-order-price-adjustment__payment-guide--authorization .panel-order-price-adjustment__payment-action {
  background: rgba(24, 89, 72, 0.13);
}

.panel-order-price-adjustment__payment-guide--refund .panel-order-price-adjustment__payment-action {
  background: rgba(116, 39, 75, 0.12);
}

.panel-order-payment-status-help {
  overflow: hidden;
  border: 1px solid rgba(93, 199, 255, 0.14);
  border-radius: 13px;
  background: rgba(5, 17, 34, 0.42);
}

.panel-order-payment-status-help__title {
  display: block;
  padding: 11px 13px;
  color: #a9c2df;
  font-size: 0.7rem;
  font-weight: 700;
}

.panel-order-payment-status-help dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 13px;
  border-top: 1px solid rgba(93, 199, 255, 0.12);
}

.panel-order-payment-status-help dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.panel-order-payment-status-help dl > div + div {
  border-top: 1px solid rgba(126, 164, 220, 0.1);
}

.panel-order-payment-status-help dl > div.is-current {
  margin: 0 -7px;
  padding-right: 7px;
  padding-left: 7px;
  border-color: transparent;
  border-radius: 8px;
  background: rgba(77, 190, 243, 0.09);
}

.panel-order-payment-status-help dl > div.is-current + div {
  border-top-color: transparent;
}

.panel-order-payment-status-help dt {
  color: #71d5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
}

.panel-order-payment-status-help dd {
  margin: 0;
  color: #9bb0ca;
  font-size: 0.68rem;
  line-height: 1.5;
}

.panel-order-payment-status-help > p {
  margin: 0;
  padding: 10px 13px 12px;
  border-top: 1px solid rgba(126, 164, 220, 0.1);
  color: #7187a5;
  font-size: 0.64rem;
}

.panel-order-price-adjustment__fields {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(95px, 0.35fr) minmax(165px, 0.65fr) minmax(250px, 1fr);
  gap: 12px;
}

.panel-order-price-adjustment__preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panel-order-price-adjustment__preview > span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(126, 164, 220, 0.14);
  border-radius: 13px;
  background: rgba(4, 15, 31, 0.58);
}

.panel-order-price-adjustment__preview small,
.panel-order-price-adjustment__history small {
  display: block;
  color: #91a6c5;
  font-size: 0.68rem;
  line-height: 1.45;
}

.panel-order-price-adjustment__preview strong {
  display: block;
  margin-top: 5px;
  color: #f6fbff;
  font-size: 1rem;
}

.panel-order-price-adjustment__preview .is-refund {
  border-color: rgba(101, 235, 184, 0.25);
  background: rgba(18, 73, 57, 0.2);
}

.panel-order-price-adjustment__preview .is-refund strong {
  color: #72efc1;
}

.panel-order-action--price-adjustment > .auth-submit {
  align-self: flex-start;
  width: auto;
  min-width: 220px;
}

.panel-order-price-adjustment__history {
  display: grid;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(126, 164, 220, 0.13);
}

.panel-order-price-adjustment__history > div {
  padding: 10px 12px;
  border: 1px solid rgba(126, 164, 220, 0.11);
  border-radius: 12px;
  background: rgba(3, 13, 27, 0.44);
}

.panel-order-price-adjustment__history > div > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.panel-order-detail__adjusted-price {
  color: #72efc1 !important;
}

.panel-order-action--shipping {
  border-color: rgba(93, 199, 255, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.11), transparent 44%),
    rgba(5, 27, 49, 0.3);
}

.panel-order-shipping__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-order-shipping__head > div {
  min-width: 0;
}

.panel-order-shipping__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(93, 199, 255, 0.3);
  border-radius: 999px;
  color: #75d8ff;
  background: rgba(39, 118, 159, 0.18);
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-order-shipping__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.65fr);
  gap: 9px;
}

.panel-order-shipping__dimensions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.panel-order-shipping__dimensions legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: #f4f8ff;
  font-size: 0.7rem;
  font-weight: 700;
}

.panel-order-shipping__suggestion {
  grid-column: 1 / -1;
  margin: 0;
  color: #91a6c5;
  font-size: 0.67rem;
  line-height: 1.45;
}

.panel-order-shipping__api-state {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px dashed rgba(93, 199, 255, 0.25);
  border-radius: 13px;
  background: rgba(3, 15, 31, 0.36);
}

.panel-order-shipping__api-state > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #06172b;
  background: #65cfff;
  font-weight: 700;
}

.panel-order-shipping__api-state strong,
.panel-order-shipping__api-state small {
  display: block;
}

.panel-order-shipping__api-state strong {
  color: #eaf8ff;
  font-size: 0.74rem;
}

.panel-order-shipping__api-state small {
  margin-top: 3px;
  color: #91a6c5;
  font-size: 0.67rem;
  line-height: 1.45;
}

.panel-order-shipping__postnord-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.panel-order-shipping__postnord-data > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(93, 199, 255, 0.14);
  border-radius: 10px;
  background: rgba(3, 15, 31, 0.28);
}

.panel-order-shipping__postnord-data dt {
  color: #7894b6;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.panel-order-shipping__postnord-data dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #e8f5ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
}

.panel-order-shipping__postnord-data a {
  color: #72d6ff;
}

.panel-order-shipping__tracking-form {
  margin-top: -2px;
}

.panel-order-shipping__service-point-change {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(105, 204, 255, 0.24);
  border-radius: 14px;
  background: rgba(36, 125, 179, 0.08);
}

.panel-order-shipping__service-point-change p {
  max-width: 760px;
  margin: 6px 0;
}

.panel-order-shipping__service-point-change small {
  display: block;
  color: var(--text-muted, #9fb3c8);
}

.panel-order-shipping__service-point-change .auth-submit {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-decoration: none;
}

.panel-order-shipping__locked {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 178, 91, 0.2);
  border-radius: 12px;
  color: #e2c9a6;
  background: rgba(74, 45, 10, 0.19);
  font-size: 0.7rem;
  line-height: 1.5;
}

.panel-order-refund-alert {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 190, 91, 0.28);
  border-radius: 13px;
  color: #ffe3b5;
  background: rgba(74, 45, 10, 0.26);
}

.panel-order-refund-alert strong {
  color: #fff0cc;
  font-size: 0.78rem;
}

.panel-order-refund-alert span {
  color: #d9c29b;
  font-size: 0.7rem;
  line-height: 1.5;
}

.panel-order-refund-alert--complete {
  border-color: rgba(91, 220, 181, 0.28);
  color: #b9f3df;
  background: rgba(9, 67, 55, 0.24);
}

.panel-order-refund-alert--complete strong {
  color: #80efca;
}

.panel-order-refund-alert--complete span {
  color: #a9cfc3;
}

.panel-order-refund-alert--error {
  border-color: rgba(255, 116, 139, 0.3);
  background: rgba(73, 16, 33, 0.3);
}

.panel-order-refund-alert--error strong {
  color: #ff9eb0;
}

.panel-order-refund-alert--error span {
  color: #dcb0ba;
}

.panel-order-action--return {
  grid-column: 1 / -1;
  border-color: rgba(91, 220, 181, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 220, 181, 0.08), transparent 44%),
    rgba(7, 38, 35, 0.2);
}

.panel-order-return__head,
.panel-order-return__items-head,
.panel-order-return__item,
.panel-order-return__selected > div,
.panel-order-return__postnord,
.panel-order-return__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-order-return__head {
  align-items: flex-start;
}

.panel-order-return__head h3 {
  margin-bottom: 8px;
}

.panel-order-return__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(91, 220, 181, 0.28);
  border-radius: 999px;
  color: #7bf2cb;
  background: rgba(20, 91, 76, 0.2);
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-order-return__badge--muted {
  color: #91a6c5;
  border-color: rgba(126, 164, 220, 0.18);
  background: rgba(126, 164, 220, 0.08);
}

.panel-order-return__scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.panel-order-return__scope legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #f4f8ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.panel-order-return__scope label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 14px;
  color: #f4f8ff;
  background: rgba(3, 15, 31, 0.46);
  cursor: pointer;
}

.panel-order-return__scope label:has(input:checked) {
  border-color: rgba(91, 220, 181, 0.52);
  box-shadow: inset 0 0 0 1px rgba(91, 220, 181, 0.12);
}

.panel-order-return__scope input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #5bdcb5;
}

.panel-order-return__scope span,
.panel-order-return__scope small,
.panel-order-return__selected span,
.panel-order-return__selected small {
  display: block;
  min-width: 0;
}

.panel-order-return__scope small,
.panel-order-return__items-head span,
.panel-order-return__item small,
.panel-order-return__selected small,
.panel-order-return__postnord small {
  margin-top: 3px;
  color: #91a6c5;
  font-size: 0.7rem;
  line-height: 1.45;
}

.panel-order-return__items {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(93, 199, 255, 0.14);
  border-radius: 15px;
  background: rgba(3, 15, 31, 0.34);
}

.panel-order-return__items[hidden] {
  display: none !important;
}

.panel-order-return__items-head {
  align-items: flex-end;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(126, 164, 220, 0.12);
}

.panel-order-return__item {
  min-width: 0;
  padding: 9px 0;
  color: #f4f8ff;
}

.panel-order-return__item > span {
  min-width: 0;
}

.panel-order-return__item select {
  flex: 0 0 82px;
  min-height: 40px;
  padding: 8px 30px 8px 12px;
  border: 1px solid rgba(126, 164, 220, 0.22);
  border-radius: 11px;
  color: #f4f8ff;
  background-color: rgba(2, 12, 27, 0.76);
}

.panel-order-return__fields {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.panel-order-return__fields textarea {
  resize: vertical;
}

.panel-order-return__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.panel-order-return__summary > div,
.panel-order-return__notes > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(91, 220, 181, 0.14);
  border-radius: 13px;
  background: rgba(3, 15, 31, 0.38);
}

.panel-order-return__summary span,
.panel-order-return__notes span {
  display: block;
  margin-bottom: 5px;
  color: #78a8d8;
  font-family: var(--font-mono, monospace);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-order-return__selected,
.panel-order-return__notes {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(126, 164, 220, 0.13);
  border-radius: 15px;
  background: rgba(3, 15, 31, 0.32);
}

.panel-order-return__selected > div {
  padding-top: 8px;
  border-top: 1px solid rgba(126, 164, 220, 0.1);
}

.panel-order-return__selected > strong + div {
  padding-top: 0;
  border-top: 0;
}

.panel-order-return__notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-order-return__notes p {
  margin: 0;
  color: #d7e4f8;
  font-size: 0.76rem;
  line-height: 1.55;
}

.panel-order-return__postnord {
  justify-content: flex-start;
  padding: 12px 13px;
  border: 1px dashed rgba(93, 199, 255, 0.24);
  border-radius: 14px;
  background: rgba(6, 31, 54, 0.34);
}

.panel-order-return__postnord > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #06172b;
  background: #65cfff;
  font-weight: 700;
}

.panel-order-return__postnord > div {
  min-width: 0;
  margin-right: auto;
}

.panel-order-return__postnord small {
  display: block;
}

.panel-order-return__postnord button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.panel-order-return__next {
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(91, 220, 181, 0.13);
}

.panel-order-return__next .panel-order-confirm {
  flex: 1 1 auto;
}

.panel-order-return__state {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(91, 220, 181, 0.14);
  border-radius: 13px;
  color: #b9d9cf;
  background: rgba(12, 62, 51, 0.16);
  font-size: 0.76rem;
  line-height: 1.55;
}

.panel-return-management {
  display: grid;
  gap: 18px;
}

.panel-return-management .panel-card {
  min-width: 0;
}

.panel-return-search .panel-order-filters {
  grid-template-columns: 1fr;
  margin: 18px 0 0;
}

.panel-order-filters__search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.panel-order-filters__search label,
.panel-order-filters__dates label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #89a6d0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-order-filters__search input,
.panel-order-filters__dates input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(126, 164, 220, 0.2);
  border-radius: 12px;
  color: #f4f8ff;
  background: rgba(2, 12, 27, 0.72);
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: normal;
  text-transform: none;
}

.panel-order-filters__search input:focus,
.panel-order-filters__dates input:focus {
  outline: 2px solid rgba(91, 215, 255, 0.24);
  border-color: rgba(91, 215, 255, 0.66);
}

.panel-return-list__rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.panel-return-list__row {
  display: grid;
  grid-template-columns:
    minmax(86px, 0.55fr)
    minmax(150px, 1.3fr)
    minmax(110px, 0.85fr)
    minmax(135px, 1fr)
    minmax(105px, 0.7fr)
    28px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 14px;
  color: #f4f8ff;
  background: rgba(3, 15, 31, 0.4);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.panel-return-list__row:hover {
  border-color: rgba(91, 215, 255, 0.5);
  background: rgba(14, 43, 72, 0.54);
  transform: translateY(-1px);
}

.panel-return-list__row > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-return-list__row small {
  color: #789bc9;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-return-list__row strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-return-list__arrow {
  display: block;
  color: #5bd7ff;
  font-size: 1.15rem;
  text-align: right;
}

.panel-return-management__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-order-return-link {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-color: rgba(91, 220, 181, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 220, 181, 0.07), transparent 46%),
    rgba(5, 28, 35, 0.24);
}

.panel-order-return-link__copy {
  min-width: 0;
}

.panel-order-return-link__copy h3 {
  margin: 2px 0 5px;
}

.panel-order-return-link__copy p:last-child {
  margin: 0;
  color: #91a6c5;
  font-size: 0.78rem;
}

.panel-order-return-link__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .panel-order-return__scope,
  .panel-order-return__fields,
  .panel-order-return__summary,
  .panel-order-return__notes {
    grid-template-columns: 1fr;
  }

  .panel-order-return__head,
  .panel-order-return__postnord,
  .panel-order-return__next {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-return__badge {
    align-self: flex-start;
  }

  .panel-order-return__postnord > div {
    margin-right: 0;
  }

  .panel-order-filters__search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-return-list__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-return-list__arrow {
    display: none;
  }

  .panel-order-return-link {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-return-link__actions {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .panel-order-filters__search,
  .panel-return-list__row {
    grid-template-columns: 1fr;
  }

  .panel-order-filters__dates {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-return-link__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-return-link__actions .panel-order-return__badge {
    align-self: flex-start;
  }
}

.panel-order-action--receipt {
  border-color: rgba(93, 199, 255, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(93, 199, 255, 0.1), transparent 44%),
    rgba(7, 29, 51, 0.28);
}

.panel-order-receipt__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-order-receipt__email {
  display: grid;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 164, 220, 0.12);
}

.panel-order-receipt__recipient {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(126, 164, 220, 0.13);
  border-radius: 12px;
  background: rgba(4, 14, 29, 0.4);
}

.panel-order-receipt__recipient input {
  min-height: 42px;
  padding: 10px 12px;
}

.panel-order-receipt__recipient .panel-order-receipt__hint {
  display: block;
  color: #8299bb;
  font-size: 0.69rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}

.panel-order-action--archive {
  grid-column: 1 / -1;
  border-color: rgba(93, 199, 255, 0.18);
  background: rgba(10, 37, 61, 0.22);
}

.panel-order-archive-notice {
  margin-top: -4px;
  border-color: rgba(93, 199, 255, 0.2);
  color: #a9ddf6;
  background: rgba(93, 199, 255, 0.08);
}

.panel-order-action__grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
}

.panel-order-restock {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(91, 220, 181, 0.2);
  border-radius: 13px;
  background: rgba(35, 105, 82, 0.08);
}

.panel-order-restock legend {
  padding: 0 7px;
  color: #b8f1dc;
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-order-restock > p {
  margin: 0 0 11px;
  color: #91a9a3;
  font-size: 0.75rem;
  line-height: 1.45;
}

.panel-order-restock__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.panel-order-restock__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(133, 177, 219, 0.13);
  border-radius: 10px;
  background: rgba(3, 12, 25, 0.48);
}

.panel-order-restock__item span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.panel-order-restock__item strong {
  overflow: hidden;
  color: #edf8f5;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-restock__item small {
  color: #829b96;
  font-size: 0.68rem;
}

.panel-order-restock__item input {
  width: 64px;
  min-height: 38px;
  padding: 7px;
  border: 1px solid rgba(91, 220, 181, 0.24);
  border-radius: 8px;
  background: #071426;
  color: #fff;
  text-align: center;
}

.panel-order-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #a9bad3;
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}

.panel-order-confirm input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #5dc7ff;
}

.panel-order-confirm--danger {
  color: #ffacba;
}

.panel-order-confirm--danger input {
  accent-color: #ff748b;
}

.panel-order-action .auth-submit {
  align-self: flex-start;
}

.panel-order-worklog {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  margin-top: 14px;
}

.panel-order-action--note {
  border-color: rgba(168, 137, 255, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(168, 137, 255, 0.07), transparent 44%),
    rgba(25, 16, 48, 0.2);
}

.panel-order-timeline {
  min-width: 0;
}

.panel-order-timeline__list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.panel-order-timeline__list li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 11px;
  padding: 0 0 17px;
}

.panel-order-timeline__list li:not(:last-child)::before {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 5px;
  width: 1px;
  content: "";
  background: rgba(126, 164, 220, 0.18);
}

.panel-order-timeline__marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid #5dc7ff;
  border-radius: 50%;
  background: #07162a;
}

.panel-order-timeline__meta strong {
  color: #dce9fa;
  font-size: 0.74rem;
}

.panel-order-timeline__meta time {
  color: #7189aa;
  font-size: 0.69rem;
  white-space: nowrap;
}

.panel-order-timeline__list p {
  margin: 6px 0 0;
  color: #9eb1cc;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Order workspace redesign */
.panel-order-detail {
  padding: 16px;
  border-color: rgba(93, 199, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(70, 126, 211, 0.08), transparent 30%),
    rgba(4, 13, 27, 0.9);
  box-shadow:
    0 28px 70px rgba(0, 6, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.panel-order-overview {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(10, 28, 50, 0.94), rgba(5, 16, 32, 0.92));
}

.panel-order-overview .panel-card__head {
  align-items: center;
  margin: 0;
  padding: 15px 17px 13px;
}

.panel-order-overview__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panel-order-overview__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(93, 199, 255, 0.25);
  border-radius: 12px;
  color: #78d6ff;
  background: rgba(93, 199, 255, 0.07);
}

.panel-order-overview__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.panel-order-overview .panel-card__eyebrow {
  margin-bottom: 2px;
  color: #79cfff;
  font-size: 0.65rem;
}

.panel-order-overview .panel-card__head h2 {
  font-size: 1.35rem;
  line-height: 1;
}

.panel-order-overview .panel-order-archive-notice {
  margin: 0 14px 12px;
}

.panel-order-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 14px 13px;
  padding: 11px 13px;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 13px;
  background: rgba(4, 14, 29, 0.42);
}

.panel-order-owner > div {
  min-width: 0;
}

.panel-order-owner strong,
.panel-order-owner span {
  display: block;
}

.panel-order-owner > div > span,
.panel-order-owner small {
  margin-top: 3px;
  color: #91a8c7;
  font-size: 0.74rem;
}

.panel-order-owner form,
.panel-order-owner .auth-submit {
  flex: 0 0 auto;
  margin: 0;
}

.panel-order-owner--unhandled {
  border-color: rgba(104, 211, 255, 0.28);
  background: rgba(51, 153, 211, 0.08);
}

.panel-order-owner--handled {
  justify-content: flex-start;
  color: #72e8b1;
}

.panel-order-owner--handled > span {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(79, 218, 151, 0.12);
}

.panel-order-owner--handled p {
  margin: 0;
}

.panel-order-overview .panel-order-detail__facts {
  gap: 0;
  padding: 0 6px;
  border-top: 1px solid rgba(126, 164, 220, 0.13);
}

.panel-order-overview .panel-order-detail__facts > span {
  padding: 13px 14px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.panel-order-overview .panel-order-detail__facts > span + span {
  border-left: 1px solid rgba(126, 164, 220, 0.12);
}

.panel-order-overview .panel-order-detail__facts small {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.panel-order-overview .panel-order-detail__facts strong {
  margin-top: 5px;
  font-size: 0.82rem;
}

.panel-order-detail__columns {
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.65fr);
  gap: 10px;
  margin-top: 12px;
}

.panel-order-detail__items,
.panel-order-detail__address,
.panel-order-kustom,
.panel-order-refunds,
.panel-order-timeline,
.panel-order-action {
  padding: 15px;
  border-radius: 15px;
  background: rgba(5, 17, 34, 0.62);
}

.panel-order-detail__items h3,
.panel-order-detail__address h3,
.panel-order-kustom h3,
.panel-order-refunds h3,
.panel-order-timeline h3,
.panel-order-action h3 {
  margin-bottom: 11px;
  font-size: 0.94rem;
}

.panel-order-detail__items > div {
  padding: 10px 0;
}

.panel-order-detail__address address,
.panel-order-detail__address p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.panel-order-customer-editor,
.panel-order-kustom,
.panel-order-refunds,
.panel-order-actions,
.panel-order-worklog {
  margin-top: 12px;
}

.panel-order-customer-editor {
  border-radius: 15px;
}

.panel-order-kustom {
  border-color: rgba(93, 199, 255, 0.19);
}

.panel-order-kustom__head {
  align-items: center;
}

.panel-order-kustom__grid {
  gap: 8px;
}

.panel-order-kustom__grid > span {
  padding: 11px 12px;
  border-radius: 12px;
}

.panel-order-actions {
  gap: 10px;
}

.panel-order-action {
  gap: 11px;
  min-width: 0;
}

.panel-order-action > div > p:not(.panel-card__eyebrow) {
  font-size: 0.75rem;
  line-height: 1.48;
}

.panel-order-action .auth-field > span,
.panel-order-action .panel-order-confirm {
  font-size: 0.7rem;
}

.panel-order-action .auth-field > input,
.panel-order-action .auth-field > select,
.panel-order-action .auth-field > textarea {
  min-height: 42px;
}

.panel-order-action--status,
.panel-order-action--receipt,
.panel-order-action--shipping,
.panel-order-action--return {
  min-height: 100%;
}

.panel-order-action--danger {
  grid-column: 1 / -1;
}

.panel-order-action--danger .auth-submit {
  color: #fff;
  background: linear-gradient(135deg, #ff607b, #d83d63);
  box-shadow: 0 12px 28px rgba(216, 61, 99, 0.2);
}

.panel-order-action--danger .auth-submit:hover,
.panel-order-action--danger .auth-submit:focus-visible {
  background: linear-gradient(135deg, #ff7189, #e5486d);
  box-shadow: 0 14px 32px rgba(216, 61, 99, 0.28);
}

.panel-order-action--archive {
  padding: 13px 15px;
}

.panel-order-worklog {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.panel-order-timeline__list {
  max-height: 390px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 6px;
  scrollbar-color: rgba(93, 199, 255, 0.28) transparent;
  scrollbar-width: thin;
}

@media (min-width: 1420px) {
  .panel-order-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
    gap: 12px;
  }

  .panel-order-detail > .panel-order-overview,
  .panel-order-detail > .panel-order-refunds,
  .panel-order-detail > .panel-order-actions,
  .panel-order-detail > .panel-order-worklog {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .panel-order-detail > .panel-order-detail__columns {
    grid-column: 1;
    margin-top: 0;
  }

  .panel-order-detail > .panel-order-customer-editor {
    grid-column: 1;
    align-self: start;
    margin-top: 0;
  }

  .panel-order-detail > .panel-order-kustom {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    margin-top: 0;
  }

  .panel-order-detail:not(:has(> .panel-order-kustom)) > .panel-order-detail__columns,
  .panel-order-detail:not(:has(> .panel-order-kustom)) > .panel-order-customer-editor {
    grid-column: 1 / -1;
  }

  .panel-order-detail > .panel-order-kustom .panel-order-kustom__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .panel-order-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .panel-order-action--danger {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr) auto;
    align-items: center;
  }

  .panel-order-action--danger > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .panel-order-action--danger .panel-order-action__grid {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .panel-order-action--danger .panel-order-confirm {
    grid-column: 1;
    grid-row: 2;
  }

  .panel-order-action--danger .auth-submit {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    white-space: nowrap;
  }

  .panel-order-action--archive {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr) auto;
    align-items: center;
  }

  .panel-order-action--archive .auth-submit {
    justify-self: end;
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .panel-order-customer-editor__sections {
    grid-template-columns: 1fr;
  }

  .panel-order-table__head,
  .panel-order-table__row {
    grid-template-columns:
      minmax(120px, 0.8fr)
      minmax(170px, 1.2fr)
      minmax(125px, 0.85fr)
      minmax(100px, 0.7fr)
      28px;
  }

  .panel-order-table__head > span:nth-child(4),
  .panel-order-table__row > span:nth-child(4) {
    display: none;
  }

  .panel-order-table__head > span:nth-child(5) {
    text-align: right;
  }
}

@media (max-width: 900px) {
  .panel-order-connection__details,
  .panel-order-detail__facts,
  .panel-order-kustom__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-order-connection__details .auth-pill {
    grid-column: 1 / -1;
  }

  .panel-order-filters,
  .panel-order-detail__columns,
  .panel-order-actions,
  .panel-order-worklog,
  .panel-order-price-adjustment__fields {
    grid-template-columns: 1fr;
  }

  .panel-order-filters__dates {
    grid-column: auto;
  }

  .panel-order-filters > .auth-submit,
  .panel-order-filters > .auth-pill {
    margin-top: 0;
  }

  .panel-order-overview .panel-order-detail__facts > span:nth-child(odd) {
    border-left: 0;
  }

  .panel-order-overview .panel-order-detail__facts > span:nth-child(n + 3) {
    border-top: 1px solid rgba(126, 164, 220, 0.12);
  }
}

@media (max-width: 720px) {
  .panel-order-price-adjustment__head,
  .panel-order-price-adjustment__history > div {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-price-adjustment__badge {
    align-self: flex-start;
  }

  .panel-order-price-adjustment__preview {
    grid-template-columns: 1fr;
  }

  .panel-order-price-adjustment__payment-guide {
    grid-template-columns: 1fr;
  }

  .panel-order-price-adjustment__payment-guide > div + div {
    border-top: 1px solid rgba(93, 199, 255, 0.16);
    border-left: 0;
  }

  .panel-order-payment-status-help dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .panel-order-price-adjustment__history > div > span:last-child {
    text-align: left;
  }

  .panel-order-action--price-adjustment > .auth-submit {
    width: 100%;
    min-width: 0;
  }

  .panel-order-shipping__head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-shipping__badge {
    align-self: flex-start;
  }

  .panel-order-shipping__grid,
  .panel-order-shipping__dimensions,
  .panel-order-shipping__postnord-data {
    grid-template-columns: 1fr;
  }

  .panel-order-shipping__service-point-change {
    flex-direction: column;
  }

  .panel-order-shipping__service-point-change .auth-submit {
    width: 100%;
  }

  .panel-order-filters__dates,
  .panel-order-filters__searches {
    grid-template-columns: 1fr;
  }

  .panel-order-filters__dates {
    display: grid;
  }

  .panel-order-filters__dates .auth-field {
    width: 100%;
  }

  .panel-order-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .panel-order-table__head {
    display: none;
  }

  .panel-order-table__body {
    display: grid;
    gap: 10px;
  }

  .panel-order-table__row,
  .panel-order-table__row + .panel-order-table__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(126, 164, 220, 0.16);
    border-radius: 16px;
    background: rgba(4, 14, 29, 0.45);
  }

  .panel-order-table__row > span:nth-child(3),
  .panel-order-table__row > span:nth-child(4),
  .panel-order-table__row > span:nth-child(6) {
    display: none;
  }

  .panel-order-table__customer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .panel-order-table__amount {
    grid-column: 2;
    grid-row: 1;
  }

  .panel-order-detail__facts,
  .panel-order-kustom__grid {
    grid-template-columns: 1fr;
  }

  .panel-order-detail {
    padding: 12px;
  }

  .panel-order-overview .panel-card__head {
    align-items: flex-start;
    padding: 14px;
  }

  .panel-order-owner {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-order-owner .auth-submit {
    width: 100%;
  }

  .panel-order-overview .panel-order-detail__facts {
    padding: 0;
  }

  .panel-order-overview .panel-order-detail__facts > span,
  .panel-order-overview .panel-order-detail__facts > span:nth-child(odd) {
    border-left: 0;
  }

  .panel-order-overview .panel-order-detail__facts > span + span {
    border-top: 1px solid rgba(126, 164, 220, 0.12);
  }

  .panel-order-action__grid {
    grid-template-columns: 1fr;
  }

  .panel-order-customer-editor > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-order-customer-editor__state {
    margin-left: 0;
  }

  .panel-order-customer-editor__grid {
    grid-template-columns: 1fr;
  }

  .panel-order-customer-editor__wide,
  .panel-order-customer-editor__readonly {
    grid-column: auto;
  }

  .panel-order-customer-editor__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .panel-order-connection__details {
    grid-template-columns: 1fr;
  }

  .panel-order-connection__details .auth-pill {
    grid-column: auto;
  }

  .panel-order-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .panel-order-action .auth-submit {
    width: 100%;
  }
}

/* Staff coupon management */
.panel-coupon-management {
  display: grid;
  gap: 22px;
}

.panel-coupon-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel-coupon-stat {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 96px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 18px;
  background: rgba(6, 19, 38, 0.76);
}

.panel-coupon-stat::before {
  position: absolute;
  top: -45px;
  right: -35px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(84, 201, 255, 0.12);
  content: "";
  filter: blur(5px);
}

.panel-coupon-stat--active {
  border-color: rgba(73, 230, 172, 0.28);
}

.panel-coupon-stat--active::before {
  background: rgba(73, 230, 172, 0.16);
}

.panel-coupon-stat--scheduled::before {
  background: rgba(134, 124, 255, 0.18);
}

.panel-coupon-stat span {
  color: #93a9c8;
  font-size: 13px;
  font-weight: 700;
}

.panel-coupon-stat strong {
  position: relative;
  color: #f7fbff;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.panel-coupon-layout {
  display: grid;
  gap: 22px;
}

.panel-coupon-create,
.panel-coupon-list {
  padding: 24px;
  border: 1px solid rgba(126, 164, 220, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(17, 43, 74, 0.74), rgba(4, 15, 31, 0.82)),
    rgba(5, 17, 35, 0.9);
}

.panel-coupon-create .panel-card__head,
.panel-coupon-list .panel-card__head {
  margin-bottom: 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(126, 164, 220, 0.14);
}

.panel-coupon-create .panel-card__head h2,
.panel-coupon-list .panel-card__head h2 {
  margin: 4px 0 6px;
}

.panel-coupon-create .panel-card__head p:last-child,
.panel-coupon-list .panel-card__head p:last-child {
  max-width: 760px;
  margin: 0;
  color: #8fa8ca;
}

.panel-coupon-create__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel-coupon-create__wide {
  grid-column: 1 / -1;
}

.panel-coupon-create .auth-field {
  min-width: 0;
}

.panel-coupon-create .auth-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #bcd2ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-coupon-create input[type="text"],
.panel-coupon-create input[type="number"],
.panel-coupon-create input[type="date"],
.panel-coupon-create select,
.panel-coupon-create textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 164, 220, 0.24);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 12, 27, 0.76);
  color: #f7fbff;
  font: inherit;
}

.panel-coupon-create textarea {
  min-height: 92px;
  resize: vertical;
}

.panel-coupon-create select[multiple] {
  min-height: 132px;
  padding: 8px;
}

.panel-coupon-create select[multiple] option {
  padding: 9px 10px;
  border-radius: 7px;
}

.panel-coupon-create select[multiple] option:checked {
  background: linear-gradient(90deg, rgba(85, 205, 252, 0.34), rgba(151, 103, 255, 0.32));
  color: #fff;
}

.panel-coupon-create input:focus,
.panel-coupon-create select:focus,
.panel-coupon-create textarea:focus {
  border-color: #55cdfc;
  box-shadow: 0 0 0 3px rgba(85, 205, 252, 0.12);
}

.panel-coupon-create input[type="date"] {
  color-scheme: dark;
}

.panel-coupon-create .auth-field small {
  display: block;
  margin-top: 7px;
  color: #7791b4;
  font-size: 12px;
}

.panel-coupon-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.panel-coupon-code-field .auth-pill {
  min-height: 50px;
}

.panel-coupon-bogo {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(85, 205, 252, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(85, 205, 252, 0.09), rgba(151, 103, 255, 0.07)),
    rgba(2, 12, 27, 0.58);
}

.panel-coupon-bogo[hidden],
.panel-coupon-target-picker[hidden],
[data-coupon-code-field][hidden],
[data-coupon-standard-fields][hidden] {
  display: none;
}

.panel-coupon-bogo__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-coupon-bogo__intro strong {
  color: #f7fbff;
  font-size: 17px;
}

.panel-coupon-bogo__intro p,
.panel-coupon-bogo__example {
  margin: 5px 0 0;
  color: #8fa8ca;
  font-size: 13px;
}

.panel-coupon-bogo__intro > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(73, 230, 172, 0.3);
  border-radius: 999px;
  background: rgba(73, 230, 172, 0.08);
  color: #63e8b8;
  font-size: 11px;
  font-weight: 700;
}

.panel-coupon-bogo__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel-coupon-bogo__example {
  margin: 0;
  color: #67d7ff;
  font-weight: 700;
}

.panel-coupon-target-picker {
  padding: 16px;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 14px;
  background: rgba(2, 12, 27, 0.38);
}

.panel-coupon-create__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(126, 164, 220, 0.14);
}

.panel-coupon-create__footer p {
  margin: 0;
  color: #7791b4;
  font-size: 13px;
}

.panel-coupon-create__footer .auth-submit {
  width: auto;
  min-width: 210px;
}

.panel-coupon-list__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(85, 205, 252, 0.26);
  border-radius: 999px;
  color: #67d7ff;
  font-size: 12px;
  font-weight: 700;
}

.panel-coupon-table {
  overflow: hidden;
  border: 1px solid rgba(126, 164, 220, 0.16);
  border-radius: 16px;
}

.panel-coupon-table__head,
.panel-coupon-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.35fr)
    minmax(110px, 0.75fr)
    minmax(190px, 1.15fr)
    minmax(110px, 0.65fr)
    minmax(90px, 0.6fr)
    auto;
  align-items: center;
  gap: 14px;
}

.panel-coupon-table__head {
  padding: 12px 16px;
  background: rgba(20, 48, 81, 0.7);
  color: #7f99bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-coupon-row {
  min-height: 92px;
  padding: 15px 16px;
  background: rgba(3, 13, 29, 0.52);
}

.panel-coupon-row + .panel-coupon-row {
  border-top: 1px solid rgba(126, 164, 220, 0.12);
}

.panel-coupon-row > div {
  min-width: 0;
}

.panel-coupon-row strong,
.panel-coupon-row span {
  color: #edf6ff;
}

.panel-coupon-row small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #7691b5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-coupon-copy {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7fbff;
  cursor: pointer;
  font: inherit;
}

.panel-coupon-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-coupon-copy span {
  color: #62d5ff;
  transition: transform 150ms ease;
}

.panel-coupon-copy:hover span,
.panel-coupon-copy.is-copied span {
  transform: scale(1.2);
}

.panel-coupon-copy.is-copied strong {
  color: #6ce8bd;
}

.panel-coupon-row__mode {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(85, 205, 252, 0.28);
  border-radius: 999px;
  background: rgba(85, 205, 252, 0.08);
  color: #67d7ff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-coupon-row__discount,
.panel-coupon-row__usage {
  display: grid;
}

.panel-coupon-status {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(126, 164, 220, 0.22);
  border-radius: 999px;
  background: rgba(126, 164, 220, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.panel-coupon-status.is-active {
  border-color: rgba(73, 230, 172, 0.34);
  background: rgba(73, 230, 172, 0.1);
  color: #63e8b8;
}

.panel-coupon-status.is-scheduled {
  border-color: rgba(112, 197, 255, 0.35);
  background: rgba(112, 197, 255, 0.1);
  color: #73d5ff;
}

.panel-coupon-status.is-used,
.panel-coupon-status.is-expired {
  color: #8fa4c1;
}

.panel-coupon-row__action {
  justify-self: end;
}

.panel-coupon-row__action .auth-pill--danger {
  border-color: rgba(255, 115, 147, 0.26);
  background: rgba(255, 79, 121, 0.08);
  color: #ff9ab2;
}

.panel-coupon-row__action .auth-pill--danger:hover {
  border-color: rgba(255, 115, 147, 0.5);
  background: rgba(255, 79, 121, 0.14);
}

.panel-coupon-empty {
  padding: 44px 20px;
  border: 1px dashed rgba(126, 164, 220, 0.22);
  border-radius: 16px;
  text-align: center;
}

.panel-coupon-empty strong {
  color: #f7fbff;
}

.panel-coupon-empty p {
  margin: 6px 0 0;
  color: #8098b8;
}

@media (max-width: 1120px) {
  .panel-coupon-table__head {
    display: none;
  }

  .panel-coupon-table {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
  }

  .panel-coupon-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    border: 1px solid rgba(126, 164, 220, 0.16);
    border-radius: 16px;
  }

  .panel-coupon-row + .panel-coupon-row {
    border-top: 1px solid rgba(126, 164, 220, 0.16);
  }

  .panel-coupon-row__code {
    grid-column: 1 / -1;
  }

  .panel-coupon-row__action {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .panel-coupon-stats {
    grid-template-columns: 1fr;
  }

  .panel-coupon-stat {
    min-height: 78px;
  }

  .panel-coupon-create,
  .panel-coupon-list {
    padding: 16px;
  }

  .panel-coupon-create__fields,
  .panel-coupon-row {
    grid-template-columns: 1fr;
  }

  .panel-coupon-create__wide,
  .panel-coupon-row__code {
    grid-column: auto;
  }

  .panel-coupon-code-field {
    grid-template-columns: 1fr;
  }

  .panel-coupon-bogo__intro {
    flex-direction: column;
  }

  .panel-coupon-bogo__fields {
    grid-template-columns: 1fr;
  }

  .panel-coupon-create__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-coupon-create__footer .auth-submit {
    width: 100%;
  }

  .panel-coupon-list .panel-card__head {
    align-items: flex-start;
  }
}

/* Compact order management workspace */
.panel-order-detail {
  --order-panel-border: rgba(111, 168, 230, 0.18);
  --order-panel-surface: rgba(5, 18, 36, 0.74);
  --order-panel-surface-strong: rgba(7, 23, 44, 0.94);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.72fr);
  grid-auto-flow: row dense;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(24, 113, 180, 0.1), transparent 30%),
    rgba(3, 12, 25, 0.92);
}

.panel-order-detail > * {
  min-width: 0;
}

.panel-order-detail > .panel-order-overview,
.panel-order-detail > .panel-order-progress {
  grid-column: 1 / -1;
  margin: 0;
}

.panel-order-detail > .panel-order-overview {
  order: 1;
}

.panel-order-detail > .panel-order-progress {
  order: 2;
}

.panel-order-detail > .panel-order-detail__columns,
.panel-order-detail > .panel-order-customer-editor,
.panel-order-detail > .panel-order-worklog,
.panel-order-detail > .panel-order-refunds {
  grid-column: 1;
  align-self: start;
  margin: 0;
}

.panel-order-detail > .panel-order-detail__columns {
  order: 3;
}

.panel-order-detail > .panel-order-customer-editor {
  order: 4;
}

.panel-order-detail > .panel-order-worklog {
  order: 5;
}

.panel-order-detail > .panel-order-refunds {
  order: 6;
}

.panel-order-detail > .panel-order-kustom {
  grid-column: 2;
  grid-row: auto;
  align-self: start;
  order: 4;
  margin: 0;
}

.panel-order-detail:not(:has(> .panel-order-kustom)) > .panel-order-detail__columns,
.panel-order-detail:not(:has(> .panel-order-kustom)) > .panel-order-customer-editor {
  grid-column: 1;
}

.panel-order-detail > .panel-order-actions {
  display: contents;
}

.panel-order-actions > .panel-order-action,
.panel-order-actions > .panel-order-disclosure {
  grid-column: 2;
  align-self: start;
  min-width: 0;
  margin: 0;
}

.panel-order-actions > .panel-order-action--status {
  order: 3;
}

.panel-order-actions > .panel-order-action--shipping {
  order: 5;
}

.panel-order-actions > .panel-order-disclosure--receipt {
  order: 6;
}

.panel-order-actions > .panel-order-return-link {
  order: 7;
}

.panel-order-actions > .panel-order-disclosure--price {
  order: 8;
}

.panel-order-actions > .panel-order-disclosure--danger {
  order: 9;
}

.panel-order-actions > .panel-order-disclosure--archive {
  order: 10;
}

.panel-order-actions > .panel-order-disclosure--price[open],
.panel-order-actions > .panel-order-disclosure--danger[open] {
  grid-column: 1 / -1;
}

.panel-order-overview {
  position: relative;
  z-index: 3;
  overflow: visible;
  border-color: var(--order-panel-border);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(8, 29, 54, 0.97), rgba(4, 16, 32, 0.95));
}

.panel-order-overview .panel-card__head {
  min-height: 64px;
  padding: 12px 14px;
}

.panel-order-overview__controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-order-more {
  position: relative;
}

.panel-order-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(126, 177, 232, 0.2);
  border-radius: 9px;
  color: #d9e9fb;
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  background: rgba(7, 22, 42, 0.84);
}

.panel-order-more > summary::-webkit-details-marker {
  display: none;
}

.panel-order-more > summary::after {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.panel-order-more[open] > summary,
.panel-order-more > summary:hover,
.panel-order-more > summary:focus-visible {
  border-color: rgba(88, 203, 255, 0.48);
  outline: none;
  color: #fff;
}

.panel-order-more nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(112, 174, 235, 0.25);
  border-radius: 12px;
  background: rgba(4, 15, 31, 0.98);
  box-shadow: 0 18px 45px rgba(0, 4, 15, 0.5);
}

.panel-order-more nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #bcd0e9;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-order-more nav a:hover,
.panel-order-more nav a:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(65, 165, 235, 0.14);
}

.panel-order-overview .panel-order-detail__facts {
  grid-template-columns: 1.15fr 0.8fr 0.9fr 0.65fr;
}

.panel-order-progress {
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--order-panel-border);
  border-radius: 14px;
  background: var(--order-panel-surface-strong);
}

.panel-order-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-order-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: #6f829e;
  text-align: center;
}

.panel-order-progress li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 14px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  content: "";
  background: rgba(111, 147, 191, 0.2);
}

.panel-order-progress li.is-complete:not(:last-child)::after {
  background: linear-gradient(90deg, #4bd0ff, #55d6b2);
}

.panel-order-progress__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(111, 147, 191, 0.3);
  border-radius: 50%;
  color: #7f94af;
  font-size: 0.68rem;
  font-weight: 700;
  background: #07172b;
}

.panel-order-progress li.is-complete,
.panel-order-progress li.is-current {
  color: #e7f6ff;
}

.panel-order-progress li.is-complete .panel-order-progress__marker {
  border-color: rgba(74, 222, 172, 0.55);
  color: #061b20;
  background: linear-gradient(135deg, #57d9ff, #54dda7);
}

.panel-order-progress li.is-current .panel-order-progress__marker {
  border-color: #58cfff;
  color: #eaf9ff;
  background: rgba(42, 162, 224, 0.24);
  box-shadow: 0 0 0 4px rgba(70, 188, 245, 0.09);
}

.panel-order-progress li strong {
  font-size: 0.7rem;
}

.panel-order-progress li small {
  overflow: hidden;
  max-width: 100%;
  color: #7288a6;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-progress.is-cancelled {
  border-color: rgba(242, 93, 123, 0.28);
}

.panel-order-progress.is-cancelled li:first-child {
  color: #f2a0b1;
}

.panel-order-progress.is-cancelled li:first-child .panel-order-progress__marker {
  border-color: rgba(242, 93, 123, 0.65);
  color: #ffd9e1;
  background: rgba(205, 50, 83, 0.2);
}

.panel-order-progress > p {
  margin: 10px 0 0;
  color: #e59aaa;
  font-size: 0.68rem;
  text-align: center;
}

.panel-order-detail__columns {
  gap: 10px;
  margin: 0;
}

.panel-order-detail__items,
.panel-order-detail__address,
.panel-order-kustom,
.panel-order-refunds,
.panel-order-timeline,
.panel-order-action,
.panel-order-customer-editor,
.panel-order-disclosure {
  border-color: var(--order-panel-border);
  border-radius: 13px;
  background: var(--order-panel-surface);
}

.panel-order-action--status,
.panel-order-action--shipping {
  padding: 14px;
}

.panel-order-action--status .auth-submit,
.panel-order-action--shipping .auth-submit {
  width: 100%;
}

.panel-order-action--status > div > p:not(.panel-card__eyebrow),
.panel-order-action--shipping .panel-order-shipping__head p {
  color: #7f96b3;
  font-size: 0.7rem;
}

.panel-order-action--status .auth-submit {
  background: linear-gradient(100deg, #914ef5, #48aef7);
}

.panel-order-kustom__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-order-worklog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.panel-order-worklog > .panel-order-timeline {
  order: 1;
}

.panel-order-worklog > .panel-order-disclosure--note {
  order: 2;
}

.panel-order-timeline__list {
  max-height: 520px;
}

.panel-order-disclosure {
  overflow: hidden;
  border: 1px solid var(--order-panel-border);
}

.panel-order-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 11px 14px;
  color: #dceafa;
  list-style: none;
  cursor: pointer;
  background: rgba(7, 23, 44, 0.74);
}

.panel-order-disclosure > summary::-webkit-details-marker {
  display: none;
}

.panel-order-disclosure > summary::after {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid #85a1c2;
  border-bottom: 1.5px solid #85a1c2;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.panel-order-disclosure[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.panel-order-disclosure > summary:hover,
.panel-order-disclosure > summary:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(15, 43, 74, 0.86);
}

.panel-order-disclosure > summary > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-order-disclosure > summary strong {
  font-size: 0.76rem;
}

.panel-order-disclosure > summary small {
  overflow: hidden;
  color: #8298b4;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-order-disclosure__badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(88, 203, 255, 0.28);
  border-radius: 999px;
  color: #7bd8ff;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-order-disclosure__body {
  border-top: 1px solid var(--order-panel-border);
}

.panel-order-disclosure .panel-order-action {
  min-height: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.panel-order-disclosure--danger > summary {
  color: #ffc1ce;
}

.panel-order-disclosure--danger > summary::after {
  border-color: #ef8da2;
}

.panel-order-return-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  min-height: 0;
  padding: 14px;
}

.panel-order-return-link__actions {
  align-items: flex-start;
}

@media (max-width: 1180px) {
  .panel-order-detail {
    display: block;
  }

  .panel-order-detail > .panel-order-progress,
  .panel-order-detail > .panel-order-detail__columns,
  .panel-order-detail > .panel-order-customer-editor,
  .panel-order-detail > .panel-order-kustom,
  .panel-order-detail > .panel-order-refunds,
  .panel-order-detail > .panel-order-actions,
  .panel-order-detail > .panel-order-worklog {
    margin-top: 12px;
  }

  .panel-order-detail > .panel-order-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .panel-order-actions > .panel-order-action,
  .panel-order-actions > .panel-order-disclosure,
  .panel-order-actions > .panel-order-disclosure--price[open],
  .panel-order-actions > .panel-order-disclosure--danger[open] {
    grid-column: 1;
  }

  .panel-order-actions > .panel-order-action--status {
    order: 1;
  }

  .panel-order-actions > .panel-order-action--shipping {
    order: 2;
  }

  .panel-order-actions > .panel-order-disclosure--receipt {
    order: 3;
  }

  .panel-order-actions > .panel-order-return-link {
    order: 4;
  }

  .panel-order-actions > .panel-order-disclosure--price {
    order: 5;
  }

  .panel-order-actions > .panel-order-disclosure--danger {
    order: 6;
  }

  .panel-order-actions > .panel-order-disclosure--archive {
    order: 7;
  }
}

@media (max-width: 720px) {
  .panel-order-detail {
    padding: 8px;
    border-radius: 14px;
  }

  .panel-order-overview .panel-card__head {
    align-items: center;
    gap: 10px;
  }

  .panel-order-overview__identity {
    gap: 9px;
  }

  .panel-order-overview__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .panel-order-overview__controls {
    align-items: flex-end;
    flex-direction: column;
  }

  .panel-order-more nav {
    right: 0;
    width: min(220px, calc(100vw - 40px));
  }

  .panel-order-overview .panel-order-detail__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-order-overview .panel-order-detail__facts > span:nth-child(3) {
    border-left: 0;
  }

  .panel-order-progress {
    overflow-x: auto;
    padding: 12px 10px;
    scrollbar-color: rgba(88, 203, 255, 0.3) transparent;
    scrollbar-width: thin;
  }

  .panel-order-progress ol {
    min-width: 500px;
  }

  .panel-order-detail__columns,
  .panel-order-kustom__grid {
    grid-template-columns: 1fr;
  }

  .panel-order-disclosure > summary {
    min-height: 55px;
    padding: 10px 12px;
  }

  .panel-order-disclosure > summary small {
    white-space: normal;
  }

  .panel-order-disclosure .panel-order-action,
  .panel-order-action--status,
  .panel-order-action--shipping {
    padding: 12px;
  }

  .panel-order-return-link__actions,
  .panel-order-return-link__actions .auth-pill {
    width: 100%;
  }

  .panel-order-return-link__actions .auth-pill {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .panel-order-overview .panel-order-detail__facts {
    grid-template-columns: 1fr;
  }

  .panel-order-overview .panel-order-detail__facts > span,
  .panel-order-overview .panel-order-detail__facts > span + span {
    border-top: 1px solid rgba(126, 164, 220, 0.12);
    border-left: 0;
  }

  .panel-order-overview .panel-order-detail__facts > span:first-child {
    border-top: 0;
  }
}

/* Staff review moderation */
.panel-review-management {
  display: grid;
  gap: 22px;
}

.panel-review-management__stats .panel-stat {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.panel-review-management__stats a.panel-stat:hover,
.panel-review-management__stats a.panel-stat:focus-visible,
.panel-review-management__stats a.panel-stat.is-active {
  border-color: rgba(93, 199, 255, 0.42);
  background: rgba(15, 38, 65, 0.9);
  transform: translateY(-2px);
}

.panel-review-toolbar,
.panel-review-filter {
  min-width: 0;
}

.panel-review-toolbar {
  padding: 18px;
  border: 1px solid rgba(93, 199, 255, 0.18);
  border-radius: 18px;
  background: rgba(6, 18, 36, 0.72);
}

.panel-review-filter {
  width: 100%;
}

.panel-review-list__count {
  color: #8ba6c5;
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-review-list__items {
  display: grid;
  gap: 14px;
}

.panel-review-card {
  padding: 18px;
  border: 1px solid rgba(111, 164, 221, 0.16);
  border-radius: 16px;
  background: rgba(3, 14, 31, 0.48);
}

.panel-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-review-card__head > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.panel-review-card__product {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f9ff;
  font-weight: 700;
}

.panel-review-card__product:hover,
.panel-review-card__product:focus-visible {
  color: #82ddff;
}

.panel-review-card__rating {
  color: #7590ad;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.panel-review-card__rating > span {
  color: #ffd166;
}

.panel-review-card__rating small {
  color: #7f98b6;
  letter-spacing: 0;
}

.panel-review-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(111, 164, 221, 0.22);
  border-radius: 999px;
  color: #b5c8e0;
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-review-status.is-pending {
  border-color: rgba(255, 198, 91, 0.28);
  background: rgba(128, 91, 24, 0.15);
  color: #ffd27d;
}

.panel-review-status.is-approved {
  border-color: rgba(68, 218, 157, 0.28);
  background: rgba(34, 125, 93, 0.15);
  color: #75e7b7;
}

.panel-review-status.is-rejected {
  border-color: rgba(255, 111, 139, 0.26);
  background: rgba(125, 35, 60, 0.14);
  color: #ff9db4;
}

.panel-review-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-top: 14px;
  color: #819bb9;
  font-size: 0.73rem;
}

.panel-review-card__author strong {
  color: #dceaff;
  font-size: 0.82rem;
}

.panel-review-card__author > span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #75e7b7;
  background: rgba(34, 125, 93, 0.15);
  font-weight: 700;
}

.panel-review-card__content {
  margin: 16px 0 0;
  padding: 15px 16px;
  border-left: 3px solid rgba(93, 199, 255, 0.42);
  border-radius: 0 11px 11px 0;
  color: #d6e5f6;
  background: rgba(16, 35, 59, 0.62);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.panel-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.panel-review-card__actions form {
  margin: 0;
}

.panel-review-card__reject {
  border-color: rgba(255, 111, 139, 0.28);
  color: #ff9db4;
}

.panel-review-card__reject:hover,
.panel-review-card__reject:focus-visible {
  border-color: rgba(255, 111, 139, 0.5);
  background: rgba(125, 35, 60, 0.2);
}

.panel-review-list__empty {
  padding: 54px 20px;
  text-align: center;
}

.panel-review-list__empty strong {
  color: #f6f9ff;
  font-size: 1.05rem;
}

.panel-review-list__empty p {
  margin: 7px 0 0;
  color: #8199b7;
}

@media (max-width: 640px) {
  .panel-review-card {
    padding: 15px;
  }

  .panel-review-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-review-card__author {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-review-card__actions,
  .panel-review-card__actions form,
  .panel-review-card__actions button {
    width: 100%;
  }

  .panel-review-card__actions button {
    justify-content: center;
  }
}

/* Account change notifications */
.auth-notification__ticket--account {
  background: rgba(255, 198, 84, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 198, 84, 0.24);
  color: #ffe08f;
}

.account-changes-card {
  scroll-margin-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
}

.account-change-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-change {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(129, 177, 222, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.account-change.is-unread {
  border-color: rgba(255, 198, 84, 0.34);
  background: rgba(255, 198, 84, 0.06);
}

.account-change__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-change__head strong {
  color: #f7fbff;
  font-size: var(--text-base);
}

.account-change__badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 198, 84, 0.16);
  color: #ffe08f;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-change__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c9d8ee;
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-change__reason {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(93, 199, 255, 0.45);
  border-radius: 0 10px 10px 0;
  background: rgba(93, 199, 255, 0.07);
  color: #dbe8fb;
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-change__reason span {
  display: block;
  margin-bottom: 2px;
  color: #8fd8ff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-change__meta {
  color: #91a4c0;
  font-size: var(--text-2xs);
}

/* Staff account management */
.panel-account-management {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: calc(var(--frostline-fixed-stack-height, 72px) + 18px);
}

.panel-account-management > .panel-notice {
  margin-bottom: 0;
}

.panel-account-detail__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.panel-account-detail__identity p {
  margin: 4px 0 0;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.panel-account-detail__identity .panel-member-detail__avatar {
  flex-shrink: 0;
}

.panel-account-detail__lock {
  margin: 18px 0 0;
}

.panel-account-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.panel-account-form,
.panel-account-history {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(112, 164, 235, 0.16);
  border-radius: 18px;
  background: rgba(6, 13, 27, 0.52);
}

.panel-account-history {
  margin-top: 18px;
}

.panel-account-form--danger {
  border-color: rgba(255, 115, 147, 0.22);
  background: rgba(40, 10, 22, 0.42);
}

.panel-account-form__danger-button {
  align-self: flex-start;
}

.panel-member-card__state.is-removing {
  color: #ff9ab2;
}

.panel-account-form__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-account-form .auth-field textarea {
  min-height: 84px;
}

.panel-account-form__head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.panel-account-form__head p,
.panel-account-form__empty {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.panel-account-form__empty {
  margin: 0;
}

.panel-account-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-account-row__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.panel-account-row__copy strong {
  color: #fff;
}

.panel-account-row__copy small {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.panel-account-row .auth-pill {
  flex-shrink: 0;
  min-height: 40px;
  cursor: pointer;
}

.panel-account-management .auth-pill--danger {
  border-color: rgba(255, 115, 147, 0.26);
  background: rgba(255, 79, 121, 0.08);
  color: #ff9ab2;
}

.panel-account-management .auth-pill--danger:hover,
.panel-account-management .auth-pill--danger:focus-visible {
  border-color: rgba(255, 115, 147, 0.5);
  background: rgba(255, 79, 121, 0.14);
}

.panel-account-management .auth-pill[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.panel-member-card__state.is-pending,
.panel-account-approval__state {
  color: #ffd27a;
}

.panel-account-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-account-filters .auth-pill {
  min-height: 40px;
}

.panel-account-approval {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 210, 122, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.08), rgba(191, 123, 255, 0.08));
}

.panel-account-approval .auth-field {
  width: 100%;
}

.panel-account-approval .auth-field textarea {
  min-height: 84px;
}

.account-approval-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 210, 122, 0.32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.08), rgba(191, 123, 255, 0.1));
}

.account-approval-notice__copy {
  display: grid;
  gap: 6px;
  flex: 1 1 320px;
  min-width: 0;
}

.account-approval-notice__copy strong {
  color: #ffd27a;
  font-size: var(--text-base);
}

.account-approval-notice__copy p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.account-approval-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .account-approval-notice__actions,
  .account-approval-notice__actions .auth-pill {
    width: 100%;
  }
}

.panel-server-editor--single {
  grid-template-columns: minmax(0, 1fr);
}

.panel-server-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-server-fields__wide {
  grid-column: 1 / -1;
}

.panel-server-fields [hidden] {
  display: none;
}

.panel-server-fields input[type="date"] {
  color-scheme: dark;
}

.panel-server-new-game {
  padding: 14px;
  border: 1px solid rgba(112, 164, 235, 0.16);
  border-radius: 14px;
}

.panel-server-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-server-section-head .auth-pill {
  flex-shrink: 0;
}

.panel-server-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.panel-server-move {
  min-width: 40px;
  padding-inline: 0;
}

.panel-server-move:disabled {
  opacity: 0.35;
  cursor: default;
}

.panel-server-db-result {
  margin: 0;
}

.panel-server-management .panel-account-history .panel-account-row form {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .panel-account-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .panel-server-fields {
    grid-template-columns: 1fr;
  }

  .panel-account-row .panel-server-actions .auth-pill {
    width: auto;
  }
}

@media (max-width: 720px) {
  .panel-account-detail .panel-card__head {
    flex-direction: column;
  }

  .panel-account-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-account-form .auth-submit,
  .panel-account-row .auth-pill {
    width: 100%;
  }
}
