/*
 *= require_tree .
 *= require_self
 */

:root {
  --bg: #f5f6fb;
  --panel: #ffffff;
  --brand: #3c5cff;
  --brand-muted: rgba(60, 92, 255, 0.08);
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --danger: #dc2626;
  --content-max: 1120px;
  --sticky-top: calc(var(--shell-nav-height, 56px) + var(--shell-nav-gap, 0px));
  --page-bg: radial-gradient(130% 130% at 5% 5%, rgba(60, 92, 255, 0.16), transparent 50%),
    radial-gradient(120% 130% at 95% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(120% 140% at 80% 90%, rgba(16, 185, 129, 0.16), transparent 65%),
    var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100%;
  background: var(--page-bg);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
}

.shell-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.55rem 0.95rem 0.75rem;
  background: radial-gradient(120% 120% at 0% 0%, rgba(60, 92, 255, 0.12), transparent 55%),
    radial-gradient(95% 110% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    rgba(245, 246, 251, 0.9);
  color: #0f172a;
}

.shell-nav--liquid {
  overflow: visible;
}

body:has(.shell-nav--liquid) {
  --shell-nav-gap: 0.5rem;
}

.shell-nav__surface {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  border-radius: 22px;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(12px) saturate(125%);
}

.shell-nav__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(99, 102, 241, 0.18), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.shell-nav__surface > * {
  position: relative;
  z-index: 1;
}

.shell-nav__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.shell-nav__orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.75;
  filter: blur(1px);
  animation: contactOrbDrift 16s ease-in-out infinite alternate;
}

.shell-nav__orb--one {
  width: 280px;
  height: 280px;
  top: -120px;
  left: -90px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.85), rgba(99, 102, 241, 0.45));
}

.shell-nav__orb--two {
  width: 220px;
  height: 220px;
  bottom: -120px;
  right: -40px;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8), rgba(14, 165, 233, 0.45));
  animation-duration: 20s;
}

.shell-nav__links {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.shell-nav__user {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  position: relative;
}

.shell-nav__identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shell-nav__profile-toggle {
  display: none;
}

.shell-nav__profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.6rem;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shell-nav__profile-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.14);
  border-color: rgba(60, 92, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.shell-nav__trigger-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.shell-nav__trigger-text strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.shell-nav__trigger-text small {
  color: rgba(15, 23, 42, 0.65);
  font-weight: 600;
}

.shell-nav__caret {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

.shell-nav__profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  transform-origin: top right;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  min-width: 220px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.shell-nav__profile-toggle:checked + .shell-nav__profile-trigger + .shell-nav__profile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.shell-nav__user {
  position: relative;
}

.shell-nav__meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.shell-nav__meta-row--menu {
  justify-content: space-between;
}

.shell-nav__avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.18), rgba(16, 185, 129, 0.2));
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(60, 92, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.shell-nav__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.shell-nav__role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(60, 92, 255, 0.12);
  color: #1f2937;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(60, 92, 255, 0.25);
}

.shell-nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.shell-nav__logout {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.shell-nav__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shell-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.shell-nav__burger-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.shell-nav__toggle {
  display: none;
}

.shell-nav__toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shell-nav__toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.shell-nav__toggle:checked ~ .shell-nav__burger-wrap .shell-nav__toggle-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.shell-nav__toggle:checked ~ .shell-nav__burger-wrap .shell-nav__toggle-btn span:nth-child(2) {
  opacity: 0;
}

.shell-nav__toggle:checked ~ .shell-nav__burger-wrap .shell-nav__toggle-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.shell-nav__toggle:focus-visible ~ .shell-nav__burger-wrap .shell-nav__toggle-btn {
  outline: 2px solid rgba(16, 185, 129, 0.6);
}

.shell-nav__toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.shell-nav__toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.shell-nav__brand a {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(120deg, #312e81, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.btn:hover,
.btn:focus-visible,
.contact-form__pill-btn:hover,
.contact-form__pill-btn:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.shell-nav__cta:hover,
.shell-nav__cta:focus-visible {
  text-decoration: none;
}

button {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(60, 92, 255, 0.25);
}

.btn--ghost {
  background: rgba(60, 92, 255, 0.08);
  border: 1px solid transparent;
  color: var(--brand);
}

.btn--danger {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid transparent;
  color: #b91c1c;
}

.btn--primary:hover,
.btn--primary:focus-visible,
.btn--ghost:hover,
.btn--ghost:focus-visible,
.btn--danger:hover,
.btn--danger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  outline: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* Admin */

.admin {
  padding: 1.5rem 0 2.5rem;
}

.admin__header {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-filters {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-table {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-table__row {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.3fr 1.05fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 249, 255, 0.78);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.admin-table__row--head {
  padding: 0 1.25rem;
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-table__row--head span {
  font-size: 0.95rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.admin .muted {
  margin: 0.15rem 0 0;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.95rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.inline-form select {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

.badge--success {
  background: rgba(16, 185, 129, 0.16);
  color: rgba(6, 95, 70, 0.96);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: rgba(180, 83, 9, 0.96);
}

.badge--danger {
  background: rgba(220, 38, 38, 0.14);
  color: rgba(185, 28, 28, 0.96);
}

.admin-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 249, 255, 0.78);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.admin-card--notice {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.5rem;
  border-color: rgba(60, 92, 255, 0.18);
}

.admin-invite__url {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  white-space: nowrap;
  color: rgba(15, 23, 42, 0.85);
}

.admin-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.admin .form-field {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.admin .form-field label {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.82);
}

.admin-report__select,
.admin-report__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-report__textarea {
  resize: vertical;
}

.admin-input[type="file"] {
  padding: 0.35rem 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.admin-input[type="file"]::file-selector-button:hover,
.admin-input[type="file"]::file-selector-button:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.admin-report__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-report__block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-report__block h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.admin-report-history {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 1rem 1.5rem;
}

.admin-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-timeline__item {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
}

.admin-timeline__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.admin-timeline__item p {
  margin: 0.35rem 0 0;
}

@media (max-width: 900px) {
  .admin-table__row {
    grid-template-columns: 1fr;
  }

  .admin-table__row--head {
    display: none;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

/* Admin pages (contact edit style) */

.admin-grid--cards {
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-platform-settings__grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1200px) {
  .admin-platform-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-platform-settings__contacts-card {
    grid-column: 1 / -1;
  }
}

.admin-platform-settings__contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 1100px) {
  .admin-platform-settings__contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-platform-settings__danger-zone {
  grid-column: 1 / -1;
}

.admin-export-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-export-form__row--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.admin-export-form__row--stacked .contact-form__pill-btn {
  align-self: flex-start;
}

.admin-export-form__row--stacked .admin-export-form__label {
  width: 100%;
  min-width: 0;
}

.admin-export-form__row--stacked .admin-format-picker {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.admin-export-form__row--stacked .admin-format-picker__toggle,
.admin-export-form__row--stacked .admin-format-picker__native {
  max-width: 100%;
  width: 100%;
}

.admin-export-form__row--stacked .admin-format-picker__menu {
  width: 100%;
  max-width: 100%;
}

.admin-export-form__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  min-width: 200px;
  align-items: flex-start;
  text-align: left;
}

.admin-export-form__label > span {
  line-height: 1.15;
}

.admin-export-form__label .admin-format-picker {
  width: 100%;
  max-width: 200px;
  flex: 0 0 200px;
}

.admin-export-form__row--stacked .admin-export-form__label .admin-format-picker {
  max-width: none;
  flex: 0 0 auto;
}

.admin-clear-status {
  display: none;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.8));
  box-shadow: 0 18px 36px rgba(248, 113, 113, 0.18);
}

.admin-clear-status.is-visible {
  display: flex;
}

.admin-clear-status__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(248, 113, 113, 0.25);
  border-top-color: rgba(220, 38, 38, 0.9);
  animation: admin-clear-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.admin-clear-status__content strong {
  display: block;
  color: #b91c1c;
  font-weight: 700;
}

.admin-clear-status__content p {
  margin: 0.2rem 0 0;
  color: rgba(127, 29, 29, 0.72);
  font-size: 0.9rem;
}

@keyframes admin-clear-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-backup-progress {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: linear-gradient(140deg, rgba(236, 254, 255, 0.95), rgba(239, 246, 255, 0.88));
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.14);
  position: relative;
  overflow: hidden;
}

.admin-backup-progress[hidden] {
  display: none !important;
}

.admin-backup-progress.is-active {
  animation: admin-progress-pop 0.35s ease-out;
}

.admin-backup-progress__art {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.admin-backup-progress__orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.95), rgba(59, 130, 246, 0.65));
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.35);
}

.admin-backup-progress__ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  animation: admin-progress-spin 6s linear infinite;
}

.admin-backup-progress__ring--mid {
  inset: 16px;
  border-style: solid;
  border-color: rgba(14, 165, 233, 0.2);
  animation-duration: 4.5s;
}

.admin-backup-progress__ring--thin {
  inset: 0;
  border-style: dotted;
  border-color: rgba(99, 102, 241, 0.25);
  animation-duration: 8s;
}

.admin-backup-progress__content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.admin-backup-progress__status {
  align-self: flex-start;
}

.admin-backup-progress__percent {
  align-self: flex-start;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
}

.admin-backup-progress__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-backup-progress__download {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.7);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 0.45rem 0.9rem;
  border-radius: 14px;
  backdrop-filter: blur(10px) saturate(140%);
}

.admin-backup-progress__download:hover,
.admin-backup-progress__download:focus-visible {
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.admin-backup-progress__detail {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
}

.admin-backup-progress__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.admin-backup-progress__bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.7), rgba(59, 130, 246, 0.1));
  background-size: 220% 100%;
  animation: admin-progress-slide 1.8s ease-in-out infinite;
  width: 12%;
}

@keyframes admin-progress-slide {
  0% {
    transform: translateX(-35%);
  }
  50% {
    transform: translateX(35%);
  }
  100% {
    transform: translateX(-35%);
  }
}

@keyframes admin-progress-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes admin-progress-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.admin-toolbar__cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-per-page {
  margin: 0;
  display: flex;
  align-items: center;
}

.admin-per-page__select {
  max-width: 5.2rem;
  text-align: center;
  padding-left: 0.75rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__position-box.admin-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.contact-form__position-box.admin-row--event {
  grid-template-columns: 1fr auto;
}

.contact-form__position-box.admin-row--setting {
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 440px);
}

.admin-invitations__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-invitations__card-title {
  min-width: 0;
}

.admin-invitations__card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-invitations__create-form {
  margin: 0;
}

.admin-invitations {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-invitations__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0.25rem 0.2rem;
}

.admin-reports__per-page {
  margin-left: auto;
}

.admin-reports {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-reports__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0.25rem 0.2rem;
}

.admin-reports__head,
.admin-reports__row {
  display: grid;
  grid-template-columns: 3.2rem minmax(280px, 1.6fr) 10.5rem 9rem;
  gap: 1rem;
  align-items: center;
}

.admin-reports__head {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-reports__head-number,
.admin-reports__number {
  text-align: center;
}

.admin-reports__head-date {
  text-align: center;
}

.admin-reports__head-status {
  text-align: right;
}

.admin-reports__row {
  padding: 0.65rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(79, 70, 229, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-reports__row:hover,
.admin-reports__row:focus-visible {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.24);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 32px rgba(15, 23, 42, 0.09);
  outline: none;
}

.admin-reports__number {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.88rem;
}

.admin-reports__problem {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-reports__problem-title {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.2;
}

.admin-reports__problem-text {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-reports__problem-meta {
  color: rgba(15, 23, 42, 0.55);
  font-weight: 600;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-reports__date {
  text-align: center;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
}

.admin-reports__status {
  justify-self: end;
  white-space: nowrap;
}

.admin-reports__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0.25rem 0.25rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-reports__pagination-btn {
  gap: 0.4rem;
}

.admin-reports__pagination-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-reports__pagination-range {
  white-space: nowrap;
}

.admin-reports__pagination-pages {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.admin-invitations__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0.25rem 0.25rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-invitations__pagination-btn {
  gap: 0.4rem;
}

.admin-invitations__pagination-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-invitations__pagination-range {
  white-space: nowrap;
}

.admin-invitations__pagination-pages {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.admin-invitations__head,
.admin-invitations__row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1.2fr) 8.5rem;
  gap: 1rem;
  align-items: center;
}

.admin-invitations__head {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-invitations__head-actions {
  text-align: right;
}

.admin-invitations__row {
  --admin-invite-row-border: rgba(16, 185, 129, 0.28);
  --admin-invite-row-border-hover: rgba(16, 185, 129, 0.38);
  --admin-invite-row-bg: rgba(16, 185, 129, 0.09);
  --admin-invite-row-bg-hover: rgba(16, 185, 129, 0.13);
  padding: 0.65rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--admin-invite-row-border);
  background: var(--admin-invite-row-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-invitations__row:hover {
  background: var(--admin-invite-row-bg-hover);
  border-color: var(--admin-invite-row-border-hover);
}

.admin-invitations__row--used,
.admin-invitations__row--expired {
  --admin-invite-row-border: rgba(55, 65, 81, 0.18);
  --admin-invite-row-border-hover: rgba(55, 65, 81, 0.24);
  --admin-invite-row-bg: rgba(148, 163, 184, 0.12);
  --admin-invite-row-bg-hover: rgba(148, 163, 184, 0.18);
}

.admin-invitations__created {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.admin-invitations__expires {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-invitations__user-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-invitations__user-link:hover,
.admin-invitations__user-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.admin-invitations__meta {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-invitations__expires-badge {
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-invitations__muted {
  color: rgba(15, 23, 42, 0.45);
  font-weight: 700;
}

.admin-invitations__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-invitations__actions form {
  margin: 0;
  display: inline;
}

.admin-row__main strong a {
  text-decoration: none;
}

/* Performance tuning (admin lists) */
body:has(#admin-users-page) .admin-users__head,
body:has(#admin-invitations-page) .admin-invitations__head,
body:has(#admin-reports-page) .admin-reports__head,
body:has(#admin-users-page) .admin-users__pagination,
body:has(#admin-invitations-page) .admin-invitations__pagination,
body:has(#admin-reports-page) .admin-reports__pagination {
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

body:has(#admin-users-page) .admin-users__row,
body:has(#admin-invitations-page) .admin-invitations__row,
body:has(#admin-reports-page) .admin-reports__row {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 84px;
}

body:has(#admin-users-page) .admin-users__badge {
  backdrop-filter: none;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.admin-row__main strong a:hover {
  text-decoration: underline;
}

.admin-row__sub {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.admin-row__email {
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
  word-break: break-word;
}

.admin-row__meta-line {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
  line-height: 1.35;
}

.admin-row__meta {
  min-width: 0;
}

.admin-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-row__audit {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-row__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.55rem;
}

.admin-row__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-row__buttons--end {
  justify-content: flex-end;
}

.admin-row__role-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-select,
.admin-input {
  width: 100%;
  max-width: 260px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input {
  max-width: 320px;
}

.form-grid label.admin-toggle {
  align-items: flex-start;
}

.admin-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='rgba(15,23,42,0.65)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 1rem center;
  background-size: 100% 100%, 16px 16px;
}

.admin-select:hover {
  border-color: rgba(79, 70, 229, 0.22);
}

.admin-select option,
.admin-select optgroup {
  background: #f8faff;
  color: #0f172a;
  font-size: 0.9rem;
}

.admin-select option:checked {
  background: rgba(79, 70, 229, 0.14);
  color: #312e81;
}

.admin-select option:disabled {
  color: rgba(15, 23, 42, 0.4);
}

.admin-role-picker {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.admin-role-picker__toggle,
.admin-role-picker__menu {
  display: none;
}

.admin-role-picker__toggle {
  font: inherit;
  color: inherit;
  text-align: left;
  line-height: 1.2;
  display: none;
}

.admin-role-picker__value {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-role-picker__check {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: rgba(79, 70, 229, 0.95);
}

.admin-role-picker__option.is-selected .admin-role-picker__check {
  opacity: 1;
}

.admin-role-picker[data-enhanced="true"] .admin-role-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-role-picker[data-enhanced="true"] .admin-role-picker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background-position: 0 0, right 0.85rem center;
  background-size: 100% 100%, 15px 15px;
}

.admin-role-picker[data-enhanced="true"] .admin-role-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 100%;
  width: max-content;
  padding: 0.35rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 240, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 40;
}

.admin-role-picker[data-enhanced="true"] .admin-role-picker__menu[hidden] {
  display: none;
}

.admin-role-picker__option {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.78);
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.admin-role-picker__option:hover,
.admin-role-picker__option:focus-visible {
  outline: none;
  background: rgba(79, 70, 229, 0.09);
  color: #312e81;
}

.admin-role-picker__option.is-selected {
  background: rgba(79, 70, 229, 0.14);
  color: #312e81;
}

.admin-per-page-picker {
  position: relative;
}

.admin-per-page-picker__toggle,
.admin-per-page-picker__menu {
  display: none;
}

.admin-per-page-picker[data-enhanced="true"] .admin-per-page-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-per-page-picker[data-enhanced="true"] .admin-per-page-picker__toggle {
  font: inherit;
  color: inherit;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.admin-per-page-picker__value {
  font-weight: 700;
}

@media (min-width: 901px) {
  body:has(#admin-users-page) #admin-users-page .admin-per-page-picker__value,
  body:has(#admin-invitations-page) #admin-invitations-page .admin-per-page-picker__value,
  body:has(#admin-reports-page) #admin-reports-page .admin-per-page-picker__value {
    font-size: 0.78rem;
  }
}

.admin-per-page-picker[data-enhanced="true"] .admin-per-page-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 100%;
  width: max-content;
  padding: 0.35rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 240, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 60;
}

.admin-per-page-picker[data-enhanced="true"] .admin-per-page-picker__menu[hidden] {
  display: none;
}

.admin-per-page-picker__option {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.78);
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.admin-per-page-picker__option:hover,
.admin-per-page-picker__option:focus-visible {
  outline: none;
  background: rgba(79, 70, 229, 0.09);
  color: #312e81;
}

.admin-per-page-picker__option.is-selected {
  background: rgba(79, 70, 229, 0.14);
  color: #312e81;
}

.admin-per-page-picker__check {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: rgba(79, 70, 229, 0.95);
}

.admin-per-page-picker__option.is-selected .admin-per-page-picker__check {
  opacity: 1;
}

.admin-format-picker {
  position: relative;
  width: 100%;
  max-width: 200px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.admin-format-picker__toggle,
.admin-format-picker__menu {
  display: none;
}

.admin-format-picker[data-enhanced="true"] .admin-format-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-format-picker[data-enhanced="true"] .admin-format-picker__toggle {
  font: inherit;
  color: inherit;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  padding-right: 2.05rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-format-picker__value {
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-format-picker[data-enhanced="true"] .admin-format-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 100%;
  width: 100%;
  max-width: 220px;
  max-height: 200px;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 240, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.admin-format-picker[data-enhanced="true"] .admin-format-picker__menu[hidden] {
  display: none;
}

.admin-format-picker.is-open .admin-format-picker__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .admin-format-picker[data-enhanced="true"] .admin-format-picker__menu {
    transition: none;
  }
}

.admin-format-picker__option {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.78);
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.admin-format-picker__option:hover,
.admin-format-picker__option:focus-visible {
  outline: none;
  background: rgba(79, 70, 229, 0.09);
  color: #312e81;
}

.admin-format-picker__option.is-selected {
  background: rgba(79, 70, 229, 0.14);
  color: #312e81;
}

.admin-format-picker__check {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: rgba(79, 70, 229, 0.95);
}

.admin-format-picker__option.is-selected .admin-format-picker__check {
  opacity: 1;
}

.admin-filter-picker {
  position: relative;
}

.admin-filter-picker__toggle {
  white-space: nowrap;
}

.admin-filter-picker__icon {
  flex: 0 0 auto;
  display: block;
}

.admin-filter-picker__text {
  font-weight: 700;
}

.admin-filter-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 100%;
  width: max-content;
  padding: 0.35rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 240, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 60;
}

.admin-filter-picker__menu[hidden] {
  display: none;
}

.admin-filter-picker__option {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.78);
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
}

.admin-filter-picker__option:hover,
.admin-filter-picker__option:focus-visible {
  outline: none;
  background: rgba(79, 70, 229, 0.09);
  color: #312e81;
}

.admin-select:focus,
.admin-input:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
  outline: none;
}

.admin-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-inline-sep {
  margin: 0 0.35rem;
  color: rgba(15, 23, 42, 0.35);
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-user-audit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-audit-row {
  gap: 0.35rem;
}

.admin-setting__key,
.admin-setting__value {
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.9em;
}

.admin-setting-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-input--search {
  max-width: 360px;
}

.admin-search__input {
  padding-right: 2.7rem;
}

.admin-search__clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(15, 23, 42, 0.55);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-search__input:not(:placeholder-shown) + .admin-search__clear {
  display: inline-flex;
}

.admin-search__clear:hover,
.admin-search__clear:focus-visible {
  transform: translateY(-50%) translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(220, 38, 38, 0.2);
  color: rgba(185, 28, 28, 0.95);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
  outline: none;
}

.admin-tooltip {
  position: relative;
}

.admin-users__status .admin-tooltip {
  cursor: help;
}

.admin-tooltip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  z-index: 60;
}

.admin-tooltip[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 0.25rem);
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 59;
}

.admin-tooltip[data-tooltip]:hover::after,
.admin-tooltip[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-tooltip[data-tooltip]:hover::before,
.admin-tooltip[data-tooltip]:focus-visible::before {
  opacity: 1;
}

body:has(#admin-users-page) .admin-users__actions .admin-tooltip[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: translate(0, 6px);
}

body:has(#admin-users-page) .admin-users__actions .admin-tooltip[data-tooltip]:hover::after,
body:has(#admin-users-page) .admin-users__actions .admin-tooltip[data-tooltip]:focus-visible::after {
  transform: translate(0, 0);
}

body:has(#admin-users-page) .admin-users__actions .admin-tooltip[data-tooltip]::before {
  left: auto;
  right: calc(1.125rem - 5px);
  transform: rotate(45deg);
}

body:has(#admin-invitations-page) .admin-invitations__actions .admin-tooltip[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: translate(0, 6px);
}

body:has(#admin-invitations-page) .admin-invitations__actions .admin-tooltip[data-tooltip]:hover::after,
body:has(#admin-invitations-page) .admin-invitations__actions .admin-tooltip[data-tooltip]:focus-visible::after {
  transform: translate(0, 0);
}

body:has(#admin-invitations-page) .admin-invitations__actions .admin-tooltip[data-tooltip]::before {
  left: auto;
  right: calc(1.125rem - 5px);
  transform: rotate(45deg);
}

.admin-users__head,
.admin-users__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 9rem minmax(190px, 0.9fr) 13.5rem;
  gap: 1rem;
  align-items: center;
}

.admin-users__head {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-users__head-status {
  text-align: center;
}

.admin-users__head-role {
  text-align: center;
}

.admin-users__head-actions {
  text-align: right;
}

.admin-users__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0.25rem 0.2rem;
}

.admin-users__empty {
  padding: 1.2rem 0.9rem;
  text-align: center;
}

.admin-users__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0.25rem 0.25rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
}

.admin-users__pagination-btn {
  gap: 0.4rem;
}

.admin-users__pagination-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-users__pagination-range {
  white-space: nowrap;
}

.admin-users__pagination-pages {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.admin-users__row {
  padding: 0.75rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(79, 70, 229, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-users__row:hover {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.22);
}

.admin-users__user {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.admin-users__user-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding-right: 1.6rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.admin-users__user-link::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 0.3rem;
  transform: translateY(-50%);
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(79, 70, 229, 0.8);
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.admin-users__user-link:hover::after,
.admin-users__user-link:focus-visible::after {
  opacity: 0.85;
  transform: translateY(-50%) translateX(1px);
}

.admin-users__user-link:hover strong,
.admin-users__user-link:focus-visible strong {
  text-decoration: underline;
}

.admin-users__badge {
  position: absolute;
  top: -0.25rem;
  right: -0.15rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.68);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px) saturate(140%);
  white-space: nowrap;
}

.admin-users__badge--admin {
  border-color: rgba(79, 70, 229, 0.2);
  background: rgba(79, 70, 229, 0.1);
  color: rgba(49, 46, 129, 0.9);
}

.admin-users__badge--superuser {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.12);
  color: rgba(5, 120, 87, 0.95);
}

.admin-users__email {
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
  word-break: break-word;
}

.admin-users__email-text {
  display: inline;
}

.admin-users__email-status {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
  flex: 0 0 auto;
}

.admin-users__email-status--verified {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.12);
  color: rgba(5, 120, 87, 0.95);
}

.admin-users__email-status--unverified {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.14);
  color: rgba(180, 83, 9, 0.95);
}

.admin-users__email-status svg {
  width: 0.9rem;
  height: 0.9rem;
}

.admin-users__meta {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.9rem;
  line-height: 1.3;
}

.admin-users__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}

.status-pill.admin-status {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  min-width: 0;
}

.status-pill.admin-status svg {
  width: 1.05rem;
  height: 1.05rem;
}

.admin-users__role {
  display: flex;
  justify-content: center;
}

.admin-users__role-form {
  display: flex;
  justify-content: center;
  width: 100%;
}

.admin-select--compact {
  max-width: 100%;
  padding: 0.52rem 0.85rem;
  padding-right: 2.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  background-position: 0 0, right 0.85rem center;
  background-size: 100% 100%, 15px 15px;
}

.admin-users__role-submit {
  display: none;
}

.admin-users__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-users__actions-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-icon-btn.admin-users__settings-btn {
  display: none;
}

.admin-users__actions form {
  margin: 0;
  display: inline;
}

.admin-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 14px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(79, 70, 229, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a.admin-icon-btn {
  text-decoration: none;
}

.admin-icon-btn:hover,
.admin-icon-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  outline: none;
}

.admin-icon-btn.is-copied {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: rgba(5, 120, 87, 0.95);
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.18);
}

.admin-icon-btn.is-copy-failed {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.12);
  color: rgba(185, 28, 28, 0.96);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.16);
}

.admin-icon-btn--danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: rgba(185, 28, 28, 0.96);
}

.admin-icon-btn--danger:hover,
.admin-icon-btn--danger:focus-visible {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.18);
}

.admin-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body:has(#admin-users-page) {
  overflow: auto;
}

body:has(#admin-invitations-page) {
  overflow: auto;
}

body:has(#admin-reports-page) {
  overflow: auto;
}

body:has(#admin-users-page) .profile-stage {
  height: auto;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
  padding-bottom: 0;
  overflow: visible;
}

@supports (height: 100dvh) {
  body:has(#admin-users-page) .profile-stage {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }
}

body:has(#admin-invitations-page) .profile-stage {
  height: auto;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
  padding-bottom: 0;
  overflow: visible;
}

@supports (height: 100dvh) {
  body:has(#admin-invitations-page) .profile-stage {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }
}

body:has(#admin-reports-page) .profile-stage {
  height: auto;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
  padding-bottom: 0;
  overflow: visible;
}

@supports (height: 100dvh) {
  body:has(#admin-reports-page) .profile-stage {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }
}

body:has(#admin-users-page) .profile-stage__surface,
body:has(#admin-users-page) #admin-users-page,
body:has(#admin-users-page) #admin-users-page .contact-form,
body:has(#admin-users-page) #admin-users-page .contact-form__card,
body:has(#admin-users-page) #admin-users-page .admin-users {
  min-height: 0;
}

body:has(#admin-invitations-page) .profile-stage__surface,
body:has(#admin-invitations-page) #admin-invitations-page,
body:has(#admin-invitations-page) #admin-invitations-page .contact-form,
body:has(#admin-invitations-page) #admin-invitations-page .contact-form__card,
body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations,
body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__body {
  min-height: 0;
}

body:has(#admin-reports-page) .profile-stage__surface,
body:has(#admin-reports-page) #admin-reports-page,
body:has(#admin-reports-page) #admin-reports-page .contact-form,
body:has(#admin-reports-page) #admin-reports-page .contact-form__card,
body:has(#admin-reports-page) #admin-reports-page .admin-reports,
body:has(#admin-reports-page) #admin-reports-page .admin-reports__body {
  min-height: 0;
}

body:has(#admin-users-page) .profile-stage__surface {
  height: auto;
}

body:has(#admin-users-page) #admin-users-page {
  height: auto;
  padding-bottom: 0;
  overflow: visible;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
}

body:has(#admin-users-page) #admin-users-page .contact-form {
  flex: 1 1 auto;
  position: sticky;
  top: var(--sticky-top);
  z-index: 6;
  height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  overflow: hidden;
}

@supports (height: 100dvh) {
  body:has(#admin-users-page) #admin-users-page {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }

  body:has(#admin-users-page) #admin-users-page .contact-form {
    height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  }
}

body:has(#admin-users-page) #admin-users-page .contact-form__card {
  flex: 1 1 auto;
  min-height: 0;
}

body:has(#admin-users-page) #admin-users-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body:has(#admin-users-page) #admin-users-page .admin-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
}

body:has(#admin-users-page) #admin-users-page .admin-users {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body:has(#admin-users-page) #admin-users-page .admin-users__body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body:has(#admin-invitations-page) .profile-stage__surface {
  height: auto;
}

body:has(#admin-invitations-page) #admin-invitations-page {
  height: auto;
  padding-bottom: 0;
  overflow: visible;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
}

body:has(#admin-invitations-page) #admin-invitations-page .contact-form {
  flex: 1 1 auto;
  position: sticky;
  top: var(--sticky-top);
  z-index: 6;
  height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  overflow: hidden;
}

@supports (height: 100dvh) {
  body:has(#admin-invitations-page) #admin-invitations-page {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }

  body:has(#admin-invitations-page) #admin-invitations-page .contact-form {
    height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  }
}

body:has(#admin-invitations-page) #admin-invitations-page .contact-form__card {
  flex: 1 1 auto;
}

body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body:has(#admin-reports-page) .profile-stage__surface {
  height: auto;
}

body:has(#admin-reports-page) #admin-reports-page {
  height: auto;
  padding-bottom: 0;
  overflow: visible;
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
}

body:has(#admin-reports-page) #admin-reports-page .contact-form {
  flex: 1 1 auto;
  position: sticky;
  top: var(--sticky-top);
  z-index: 6;
  height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  overflow: hidden;
}

@supports (height: 100dvh) {
  body:has(#admin-reports-page) #admin-reports-page {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
  }

  body:has(#admin-reports-page) #admin-reports-page .contact-form {
    height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 56px) - var(--shell-nav-gap, 0px));
  }
}

body:has(#admin-reports-page) #admin-reports-page .contact-form__card {
  flex: 1 1 auto;
  min-height: 0;
}

body:has(#admin-reports-page) #admin-reports-page .admin-reports {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body:has(#admin-reports-page) #admin-reports-page .admin-reports__body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.admin-row__actions--wide {
  gap: 0.65rem;
}

.admin-report-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.admin-report-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-report-block {
  gap: 0.55rem;
}

.admin-report-block__text p {
  margin: 0.4rem 0 0;
}

.admin-report-block__text p:first-child {
  margin-top: 0;
}

.admin-empty {
  text-align: center;
  align-items: center;
}

@media (max-width: 900px) {
  .contact-form__position-box.admin-row {
    grid-template-columns: 1fr;
  }

  body:has(#admin-users-page) .profile-stage {
    overflow: visible;
  }

  body:has(#admin-invitations-page) .profile-stage {
    overflow: visible;
  }

  body:has(#admin-reports-page) .profile-stage {
    overflow: visible;
  }

  body:has(#admin-users-page) #admin-users-page .admin-per-page__select {
    max-width: 4.6rem;
    padding-left: 0.6rem;
    padding-right: 2.15rem;
    font-size: 0.72rem;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .admin-per-page__select {
    max-width: 4.6rem;
    padding-left: 0.6rem;
    padding-right: 2.15rem;
    font-size: 0.72rem;
  }

  body:has(#admin-reports-page) #admin-reports-page .admin-per-page__select {
    max-width: 4.6rem;
    padding-left: 0.6rem;
    padding-right: 2.15rem;
    font-size: 0.72rem;
  }

  body:has(#admin-users-page) {
    overflow: auto;
  }

  body:has(#admin-users-page) .profile-stage {
    height: auto;
    min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px));
  }

  @supports (height: 100dvh) {
    body:has(#admin-users-page) .profile-stage {
      min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px));
    }
  }

  body:has(#admin-users-page) .profile-stage__surface,
  body:has(#admin-users-page) #admin-users-page {
    height: auto;
  }

  body:has(#admin-users-page) #admin-users-page .contact-form,
  body:has(#admin-users-page) #admin-users-page .contact-form__card,
  body:has(#admin-users-page) #admin-users-page #admin-users-panel,
  body:has(#admin-users-page) #admin-users-page .admin-users,
  body:has(#admin-users-page) #admin-users-page .admin-users__body {
    flex: none;
  }

  body:has(#admin-users-page) #admin-users-page .admin-users__body {
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0;
  }

  body:has(#admin-users-page) #admin-users-page .contact-form {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body:has(#admin-users-page) #admin-users-page .contact-form__card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    gap: 0.9rem;
  }

  body:has(#admin-users-page) #admin-users-page .admin-toolbar {
    padding: 0.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    position: relative;
    z-index: 10;
    overflow: visible;
  }

  body:has(#admin-users-page) #admin-users-page .admin-toolbar > a.contact-form__pill-btn {
    padding: 0.28rem 0.8rem;
    font-size: 0.68rem;
  }

  body:has(#admin-users-page) #admin-users-page .admin-filter-picker__toggle {
    padding: 0.28rem 0.8rem;
    justify-content: center;
    gap: 0;
    font-size: 0.68rem;
  }

  body:has(#admin-users-page) #admin-users-page .admin-filter-picker__text {
    display: none;
  }

  body:has(#admin-users-page) #admin-users-page .admin-filter-picker__icon {
    width: 15px;
    height: 15px;
  }

  body:has(#admin-users-page) #admin-users-page .admin-filter-picker__menu,
  body:has(#admin-users-page) #admin-users-page .admin-per-page-picker__menu {
    max-width: calc(100vw - 2rem);
  }

  body:has(#admin-users-page) #admin-users-page .admin-filter-picker__option {
    white-space: normal;
  }

  body:has(#admin-invitations-page) {
    overflow: auto;
  }

  body:has(#admin-invitations-page) .profile-stage {
    height: auto;
    min-height: calc(100vh - var(--shell-nav-height, 0px));
  }

  @supports (height: 100dvh) {
    body:has(#admin-invitations-page) .profile-stage {
      min-height: calc(100dvh - var(--shell-nav-height, 0px));
    }
  }

  body:has(#admin-invitations-page) .profile-stage__surface,
  body:has(#admin-invitations-page) #admin-invitations-page {
    height: auto;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .contact-form,
  body:has(#admin-invitations-page) #admin-invitations-page .contact-form__card,
  body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations,
  body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__body {
    flex: none;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__body {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .contact-form {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .contact-form__card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    gap: 0.9rem;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__card-head {
    padding: 0.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    position: relative;
    z-index: 10;
    overflow: visible;
  }

  body:has(#admin-invitations-page) #admin-invitations-page .admin-invitations__body {
    padding: 0;
  }

  body:has(#admin-reports-page) {
    overflow: auto;
  }

  body:has(#admin-reports-page) .profile-stage {
    height: auto;
    min-height: calc(100vh - var(--shell-nav-height, 0px));
  }

  @supports (height: 100dvh) {
    body:has(#admin-reports-page) .profile-stage {
      min-height: calc(100dvh - var(--shell-nav-height, 0px));
    }
  }

  body:has(#admin-reports-page) .profile-stage__surface,
  body:has(#admin-reports-page) #admin-reports-page {
    height: auto;
  }

  body:has(#admin-reports-page) #admin-reports-page .contact-form,
  body:has(#admin-reports-page) #admin-reports-page .contact-form__card,
  body:has(#admin-reports-page) #admin-reports-page .admin-reports,
  body:has(#admin-reports-page) #admin-reports-page .admin-reports__body {
    flex: none;
  }

  body:has(#admin-reports-page) #admin-reports-page .admin-reports__body {
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0;
  }

  body:has(#admin-reports-page) #admin-reports-page .contact-form {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body:has(#admin-reports-page) #admin-reports-page .contact-form__card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    gap: 0.9rem;
  }

  .admin-invitations__head {
    display: none;
  }

  .admin-invitations__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "created actions"
      "expires actions";
    gap: 0.35rem 0.75rem;
    padding: 0.6rem 0.75rem;
    align-items: start;
  }

  .admin-invitations__created {
    grid-area: created;
  }

  .admin-invitations__expires {
    grid-area: expires;
  }

  .admin-invitations__actions {
    grid-area: actions;
    align-self: start;
  }

  .admin-row__actions {
    align-items: flex-start;
  }

  .admin-row__role-form,
  .admin-row__buttons,
  .admin-row__buttons--end,
  .admin-setting-form,
  .admin-report-actions {
    justify-content: flex-start;
  }

  .admin-select,
  .admin-input {
    max-width: 100%;
  }

  .admin-users__head {
    display: none;
  }

  .admin-users__row {
    --admin-user-row-border: rgba(79, 70, 229, 0.16);
    --admin-user-row-border-hover: rgba(79, 70, 229, 0.22);
    --admin-user-row-bg: rgba(79, 70, 229, 0.03);
    --admin-user-row-bg-hover: rgba(79, 70, 229, 0.05);
    border-color: var(--admin-user-row-border);
    background: var(--admin-user-row-bg);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "user actions";
    gap: 0.65rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
  }

  .admin-users__row:hover {
    background: var(--admin-user-row-bg-hover);
    border-color: var(--admin-user-row-border-hover);
  }

  .admin-users__row--unverified {
    --admin-user-row-border: rgba(245, 158, 11, 0.24);
    --admin-user-row-border-hover: rgba(245, 158, 11, 0.32);
    --admin-user-row-bg: rgba(245, 158, 11, 0.045);
    --admin-user-row-bg-hover: rgba(245, 158, 11, 0.07);
  }

  .admin-users__row--blocked {
    --admin-user-row-border: rgba(220, 38, 38, 0.24);
    --admin-user-row-border-hover: rgba(220, 38, 38, 0.34);
    --admin-user-row-bg: rgba(220, 38, 38, 0.04);
    --admin-user-row-bg-hover: rgba(220, 38, 38, 0.07);
  }

  .admin-users__user {
    grid-area: user;
    gap: 0.15rem;
  }

  .admin-users__status {
    display: none;
  }

  .admin-users__meta {
    display: none;
  }

  .admin-users__user-link {
    gap: 0.15rem;
    padding-right: 1.45rem;
  }

  .admin-users__user-link strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-users__email {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    word-break: normal;
  }

  .admin-users__email-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-users__email-status {
    display: inline-flex;
  }

  .admin-users__email-status--verified {
    display: none;
  }

  .admin-users__row .admin-users__role,
  .admin-users__row .admin-users__actions-controls {
    display: none;
  }

  .admin-icon-btn.admin-users__settings-btn {
    display: inline-flex;
  }

  .admin-users__actions {
    grid-area: actions;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-self: center;
  }

  .admin-search {
    width: 100%;
    margin-left: 0;
  }

  .admin-input--search {
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .admin-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.55rem;
  }

  .admin-toolbar > a.contact-form__pill-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-filter-picker {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-per-page__select {
    max-width: 4.2rem;
  }

  .admin-toolbar > form.admin-search {
    grid-column: 1 / -1;
  }

  .admin-users__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "user actions";
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
  }

  .admin-users__actions {
    flex-wrap: nowrap;
  }

  .admin-users__pagination {
    padding: 0.5rem 0.65rem;
  }

  .admin-users__pagination-btn span {
    display: none;
  }

  .admin-users__pagination-info {
    font-size: 0.78rem;
  }

  .admin-users__pagination-pages {
    display: none;
  }

  .admin-invitations__pagination {
    padding: 0.5rem 0.65rem;
  }

  .admin-invitations__pagination-btn span {
    display: none;
  }

  .admin-invitations__pagination-info {
    font-size: 0.78rem;
  }

  .admin-invitations__pagination-pages {
    display: none;
  }

  .admin-reports__head {
    display: none;
  }

  .admin-reports__row {
    grid-template-columns: 2.3rem minmax(0, 1fr) auto;
    grid-template-areas:
      "number problem status"
      "number date status";
    gap: 0.25rem 0.65rem;
    padding: 0.55rem 0.7rem;
    align-items: start;
  }

  .admin-reports__number {
    grid-area: number;
    align-self: start;
    margin-top: 0.1rem;
  }

  .admin-reports__problem {
    grid-area: problem;
  }

  .admin-reports__date {
    grid-area: date;
    text-align: left;
    font-size: 0.8rem;
  }

  .admin-reports__status {
    grid-area: status;
    align-self: center;
  }

  .admin-reports__pagination {
    padding: 0.5rem 0.65rem;
  }

  .admin-reports__pagination-btn span {
    display: none;
  }

  .admin-reports__pagination-info {
    font-size: 0.78rem;
  }

  .admin-reports__pagination-pages {
    display: none;
  }

  .admin-invitations__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.65rem;
    padding: 0.55rem 0.7rem;
  }

  body:has(#admin-invitations-page) .admin-invitations__create-btn {
    padding: 0;
    width: 2.6rem;
    height: 2.6rem;
    justify-content: center;
  }

  body:has(#admin-invitations-page) .admin-invitations__create-text {
    display: none;
  }

  body:has(#admin-invitations-page) .admin-invitations__meta--expires::before {
    content: "Exp: ";
    font-weight: 800;
    color: rgba(15, 23, 42, 0.72);
  }

  .admin-role-picker[data-enhanced="true"] .admin-role-picker__menu {
    left: 0;
    right: 0;
    width: 100%;
  }
}

.confirm-modal.admin-user-settings-modal {
  z-index: 1250;
}

.admin-user-settings-modal__panel {
  width: min(520px, 100%);
}

.admin-user-settings-modal__text strong {
  display: inline-block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.admin-user-settings-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-user-settings-modal__section {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-user-settings-modal__section-title {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.admin-user-settings-modal__slot {
  margin-top: 0.65rem;
}

.admin-user-settings-modal__slot .admin-users__role,
.admin-user-settings-modal__slot .admin-users__role-form {
  justify-content: flex-start;
  width: 100%;
}

.admin-user-settings-modal__slot .admin-role-picker {
  max-width: 100%;
}

.admin-user-settings-modal__slot--actions .admin-users__actions-controls {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-user-settings-modal__slot--actions .admin-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 16px;
}

.flash {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 240, 255, 0.92));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.flash--alert {
  color: #9f1239;
  border-color: rgba(248, 113, 113, 0.35);
}

.flash--notice {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.28);
}

.flash::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.55), rgba(99, 102, 241, 0.45));
  opacity: 0.75;
}

.flash::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.flash--alert::before {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.65), rgba(244, 63, 94, 0.55));
}

.flash--notice::before {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.6), rgba(34, 197, 94, 0.55));
}

.flash-stack {
  position: fixed;
  left: 50%;
  top: calc(var(--sticky-top) + 0.75rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1500;
  pointer-events: none;
}

.flash--toast {
  max-width: min(520px, calc(100vw - 2.5rem));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  animation: toastSlideIn 0.35s ease both;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.flash--toast.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .flash-stack {
    left: 50%;
    top: calc(var(--sticky-top) + 0.4rem);
    transform: translateX(-50%);
  }

  .flash--toast {
    max-width: 100%;
  }
}

/* Force single-column auth form on mobile */
@media (max-width: 768px) {
  .auth-form__grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem;
  }
}

/* Workspace (contacts index) */

.contacts {
  --contacts-pad-top: 1rem;
  --contacts-pad-bottom: 2rem;
  position: relative;
  padding: var(--contacts-pad-top) 0 var(--contacts-pad-bottom);
  min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px) - var(--contacts-pad-top) - var(--contacts-pad-bottom));
  overflow: visible;
}

@supports (height: 100dvh) {
  .contacts {
    min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px) - var(--contacts-pad-top) - var(--contacts-pad-bottom));
  }
}

.contacts--liquid {
  background: transparent;
}

.contacts__surface {
  position: relative;
  z-index: 1;
}

.contacts__ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.contacts__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: contactOrbDrift 18s ease-in-out infinite alternate;
}

.contacts__orb--one {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(99, 102, 241, 0.45));
}

.contacts__orb--two {
  width: 360px;
  height: 360px;
  bottom: -140px;
  right: -80px;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), rgba(14, 165, 233, 0.45));
  animation-duration: 22s;
}

.contacts__orb--three {
  width: 280px;
  height: 280px;
  top: 38%;
  right: 18%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), rgba(16, 185, 129, 0.35));
  animation-duration: 26s;
}

@keyframes contactOrbDrift {
  from {
    transform: translate3d(-20px, 10px, 0) scale(0.96);
  }
  to {
    transform: translate3d(25px, -15px, 0) scale(1.05);
  }
}

.workspace {
  padding: 0 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.workspace__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  backdrop-filter: blur(16px) saturate(140%);
}



.workspace__hero > * {
  position: relative;
  z-index: 1;
  flex: 1;
}

.workspace__stats {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace__hero h1 {
  margin: 0.02rem 0 0.2rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.workspace__hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 26rem;
}

.workspace__intro {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}


.workspace__stats > div {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  min-width: 95px;
  box-shadow: 0 15px 26px rgba(15, 23, 42, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}

.workspace__stats span {
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.6);
}

.workspace__stats strong {
  display: block;
  font-size: 1.3rem;
  margin-top: 0.05rem;
  letter-spacing: -0.01em;
}

.workspace__controls {
  position: sticky;
  top: var(--sticky-top);
  z-index: 35;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  padding: 1.35rem;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  align-items: center;
  backdrop-filter: blur(12px) saturate(125%);
}

@media (max-width: 1024px) and (min-width: 721px) {
  .workspace__controls {
    padding: 1rem 1.35rem;
    gap: 0.75rem 0.95rem;
  }
}

.workspace__controls input {
  flex: 1;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1rem 1.1rem;
  background: rgba(248, 249, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  color: #0f172a;
}

.workspace__controls .contact-form__add-btn.channel-board__add-btn {
  margin-left: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.segment-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.workspace__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

  .workspace__tags .tag {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 1rem;
    background: rgba(248, 250, 252, 0.75);
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
  }

.workspace__tags .tag small {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
}

.workspace__tags .tag:hover,
.workspace__tags .tag:focus-visible {
  box-shadow: 0 12px 24px rgba(60, 92, 255, 0.12);
  border-color: rgba(60, 92, 255, 0.35);
}

.workspace__tags .tag--active {
  border-color: rgba(60, 92, 255, 0.55);
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.2));
  color: var(--brand);
  box-shadow: 0 16px 32px rgba(60, 92, 255, 0.2);
}

.contacts--profile {
  padding: 2.5rem 0 3rem;
}

.contacts--profile .contacts__surface {
  max-width: var(--content-max);
  margin: 0 auto;
}

.workspace--profile {
  max-width: 100%;
}

.workspace__hero--profile {
  grid-template-columns: 1.1fr 0.9fr;
}

.workspace__stats--profile {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.workspace__stats--profile > div {
  flex: 1 1 140px;
}

.workspace__stats--profile strong {
  font-size: 1.2rem;
}

.workspace__back-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.workspace__back-btn:hover,
.workspace__back-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(60, 92, 255, 0.35);
  box-shadow: 0 24px 40px rgba(60, 92, 255, 0.22);
}

.workspace__grid--profile {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.workspace__grid--profile .contact-form__card--identity {
  grid-column: 1 / -1;
}

.profile-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.12);
}

.profile-card--identity {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.16));
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 45px 90px rgba(99, 102, 241, 0.22);
}

.profile-card .contact-form__card-head {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 30px rgba(15, 23, 42, 0.08);
  margin: -0.2rem -0.2rem 0.8rem;
}

.profile-card .contact-form__card-head h3 {
  margin: 0;
  background: linear-gradient(120deg, #312e81, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-card .form-field input,
.profile-card .form-field input:focus {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 249, 255, 0.95);
  padding: 0.85rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-card .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-card .form-actions .contact-form__pill-btn {
  border-radius: 16px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.chip--active {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 15px 28px rgba(60, 92, 255, 0.3);
}

.workspace__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}


.workspace__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
}

.workspace__pagination-btn {
  gap: 0.4rem;
  min-width: 7.2rem;
  justify-content: center;
}

.workspace__pagination-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
  font-weight: 600;
}

.workspace__pagination-range {
  white-space: nowrap;
}

.workspace__pagination-pages {
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.5);
}

.board-empty {
  grid-column: 1 / -1;
  border-radius: 28px;
  padding: 2.1rem 1.6rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  color: rgba(15, 23, 42, 0.62);
  position: relative;
  overflow: hidden;
}

.board-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 18% 0%, rgba(60, 92, 255, 0.14), transparent 55%),
    radial-gradient(110% 120% at 95% 30%, rgba(14, 165, 233, 0.12), transparent 60%);
  opacity: 0.95;
  pointer-events: none;
}

.board-empty p {
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .board-empty {
    padding: 1.45rem 1rem;
    min-height: 112px;
    border-radius: 24px;
  }

  .board-empty p {
    font-size: 1rem;
  }

  .workspace__pagination {
    padding: 0.75rem 0.85rem;
  }

  .workspace__pagination-btn {
    min-width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .workspace__pagination-btn span {
    display: none;
  }

  .workspace__pagination-info {
    font-size: 0.82rem;
  }

  .workspace__pagination-pages {
    display: none;
  }
}

.focus-card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 1.2rem 1.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 255, 0.88));
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: space-between;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.focus-card--featured {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.12));
  box-shadow: 0 26px 56px rgba(99, 102, 241, 0.24);
}

.focus-card--pending {
  border-color: rgba(245, 158, 11, 0.42);
}

.focus-card--pending:not(.focus-card--featured) {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.88));
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.focus-card--featured.focus-card--pending {
  box-shadow: 0 26px 56px rgba(99, 102, 241, 0.24), 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.focus-card:hover,
.focus-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  border-color: rgba(60, 92, 255, 0.4);
  text-decoration: none;
}

.focus-card:hover .focus-card__identity strong,
.focus-card:hover .focus-card__identity p,
.focus-card:focus-visible .focus-card__identity strong,
.focus-card:focus-visible .focus-card__identity p {
  text-decoration: none;
}

.focus-card--pending:hover,
.focus-card--pending:focus-visible {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18), 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.focus-card--featured.focus-card--pending:hover,
.focus-card--featured.focus-card--pending:focus-visible {
  box-shadow: 0 30px 64px rgba(99, 102, 241, 0.26), 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.focus-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.16), rgba(14, 165, 233, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand);
  overflow: hidden;
}

.focus-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.focus-card__identity strong {
  font-size: 1.0rem;
}

.focus-card__status {
  margin-top: 0.4rem;
}

.focus-card__badges {
  grid-column: span 2;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  padding-top: 0.85rem;
  min-height: 2.5rem;
}

.focus-card__badges::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 50%;
  width: min(220px, 70%);
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(60, 92, 255, 0),
    rgba(60, 92, 255, 0.4) 35%,
    rgba(14, 165, 233, 0.35) 65%,
    rgba(14, 165, 233, 0)
  );
}

.focus-card__placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}

.focus-card--deceased {
  filter: grayscale(1);
  opacity: 0.9;
}

.focus-card__divider {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: 0.3rem;
}

/* Performance tuning (contacts list) */
body:has(#contacts-app) .contacts__orb {
  animation: none;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.45;
}

body:has(#contacts-app) .workspace__hero,
body:has(#contacts-app) .workspace__stats > div,
body:has(#contacts-app) .workspace__controls,
body:has(#contacts-app) .workspace__pagination,
body:has(#contacts-app) .board-empty {
  backdrop-filter: none;
}

body:has(#contacts-app) .workspace__hero {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

body:has(#contacts-app) .workspace__stats > div {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

body:has(#contacts-app) .workspace__controls {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

body:has(#contacts-app) .workspace__pagination,
body:has(#contacts-app) .board-empty {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

body:has(#contacts-app) .workspace__grid > .focus-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 220px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body:has(#contacts-app) .workspace__grid > .focus-card:hover,
body:has(#contacts-app) .workspace__grid > .focus-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

.channel-chip {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(60, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.status-pill {
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.status-pill--success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #036851;
}

.status-pill--warning {
  background: linear-gradient(135deg, #ffe8d9 0%, #fed7aa 100%);
  color: #b45309;
}

.status-pill--danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.status-pill--muted {
  background: #f3f4f6;
  color: #475569;
}

.status-pill--deceased {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid rgba(55, 65, 81, 0.25);
}

/* Profile */

.profile-stage {
  position: relative;
  min-height: 100vh;
  padding: 1rem 1rem 3rem;
  background: var(--bg);
  overflow: hidden;
}

.profile-stage--liquid {
  background: transparent;
}

.profile-stage__surface {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-stage__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.profile-stage__orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: blur(1px);
  animation: contactOrbDrift 22s ease-in-out infinite alternate;
}

.profile-stage__orb--one {
  width: 520px;
  height: 520px;
  top: -240px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(60, 92, 255, 0.35));
}

.profile-stage__orb--two {
  width: 360px;
  height: 360px;
  bottom: -160px;
  right: -80px;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.82), rgba(14, 165, 233, 0.35));
  animation-duration: 28s;
}

.profile-stage__orb--three {
  width: 280px;
  height: 280px;
  top: 30%;
  right: 18%;
  background: radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.75), rgba(16, 185, 129, 0.25));
  animation-duration: 32s;
}

.profile-shell {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-shell--deceased {
  filter: grayscale(1);
  opacity: 0.92;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 1.6rem 2rem;
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.16);
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.profile-hero:hover,
.profile-hero:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 34px 72px rgba(60, 92, 255, 0.2);
}

.profile-hero__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  margin: -0.2rem 0 1rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background:
    linear-gradient(130deg, rgba(99, 102, 241, 0.04), rgba(59, 130, 246, 0.06), rgba(16, 185, 129, 0.05)),
    linear-gradient(120deg, rgba(248, 250, 255, 0.99), rgba(236, 244, 255, 0.97));
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.12);
}

.profile-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(120deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.95));
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.profile-hero__back-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.profile-hero__back:hover,
.profile-hero__back:focus-visible {
  background: linear-gradient(120deg, rgba(191, 219, 254, 1), rgba(147, 197, 253, 1));
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(99, 102, 241, 0.18);
}

.profile-hero__top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-hero__edit {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem 0.4rem 0.9rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.profile-hero__edit-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.2);
}

.profile-hero__edit:hover,
.profile-hero__edit:focus-visible {
  background: rgba(79, 70, 229, 0.14);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4), 0 8px 20px rgba(67, 56, 202, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.profile-hero__edit:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65), inset 0 0 0 1px rgba(79, 70, 229, 0.55);
}

.contact-pill-action {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(79, 70, 229, 0.08);
  color: rgba(15, 23, 42, 0.85);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.25);
}

.contact-pill-action:hover,
.contact-pill-action:focus-visible {
  background: rgba(79, 70, 229, 0.13);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.4), 0 8px 18px rgba(79, 70, 229, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.contact-pill-action--primary {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.35);
  border: none;
}

.contact-pill-action--primary:hover,
.contact-pill-action--primary:focus-visible {
  background: linear-gradient(135deg, #22c55e, #0f9f6e);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.45);
}

.contact-pill-action--ghost {
  background: rgba(15, 23, 42, 0.05);
  box-shadow: none;
  color: #0f172a;
}

.contact-pill-action--danger {
  background: linear-gradient(135deg, #fb7185, #dc2626);
  color: #fff;
  border: none;
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.35);
}

.contact-pill-action--danger:hover,
.contact-pill-action--danger:focus-visible {
  background: linear-gradient(135deg, #f43f5e, #b91c1c);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.45);
  color: #fff;
}

.contact-pill-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.channel-board__add-btn {
  margin-left: auto;
}

.asset-form__submit {
  margin-top: 0.75rem;
}

.profile-hero__portrait {
  width: 220px;
  height: 220px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 55%), var(--brand-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(60, 92, 255, 0.25);
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

.profile-hero__placeholder {
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  border-radius: 36px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-hero__rating-badge {
  position: relative;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-hero__rating-value {
  letter-spacing: 0.02em;
}

.profile-hero__rating-star {
  color: #fbbf24;
  font-size: 1rem;
}

.profile-hero__rating-wrapper {
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-hero__rating-popover {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: bottom center;
  transform: translate(-50%, 4px);
}

.profile-hero__rating-wrapper::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #0f172a;
  border-radius: 2px;
  rotate: 45deg;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.profile-hero__rating-wrapper:hover .profile-hero__rating-popover,
.profile-hero__rating-wrapper:focus-within .profile-hero__rating-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-hero__rating-wrapper:hover::after,
.profile-hero__rating-wrapper:focus-within::after {
  opacity: 1;
}

.profile-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.profile-hero__visual--mobile,
.profile-hero__focus-toggle--mobile {
  display: none;
}

.profile-hero__focus-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.profile-hero__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: -0.35rem;
}

.profile-hero__label-row,
.profile-hero__label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-hero__label-row {
  margin-bottom: 0.25rem;
}

.profile-hero__label-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 1001px) {
  body:has(#contact-profile-app) .profile-hero__label-row {
    align-items: flex-start;
  }

  body:has(#contact-profile-app) .profile-hero__label-actions {
    margin-left: auto;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.35rem;
  }

  body:has(#contact-profile-app) .profile-hero__updated--corner {
    text-align: right;
  }
}

@media (min-width: 821px) {
  body:has(#contact-profile-app) .profile-hero__label-row {
    margin-bottom: 0.125rem;
  }
}

.profile-hero__label-row .eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.profile-hero__verify {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  box-shadow: 0 14px 24px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-hero__verify-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-hero__verify:hover,
.profile-hero__verify:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, #22c55e, #047857);
  outline: none;
}

.profile-hero__body h1 {
  margin: 0.1rem 0 0;
  font-size: 1.85rem;
}

.profile-hero__fio {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.05rem 0 0;
}

.profile-hero__role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

.profile-hero__role-list {
  display: inline;
}

.profile-hero__role-item {
  display: inline;
}

.profile-hero__role-item:not(:last-child)::after {
  content: ", ";
}

@media (max-width: 820px) and (orientation: portrait) {
  body:has(#contact-profile-app) .profile-hero__role-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
  }

  body:has(#contact-profile-app) .profile-hero__role-item::after {
    content: "";
  }
}

.profile-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.2rem;
}

.profile-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.08);
  color: #312e81;
  border: 1px solid rgba(79, 70, 229, 0.15);
  text-transform: none;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.profile-hero__tag--more {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.profile-hero__tag--more:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.profile-hero__tag-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-hero__tags-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translate(-50%, 6px);
  width: min(340px, 90vw);
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.profile-hero__tags-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.profile-hero__tags-popover-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.55rem;
}

.profile-hero__tags-popover-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: min(40vh, 220px);
  overflow: auto;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overscroll-behavior: contain;
}

.profile-hero__tag-more[data-open="true"] .profile-hero__tags-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
  .profile-hero__tag-more:hover .profile-hero__tags-popover,
  .profile-hero__tag-more:focus-within .profile-hero__tags-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 820px) {
  body:has(#contact-profile-app) .profile-hero__tags-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(320px, calc(100vw - 2rem));
    padding: 0;
    border-radius: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 0.85rem;
    color: var(--muted);
    transform: translate(-50%, -50%);
    transition: none;
    z-index: 1801;
  }

  body:has(#contact-profile-app) .profile-hero__tags-popover::before {
    display: none;
  }

  body:has(#contact-profile-app) .profile-hero__tags-popover-list {
    max-height: min(55vh, 280px);
  }
}

.profile-hero__summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.2rem 0 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.profile-hero__summary-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 600;
}

.profile-hero__summary p {
  margin: 0;
  color: #374151;
  font-weight: 400;
  font-size: 0.93rem;
  line-height: 1.35;
}

.profile-hero__footer {
  position: absolute;
  right: 2.2rem;
  bottom: 1.8rem;
  text-align: right;
}

.profile-hero__updated {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.45);
}

.profile-hero__updated-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.4);
  font-weight: 600;
}

.profile-hero__updated time {
  display: block;
  margin-top: 0.1rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.5);
}

.profile-hero__updated--meta {
  margin-left: auto;
  text-align: right;
  align-self: center;
}

@media (min-width: 821px) and (max-width: 1000px) {
  body:has(#contact-profile-app) .profile-hero__updated--meta {
    padding-left: 0.75rem;
  }
}

.profile-hero__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.profile-hero__meta--chips {
  gap: 0.5rem;
}

@media (max-width: 1000px) {
  .profile-hero {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .profile-hero__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .profile-hero__top-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .profile-hero__visual {
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .profile-hero__focus-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-hero__body {
    margin-top: 0;
  }

  .profile-hero__footer {
    position: static;
    margin-top: 1.3rem;
    text-align: left;
  }

  .representative-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .representative-card__channels {
    gap: 0.7rem;
  }

  .representative-phone {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .representative-channel__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace__hero--profile {
    grid-template-columns: 1fr;
  }

  .workspace__stats--profile {
    justify-content: flex-start;
  }
}

.meta-chip {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  color: #475569;
}

.meta-chip--location {
  position: relative;
  padding-left: 0.65rem;
  cursor: help;
}

.meta-chip--location::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translate(-50%, 4px);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  z-index: 5;
}

.meta-chip--location:focus-visible::after,
.meta-chip--location:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.meta-chip--language {
  position: relative;
  cursor: help;
  text-transform: lowercase;
}

.meta-chip--language::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translate(-50%, 4px);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  z-index: 5;
  text-transform: none;
}

.meta-chip--language:hover::after,
.meta-chip--language:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Contact form */

.contact-form-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.contact-form-page--deceased {
  filter: grayscale(1);
  opacity: 0.92;
}

.contact-form-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(236, 240, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(12px) saturate(125%);
}

@media (max-width: 720px) {
  body:has(#contact-form-app):not(:has(.profile-stage)) .contact-form-page {
    padding: 1.6rem 0.8rem 2.4rem;
  }
}

@media (max-width: 640px) {
  /* Compact liquid glass layout for contact edit */
  .profile-stage {
    padding: 0.05rem 0.05rem 0.2rem;
  }

  .profile-stage__surface {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: -0.3rem;
  }

  .contact-form-page {
    padding: 0.05rem 0.05rem 0.2rem;
    gap: 0.4rem;
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) .contact-form-page {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .contact-form-page__header {
    padding: 0.7rem 0.9rem;
    border-radius: 25px;
    gap: 0.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 240, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-page__lede {
    display: block;
    padding: 0.2rem 0.9rem;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .contact-form-page__lede h1 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .contact-form-page__lede p {
    margin: 0.4rem 0 0;
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .contact-form-page__header-actions {
    width: 100%;
    gap: 0.6rem;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.7rem 1.5rem 0.1rem;
  }

  .contact-form-page__header-actions .contact-form__pill-btn {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.28rem 0.52rem;
    font-size: 0.85rem;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(135deg, rgba(60, 92, 255, 0.9), rgba(14, 165, 233, 0.82));
    color: #fff;
    box-shadow: 0 16px 30px rgba(60, 92, 255, 0.3);
    backdrop-filter: blur(12px) saturate(140%);
  }

  .contact-form-page__header-actions .contact-form__pill-btn.contact-form__pill-btn--danger {
    padding: 0.58rem 0.92rem;
    font-size: 0.85rem;
    flex: 0 0 auto;
    margin-left: auto;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.9), rgba(220, 38, 38, 0.85));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 18px 32px rgba(220, 38, 38, 0.3);
  }
  /* Ensure single-column layout for edit form */
  #contact-form-app,
  .contact-form,
  .contact-form__card,
  .contact-form__card--identity {
    width: 100%;
  }

  .contact-form__card--identity {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0.75rem;
    gap: 0.8rem;
  }

  .contact-form__identity-fields .form-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.6rem;
  }

  .contact-form__identity-fields .form-grid > * {
    width: 100%;
  }

  .contact-form__card {
    padding: 0.85rem;
    border-radius: 16px;
    gap: 0.65rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  }

  .contact-form__avatar-preview {
    width: 220px;
    height: 220px;
    border-radius: 36px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .contact-form__avatar {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
  }

  .contact-form__identity-fields {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.6rem;
  }

  .contact-form__card-head h3 {
    font-size: 0.98rem;
  }

  .contact-form__danger-zone {
    padding: 0.75rem;
    border-radius: 12px;
    gap: 0.6rem;
    box-shadow: 0 16px 34px rgba(248, 113, 113, 0.14);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .stacked-field,
  .form-grid label {
    gap: 0.3rem;
    font-size: 0.95rem;
  }

  .form-grid input,
  .stacked-field textarea,
  .contact-form__areas-control input {
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
  }

  .contact-form__position-box {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    gap: 0.6rem;
  }
}

.contact-form-page__lede-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 641px) {
  .contact-form-page__lede {
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 255, 0.85));
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.62);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(125%);
  }

  .contact-form-page__lede::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: none;
  }

  .contact-form-page__lede h1 {
    margin: 0;
    font-size: 1.7rem;
    background: linear-gradient(120deg, #312e81, #4f46e5, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
  }

  .contact-form-page__lede p {
    margin: 0.4rem 0 0;
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.94rem;
  }
}

.contact-form-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-form-page__header--stacked {
  flex-direction: column;
  align-items: stretch;
}

.contact-form-page__header--stacked .contact-form-page__header-actions {
  width: 100%;
  justify-content: flex-start;
}

.contact-form-page__header-actions form {
  margin: 0;
  display: inline;
}

.contact-status-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.7);
}


.contact-status-badge--deceased {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.07);
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body:has(#contact-form-app) .contact-form--page {
  position: sticky;
  top: var(--sticky-top);
  z-index: 0;
}

.contact-form__card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 240, 255, 0.78));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  backdrop-filter: blur(12px) saturate(125%);
}

@media (min-width: 641px) {
  .contact-form__card--identity {
    gap: 1.4rem;
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(236, 240, 255, 0.86));
    box-shadow: 0 22px 48px rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px) saturate(125%);
    position: relative;
    z-index: 10;
  }

  .contact-form__card--identity:hover,
  .contact-form__card--identity:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 26px 52px rgba(99, 102, 241, 0.18);
    z-index: 30;
  }
}

.contact-form__danger-zone {
  margin-top: 2rem;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.1), rgba(248, 113, 113, 0.06));
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 24px 48px rgba(248, 113, 113, 0.18);
  backdrop-filter: blur(10px) saturate(130%);
}

.contact-form__danger-zone h3 {
  margin: 0;
}

.contact-form__danger-zone p {
  margin: 0.3rem 0 0;
  color: rgba(15, 23, 42, 0.65);
}

.contact-form__card-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-form__card-head p {
  margin: 0.2rem 0 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
}

.contact-form__avatar-preview {
  width: 171px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: radial-gradient(120% 120% at 20% 20%, rgba(255, 255, 255, 0.65), rgba(226, 232, 255, 0.35)),
    radial-gradient(130% 140% at 80% 80%, rgba(79, 70, 229, 0.16), rgba(99, 102, 241, 0.08)),
    rgba(79, 70, 229, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f4ff6;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 10px 24px rgba(79, 70, 229, 0.28), 0 2px 6px rgba(79, 70, 229, 0.35);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(79, 70, 229, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  line-height: 1;
  text-align: center;
}

/* Anchor delete icon to the avatar preview */
.contact-form__avatar-preview > .contact-form__avatar-reset--overlay {
  z-index: 12;
}

.contact-form__avatar-preview-button {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.contact-form__avatar-preview-button:hover,
.contact-form__avatar-preview-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.22);
  outline: none;
}

.contact-form__avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form__avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0 1rem;
  text-align: center;
}

.contact-form__avatar-preview-button:hover .contact-form__avatar-overlay,
.contact-form__avatar-preview-button:focus-visible .contact-form__avatar-overlay {
  opacity: 1;
}

/* Hide non-overlay reset buttons everywhere */
.contact-form__avatar-actions .contact-form__avatar-reset:not(.contact-form__avatar-reset--overlay) {
  display: none;
}

  /* Mobile reset button as icon on photo */
  .contact-form__avatar-reset--overlay {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.68));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.28);
  z-index: 6;
  font-size: 0;
  line-height: 1;
  color: transparent;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(130%);
  pointer-events: auto;
  transform: translate(0, 0);
}

.contact-form__avatar-reset--overlay::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 5h5M19 7h-2.5H7.5H5m12 0-.715 9.295c-.08 1.04-.12 1.56-.349 1.954-.202.342-.5.62-.858.8C15.231 19 14.708 19 13.662 19h-3.324c-1.046 0-1.569 0-2.016-.228a1.78 1.78 0 0 1-.858-.8c-.229-.394-.268-.914-.349-1.954L6.4 7m6.6 4.5v4.5m-3-4.5V16m6-4.5V16' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px 22px no-repeat;
  }

.contact-form__avatar-reset--overlay span {
  display: none;
}

.contact-form__avatar-hint {
  margin: 0;
  color: rgba(15, 23, 42, 0.5);
  font-size: 0.85rem;
}

/* Default (desktop) avatar actions */
.contact-form__avatar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contact-form__avatar-actions .contact-form__pill-btn {
  margin: 0 auto;
}

.contact-form__avatar-reset {
  margin-top: 0.3rem;
}

.contact-form__avatar-reset span {
  display: inline;
}

@media (min-width: 901px) {
  /* Desktop avatar size and overlay anchoring */
  .contact-form__avatar-preview {
    width: 220px;
    height: 220px;
    border-radius: 36px;
    position: relative;
    overflow: hidden;
  }

  .contact-form__avatar-preview > .contact-form__avatar-reset--overlay {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.68));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.28);
    z-index: 12;
    font-size: 0;
    line-height: 1;
    color: transparent;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(130%);
    pointer-events: auto;
    transform: translate(0, 0);
  }

  .contact-form__avatar-preview > .contact-form__avatar-reset--overlay::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 5h5M19 7h-2.5H7.5H5m12 0-.715 9.295c-.08 1.04-.12 1.56-.349 1.954-.202.342-.5.62-.858.8C15.231 19 14.708 19 13.662 19h-3.324c-1.046 0-1.569 0-2.016-.228a1.78 1.78 0 0 1-.858-.8c-.229-.394-.268-.914-.349-1.954L6.4 7m6.6 4.5v4.5m-3-4.5V16m6-4.5V16' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px 22px no-repeat;
  }

  /* Desktop: keep reset button as text below photo */
  .contact-form__avatar-reset {
    position: static;
    width: auto;
    height: auto;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(67, 56, 202, 0.08);
    color: #312e81;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
    border: none;
    font-size: 0.95rem;
  }

  .contact-form__avatar-reset:not(.contact-form__avatar-reset--overlay)::before {
    content: none;
  }

  .contact-form__avatar-reset span {
    display: inline;
  }

}

@media (max-width: 900px) and (min-width: 641px) {
  /* Ensure overlay button anchors to photo */
  .contact-form__avatar-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 171px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 26px;
    overflow: hidden;
    margin: 0 auto;
  }

  /* Mobile reset button as icon on photo */
  .contact-form__avatar-reset--overlay {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    color: transparent;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.45);
    z-index: 6;
    pointer-events: auto;
    font-size: 0;
    line-height: 1;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(140%);
  }

  .contact-form__avatar-reset--overlay::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 5h5M19 7h-2.5H7.5H5m12 0-.715 9.295c-.08 1.04-.12 1.56-.349 1.954-.202.342-.5.62-.858.8C15.231 19 14.708 19 13.662 19h-3.324c-1.046 0-1.569 0-2.016-.228a1.78 1.78 0 0 1-.858-.8c-.229-.394-.268-.914-.349-1.954L6.4 7m6.6 4.5v4.5m-3-4.5V16m6-4.5V16' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px 22px no-repeat;
  }

  .contact-form__avatar-reset--overlay span {
    display: none;
  }
}

@media (max-width: 900px) {
  .contact-modal {
    padding: 0.6rem;
    align-items: flex-start;
  }

  .contact-modal__panel {
    width: 100%;
    max-height: calc(100vh - 1rem);
    height: auto;
    border-radius: 22px;
    padding: 1.3rem;
  }
}

@media (max-width: 945px) and (min-width: 641px) {
  .contact-form__card--identity {
    display: grid;
    align-items: flex-start;
    grid-template-columns: minmax(180px, 220px) 1fr;
    grid-template-areas:
      "avatar fields"
      "location languages";
    column-gap: 1.1rem;
    row-gap: 1rem;
  }

  .contact-form__card--identity-tablet {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
  }

  .contact-form__avatar-preview {
    margin-left: 0;
    margin-right: auto;
  }

  .contact-form__avatar {
    grid-area: avatar;
  }

  .contact-form__identity-fields {
    grid-area: fields;
  }

  .contact-form__identity-extra {
    display: contents;
  }

  .contact-form__identity-extra .contact-form__language-box--location {
    grid-area: location;
    margin-top: 0;
    width: 100%;
    align-self: start;
  }

  .contact-form__identity-extra .contact-form__language-box:not(.contact-form__language-box--location) {
    grid-area: languages;
    width: 100%;
    align-self: start;
  }

  .contact-form__identity-extra--tablet {
    display: block;
    width: 100%;
    grid-template-columns: none;
    grid-template-areas: none;
    gap: 0.8rem;
  }

  .contact-form__identity-extra--tablet .contact-form__language-box,
  .contact-form__identity-extra--tablet .contact-form__language-box--location {
    width: 100%;
  }
}
.contact-form__identity-fields {
  width: 100%;
}

.contact-form__name-box {
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 22px;
  padding: 0.9rem 1.1rem;
  background: rgba(79, 70, 229, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form__name-grid label input {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__name-grid label input:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
  outline: none;
}

.contact-form__identity-extra {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-form__identity-extra {
    grid-template-columns: 1fr;
  }
}

.contact-form__language-box--location {
  padding-bottom: 0.4rem;
}

.contact-form__language-chips--location {
  position: relative;
  display: block;
}

.contact-form__language-chips--location input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__language-chips--location input:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
  outline: none;
}

.contact-form__location-dropdown {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  max-height: 220px;
  overflow-y: auto;
  padding: 0.3rem;
  z-index: 50;
}

.contact-form__location-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
}

.contact-form__location-option:hover,
.contact-form__location-option:focus-visible {
  background: rgba(79, 70, 229, 0.08);
  outline: none;
}

.contact-form__location-empty {
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.5);
}

.contact-form__language-box {
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 22px;
  padding: 0.9rem 1.1rem;
  background: rgba(79, 70, 229, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__language-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.contact-form__language-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-form__language-head span {
  font-weight: 600;
  color: #0f172a;
}

.contact-form__language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.contact-form__language-empty {
  color: rgba(15, 23, 42, 0.5);
  font-size: 0.9rem;
}

.btn--compact {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.contact-form__pill-btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
}

.contact-form__pill-btn svg {
  display: block;
}

.contact-form__pill-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.contact-form__pill-btn--primary {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.88), rgba(14, 165, 233, 0.82));
  color: #fff;
  box-shadow: 0 18px 32px rgba(60, 92, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-form__pill-btn--danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.88), rgba(220, 38, 38, 0.82));
  color: #fff;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-form__pill-btn--warning {
  background: linear-gradient(135deg, #ffe8d9 0%, #fed7aa 100%);
  color: #b45309;
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.24);
  border: 1px solid rgba(180, 83, 9, 0.18);
}

.contact-form__pill-btn--primary.contact-form__pill-btn--save {
  min-width: 230px;
  justify-content: center;
}

.contact-form__pill-btn--ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(236, 240, 255, 0.18));
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 14px 26px rgba(60, 92, 255, 0.16);
}

.contact-form__pill-btn--back .contact-form__pill-icon {
  background: rgba(255, 255, 255, 0.32);
}

.contact-form__pill-btn--primary:hover,
.contact-form__pill-btn--primary:focus-visible,
.contact-form__pill-btn--ghost:hover,
.contact-form__pill-btn--ghost:focus-visible,
.contact-form__pill-btn--danger:hover,
.contact-form__pill-btn--danger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(67, 56, 202, 0.4);
  outline: none;
}

.contact-form__pill-btn--warning:hover,
.contact-form__pill-btn--warning:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(180, 83, 9, 0.26);
  outline: none;
}

.contact-form__pill-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 10px 18px rgba(67, 56, 202, 0.25);
}

.contact-form__pill-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form__pill-btn--compact {
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
}

.contact-form__add-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.8);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-align: left;
}

.contact-form__add-btn span:last-child {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  color: rgba(15, 23, 42, 0.75);
}

.contact-form__add-btn span:last-child strong {
  font-size: 0.82rem;
  color: #0f172a;
}

.contact-form__add-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(60, 92, 255, 0.35);
  position: relative;
  flex: 0 0 auto;
}

.contact-form__add-btn-icon::before,
.contact-form__add-btn-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.contact-form__add-btn-icon::before {
  width: 60%;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-form__add-btn-icon::after {
  width: 2px;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-form__add-btn:hover,
.contact-form__add-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(60, 92, 255, 0.3);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
  outline: none;
}

.contact-form__add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.contact-form__pill-spinner {
  animation: contact-form-spin 0.9s linear infinite;
  transform-origin: center;
}

@keyframes contact-form-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contact-form__card--position {
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.75), rgba(248, 244, 255, 0.8));
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form__card--position:hover,
.contact-form__card--position:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(217, 119, 6, 0.2);
}

.contact-form__position-box {
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  background: rgba(79, 70, 229, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form__position-grid label input {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__position-grid label input:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
  outline: none;
}


.contact-form__card--expert {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.75), rgba(224, 247, 250, 0.8));
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 25px 60px rgba(14, 165, 233, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form__card--expert:hover,
.contact-form__card--expert:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 32px 70px rgba(14, 165, 233, 0.25);
}

.contact-form__expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.contact-form__expert-panel,
.contact-form__expert-tags,
.contact-form__expert-panel--tags {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__expert-tags-head span {
  font-weight: 600;
  color: #0f172a;
}

.contact-form__expert-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-grid label,
.stacked-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: #0f172a;
}

.form-grid input,
.stacked-field textarea,
.contact-form__areas-control input {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
}

.form-grid input:focus,
.stacked-field textarea:focus,
.contact-form__areas-control input:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
  outline: none;
}

.stacked-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form__textarea {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 30px rgba(15, 23, 42, 0.08);
  resize: none;
  min-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, height 0.2s ease;
}

.contact-form__textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.contact-form__textarea:focus {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15), 0 18px 30px rgba(67, 56, 202, 0.15);
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}

.contact-form__counter {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
  text-align: right;
}

.contact-form__counter.is-warning {
  color: #d97706;
}

.contact-form__counter.is-limit {
  color: #dc2626;
  font-weight: 600;
}

.contact-form__areas {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-domain-picker__control,
.admin-domain-picker__list,
.admin-domain-picker__empty {
  display: none;
}

.admin-domain-picker[data-enhanced="true"] .admin-domain-picker__control,
.admin-domain-picker[data-enhanced="true"] .admin-domain-picker__list {
  display: flex;
}

.admin-domain-picker[data-enhanced="true"] .admin-domain-picker__empty {
  display: inline-flex;
}

.admin-domain-picker[data-enhanced="true"] .admin-domain-picker__empty[hidden] {
  display: none;
}

.admin-domain-picker[data-enhanced="true"] .admin-domain-picker__native {
  display: none;
}

.admin-domain-picker__input {
  flex: 1 1 240px;
  max-width: none;
}

.contact-form__areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.6rem;
}

.contact-form__area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
}

.contact-form__area-chip button {
  border: none;
  background: transparent;
  color: rgba(79, 70, 229, 0.9);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.contact-form__areas-empty {
  color: rgba(15, 23, 42, 0.5);
  font-size: 0.9rem;
}

.contact-form__areas--jobs {
  margin-top: 0.2rem;
}

.contact-form__areas--jobs .contact-form__areas-control button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.contact-form__areas-control {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-form__areas-control input {
  flex: 1;
  min-width: 220px;
}

.contact-form__areas-control + .contact-form__areas-suggest {
  margin-top: 0.4rem;
}

.contact-form__areas-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contact-form__suggest-chip {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__suggest-chip:hover,
.contact-form__suggest-chip:focus-visible {
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
  outline: none;
}

.contact-form__suggest-chip:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  border-color: rgba(15, 23, 42, 0.15);
}

.stacked-field__label {
  font-weight: 600;
  color: #0f172a;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
  overflow-y: auto;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

.contact-modal__panel {
  position: relative;
  z-index: 41;
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.9));
  border-radius: 26px;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(18px) saturate(140%);
  scrollbar-gutter: stable;
}

.contact-modal__panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.contact-modal__panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px 0;
}

.contact-modal__panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(14, 165, 233, 0.5));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-modal__panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(14, 165, 233, 0.7));
}

.contact-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contact-modal__header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.contact-modal__header p {
  margin: 0.2rem 0 0;
  color: rgba(15, 23, 42, 0.6);
}

.contact-modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.contact-modal__search input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.contact-modal__popular {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-modal__popular span {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.contact-modal__popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem;
}

.language-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(15, 23, 42, 0.5);
  margin: 0.5rem 0;
}

.language-tile {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.language-tile.is-active {
  border-color: rgba(79, 70, 229, 0.7);
  background: rgba(79, 70, 229, 0.12);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.3);
}

.contact-modal__custom {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-modal__custom input {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
}

.contact-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Glassy buttons inside language modal */
.contact-modal__panel--language .btn {
  min-width: 120px;
  border-radius: 14px;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  backdrop-filter: blur(12px) saturate(140%);
}

.contact-modal__panel--language .btn--primary {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.9), rgba(14, 165, 233, 0.85));
  color: #fff;
  box-shadow: 0 18px 36px rgba(60, 92, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-modal__panel--language .btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1), 0 12px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.meta-chip--accent {
  border-color: rgba(147, 51, 234, 0.35);
  background: rgba(147, 51, 234, 0.1);
  color: #6d28d9;
  font-weight: 600;
  text-transform: capitalize;
}

.profile-hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.focus-control {
  background: var(--panel);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.focus-control__badge {
  position: relative;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
}

.focus-control__badge.is-active {
  background: rgba(109, 76, 250, 0.15);
  color: #4c1d95;
  border-color: rgba(109, 76, 250, 0.25);
  box-shadow: 0 8px 20px rgba(109, 76, 250, 0.25);
}

.focus-control__badge--button {
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.focus-control__badge--button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.focus-control__badge--button:active {
  transform: translateY(1px);
}

.focus-control__info {
  border: none;
  background: rgba(255, 255, 255, 0.6);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: 700;
}

.focus-control__popover {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  width: 240px;
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  font-size: 0.85rem;
  color: var(--muted);
  z-index: 100;
}

.focus-control__badge-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.focus-control__badge-main span {
  font-size: 1rem;
}

.focus-control__badge-main small {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 500;
}

.focus-control__badge:hover .focus-control__popover {
  display: block;
}

.hero-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.hero-badge--success {
  background: #ecfdf5;
  color: #047857;
}

.hero-badge--warning {
  background: #fff7ed;
  color: #c2410c;
}

.hero-badge--focus {
  background: rgba(109, 76, 250, 0.15);
  color: #4c1d95;
}

.hero-badge--deceased {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid rgba(55, 65, 81, 0.35);
}

.profile-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  border-radius: 28px;
  padding: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover,
.profile-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.profile-card.channel-board {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.75), rgba(248, 244, 255, 0.8));
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.12);
  padding: clamp(1.6rem, 2vw, 2.4rem);
  gap: 1.6rem;
  z-index: 5;
  border-radius: 32px;
}

.profile-card.channel-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 5%, rgba(255, 255, 255, 0.92), transparent 60%);
  pointer-events: none;
}

.channel-board {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channel-board__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

.channel-board__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(14, 165, 233, 0.35));
  opacity: 0.8;
}

.channel-board__head-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.channel-board__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.74rem;
  color: rgba(90, 66, 43, 0.8);
  font-family: "Courier New", Courier, monospace;
}

.channel-board__head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.channel-board__head p {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}
.channel-board__mobile-nav {
  display: none;
}

.channel-board__nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.72);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.channel-board__nav-pill.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(15, 23, 42, 0.16);
}

.channel-board__nav-pill:hover,
.channel-board__nav-pill:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18);
  color: #0f172a;
}
.channel-board__add-btn {
  padding: 0.45rem 1.2rem;
}

.channel-board__empty {
  font-size: 1.4rem;
  color: rgba(15, 23, 42, 0.3);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem 0;
}

.channel-board__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

@media (max-width: 768px) {
  .channel-board__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .channel-board__mobile-nav {
    display: flex;
    gap: 0.35rem;
    overflow: hidden;
    padding: 0.35rem;
    margin: 0.1rem 0 0.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(225, 235, 255, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
  }

  .channel-board__nav-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .channel-board__nav-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .channel-panel--direct {
    grid-column: span 2;
  }

  .channel-panel--social,
  .channel-panel--representatives {
    grid-column: span 1;
  }
}

.direct-channel-card,
.social-channel-card {
  --card-grid: auto 1fr auto;
}

@media (max-width: 640px) {
  .direct-channel-card,
  .social-channel-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .direct-channel-card__actions,
  .social-channel-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.channel-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 26px;
  border: 1px solid rgba(205, 197, 183, 0.6);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 60px rgba(109, 97, 74, 0.18);
  position: relative;
  overflow: visible;
  min-height: 100%;
}

.channel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.65), transparent 60%);
  pointer-events: none;
}

.channel-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.channel-panel--direct {
  background: linear-gradient(140deg, rgba(254, 254, 255, 0.98), rgba(236, 243, 255, 0.9));
  border-color: rgba(148, 160, 205, 0.75);
}

.channel-panel--social {
  background: linear-gradient(140deg, rgba(255, 252, 250, 0.97), rgba(244, 241, 252, 0.92));
  border-color: rgba(186, 156, 204, 0.7);
}

.channel-panel--representatives {
  background: linear-gradient(140deg, rgba(255, 251, 244, 0.97), rgba(245, 245, 255, 0.92));
  border-color: rgba(203, 176, 147, 0.7);
}

.channel-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.channel-panel__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.55);
}

.channel-panel__head h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.22rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d2e36;
}

.channel-panel__head p {
  margin: 0;
  color: rgba(45, 47, 60, 0.68);
  font-size: 0.92rem;
}

.channel-panel__stats {
  display: flex;
  gap: 0.85rem;
}

.channel-panel__stat {
  border-radius: 18px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(162, 174, 212, 0.35);
  text-align: center;
  min-width: 110px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.channel-panel__stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #2d2e36;
}

.channel-panel__stat span {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(45, 47, 60, 0.55);
  font-family: "Courier New", Courier, monospace;
}

.channel-panel__stat--muted {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
}

.channel-panel__stat--ghost {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.channel-panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.channel-panel__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: none;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.channel-panel__filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.channel-panel__filter--telegram {
  background: linear-gradient(135deg, #2aabee, #229ed9);
}

.channel-panel__filter--vk {
  background: linear-gradient(135deg, #2787f5, #1c64f2);
}

.channel-panel__filter--facebook {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.channel-panel__filter--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af);
}

.channel-panel__filter--twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8ddf);
}

.channel-panel__social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.channel-panel__representatives {
  position: relative;
  z-index: 1;
}

.channel-panel__direct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.direct-channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(199, 189, 160, 0.55);
  background: #fffdf9;
  box-shadow: 0 18px 38px rgba(112, 86, 36, 0.16);
  overflow: hidden;
  min-height: 130px;
}

.direct-channel-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, rgba(203, 192, 162, 0.6), rgba(255, 255, 255, 0.4));
}

.direct-channel-card--phone {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(254, 215, 215, 0.85));
}

.direct-channel-card--email {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.85));
}

.direct-channel-card--other {
  border-color: rgba(165, 180, 252, 0.35);
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.92), rgba(221, 214, 254, 0.85));
}

.direct-channel-card.is-outdated {
  border-color: rgba(239, 68, 68, 0.65);
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.95), rgba(254, 226, 226, 0.9));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.25);
}

.direct-channel-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(248, 247, 241, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(199, 189, 160, 0.4), 0 4px 10px rgba(60, 42, 30, 0.15);
  color: #5f4c2d;
}

.direct-channel-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.direct-channel-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.direct-channel-card__label {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(75, 58, 44, 0.65);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: "Courier New", Courier, monospace;
}

.direct-channel-card__badge {
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(15, 23, 42, 0.7);
}

.direct-channel-card__value {
  min-height: 1.4em;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3b2b1c;
  text-decoration: none;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.direct-channel-card.is-outdated .direct-channel-card__value {
  color: #7f1d1d;
}

.direct-channel-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.4rem;
  padding-right: 2.5rem;
}

.direct-channel-card__actions .channel-actions {
  gap: 0.3rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.social-channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(196, 189, 205, 0.55);
  background: #f8f7ff;
  box-shadow: 0 18px 38px rgba(91, 69, 143, 0.15);
  overflow: hidden;
  min-height: 115px;
}

.social-channel-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(142, 122, 198, 0.5), rgba(255, 255, 255, 0.3));
}

.social-channel-card--telegram {
  border-color: rgba(34, 158, 217, 0.4);
  box-shadow: 0 18px 35px rgba(34, 158, 217, 0.25);
}

.social-channel-card--vk {
  border-color: rgba(39, 135, 245, 0.4);
  box-shadow: 0 18px 35px rgba(39, 135, 245, 0.25);
}

.social-channel-card--facebook {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.social-channel-card--instagram {
  border-color: rgba(221, 42, 123, 0.25);
  box-shadow: 0 18px 35px rgba(221, 42, 123, 0.25);
}

.social-channel-card--twitter {
  border-color: rgba(29, 161, 242, 0.4);
  box-shadow: 0 18px 35px rgba(29, 161, 242, 0.25);
}

.social-channel-card.is-outdated {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.95), rgba(254, 226, 226, 0.92));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.25);
}

.social-channel-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(142, 122, 198, 0.2), 0 4px 10px rgba(84, 71, 140, 0.2);
}

.social-channel-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
}

.social-channel-card__label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(75, 58, 44, 0.6);
  font-family: "Courier New", Courier, monospace;
}

.social-channel-card__value {
  font-size: 1.02rem;
  font-weight: 600;
  color: #3b2b1c;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.social-channel-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.3rem;
  padding-right: 2.5rem;
}

.social-channel-card__actions .channel-actions {
  gap: 0.3rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.channel-panel__hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 1;
}

.channel-panel__hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0f172a;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
}

.channel-panel__hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.channel-panel__hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-panel__hero-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.6);
}

.channel-panel__hero-body strong {
  display: block;
  font-size: 1.2rem;
}

.channel-panel__hero-body span {
  display: block;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

@media (max-width: 640px) {
  .channel-panel__head {
    flex-direction: column;
  }

  .channel-panel__stats {
    width: 100%;
    justify-content: space-between;
  }

  .channel-panel__hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.channel-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: visible;
  z-index: 0;
  scroll-margin-top: 80px;
}

#contact-direct-channels {
  background: rgba(79, 70, 229, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

#contact-direct-channels .channel-column__header {
  display: none;
}

.channel-panel #contact-direct-channels {
  padding: 1.2rem;
  border-radius: 32px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.15);
}

#contact-social-channels {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.channel-column:has(.channel-actions__menu) {
  z-index: 150;
}

#contact-social-channels .channel-column__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#contact-social-channels .channel-column__header::before {
  content: "";
  width: 4px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
}

#contact-social-channels .channel-column__header h3 {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f4c81;
}

.channel-column::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.06), transparent 45%);
  z-index: -1;
}

.channel-panel .channel-column {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.channel-panel .channel-column::after {
  display: none;
}

.channel-panel #contact-direct-channels {
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.channel-column--chips {
  gap: 0.6rem;
}

.channel-column--chips .representative-chip-row {
  margin-top: 0.6rem;
  gap: 1rem;
}

.channel-column--chips .representative-chip {
  flex: 0 0 auto;
}

.channel-column--chips .channel-actions {
  margin-left: 0;
}

.channel-column__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  color: #0f172a;
  border: none;
  background: transparent;
  box-shadow: none;
}

.channel-column__header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

#contact-social-channels .channel-column__header-actions,
#contact-representatives .channel-column__header-actions {
  display: none;
}

.channel-column--representatives {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(249, 246, 255, 0.92));
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 40px 70px rgba(147, 51, 234, 0.18);
}

.channel-column--representatives .channel-column__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.channel-column--representatives .channel-column__header::before {
  content: "";
  width: 4px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.9), rgba(232, 121, 249, 0.85));
}

.channel-column--representatives .channel-column__header h3 {
  color: #4c1d95;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
}

.channel-form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.channel-form__header h3 {
  margin: 0;
}

.channel-form__hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: #1e3a8a;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08);
}

.channel-form__hint .form-info__popover {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 260px;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  color: var(--muted);
  z-index: 5;
}

.channel-form__hint:hover .form-info__popover,
.channel-form__hint:focus-within .form-info__popover {
  display: block;
}

.channel-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}

.channel-modal__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1990;
}

.channel-modal__panel {
  position: relative;
  z-index: 2001;
  max-width: 620px;
  width: 100%;
  max-height: min(90vh, 760px);
  background: #f8faff;
  border-radius: 28px;
  box-shadow: 0 35px 55px rgba(15, 23, 42, 0.25);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.channel-form input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.25;
}

@supports (height: 100dvh) {
  .channel-modal {
    height: 100dvh;
  }

  .channel-modal__panel {
    max-height: min(90dvh, 760px);
  }
}

.channel-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.6rem 0.8rem;
}

.channel-modal__header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.channel-modal__header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.channel-modal__close {
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: #0f172a;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.channel-modal__close:hover,
.channel-modal__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.channel-modal__body {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.channel-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 25px 45px rgba(15, 23, 42, 0.08);
}

.channel-form input,
.channel-form textarea,
.channel-form select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.input--error,
input.input--error {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.form-field__label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.form-field__error {
  margin: -0.25rem 0 0;
  color: #dc2626;
  font-size: 0.85rem;
}

.channel-form__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.channel-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 1.5rem;
  align-items: start;
}

.channel-form__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-form__col--side > * + * {
  margin-top: 0.8rem;
}

.channel-type-panel--inline {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.channel-form__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.channel-form__actions .btn {
  min-width: 140px;
  border-radius: 18px;
  font-size: 0.92rem;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.18);
}

.channel-form__actions .btn--ghost {
  background: linear-gradient(120deg, rgba(248, 250, 255, 0.95), rgba(236, 244, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #1e3a8a;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.2);
}

.channel-form__actions .btn--ghost:hover,
.channel-form__actions .btn--ghost:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 26px rgba(99, 102, 241, 0.22);
}

.channel-form__actions .btn--primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 22px 40px rgba(79, 70, 229, 0.35);
}

.channel-form__actions .btn--primary:hover,
.channel-form__actions .btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 26px 46px rgba(79, 70, 229, 0.45);
}

.channel-detected {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: rgba(248, 250, 255, 0.9);
}

.channel-detected__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.channel-detected strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 600;
}

.channel-detected__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-detected--card {
  background: rgba(248, 250, 255, 1);
}

.channel-type-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  background: var(--panel);
}

.channel-representative {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 28px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(247, 246, 255, 0.95), rgba(240, 248, 255, 0.95)),
    #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 25px 45px rgba(79, 70, 229, 0.08);
}

.channel-representative::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  pointer-events: none;
}

.channel-representative > * {
  position: relative;
  z-index: 1;
}

.channel-representative .representative-switch {
  background: transparent;
  border: none;
  padding: 0;
}

.channel-type-panel__header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
}

.channel-type-panel__header small {
  font-size: 0.8rem;
  color: var(--muted);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-cloud--tight {
  gap: 0.35rem;
}

.chip-cloud__empty {
  font-size: 0.85rem;
  color: var(--muted);
}

.channel-type-panel__custom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-weight: 600;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.channel-status-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.channel-actions--compact {
  justify-content: flex-end;
}

.channel-actions--inline {
  gap: 0.2rem;
}

.channel-actions--inline .channel-actions__toggle {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.channel-actions--embedded {
  gap: 0.2rem;
}

.channel-actions--embedded .channel-status-btn {
  display: none;
}

.channel-actions--embedded .channel-actions__toggle {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
}

.channel-status-btn {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #eef8f1, #c9eed7);
  color: #1b5e37;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.36rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 14px rgba(27, 94, 55, 0.18);
}

.channel-status-btn:hover,
.channel-status-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #12804f;
}

.channel-status-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
}

.channel-status-btn--negative {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
  box-shadow: 0 6px 14px rgba(190, 18, 60, 0.18);
}

.channel-status-btn--negative:hover,
.channel-status-btn--negative:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(248, 113, 113, 0.28);
  background: linear-gradient(135deg, #fed7d7, #fca5a5);
  color: #b91c1c;
}

.channel-status-btn--negative.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.channel-actions {
  position: relative;
  width: 100%;
}

.channel-actions__more {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  z-index: 5;
}

.direct-channel-card .channel-actions__more,
.social-channel-card .channel-actions__more {
  top: 0.8rem;
  right: 1rem;
}

.channel-actions__toggle {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.channel-actions__toggle:hover,
.channel-actions__toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(60, 92, 255, 0.25);
}

.channel-actions__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  min-width: 180px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  z-index: 200;
}

.direct-channel-card .channel-actions__menu,
.social-channel-card .channel-actions__menu {
  right: 0;
  top: 34px;
}

.channel-actions__menu button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.channel-actions__menu button:hover {
  background: rgba(99, 102, 241, 0.08);
}

.channel-actions__menu button.danger {
  color: #b91c1c;
}

.channel-actions__stat {
  position: relative;
}

.channel-actions__stat-panel {
  margin: 0.5rem 0.2rem 0.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.channel-actions__stat-panel .stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.channel-actions__stat-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
}

.channel-actions__stat-panel > div:first-child {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.channel-actions__stat-panel > div:last-child {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.channel-actions__stat-panel strong {
  font-size: 1.1rem;
  min-width: 2.5rem;
  text-align: right;
}

.channel-status {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.channel-row__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.channel-row__title strong {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.9rem;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.channel-row__badge {
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.12);
  color: #6d28d9;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.1rem 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.channel-value {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.channel-value--phone {
  font-weight: 700;
  font-size: 1.15rem;
  color: #111827;
}

.channel-value--phone a {
  color: inherit;
  text-decoration: none;
}

.channel-value--email {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.channel-value__copy {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.channel-value__copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  border-radius: 10px;
}

.channel-value--link a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.05rem;
  font-weight: 700;
}

.channel-value--link a:hover,
.channel-value--link a:focus-visible {
  color: inherit;
}

.channel-value__badge {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

.channel-status-chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
}

.channel-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.representative-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 20px;
  padding: 0.55rem 0.85rem;
  background: rgba(240, 244, 255, 0.95);
  box-shadow: 0 16px 28px rgba(79, 70, 229, 0.12);
  font-weight: 600;
  gap: 1rem;
}

.representative-switch__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #0f172a;
  flex: 1;
}

.representative-switch__label::before {
  content: "👤";
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 1.1rem;
}

.representative-switch__label strong {
  font-size: 1rem;
  line-height: 1.2;
}

.toggle-control {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.toggle-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-control__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-control__track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.toggle-control input:checked + .toggle-control__track {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: rgba(79, 70, 229, 0.7);
}

.toggle-control input:checked + .toggle-control__track::after {
  transform: translateX(22px);
}

.representative-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.representative-picker {
  position: relative;
}

.representative-picker__control {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 242, 255, 0.94));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.representative-picker__control.is-open {
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.representative-picker__control:hover,
.representative-picker__control:focus-visible {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.representative-picker__text {
  flex: 1;
  text-align: left;
}

.representative-picker__text small {
  display: block;
  color: var(--muted);
}

.representative-picker__chevron {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.representative-picker__control.is-open .representative-picker__chevron {
  transform: rotate(-180deg);
}

.representative-picker__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 15;
  max-height: 260px;
  overflow-y: auto;
}

.representative-picker__option {
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(250, 250, 255, 0.9), rgba(244, 247, 255, 0.92));
  border-radius: 16px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.representative-picker__option:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.representative-picker__option.is-active {
  border-color: rgba(79, 70, 229, 0.6);
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);
}

.representative-picker__option--new {
  background: linear-gradient(135deg, rgba(236, 233, 254, 0.95), rgba(246, 244, 255, 0.95));
}

.representative-picker__option strong {
  display: block;
  font-size: 0.95rem;
}

.representative-picker__option small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.representative-picker__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4c1d95;
  overflow: hidden;
}

.representative-picker__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representative-picker__avatar--option {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.representative-picker__avatar--new {
  background: rgba(147, 51, 234, 0.15);
  color: #7c3aed;
  font-size: 1.6rem;
}

.representative-picker__empty {
  padding: 0.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.representative-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.representative-card {
  position: relative;
  border-radius: 32px;
  padding: 1.3rem 1.5rem 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(150deg, rgba(247, 244, 255, 0.96), rgba(237, 246, 255, 0.95));
  box-shadow: 0 32px 60px rgba(79, 70, 229, 0.16);
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.representative-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 5% 20%, rgba(147, 51, 234, 0.18), transparent 60%);
  z-index: -1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.representative-card:hover,
.representative-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.22);
  box-shadow: 0 32px 60px rgba(147, 51, 234, 0.16);
}

.representative-card:hover::before,
.representative-card:focus-within::before {
  transform: scale(1.02);
  opacity: 1;
}

.representative-card:has(.channel-actions__menu) {
  z-index: 250;
  overflow: visible;
}

.representative-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.representative-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(79, 70, 229, 0.15);
  color: #4c1d95;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.2);
}

.representative-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representative-card__header strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b3a2c;
}

.representative-card__header p {
  margin: 0.1rem 0 0;
  color: rgba(75, 58, 44, 0.65);
  font-size: 0.85rem;
}

.representative-card__channels {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.representative-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 30px;
  padding: 1rem 1.3rem;
  background: linear-gradient(145deg, rgba(249, 245, 255, 0.96), rgba(240, 248, 255, 0.94));
  color: #1f2937;
  box-shadow: 0 26px 55px rgba(79, 70, 229, 0.14);
  position: relative;
  overflow: visible;
  z-index: 0;
}

.representative-phone--outdated {
  background: linear-gradient(145deg, rgba(254, 243, 243, 0.96), rgba(254, 226, 226, 0.92));
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 28px 55px rgba(248, 113, 113, 0.22);
}

.representative-phone__value {
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  word-break: break-word;
  width: 100%;
  margin: 0;
}

.representative-phone--outdated .representative-phone__value {
  color: #7f1d1d;
}

.representative-phone__value a {
  color: inherit;
  text-decoration: none;
}

.representative-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.representative-chip {
  --chip-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
  --chip-color: #0f172a;
  --chip-border: rgba(148, 163, 184, 0.35);
  --chip-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
  --chip-highlight: rgba(255, 255, 255, 0.5);
  --chip-icon-bg: rgba(99, 102, 241, 0.15);
  --chip-icon-color: #4338ca;
  --chip-hover-glow: rgba(79, 70, 229, 0.18);
  flex: 1 1 260px;
  border-radius: 28px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-color);
  box-shadow: var(--chip-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.representative-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid var(--chip-highlight);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 55%);
}

.representative-chip:hover,
.representative-chip:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 32px 60px var(--chip-hover-glow), var(--chip-shadow);
  border-color: rgba(255, 255, 255, 0.8);
}

.representative-chip--mini {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  gap: 0.6rem;
}

.representative-chip--mini::after {
  display: none;
}

.representative-chip--mini .representative-channel__icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

.representative-chip--telegram {
  --chip-bg: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.92));
  --chip-border: rgba(59, 130, 246, 0.35);
  --chip-shadow: 0 30px 55px rgba(59, 130, 246, 0.22);
  --chip-icon-bg: rgba(59, 130, 246, 0.18);
  --chip-icon-color: #1d4ed8;
  --chip-hover-glow: rgba(59, 130, 246, 0.35);
  --chip-color: #0f3c76;
}

.representative-chip--vk {
  --chip-bg: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.92));
  --chip-border: rgba(37, 99, 235, 0.4);
  --chip-shadow: 0 30px 55px rgba(37, 99, 235, 0.2);
  --chip-icon-bg: rgba(37, 99, 235, 0.18);
  --chip-icon-color: #1e3a8a;
  --chip-hover-glow: rgba(30, 64, 175, 0.35);
  --chip-color: #132a64;
}

.representative-chip--facebook {
  --chip-bg: linear-gradient(145deg, rgba(226, 232, 255, 0.96), rgba(199, 210, 254, 0.92));
  --chip-border: rgba(59, 130, 246, 0.35);
  --chip-shadow: 0 30px 55px rgba(29, 78, 216, 0.18);
  --chip-icon-bg: rgba(37, 99, 235, 0.18);
  --chip-icon-color: #1d4ed8;
  --chip-hover-glow: rgba(59, 130, 246, 0.32);
  --chip-color: #123a8b;
}

.representative-chip--instagram {
  --chip-bg: linear-gradient(145deg, rgba(254, 235, 200, 0.96), rgba(247, 215, 236, 0.92) 50%, rgba(229, 204, 255, 0.92));
  --chip-border: rgba(236, 72, 153, 0.35);
  --chip-shadow: 0 30px 55px rgba(236, 72, 153, 0.2);
  --chip-icon-bg: rgba(236, 72, 153, 0.18);
  --chip-icon-color: #be185d;
  --chip-hover-glow: rgba(223, 72, 153, 0.32);
  --chip-color: #9d174d;
}

.representative-chip--twitter {
  --chip-bg: linear-gradient(145deg, rgba(224, 247, 255, 0.96), rgba(191, 232, 255, 0.92));
  --chip-border: rgba(14, 165, 233, 0.35);
  --chip-shadow: 0 30px 55px rgba(14, 165, 233, 0.2);
  --chip-icon-bg: rgba(14, 165, 233, 0.18);
  --chip-icon-color: #0e7490;
  --chip-hover-glow: rgba(14, 165, 233, 0.32);
  --chip-color: #0f4e60;
}

.representative-chip--outdated {
  --chip-bg: linear-gradient(145deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.94));
  --chip-color: #7f1d1d;
  --chip-border: rgba(248, 113, 113, 0.5);
  --chip-shadow: 0 32px 55px rgba(248, 113, 113, 0.24);
  --chip-highlight: rgba(255, 255, 255, 0.35);
  --chip-icon-bg: rgba(248, 113, 113, 0.18);
  --chip-icon-color: #991b1b;
  --chip-hover-glow: rgba(248, 113, 113, 0.4);
}


.social-chip__main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.representative-chip__link,
.social-chip__main {
  color: inherit;
  text-decoration: none;
}

.representative-chip__link {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.social-chip__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 18px rgba(15, 23, 42, 0.15);
}

.social-chip__body {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  white-space: normal;
}

.social-chip__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.social-chip__value {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: inherit;
}

.social-chip__arrow {
  margin-left: auto;
  font-size: 1.2rem;
  opacity: 0.65;
  transform: translateX(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.representative-chip__link:hover .social-chip__arrow,
.representative-chip__link:focus-visible .social-chip__arrow {
  transform: translateX(4px);
  opacity: 1;
}


.social-chip__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-chip__actions .channel-actions {
  margin: 0;
  gap: 0.2rem;
}

.rep-channel-badge {
  margin-left: 0.4rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.representative-phone .rep-channel-badge {
  background: rgba(248, 250, 252, 0.2);
  color: #fef2f2;
  border-color: rgba(248, 250, 252, 0.35);
}

@media (min-width: 821px) {
  body:has(#contact-profile-app) #contact-representatives .representative-phone--outdated .rep-channel-badge {
    background: rgba(254, 226, 226, 0.75);
    border-color: rgba(248, 113, 113, 0.35);
    color: #b91c1c;
    box-shadow: 0 10px 18px rgba(248, 113, 113, 0.18);
  }
}

.representative-channel__icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--chip-icon-bg, rgba(99, 102, 241, 0.15));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chip-icon-color, #4c1d95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 22px rgba(15, 23, 42, 0.15);
}

.representative-chip .channel-actions {
  margin-left: 0.6rem;
  gap: 0.25rem;
  width: auto;
  position: static;
}

.representative-chip .channel-actions__more {
  position: static;
}

.representative-phone .channel-actions__toggle {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(248, 250, 252, 0.3);
  color: #f8fafc;
}

.representative-phone .channel-actions {
  gap: 0.3rem;
  width: auto;
  position: relative;
  justify-content: flex-end;
}

.representative-phone .channel-actions__more {
  position: relative;
  top: 0;
  right: 0;
  margin-left: 0;
}

/* Representative channel refinements */
.representative-card__channels {
  flex-wrap: wrap;
}

.representative-channel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: 30px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(145deg, rgba(250, 245, 255, 0.95), rgba(242, 248, 255, 0.94));
  box-shadow: 0 26px 55px rgba(79, 70, 229, 0.14);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 0;
}

.representative-channel,
.representative-phone {
  overflow: visible;
}

.representative-channel__lead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.representative-channel__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.representative-channel__body strong {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(79, 70, 229, 0.75);
}

.representative-channel__value {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  word-break: break-word;
}

.representative-channel__value a {
  color: inherit;
  text-decoration: none;
}

.representative-channel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.representative-channel__actions .channel-actions {
  width: auto;
  position: relative;
  gap: 0.4rem;
}

.representative-channel__actions .channel-actions__more {
  position: relative;
  top: 0;
  right: 0;
  margin-left: 0;
}

.representative-phone:has(.channel-actions__menu),
.representative-channel:has(.channel-actions__menu) {
  z-index: 200;
}

.representative-chip:has(.channel-actions__menu) {
  z-index: 250;
}

.representative-channel__actions .channel-actions__toggle,
.representative-phone .channel-actions__toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.representative-channel__actions .channel-actions__toggle:hover,
.representative-channel__actions .channel-actions__toggle:focus-visible,
.representative-phone .channel-actions__toggle:hover,
.representative-phone .channel-actions__toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.representative-channel--email {
  background: linear-gradient(145deg, rgba(234, 244, 255, 0.96), rgba(216, 231, 255, 0.94));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 28px 55px rgba(59, 130, 246, 0.18);
}

.representative-channel--outdated {
  background: linear-gradient(145deg, rgba(254, 243, 243, 0.96), rgba(255, 247, 247, 0.93));
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 28px 55px rgba(248, 113, 113, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  #contact-representatives .representative-phone,
  #contact-representatives .representative-channel--email {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  #contact-representatives .representative-phone:hover,
  #contact-representatives .representative-phone:focus-within {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 34px 70px rgba(79, 70, 229, 0.18), 0 26px 55px rgba(79, 70, 229, 0.14);
  }

  #contact-representatives .representative-channel--email:hover,
  #contact-representatives .representative-channel--email:focus-within {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 34px 70px rgba(59, 130, 246, 0.22), 0 28px 55px rgba(59, 130, 246, 0.18);
  }

  #contact-representatives .representative-phone--outdated:hover,
  #contact-representatives .representative-phone--outdated:focus-within,
  #contact-representatives .representative-channel--email.representative-channel--outdated:hover,
  #contact-representatives .representative-channel--email.representative-channel--outdated:focus-within {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 34px 70px rgba(248, 113, 113, 0.28), 0 28px 55px rgba(248, 113, 113, 0.2);
  }
}

.representative-fields {
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
}

.representative-fields--stacked {
  grid-template-columns: 1fr;
}

.representative-upload {
  border: 1px dashed rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 0.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
}

.representative-upload__preview {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.representative-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representative-upload__body p {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.representative-upload__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.representative-upload__button input {
  display: none;
}

.representative-upload__body small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.representative-fields .file-field input[type="file"] {
  padding: 0.5rem;
}

.representative-preview {
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.representative-preview--card {
  margin-top: 0;
  background: #fff;
  border-style: solid;
}

.representative-preview__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4c1d95;
  overflow: hidden;
}

.representative-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representatives-list__avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(99, 102, 241, 0.15);
  color: #4c1d95;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.representatives-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-row {
  position: relative;
  border-radius: 34px;
  padding: 1.2rem 1.5rem 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: visible;
  z-index: 0;
}

.channel-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 50%, rgba(59, 130, 246, 0.12), transparent 50%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.channel-row:hover,
.channel-row:focus-within {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 30px 65px rgba(99, 102, 241, 0.22);
  z-index: 5;
}

.channel-row:hover::before,
.channel-row:focus-within::before {
  opacity: 1;
  transform: scale(1.02);
  background: radial-gradient(circle at 10% 50%, rgba(79, 70, 229, 0.18), transparent 60%);
}

.channel-row:has(.channel-actions__menu) {
  z-index: 150;
}

.channel-row--menu-open {
  z-index: 150;
}

@media (max-width: 768px) {
  .channel-form__grid {
    grid-template-columns: 1fr;
  }

  .channel-form__actions {
    justify-content: flex-start;
  }

  .channel-form__actions .btn {
    width: 100%;
  }

  .channel-modal {
    padding: 0;
    align-items: flex-end;
  }

  .channel-modal__panel {
    border-radius: 24px 24px 0 0;
    max-height: 96%;
  }
}

.channel-row--outdated {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(254, 242, 242, 0.92);
  box-shadow: 0 30px 60px rgba(248, 113, 113, 0.25);
}

.channel-row--phone::before {
  background: radial-gradient(circle at 0% 50%, rgba(248, 113, 113, 0.2), transparent 55%);
}

.channel-row--phone {
  border-color: rgba(248, 113, 113, 0.4);
}

.channel-row--email::before {
  background: radial-gradient(circle at 0% 50%, rgba(59, 130, 246, 0.22), transparent 55%);
}

.channel-row--email {
  border-color: rgba(96, 165, 250, 0.45);
}

.channel-row--other::before {
  background: radial-gradient(circle at 0% 50%, rgba(165, 180, 252, 0.22), transparent 55%);
}

.channel-row--other {
  border-color: rgba(167, 139, 250, 0.45);
}

.channel-row--outdated::before {
  background: radial-gradient(circle at 0% 50%, rgba(248, 113, 113, 0.5), transparent 55%);
}

.channel-row__lead {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.channel-row__lead > div {
  min-width: 0;
}

.channel-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3), 0 14px 28px rgba(148, 163, 184, 0.3);
}

.channel-row__icon--phone {
  background: rgba(254, 226, 226, 0.9);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3), 0 18px 30px rgba(248, 113, 113, 0.3);
}

.channel-row__icon--email {
  background: rgba(219, 234, 254, 0.9);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3), 0 18px 30px rgba(96, 165, 250, 0.3);
}

.channel-row__icon--other {
  background: rgba(237, 233, 254, 0.9);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3), 0 18px 30px rgba(167, 139, 250, 0.3);
}

.channel-row__title strong {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.channel-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
}

.channel-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.channel-row__actions .channel-actions {
  width: auto;
  position: static;
  gap: 0.6rem;
}

.channel-row__actions .channel-actions__more {
  position: static;
  margin-left: auto;
}


.representatives-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.representatives-list li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.8rem 1rem;
}

.representatives-list--large li {
  padding: 1.1rem 1.3rem;
  align-items: center;
  gap: 1.2rem;
}

.channel-column--representatives .representatives-list li {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08), 0 12px 24px rgba(99, 102, 241, 0.15);
}

.representatives-list strong {
  font-size: 1rem;
}

.representatives-list p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.representatives-list small {
  color: var(--muted);
}

.representatives-list small a {
  color: inherit;
  text-decoration: none;
}

.representatives-list small a:hover,
.representatives-list small a:focus-visible {
  color: var(--brand);
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.asset-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.asset-item__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(226, 232, 240, 0.6);
  border: none;
  padding: 0;
  display: block;
  overflow: hidden;
}

.asset-item__preview.is-interactive {
  cursor: pointer;
}

.asset-item__preview img,
.asset-item__preview .asset-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-item__toolbar {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.4rem;
}

.asset-item__icon {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.asset-item__icon--danger {
  background: rgba(239, 68, 68, 0.85);
}

.asset-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
  margin: 0.35rem 0;
}

.asset-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-card--photobank {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(219, 244, 255, 0.95), rgba(233, 249, 255, 0.98));
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 32px 60px rgba(14, 165, 233, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photobank__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.photobank__lead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.photobank__lead::before {
  content: "";
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.9), rgba(99, 102, 241, 0.9));
  display: inline-block;
}

.photobank__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
}

.photobank__head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  color: #0f172a;
}

.photobank__count {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-card--photobank,
.comment-wall {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.profile-card.channel-board:has(.channel-actions__menu) {
  z-index: 10;
}

.profile-card--photobank:hover,
.profile-card--photobank:focus-within {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 40px 80px rgba(14, 165, 233, 0.2);
}

.photobank__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.photobank__view-btn {
  gap: 0.45rem;
}

.contact-form__view-btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18);
}

.photobank__add-btn {
  padding: 0.45rem 1.2rem;
}

.photobank-grid {
  margin-top: 1.5rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.photobank-grid__item {
  border: none;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photobank-grid__item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.photobank-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(79, 70, 229, 0.25);
}

.photobank-grid--dragover {
  border: 2px dashed rgba(14, 165, 233, 0.6);
  border-radius: 26px;
  padding: 1rem;
}

.photobank-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
  pointer-events: none;
}

@media (min-width: 821px) {
  .photobank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body:has(#contact-profile-app) .profile-card--photobank .photobank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photobank__empty {
  position: relative;
  border: 1px dashed rgba(129, 140, 248, 0.5);
  border-radius: 26px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(15, 23, 42, 0.7);
}

.photobank__empty p {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.photobank-viewer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobank-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.photobank-viewer__panel {
  position: relative;
  width: min(920px, 90vw);
  max-height: 88vh;
  background: linear-gradient(180deg, #f7faff 0%, #dfe8ff 45%, #d4e2ff 100%);
  border-radius: 32px;
  padding: 0.9rem 1.2rem 1.2rem;
  box-shadow: 0 45px 85px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.photobank-viewer__panel--scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  padding-top: 0.9rem;
}

.photobank-viewer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photobank-viewer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.photobank-viewer__close:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.photobank-viewer__hint {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
}

.photobank-viewer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
  padding-right: 0.4rem;
}

.photobank-viewer__grid .photobank-thumb {
  border: none;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobank-viewer__grid .photobank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.photobank-viewer__media {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(233, 240, 255, 0.95), rgba(212, 226, 255, 0.95));
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.photobank-viewer__stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);
}

.photobank-viewer__stage img {
  width: 100%;
  height: clamp(320px, 58vh, 640px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.photobank-viewer__media--portrait .photobank-viewer__stage img {
  object-fit: contain;
  background: #0f172a;
}

.photobank-viewer__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(2px);
}

.photobank-viewer__loader--error {
  background: rgba(220, 38, 38, 0.8);
}

.photobank-viewer__spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: photo-viewer-spin 0.9s linear infinite;
}

.photobank-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.photobank-viewer__nav--prev {
  left: 1.25rem;
}

.photobank-viewer__nav--next {
  right: 1.25rem;
}

.photobank-viewer__nav:hover {
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-50%) scale(1.03);
}

.photobank-viewer__action-stack {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.photobank-viewer__action-icons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.photobank-viewer__action {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.photobank-viewer__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photobank-viewer__action--primary {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  box-shadow: 0 18px 40px rgba(67, 56, 202, 0.35);
}

.photobank-viewer__action--danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
}

.photobank-viewer__icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 28px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
}

@media (hover: hover) and (pointer: fine) {
  .photobank-viewer__icon-btn:hover {
    transform: translateY(-1px);
  }

  .photobank-viewer__icon-btn--ghost:hover {
    background: #fff;
  }

  .photobank-viewer__icon-btn--edit:hover,
  .photobank-viewer__icon-btn--danger:hover {
    filter: brightness(1.05);
  }
}

.photobank-viewer__icon-btn svg {
  pointer-events: none;
}

.photobank-viewer__icon-btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.photobank-viewer__icon-btn--edit {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
}

.photobank-viewer__icon-btn--danger {
  border: none;
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  box-shadow: 0 15px 28px rgba(220, 38, 38, 0.25);
}

.photobank-viewer__meta-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
  color: #fff;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.35);
}

.photobank-viewer__meta-text strong {
  display: block;
  font-size: 1.05rem;
}

.photobank-viewer__meta-text span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.photobank-viewer__credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.photobank-viewer__credit-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
}

.photobank-viewer__copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.photobank-viewer__copy-btn--meta {
  display: none;
}

.photobank-viewer__copy-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.photobank-viewer__copy-btn svg {
  pointer-events: none;
}

.photobank-viewer__credit-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.photobank-viewer__copy-hint {
  font-size: 0.78rem;
  color: #4338ca;
}

@media (min-width: 821px) and (max-width: 1024px) {
  .photobank-viewer__panel {
    width: min(680px, 88vw);
    max-height: 84dvh;
    max-height: 84vh;
    border-radius: 28px;
    padding: 0.75rem 0.95rem 0.95rem;
    gap: 0.65rem;
  }

  .photobank-viewer__grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 0.85rem;
  }

  .photobank-viewer__media {
    border-radius: 24px;
    padding: 1rem;
    gap: 0.75rem;
  }

  .photobank-viewer__stage {
    border-radius: 22px;
  }

  .photobank-viewer__stage img {
    height: clamp(260px, 42vh, 480px);
  }

  .photobank-viewer__nav {
    width: 48px;
    height: 48px;
  }

  .photobank-viewer__nav--prev {
    left: 1rem;
  }

  .photobank-viewer__nav--next {
    right: 1rem;
  }

  .photobank-viewer__action-stack {
    top: 0.85rem;
    right: 0.85rem;
  }

  .photobank-viewer__action-icons {
    top: 0.85rem;
    left: 0.85rem;
    gap: 0.55rem;
  }

  .photobank-viewer__action {
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
  }

  .photobank-viewer__icon-btn {
    width: 40px;
    height: 40px;
  }

  .photobank-viewer__meta-bar {
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 22px;
  }

  .photobank-viewer__hint {
    font-size: 0.9rem;
  }

  .photobank-viewer__close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

@media (max-width: 820px) {
  .photobank-viewer__panel--scroll .photobank-viewer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photobank-viewer__action--primary {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    justify-content: center;
  }

  .photobank-viewer__action--primary .photobank-viewer__action-label {
    display: none;
  }

  .photobank-viewer__meta-bar {
    justify-content: flex-start;
    align-items: center;
  }

  .photobank-viewer__meta-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .photobank-viewer__copy-btn--meta {
    display: inline-flex;
    margin-left: auto;
  }

  .photobank-viewer__credit {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .photobank-viewer__credit-actions {
    display: none;
  }

  .photobank-viewer__credit-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) and (orientation: portrait) {
  .photobank-viewer__panel {
    width: min(520px, 92vw);
    max-height: 84dvh;
    max-height: 84vh;
    border-radius: 24px;
    padding: 0.75rem 0.9rem 0.9rem;
    gap: 0.65rem;
  }

  .photobank-viewer__hint {
    font-size: 0.88rem;
  }

  .photobank-viewer__close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .photobank-viewer__media {
    border-radius: 24px;
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .photobank-viewer__stage {
    border-radius: 22px;
  }

  .photobank-viewer__stage img {
    height: clamp(220px, 35vh, 420px);
  }

  .photobank-viewer__nav {
    width: 46px;
    height: 46px;
  }

  .photobank-viewer__nav--prev {
    left: 1rem;
  }

  .photobank-viewer__nav--next {
    right: 1rem;
  }

  .photobank-viewer__action-stack {
    top: 0.85rem;
    right: 0.85rem;
  }

  .photobank-viewer__action-icons {
    top: 0.85rem;
    left: 0.85rem;
    gap: 0.55rem;
  }

  .photobank-viewer__action {
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
  }

  .photobank-viewer__icon-btn {
    width: 40px;
    height: 40px;
  }

  .photobank-viewer__meta-bar {
    gap: 0.65rem;
    padding: 0.6rem 0.8rem;
    border-radius: 20px;
  }

  .photobank-viewer__meta-text strong {
    font-size: 0.98rem;
  }

  .photobank-viewer__meta-text span {
    font-size: 0.82rem;
  }
}

@media (max-width: 820px) and (orientation: landscape) {
  .photobank-viewer__panel {
    width: min(760px, 100vw);
    max-height: 86dvh;
    max-height: 86vh;
    border-radius: 19px;
    padding: 0.57rem 0.71rem 0.71rem;
    gap: 0.475rem;
  }

  .photobank-viewer .photobank-viewer__credit-form {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .photobank-viewer .photobank-viewer__credit-input {
    flex: 1 1 240px;
    min-width: 0;
  }

  .photobank-viewer .photobank-viewer__credit-form-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
  }

  .photobank-viewer__hint {
    font-size: 0.8rem;
  }

  .photobank-viewer__close {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .photobank-viewer__media {
    border-radius: 19px;
    padding: 0.71rem;
    gap: 0.57rem;
  }

  .photobank-viewer__stage {
    border-radius: 17px;
  }

  .photobank-viewer__stage img {
    height: clamp(142px, 39vh, 257px);
  }

  .photobank-viewer__nav {
    width: 38px;
    height: 38px;
  }

  .photobank-viewer__nav--prev {
    left: 3.25rem;
  }

  .photobank-viewer__nav--next {
    right: 3.25rem;
  }

  .photobank-viewer__action-stack {
    top: 0.62rem;
    right: 0.62rem;
  }

  .photobank-viewer__action-icons {
    top: 0.62rem;
    left: 0.62rem;
    gap: 0.43rem;
  }

  .photobank-viewer__action {
    padding: 0.3rem 0.71rem;
    font-size: 0.81rem;
  }

  .photobank-viewer__icon-btn {
    width: 32px;
    height: 32px;
  }

  .photobank-viewer__copy-btn {
    width: 34px;
    height: 34px;
  }

  .photobank-viewer__meta-bar {
    gap: 0.52rem;
    padding: 0.48rem 0.62rem;
    border-radius: 17px;
  }

  .photobank-viewer__meta-text strong {
    font-size: 0.87rem;
  }

  .photobank-viewer__meta-text span {
    font-size: 0.74rem;
  }
}

.photobank-viewer__toast {
  position: absolute;
  left: 50%;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 5;
  max-width: min(90vw, 420px);
  text-align: center;
  animation: photobankToastPop 1.8s ease both;
}

@keyframes photobankToastPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  16% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  84% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

.photobank-viewer__credit-form {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.photobank-viewer__credit-input {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.photobank-viewer__credit-form-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.photobank-viewer__credit-form-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.photobank-viewer__credit-form-btn--primary {
  background: rgba(79, 70, 229, 0.95);
  border-color: rgba(199, 210, 254, 0.8);
}

.photobank-viewer__footer {
  display: flex;
  justify-content: flex-end;
}

.photobank-viewer__footer-btn {
  padding: 0.35rem 1.2rem;
}

.photobank-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobank-upload-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.photobank-upload-modal__panel {
  position: relative;
  width: min(620px, 90vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.photobank-upload-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.photobank-upload-modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.photobank-upload__dropzone {
  border: 1px dashed rgba(79, 70, 229, 0.5);
  border-radius: 24px;
  padding: 1.2rem;
  text-align: center;
  background: rgba(243, 244, 255, 0.6);
  cursor: pointer;
}

.photobank-upload__dropzone input {
  display: none;
}

.photobank-upload__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.photobank-upload__item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 20px;
  background: rgba(249, 250, 255, 0.9);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.photobank-upload__item--uploading {
  border-color: rgba(14, 165, 233, 0.4);
}

.photobank-upload__item--success {
  border-color: rgba(16, 185, 129, 0.4);
}

.photobank-upload__item--error {
  border-color: rgba(239, 68, 68, 0.5);
}

.photobank-upload__preview img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.photobank-upload__content input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.45rem 0.75rem;
  margin-top: 0.35rem;
}

.photobank-upload__status {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.photobank-upload__error {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
}

.photobank-upload__remove {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.photobank-upload__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.photobank-upload__placeholder {
  text-align: center;
  color: rgba(15, 23, 42, 0.55);
}

.photobank-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobank-delete-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.photobank-delete-modal__panel {
  position: relative;
  width: min(420px, 90vw);
  padding: 1.5rem;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.25);
}

.photobank-delete-modal__panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.photobank-delete-modal__panel p {
  margin: 0 0 1rem;
  color: rgba(15, 23, 42, 0.7);
}

.photobank-delete-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.photobank-card {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(244, 242, 255, 0.95), rgba(235, 245, 255, 0.95));
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 32px 60px rgba(129, 140, 248, 0.18);
}

.photobank-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photobank-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.55);
}

.photobank-card__head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.7rem;
}

.photobank-card__count {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 600;
}

.photobank-card__body {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 1.5rem;
}

.photobank-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photobank-gallery__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.photobank-thumb {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 0.4rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.photobank-thumb.is-active {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.18);
}

.photobank-thumb img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 14px;
}

.photobank-thumb__placeholder {
  width: 80px;
  height: 60px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.6);
}

.photobank-thumb div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.photobank-thumb strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.photobank-thumb span {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.photobank-empty {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
}

.photobank-upload {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.photobank-upload.is-dragging {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 25px 45px rgba(99, 102, 241, 0.2);
}

.photobank-upload__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.photobank-upload__dropzone {
  margin-top: 0.6rem;
  border: 1px dashed rgba(99, 102, 241, 0.45);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(244, 242, 255, 0.5);
  text-align: center;
  color: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.photobank-upload__dropzone.is-active {
  background: rgba(129, 140, 248, 0.15);
  border-color: rgba(99, 102, 241, 0.75);
}

.photobank-details {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.photobank-preview {
  position: relative;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.photobank-preview img {
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.photobank-preview__placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.5);
}

.photobank-preview__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photobank-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.photobank-meta label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.photobank-meta input,
.photobank-meta textarea {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.photobank-meta textarea {
  resize: none;
}

.photobank-meta__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.photobank-meta__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}

.photobank-meta__info > div {
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photobank-meta__badge {
  align-self: flex-start;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 600;
}

.photobank-meta__info span {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
}

.photobank-meta__info strong {
  font-size: 1rem;
  color: #0f172a;
}

.photobank-meta__actions {
  display: flex;
  justify-content: flex-end;
}

.photobank-details__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
}

.nav-link {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.76);
  text-decoration: none;
  font-weight: 600;
}

.nav-link--active {
  background: rgba(60, 92, 255, 0.14);
  color: #0f172a;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(60, 92, 255, 0.2);
}

.nav-link--ghost {
  border: 1px solid var(--border);
}


.shell-nav__links .nav-link,
.shell-nav__links .shell-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.shell-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.shell-nav__cta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.shell-nav__links .nav-link:hover,
.shell-nav__links .nav-link:focus-visible,
.shell-nav__links .shell-nav__cta:hover,
.shell-nav__links .shell-nav__cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(60, 92, 255, 0.45);
  box-shadow: 0 22px 38px rgba(60, 92, 255, 0.18);
  color: #0f172a;
}

.shell-nav__links .shell-nav__cta:hover,
.shell-nav__links .shell-nav__cta:focus-visible {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.98), rgba(14, 165, 233, 0.92));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 30px 54px rgba(60, 92, 255, 0.34);
}

.shell-nav__links .nav-link--active {
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.24), rgba(14, 165, 233, 0.2));
  color: #0f172a;
  border-color: rgba(60, 92, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 22px 40px rgba(60, 92, 255, 0.22);
  font-weight: 700;
}

.shell-nav__links .shell-nav__cta {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 25px 45px rgba(60, 92, 255, 0.3);
}

.shell-nav__cta .contact-form__add-btn-icon {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.95);
}
.channel-column--representatives {
  background: rgba(236, 233, 255, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.contact-form__helper {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}
.contact-modal--inline .contact-modal__panel--small {
  width: min(420px, calc(100% - 2rem));
}

.contact-modal__actions--center {
  justify-content: center;
}

.comment-wall {
  padding: 2rem;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(229, 253, 241, 0.95), rgba(245, 255, 250, 0.98));
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 35px 65px rgba(16, 185, 129, 0.08);
  opacity: 1;
  transform: translateY(0);
  animation: commentWallReveal 0.6s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform, box-shadow;
}

@keyframes commentWallReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-wall:hover,
.comment-wall:focus-within {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 40px 80px rgba(16, 185, 129, 0.2);
  background: linear-gradient(145deg, rgba(229, 253, 241, 0.98), rgba(222, 255, 244, 1));
  border-color: rgba(16, 185, 129, 0.25);
}

.comment-wall__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.comment-wall__lead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.comment-wall__lead::before {
  content: "";
  width: 4px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.85), rgba(59, 130, 246, 0.85));
  display: inline-block;
}

.comment-wall__eyebrow {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #047857;
}

.comment-wall__head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.8rem;
}

.comment-wall__controls {
  position: relative;
  display: inline-flex;
}

.sort-toggle {
  border: none;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  min-width: 160px;
  margin: 0.15rem 0.15rem 0 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sort-toggle__text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
}

.sort-toggle strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.sort-toggle__caret {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(16, 185, 129, 0.9);
}

.sort-toggle__caret svg {
  width: 1em;
  height: 0.4em;
}

.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.15);
  min-width: 240px;
  z-index: 20;
}

.sort-menu li button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.sort-menu li button[aria-selected='true'] {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 600;
}

.sort-menu li button:hover,
.sort-menu li button:focus-visible {
  background: rgba(16, 185, 129, 0.08);
}

.comment-wall__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.comment-form {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 25px 45px rgba(99, 102, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comment-form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.comment-form__header h4 {
  margin: 0;
  font-size: 1.15rem;
}

.comment-form__counter {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.5);
}

.comment-form__counter.is-warning {
  color: #ea580c;
}

.comment-form__error {
  border-radius: 16px;
  padding: 0.6rem 0.8rem;
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  font-size: 0.95rem;
}

.comment-form textarea,
.comment-reply-form textarea,
.comment-edit-form textarea {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.9rem 1.1rem;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
}

.comment-form textarea:focus,
.comment-reply-form textarea:focus,
.comment-edit-form textarea:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.comment-form__row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-form__row > textarea {
  flex: 1 1 360px;
  min-width: 260px;
}

.comment-form__row .comment-rating {
  flex: 0 0 auto;
  min-width: 200px;
}

.comment-upload--align {
  flex: 0 0 auto;
}

.comment-form__rating {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
}

.rating-selector {
  display: flex;
  align-items: center;
  gap: 0;
}

.rating-selector__star {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  color: rgba(15, 23, 42, 0.35);
}

.rating-selector__star.is-active {
  color: var(--star-color, #f4c430);
  transform: translateY(-1px);
}

.rating-selector--compact .rating-selector__star {
  width: 20px;
  height: 20px;
  font-size: 0.78rem;
}

.comment-rating {
  flex: 0 0 auto;
  margin-left: auto;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.comment-rating__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.comment-rating__label {
  font-weight: 600;
  color: #0f172a;
}

.comment-rating__hint {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.comment-rating__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comment-rating__reset {
  border: none;
  background: transparent;
  color: #059669;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.comment-rating--compact {
  border: none;
  background: transparent;
  padding: 0;
  align-items: center;
  gap: 0.4rem;
}

.comment-rating--compact .comment-rating__controls {
  align-items: center;
  gap: 0.25rem;
}

.comment-rating--compact .comment-rating__reset {
  font-size: 0.68rem;
}

.comment-rating__stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.comment-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #047857;
  cursor: pointer;
}

.comment-upload input {
  display: none;
}

.comment-upload--inline {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
}

.comment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.comment-attachments__heading {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.25rem;
}

.comment-attachment {
  position: relative;
  border: none;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  width: 90px;
  height: 70px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.comment-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-attachment__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(15, 23, 42, 0.25);
}

.comment-attachment--existing.is-removed {
  opacity: 0.7;
  filter: grayscale(1);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.75);
}

.comment-form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.comment-list {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
}

.comment-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 253, 245, 0.9));
  border-radius: 28px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 24px 45px rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.comment-card.is-highlighted {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 26px 50px rgba(56, 189, 248, 0.25);
  transform: translateY(-3px);
}

.comment-card--reply {
  border-radius: 22px;
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 255, 0.85);
}

.comment-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.comment-card__header.is-highlighted {
  background: rgba(56, 189, 248, 0.12);
  border-radius: 18px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.comment-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.comment-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.comment-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.comment-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-card__rating-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.comment-card__rating-star {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--rating-color, #f4c430);
}

.comment-card__timestamps {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comment-card__dates {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.92rem;
  color: rgba(15, 23, 42, 0.75);
}

.comment-card__dates time {
  font-weight: 600;
}

.comment-card__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.comment-card__body--placeholder {
  color: rgba(15, 23, 42, 0.65);
  font-style: italic;
  background: rgba(248, 250, 255, 0.85);
}

.comment-card__body.is-highlighted {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 18px 32px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.comment-card__reply-context {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(59, 130, 246, 0.08);
  color: rgba(15, 23, 42, 0.8);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0 0.6rem;
}

.comment-card__reply-context a {
  color: #2563eb;
  text-decoration: none;
}

.comment-card__reply-context a:hover,
.comment-card__reply-context a:focus-visible {
  text-decoration: underline;
}

.comment-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-card__meta--compact {
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  padding-top: 0.6rem;
}

.comment-card__timestamps {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.comment-card__edited {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.comment-card__rating-note {
  color: #0f172a;
  font-weight: 600;
}

.comment-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-action__icon {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.comment-action__icon svg {
  display: block;
}

.comment-action-btn--report {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.72), rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28), 0 14px 26px rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.comment-action-btn--report:hover,
.comment-action-btn--report:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.38), 0 18px 38px rgba(248, 113, 113, 0.18);
}

.comment-replies {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comment-reply-form {
  background: rgba(248, 250, 255, 0.85);
  border-radius: 20px;
  padding: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-reply-form__footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.comment-edit-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.comment-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(15, 23, 42, 0.6);
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}

.photo-viewer__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  width: min(90vw, 720px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
}

.photo-viewer__media {
  width: min(100%, 640px);
  height: min(65vh, 480px);
  max-width: 640px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef2ff, #fff);
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}

.photo-viewer__media img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.photo-viewer__media img.is-loading {
  opacity: 0;
}

.photo-viewer__panel figcaption {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.7);
}

.photo-viewer__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(15, 23, 42, 0.7);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  text-align: center;
  font-weight: 600;
}

.photo-viewer__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.35);
  border-top-color: #6366f1;
  animation: photo-viewer-spin 0.8s linear infinite;
}

@keyframes photo-viewer-spin {
  to {
    transform: rotate(360deg);
  }
}

.photo-viewer__error {
  color: #b91c1c;
  font-size: 0.9rem;
}

.photo-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.photo-viewer__close:hover,
.photo-viewer__close:focus-visible {
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
  outline: none;
}

.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-layer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.confirm-layer__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  backdrop-filter: blur(18px) saturate(140%);
}

.confirm-layer__panel h3 {
  margin: 0;
  font-size: 1.4rem;
}

.confirm-layer__panel p {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
}

.confirm-layer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.confirm-layer__actions .comment-form__counter {
  margin-right: auto;
  align-self: center;
}

.confirm-layer__panel--report textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.confirm-layer__panel--report textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.confirm-layer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 641px) {
  .confirm-layer__panel h3 {
    padding-right: 3.5rem;
  }
}

/* Confirm modals on contact edit */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 1.7rem;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(18px) saturate(140%);
}

.confirm-modal--danger .confirm-modal__panel {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 242, 242, 0.9));
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.24), 0 30px 62px rgba(220, 38, 38, 0.16);
}

.confirm-modal--danger .confirm-modal__close {
  background: rgba(220, 38, 38, 0.08);
}

.confirm-modal--danger .confirm-modal__close:hover,
.confirm-modal--danger .confirm-modal__close:focus-visible {
  background: rgba(220, 38, 38, 0.12);
  outline: none;
}

.confirm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.confirm-modal__header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.confirm-modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal__text {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .shell-nav {
    padding: 0.3rem 0.6rem 0.4rem;
  }

  .auth-shell {
    padding: 2rem 1rem 2.5rem;
  }

  .auth-shell__surface {
    padding: 1.75rem;
  }

  .auth-shell__panel {
    order: 1;
  }

  .auth-shell__intro {
    order: 2;
  }

  .auth-shell__ambient {
    display: none;
  }

  .profile-stage {
    padding: 2.2rem 1rem 3rem;
  }

  .profile-stage__surface {
    padding: 1.75rem;
    border-radius: 34px;
  }

  .comment-wall__body {
    grid-template-columns: 1fr;
  }

  .comment-wall__controls {
    width: 100%;
    justify-content: flex-end;
  }

  .shell-nav__surface {
    flex-wrap: wrap;
    padding: 0.45rem 0.6rem;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    align-content: center;
  }

  .shell-nav__ambient {
    display: none;
  }

  .shell-nav__brand a {
    font-size: 1rem;
  }

  .shell-nav__toggle-btn {
    display: inline-flex;
  }

  .shell-nav__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    gap: 1.1rem;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0 1rem;
  }

  .shell-nav__toggle:checked ~ .shell-nav__menu {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
  }

  .shell-nav__links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shell-nav__user {
    width: 100%;
    justify-content: center;
  }

  .photobank-card__body {
    grid-template-columns: 1fr;
  }

  .photobank-gallery__list {
    max-height: none;
  }

  .shell-nav__surface {
    flex-wrap: wrap;
    padding: 0.45rem 0.6rem;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    align-content: center;
  }

  .shell-nav__toggle-btn {
    display: inline-flex;
  }

  .shell-nav__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    gap: 1rem;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0 1rem;
  }

  .shell-nav__toggle:checked ~ .shell-nav__menu {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
  }

  .shell-nav__links {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
  }

  .shell-nav__user {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
  }

  .shell-nav__menu .nav-link {
    color: #0f172a;
  }

  .shell-nav__menu .nav-link--active {
    color: #0f172a;
    background: rgba(16, 185, 129, 0.12);
  }

  .shell-nav__menu {
    background: rgba(255, 255, 255, 0.96);
  }

  .shell-nav__profile-menu {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-width: none;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    gap: 0.65rem;
  }

  .shell-nav__profile-trigger {
    width: 100%;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: none;
    padding: 0.45rem 0.65rem;
  }

  .shell-nav__burger-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
    margin: auto 0;
    align-self: center;
  }

  .shell-nav__brand {
    flex: 1;
  }

  .shell-nav__links .nav-link {
    display: block;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    box-shadow: none;
  }

  .shell-nav__links .nav-link--active {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.24), rgba(14, 165, 233, 0.2));
    border-color: rgba(60, 92, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 32px rgba(60, 92, 255, 0.2);
    font-weight: 700;
  }

  .shell-nav__links .shell-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(60, 92, 255, 0.28);
  }

  .shell-nav__profile-menu .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    border-radius: 12px;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .shell-nav__menu {
    top: calc(100% + 0.35rem);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px) saturate(140%);
    gap: 0.85rem;
    padding: 0 0.85rem;
    transform: translateY(-6px);
    z-index: 60;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease, transform 0.25s ease;
  }

  .shell-nav__menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(110% 120% at 10% 0%, rgba(60, 92, 255, 0.12), transparent 55%),
      radial-gradient(120% 120% at 95% 20%, rgba(14, 165, 233, 0.12), transparent 60%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
  }

  .shell-nav__menu > * {
    position: relative;
    z-index: 1;
  }

  .shell-nav__toggle:checked ~ .shell-nav__menu {
    max-height: 520px;
    padding: 0.85rem;
    transform: translateY(0);
  }

  .shell-nav__links {
    width: 100%;
    align-items: stretch;
    gap: 0.55rem;
  }

  .shell-nav__links .nav-link,
  .shell-nav__links .shell-nav__cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-tap-highlight-color: transparent;
  }

  .shell-nav__links .nav-link:active,
  .shell-nav__links .shell-nav__cta:active {
    transform: translateY(1px);
    filter: brightness(0.98);
  }

  .shell-nav__links .shell-nav__cta {
    justify-content: center;
    background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(60, 92, 255, 0.28);
  }

  .shell-nav__links .nav-link--active {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.24), rgba(14, 165, 233, 0.2));
    color: #0f172a;
    border-color: rgba(60, 92, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 32px rgba(60, 92, 255, 0.2);
    font-weight: 700;
  }

  .shell-nav__user {
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .shell-nav__profile-toggle,
  .shell-nav__profile-trigger {
    display: none;
  }

  .shell-nav__profile-menu {
    width: 100%;
    padding: 0;
    margin-top: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0.55rem;
    backdrop-filter: none;
  }

  .shell-nav__profile-menu .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px) saturate(140%);
  }

  .shell-nav__profile-menu .shell-nav__logout {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.9), rgba(220, 38, 38, 0.85));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.22);
  }

  .profile-stage {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .profile-stage__surface {
    padding: 0.65rem;
    border-radius: 28px;
  }

  .profile-shell {
    gap: 1.2rem;
  }

  .auth-shell__panel {
    gap: 1.05rem;
  }

  .auth-form__grid {
    grid-template-columns: 1fr;
  }

  .comment-wall {
    padding: 1.2rem;
  }

  .comment-wall__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-card {
    padding: 1rem;
  }

  .comment-card__header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .comment-card__author {
    flex: 1 1 auto;
    min-width: 0;
  }

  .comment-card__rating {
    margin-left: auto;
  }

  .comment-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-replies {
    padding-left: 0;
  }

  .comment-card__body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .comment-card__actions {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .comment-card__actions .comment-action-btn {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    justify-content: center;
  }

  .comment-card__actions .comment-action__icon {
    display: inline-flex;
  }

  .comment-card__actions .comment-action__label {
    display: none;
  }

  .photobank-card {
    padding: 1.2rem;
  }

  .photobank-preview img {
    max-height: 220px;
  }

  .profile-card.channel-board {
    padding: 1rem 1.15rem;
    gap: 0.9rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .profile-hero__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .profile-hero__back {
    width: auto;
    align-self: flex-start;
  }

  .profile-hero__top-actions {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .profile-hero__visual {
    max-width: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .profile-hero__focus-toggle {
    justify-content: center;
    width: 100%;
  }

  .profile-hero__body {
    margin-top: 0;
    align-items: center;
    text-align: center;
  }

  .profile-hero__label-row {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .profile-hero__tags {
    justify-content: center;
  }

  .profile-hero__meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-hero__meta--chips {
    width: 100%;
  }

  .profile-hero__visual--desktop {
    display: none;
  }

  .profile-hero__visual--mobile,
  .profile-hero__focus-toggle--mobile {
    display: flex;
    width: 100%;
  }

  .profile-hero__visual--mobile {
    max-width: none;
    align-items: stretch;
  }

  .profile-hero__mobile-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: 100%;
  }

  .profile-hero__mobile-overview-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 1 auto;
    max-width: calc(100% - 110px - 0.9rem);
    min-width: 0;
  }

  .profile-hero__role--desktop,
  .meta-chip--accent--desktop {
    display: none;
  }

  .profile-hero__role--mobile {
    margin: 0;
  }

  .profile-hero__visual--mobile .profile-hero__portrait {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    margin-bottom: 0;
    box-shadow: 0 14px 30px rgba(60, 92, 255, 0.22);
  }

  .profile-hero__visual--mobile .profile-hero__portrait img,
  .profile-hero__visual--mobile .profile-hero__placeholder {
    border-radius: 18px;
  }

  .profile-hero__visual--mobile .profile-hero__placeholder {
    font-size: 2rem;
  }

  .profile-hero__visual--mobile .profile-hero__rating-wrapper {
    bottom: -0.55rem;
  }

  .profile-hero__visual--mobile .profile-hero__rating-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
  }

  .profile-hero__visual--mobile .profile-hero__rating-star {
    font-size: 0.85rem;
  }

  .focus-control__badge {
    padding: 0.6rem 0.75rem;
    max-width: 280px;
  }

  .focus-control__badge-main span {
    font-size: 1rem;
  }

  .focus-control__badge-main small {
    font-size: 0.8rem;
  }

  .channel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .channel-row__lead {
    width: 100%;
  }

  .channel-row__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .channel-row__actions .channel-status-buttons {
    flex-wrap: wrap;
  }

  .channel-row__actions .channel-actions__more {
    margin-left: 0;
  }

  .direct-channel-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .direct-channel-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .direct-channel-card__actions {
    padding-right: 0;
    width: 100%;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 0.45rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  .direct-channel-card__actions .channel-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .direct-channel-card__actions .channel-status-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .channel-board__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding-top: 0;
    padding-bottom: 0.2rem;
  }

  .channel-board__head p {
    display: none;
  }

  .channel-board__head-info {
    order: 1;
    align-items: center;
    width: 100%;
  }

  .channel-board__head-info h2,
  .channel-board__head-info p {
    text-align: center;
    margin: 0;
  }

  .channel-board__head .channel-form-trigger {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .channel-board__head .channel-board__add-btn {
    min-width: 180px;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin-left: 0;
  }

  .direct-channel-card.is-outdated .direct-channel-card__value {
    white-space: normal;
  }

  .direct-channel-card__value {
    white-space: normal;
    font-size: 1rem;
    word-break: break-word;
    width: 100%;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .direct-channel-card__label {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    width: 100%;
    justify-content: flex-start;
  }

  .direct-channel-card__badge {
    width: auto;
  }

  .social-channel-card__value {
    white-space: normal;
  }

  .social-channel-card__actions {
    padding-right: 0;
    border-top: 1px solid rgba(142, 122, 198, 0.25);
    margin-top: 0.3rem;
  }

  .social-channel-card__actions .channel-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }
}

@media (max-width: 820px) {
  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-direct-channels"] #contact-social-channels,
  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-direct-channels"] #contact-representatives {
    display: none;
  }

  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-social-channels"] #contact-direct-channels,
  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-social-channels"] #contact-representatives {
    display: none;
  }

  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-representatives"] #contact-direct-channels,
  body:has(#contact-profile-app) #contact-channels[data-active-segment="contact-representatives"] #contact-social-channels {
    display: none;
  }
}

@media (max-width: 820px) {
  .shell-nav {
    background: transparent;
    padding: 0.6rem 0.6rem;
  }

  .shell-nav__surface {
    border: none;
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.55);
  }

  body:has(#contact-profile-app) .profile-stage {
    padding-top: 1.1rem;
  }

  body:has(#contact-form-app) .profile-stage {
    padding-top: 1.1rem;
  }

  body:has(#contact-profile-app) .profile-hero {
    row-gap: 0.5rem;
  }

  body:has(#contact-profile-app) .profile-hero__top {
    padding: 0.52rem 0.75rem;
    gap: 0.69rem;
    margin-bottom: 0.5rem;
  }

  body:has(#contact-profile-app) .profile-hero__back {
    padding: 0.32rem 0.63rem 0.32rem 0.37rem;
    font-size: 0.83rem;
    gap: 0.35rem;
  }

  body:has(#contact-profile-app) .profile-hero__back-icon {
    width: 1.32rem;
    height: 1.32rem;
    font-size: 0.98rem;
  }

  body:has(#contact-profile-app) .profile-hero__top-actions {
    gap: 0.35rem;
  }

  body:has(#contact-profile-app) .profile-hero__edit {
    padding: 0.3rem 0.76rem 0.3rem 0.63rem;
    font-size: 0.83rem;
    gap: 0.35rem;
  }

  body:has(#contact-profile-app) .profile-hero__edit-icon {
    width: 1.38rem;
    height: 1.38rem;
  }

  body:has(#contact-profile-app) .profile-hero__top-actions .contact-form__pill-btn {
    padding: 0.37rem 0.98rem;
    font-size: 0.83rem;
    gap: 0.4rem;
  }

  body:has(#contact-profile-app) .channel-board__mobile-nav {
    gap: 0.2rem;
    padding: 0.2rem;
    margin: 0.08rem 0 0.16rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }

  body:has(#contact-profile-app) .channel-board__nav-pill {
    padding: 0.3rem 0.4rem;
    font-size: 0.72rem;
  }

  body:has(#contact-profile-app) .channel-board__head {
    display: none;
  }

  body:has(#contact-profile-app) .channel-board__head-info {
    display: none;
  }

  body:has(#contact-form-app) .channel-board__head {
    display: none;
  }

  body:has(#contact-form-app) .channel-board__head-info {
    display: none;
  }

  #contact-direct-channels .channel-column__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  #contact-direct-channels .channel-column__header-actions .channel-board__add-btn,
  #contact-social-channels .channel-column__header-actions .channel-board__add-btn,
  #contact-representatives .channel-column__header-actions .channel-board__add-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    gap: 0;
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.3);
  }

  #contact-direct-channels .channel-column__header-actions .channel-board__add-btn span:last-child,
  #contact-social-channels .channel-column__header-actions .channel-board__add-btn span:last-child,
  #contact-representatives .channel-column__header-actions .channel-board__add-btn span:last-child {
    display: none;
  }

  #contact-direct-channels .channel-column__header::before {
    content: "";
    width: 4px;
    height: 21px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
  }

	  #contact-direct-channels .channel-column__header h3 {
	    letter-spacing: 0.2em;
	    text-transform: uppercase;
	    font-weight: 700;
	    font-size: 1.1rem;
	    color: #0f4c81;
	  }

    #contact-social-channels .channel-column__header-actions,
    #contact-representatives .channel-column__header-actions {
      display: inline-flex;
    }

	  #contact-direct-channels .channel-column__header-actions,
    #contact-social-channels .channel-column__header-actions,
    #contact-representatives .channel-column__header-actions {
	    margin-right: 0.35rem;
	  }

	  .channel-board {
	    gap: 1.1rem;
	  }

  .profile-card.channel-board {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .profile-card.channel-board::before {
    display: none;
  }

  .profile-card.channel-board:hover,
  .profile-card.channel-board:focus-within {
    transform: none;
    box-shadow: none;
  }

  #contact-social-channels .representative-chip-row {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  #contact-social-channels .representative-chip {
    flex: 1 1 100%;
    width: 100%;
  }

  #contact-social-channels .representative-chip__link {
    width: 100%;
    min-width: 0;
  }

  #contact-social-channels .representative-chip__link > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  #contact-social-channels .representative-chip--outdated {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "link actions"
      "badge .";
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    align-items: center;
  }

  #contact-social-channels .representative-chip--outdated .representative-chip__link {
    grid-area: link;
  }

  #contact-social-channels .representative-chip--outdated .rep-channel-badge {
    grid-area: badge;
    margin-left: calc(36px + 0.6rem);
    justify-self: start;
    align-self: start;
  }

	  #contact-social-channels .representative-chip--outdated .channel-actions {
	    grid-area: actions;
	    margin-left: 0;
	    justify-self: end;
	  }

	  #contact-representatives .representative-chip-row {
	    flex-direction: column;
	    flex-wrap: nowrap;
	  }

	  #contact-representatives .representative-chip--mini {
	    flex: 1 1 100%;
	    width: 100%;
	  }

	  #contact-representatives .representative-chip--mini .representative-chip__link {
	    width: 100%;
	    min-width: 0;
	  }

	  #contact-representatives .representative-chip--mini .representative-chip__link > span:last-child {
	    min-width: 0;
	    overflow: hidden;
	    text-overflow: ellipsis;
	    white-space: nowrap;
	    display: block;
	  }

	  #contact-representatives .representative-chip--mini.representative-chip--outdated {
	    display: grid;
	    grid-template-columns: minmax(0, 1fr) auto;
	    grid-template-areas:
	      "link actions"
      "badge .";
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    align-items: center;
  }

  #contact-representatives .representative-chip--mini.representative-chip--outdated .representative-chip__link {
    grid-area: link;
    min-width: 0;
  }

  #contact-representatives .representative-chip--mini.representative-chip--outdated .rep-channel-badge {
    grid-area: badge;
    margin-left: calc(30px + 0.55rem);
    justify-self: start;
    align-self: start;
  }

  #contact-representatives .representative-chip--mini.representative-chip--outdated .channel-actions {
    grid-area: actions;
    margin-left: 0;
    justify-self: end;
  }

		  #contact-representatives .representative-phone,
		  #contact-representatives .representative-channel--email {
		    width: 100%;
		    flex-direction: column;
	    align-items: flex-start;
	    gap: 0.75rem;
	    padding: 1.05rem 3.25rem 1rem 1.05rem;
	    border-radius: 32px;
	    background: linear-gradient(
	      135deg,
	      rgba(224, 242, 254, 0.92),
	      rgba(229, 231, 255, 0.92) 55%,
	      rgba(236, 253, 245, 0.92)
	    );
	    border: 1px solid rgba(255, 255, 255, 0.85);
	    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
	    backdrop-filter: blur(14px);
	  }

	  #contact-representatives .representative-phone {
	    border-color: rgba(56, 189, 248, 0.55);
	  }

	  #contact-representatives .representative-channel--email {
	    background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(219, 234, 254, 0.92));
	    border-color: rgba(148, 163, 184, 0.35);
	  }

	  #contact-representatives .representative-phone--outdated,
	  #contact-representatives .representative-channel--email.representative-channel--outdated {
	    background: linear-gradient(
	      135deg,
	      rgba(254, 226, 226, 0.92),
	      rgba(254, 202, 202, 0.9) 45%,
	      rgba(231, 242, 255, 0.92)
	    );
	    border-color: rgba(248, 113, 113, 0.5);
	  }

	  #contact-representatives .representative-phone .representative-channel__lead,
	  #contact-representatives .representative-channel--email .representative-channel__lead {
	    width: 100%;
	    align-items: flex-start;
	    gap: 0.75rem;
	  }

	  #contact-representatives .representative-phone:not(.representative-phone--outdated) .representative-channel__lead,
	  #contact-representatives .representative-channel--email:not(.representative-channel--outdated) .representative-channel__lead {
	    align-items: center;
	  }

	  #contact-representatives .representative-phone .representative-channel__icon,
	  #contact-representatives .representative-channel--email .representative-channel__icon {
	    width: 46px;
	    height: 46px;
	    border-radius: 16px;
	    background: rgba(255, 255, 255, 0.72);
	    color: rgba(15, 23, 42, 0.7);
	    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(15, 23, 42, 0.16);
	  }

	  #contact-representatives .representative-phone .representative-channel__icon {
	    background: linear-gradient(145deg, rgba(186, 230, 253, 0.95), rgba(167, 243, 208, 0.9));
	    color: #075985;
	    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(14, 165, 233, 0.22);
	  }

	  #contact-representatives .representative-channel--email .representative-channel__icon {
	    background: linear-gradient(145deg, rgba(226, 232, 240, 0.9), rgba(255, 255, 255, 0.78));
	    color: #0f172a;
	  }

	  #contact-representatives .representative-phone--outdated .representative-channel__icon,
	  #contact-representatives .representative-channel--outdated .representative-channel__icon {
	    background: linear-gradient(145deg, rgba(254, 226, 226, 0.92), rgba(254, 202, 202, 0.9));
	    color: #b91c1c;
	    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 28px rgba(248, 113, 113, 0.22);
	  }

	  #contact-representatives .representative-phone__value {
	    font-size: 1.12rem;
	    font-weight: 800;
	    display: flex;
	    flex-direction: column;
	    align-items: flex-start;
	    gap: 0.35rem;
	    margin: 0;
	  }

	  #contact-representatives .representative-channel--email .representative-channel__value {
	    font-size: 0.95rem;
	    font-weight: 700;
	    display: flex;
	    flex-direction: column;
	    align-items: flex-start;
	    gap: 0.35rem;
	  }

	  #contact-representatives .representative-phone__value .rep-channel-badge,
	  #contact-representatives .representative-channel--email .rep-channel-badge {
	    margin-left: 0;
	    background: rgba(254, 226, 226, 0.75);
	    border-color: rgba(248, 113, 113, 0.35);
	    color: #b91c1c;
	    padding: 0.14rem 0.55rem;
	    font-size: 0.62rem;
	    letter-spacing: 0.14em;
	    align-self: flex-start;
	  }

	  #contact-representatives .representative-phone .representative-channel__actions {
	    width: 100%;
	    justify-content: flex-start;
	    padding-top: 0.65rem;
	    position: static;
	    gap: 0.5rem;
	    flex-wrap: wrap;
	  }

	  #contact-representatives .representative-phone .representative-channel__actions .channel-actions {
	    width: 100%;
	    position: static;
	  }

	  #contact-representatives .representative-phone .channel-status-buttons {
	    width: 100%;
	    gap: 0.5rem;
	  }

	  #contact-representatives .representative-phone .channel-status-btn {
	    flex: 1;
	    text-align: center;
	    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.16);
	    padding: 0.55rem 0.85rem;
	    font-size: 0.82rem;
	    white-space: nowrap;
	    overflow: hidden;
	    text-overflow: ellipsis;
	  }

	  #contact-representatives .representative-phone .channel-status-btn.channel-status-btn--negative {
	    box-shadow: 0 14px 28px rgba(248, 113, 113, 0.16);
	  }

	  #contact-representatives .representative-phone .channel-actions__more,
	  #contact-representatives .representative-channel--email .channel-actions__more {
	    position: absolute;
	    top: 0.85rem;
	    right: 0.85rem;
	    margin-left: 0;
	    z-index: 25;
	  }

	  #contact-representatives .representative-phone .channel-actions__toggle,
	  #contact-representatives .representative-channel--email .channel-actions__toggle {
	    width: 32px;
	    height: 32px;
	    background: rgba(255, 255, 255, 0.72);
	    border-color: rgba(148, 163, 184, 0.35);
	    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
	  }

	  #contact-representatives .representative-channel--email:not(.representative-channel--outdated) {
	    padding-bottom: 1.05rem;
	  }

	  #contact-representatives .representative-channel--email:not(.representative-channel--outdated) .representative-channel__actions {
	    position: absolute;
	    top: 0;
	    left: 0;
	    right: 0;
	    width: auto;
	    padding: 0;
	    margin: 0;
	  }

	  #contact-representatives .representative-channel--email:not(.representative-channel--outdated) .representative-channel__actions .channel-actions {
	    width: 100%;
	    position: static;
	  }

  #contact-representatives .representative-cards {
    gap: 0;
  }

  #contact-representatives .representative-card {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 1.1rem 0;
  }

  #contact-representatives .representative-card::before {
    display: none;
  }

  #contact-representatives .representative-card + .representative-card {
    padding-top: 1.55rem;
    margin-top: 0.2rem;
  }

  #contact-representatives .representative-card + .representative-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(99, 102, 241, 0.55),
      rgba(14, 165, 233, 0.55),
      transparent
    );
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    opacity: 0.85;
  }

  #contact-representatives .representative-card:hover,
  #contact-representatives .representative-card:focus-within {
    transform: none;
    box-shadow: none;
  }

  .channel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.05rem 3.25rem 1rem 1.05rem;
	    border-radius: 32px;
	    background: linear-gradient(
	      135deg,
	      rgba(224, 242, 254, 0.92),
	      rgba(229, 231, 255, 0.92) 55%,
	      rgba(236, 253, 245, 0.92)
	    );
	    border: 1px solid rgba(255, 255, 255, 0.85);
	    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
	    backdrop-filter: blur(14px);
	  }

  .channel-row::before {
    display: none;
  }

  .channel-row__lead {
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
  }

	  .channel-row--lead-centered .channel-row__lead {
	    align-items: center;
	  }

	  .channel-row--lead-centered .channel-value {
	    margin-top: 0;
	  }

	  .channel-row--lead-centered .channel-row__lead > div {
	    display: flex;
	    flex-direction: column;
	    justify-content: center;
	  }

	  .channel-row--lead-centered.channel-row--kind-email {
	    padding-bottom: 1.05rem;
	  }

	  .channel-row--lead-centered.channel-row--kind-email .channel-row__actions {
	    position: absolute;
	    top: 0;
	    left: 0;
	    right: 0;
	    width: auto;
	    padding: 0;
	    margin: 0;
	  }

	  .channel-row--lead-centered.channel-row--kind-email .channel-row__actions .channel-actions {
	    width: 100%;
	  }

	  .channel-row--kind-phone {
	    border-color: rgba(56, 189, 248, 0.55);
	  }

	  .channel-row--kind-email {
	    background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(219, 234, 254, 0.92));
	    border-color: rgba(148, 163, 184, 0.35);
	  }

	  .channel-row--kind-other {
	    border-color: rgba(165, 180, 252, 0.65);
	  }

	  .channel-row--outdated {
	    background: linear-gradient(
	      135deg,
	      rgba(254, 226, 226, 0.92),
	      rgba(254, 202, 202, 0.9) 45%,
	      rgba(231, 242, 255, 0.92)
	    );
	    border-color: rgba(248, 113, 113, 0.5);
	  }

  .channel-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(15, 23, 42, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(15, 23, 42, 0.16);
  }

	  .channel-row--kind-phone .channel-row__icon {
	    background: linear-gradient(145deg, rgba(186, 230, 253, 0.95), rgba(167, 243, 208, 0.9));
	    color: #075985;
	    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(14, 165, 233, 0.22);
	  }

	  .channel-row--kind-email .channel-row__icon {
	    background: linear-gradient(145deg, rgba(226, 232, 240, 0.9), rgba(255, 255, 255, 0.78));
	    color: #0f172a;
	  }

	  .channel-row--outdated .channel-row__icon {
	    background: linear-gradient(145deg, rgba(254, 226, 226, 0.92), rgba(254, 202, 202, 0.9));
	    color: #b91c1c;
	    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 28px rgba(248, 113, 113, 0.22);
	  }

  .channel-row__title strong {
    padding: 0.18rem 0.8rem;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .channel-value {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #111827;
  }

  .channel-value--phone {
    font-size: 1.12rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .channel-value--email {
    font-size: 0.95rem;
    font-weight: 700;
  }

	  .channel-value__badge.rep-channel-badge {
	    margin-left: 0.45rem;
	    background: rgba(254, 226, 226, 0.75);
	    border-color: rgba(248, 113, 113, 0.35);
	    color: #b91c1c;
	    padding: 0.14rem 0.55rem;
	    font-size: 0.62rem;
	    letter-spacing: 0.14em;
	  }

  .channel-value--phone .channel-value__badge.rep-channel-badge {
    margin-left: 0;
    align-self: flex-start;
  }

  .channel-row__actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.65rem;
    border-top: none;
    position: static;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .channel-row__actions .channel-actions {
    width: 100%;
  }

  .channel-row .channel-status-buttons {
    width: 100%;
    gap: 0.5rem;
  }

  .channel-row .channel-status-btn {
    flex: 1;
    text-align: center;
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.16);
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

	  .channel-row .channel-status-btn.channel-status-btn--negative {
	    box-shadow: 0 14px 28px rgba(248, 113, 113, 0.16);
	  }

  .channel-row__actions .channel-actions__more {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    margin-left: 0;
    z-index: 25;
  }

  .channel-row__actions .channel-actions__toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  }

  .channel-row__actions .channel-actions__toggle:hover,
  .channel-row__actions .channel-actions__toggle:focus-visible {
    box-shadow: 0 18px 34px rgba(60, 92, 255, 0.2);
  }

  .channel-row__actions .channel-actions__menu {
    min-width: 247px;
  }

  .channel-actions__menu {
    min-width: 214px;
    border-color: rgba(148, 163, 184, 0.35);
    border-radius: 22px;
    padding: 0.4rem;
    gap: 0.35rem;
  }

  .channel-actions__menu button {
    padding: 0.58rem 0.95rem;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.97rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  }

  .channel-actions__menu button:hover {
    background: rgba(15, 23, 42, 0.06);
  }

  .channel-actions__menu button:active {
    background: rgba(15, 23, 42, 0.08);
  }

  .channel-actions__menu button.danger:hover {
    background: rgba(220, 38, 38, 0.08);
  }

  .channel-row--kind-email .channel-row__actions {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body:has(#contact-profile-app) .profile-stage {
    padding-top: 0.625rem;
  }

  body:has(#contact-form-app) .profile-stage {
    padding-top: 0.625rem;
  }

  body:has(#account-profile-page) .profile-stage {
    padding-top: 0.625rem;
  }
}

body:has(#contact-profile-app) .profile-stage__surface {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(#contact-profile-app) .channel-column,
body:has(#contact-profile-app) .channel-panel #contact-direct-channels {
  backdrop-filter: none;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

body:has(#contact-profile-app) .representative-chip,
body:has(#contact-profile-app) .representative-chip--mini {
  backdrop-filter: none;
}

body:has(#contact-profile-app) .representative-chip {
  --chip-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  --chip-hover-glow: rgba(79, 70, 229, 0.18);
}

body:has(#contact-profile-app) .comment-wall {
  will-change: auto;
}

body:has(#contact-profile-app) .channel-column::after,
body:has(#contact-profile-app) .representative-chip::after {
  display: none;
}

body:has(#contact-profile-app) #contact-direct-channels .channel-row {
  backdrop-filter: none;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

body:has(#contact-profile-app) .channel-row:hover,
body:has(#contact-profile-app) .channel-row:focus-within {
  box-shadow: 0 22px 44px rgba(99, 102, 241, 0.2);
}

body:has(#contact-profile-app) .comment-card {
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.1);
}

body:has(#contact-profile-app) .comment-card__body {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

body:has(#contact-profile-app) .comment-wall {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 24px 48px rgba(16, 185, 129, 0.1);
}

body:has(#contact-profile-app) .comment-wall:hover,
body:has(#contact-profile-app) .comment-wall:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 30px 60px rgba(16, 185, 129, 0.16);
  transform: translateY(-4px);
}

body:has(#contact-profile-app) .profile-card--photobank {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 48px rgba(14, 165, 233, 0.12);
}

body:has(#contact-profile-app) .profile-card--photobank:hover,
body:has(#contact-profile-app) .profile-card--photobank:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 30px 60px rgba(14, 165, 233, 0.18);
  transform: translateY(-2px);
}

body:has(#contact-profile-app) .representative-chip {
  --chip-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  --chip-hover-glow: rgba(79, 70, 229, 0.14);
}

body:has(#contact-form-app) .profile-stage__surface {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(#account-profile-page) .profile-stage__surface {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 820px) {
  body:has(#contact-form-app):not(:has(.profile-stage)) .channel-row__actions:has(> .channel-actions__toggle) {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: auto;
    padding: 0;
    justify-content: flex-end;
    z-index: 25;
  }
}

.channel-actions__toggle.channel-actions__toggle--danger {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18);
}

.channel-actions__toggle.channel-actions__toggle--danger:hover,
.channel-actions__toggle.channel-actions__toggle--danger:focus-visible {
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.25);
}

body:has(#contact-form-app):not(:has(.profile-stage)) .profile-card.channel-board {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body:has(#contact-form-app):not(:has(.profile-stage)) .profile-card.channel-board::before {
  display: none;
}

body:has(#contact-form-app):not(:has(.profile-stage)) .profile-card.channel-board:hover,
body:has(#contact-form-app):not(:has(.profile-stage)) .profile-card.channel-board:focus-within {
  transform: none;
  box-shadow: none;
}

@media (min-width: 821px) {
  body:has(#contact-profile-app) .profile-shell {
    padding: 1rem 1rem 3rem;
  }

  body:has(#contact-profile-app) .profile-card.channel-board {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body:has(#contact-profile-app) .profile-card.channel-board::before {
    display: none;
  }

  body:has(#contact-profile-app) .profile-card.channel-board:hover,
  body:has(#contact-profile-app) .profile-card.channel-board:focus-within {
    transform: none;
    box-shadow: none;
  }

  body:has(#contact-profile-app) .channel-board__head {
    display: none;
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) .channel-board__head {
    display: none;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-column__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) #contact-direct-channels .channel-column__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-column__header::before {
    content: "";
    width: 4px;
    height: 21px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) #contact-direct-channels .channel-column__header::before {
    content: "";
    width: 4px;
    height: 21px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-column__header h3 {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f4c81;
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) #contact-direct-channels .channel-column__header h3 {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f4c81;
  }

  body:has(#contact-profile-app) #contact-social-channels .channel-column__header-actions,
  body:has(#contact-profile-app) #contact-representatives .channel-column__header-actions {
    display: inline-flex;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-column__header-actions,
  body:has(#contact-profile-app) #contact-social-channels .channel-column__header-actions,
  body:has(#contact-profile-app) #contact-representatives .channel-column__header-actions {
    margin-right: 0.35rem;
  }

  body:has(#contact-form-app):not(:has(.profile-stage)) #contact-direct-channels .channel-column__header-actions {
    margin-right: 0.35rem;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-cards {
    gap: 0;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-card {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 1.1rem 0;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-card::before {
    display: none;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-card + .representative-card {
    padding-top: 1.55rem;
    margin-top: 0.2rem;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-card + .representative-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(99, 102, 241, 0.55),
      rgba(14, 165, 233, 0.55),
      transparent
    );
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    opacity: 0.85;
  }

  body:has(#contact-profile-app) #contact-representatives .representative-card:hover,
  body:has(#contact-profile-app) #contact-representatives .representative-card:focus-within {
    transform: none;
    box-shadow: none;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row {
    gap: 1.1rem;
    padding: 1.05rem 1.5rem 1rem 1.05rem;
    border-radius: 32px;
    background: linear-gradient(
      135deg,
      rgba(224, 242, 254, 0.92),
      rgba(229, 231, 255, 0.92) 55%,
      rgba(236, 253, 245, 0.92)
    );
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row::before {
    display: none;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__lead {
    align-items: flex-start;
    gap: 0.75rem;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--lead-centered .channel-row__lead {
    align-items: center;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--lead-centered .channel-value {
    margin-top: 0;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--lead-centered .channel-row__lead > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--kind-phone {
    border-color: rgba(56, 189, 248, 0.55);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--kind-email {
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(219, 234, 254, 0.92));
    border-color: rgba(148, 163, 184, 0.35);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--kind-other {
    border-color: rgba(165, 180, 252, 0.65);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--outdated {
    background: linear-gradient(
      135deg,
      rgba(254, 226, 226, 0.92),
      rgba(254, 202, 202, 0.9) 45%,
      rgba(231, 242, 255, 0.92)
    );
    border-color: rgba(248, 113, 113, 0.5);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(15, 23, 42, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(15, 23, 42, 0.16);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--kind-phone .channel-row__icon {
    background: linear-gradient(145deg, rgba(186, 230, 253, 0.95), rgba(167, 243, 208, 0.9));
    color: #075985;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(14, 165, 233, 0.22);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--kind-email .channel-row__icon {
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.9), rgba(255, 255, 255, 0.78));
    color: #0f172a;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row--outdated .channel-row__icon {
    background: linear-gradient(145deg, rgba(254, 226, 226, 0.92), rgba(254, 202, 202, 0.9));
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 28px rgba(248, 113, 113, 0.22);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__title strong {
    padding: 0.18rem 0.8rem;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-value {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #111827;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-value--phone {
    font-size: 1.12rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-value--email {
    font-size: 0.95rem;
    font-weight: 700;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-value__badge.rep-channel-badge {
    margin-left: 0.45rem;
    background: rgba(254, 226, 226, 0.75);
    border-color: rgba(248, 113, 113, 0.35);
    color: #b91c1c;
    padding: 0.14rem 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-value--phone .channel-value__badge.rep-channel-badge {
    margin-left: 0;
    align-self: flex-start;
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__actions .channel-actions__toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__actions .channel-actions__toggle:hover,
  body:has(#contact-profile-app) #contact-direct-channels .channel-row__actions .channel-actions__toggle:focus-visible {
    box-shadow: 0 18px 34px rgba(60, 92, 255, 0.2);
  }

  body:has(#contact-profile-app) #contact-direct-channels .channel-row__actions .channel-actions__menu {
    min-width: 247px;
  }
}

.representative-chip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

/* Auth pages */

.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 3rem 1.25rem 4rem;
  background: radial-gradient(130% 130% at 15% 5%, rgba(60, 92, 255, 0.18), transparent 45%),
    radial-gradient(110% 120% at 90% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(120% 140% at 80% 90%, rgba(16, 185, 129, 0.18), transparent 65%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
}

.auth-shell__surface {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 60px 120px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(26px) saturate(150%);
}

.auth-shell__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.auth-shell__container--solo {
  grid-template-columns: 1fr;
}

.auth-shell__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-shell__orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.8;
  filter: blur(1px);
  animation: contactOrbDrift 22s ease-in-out infinite alternate;
}

.auth-shell__orb--one {
  width: 520px;
  height: 520px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(60, 92, 255, 0.4));
}

.auth-shell__orb--two {
  width: 360px;
  height: 360px;
  bottom: -160px;
  right: -80px;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.8), rgba(14, 165, 233, 0.35));
  animation-duration: 28s;
}

.auth-shell__orb--three {
  width: 280px;
  height: 280px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.78), rgba(16, 185, 129, 0.25));
  animation-duration: 32s;
}

.auth-shell__intro {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.85));
  box-shadow: 0 45px 90px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(18px);
}

.auth-shell__intro h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.auth-shell__intro p {
  margin: 0;
  color: rgba(17, 24, 39, 0.8);
}

.auth-shell__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(60, 92, 255, 0.12);
  color: #312e81;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(60, 92, 255, 0.15);
}

.auth-shell__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: rgba(17, 24, 39, 0.84);
}

.auth-shell__list li {
  line-height: 1.4;
}

.auth-shell__footnote {
  font-size: 0.95rem;
  color: rgba(17, 24, 39, 0.7);
}

.auth-shell__panel {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 45px 90px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(18px);
}

.auth-shell__panel-head {
  display: grid;
  gap: 0.3rem;
}

.auth-shell__panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.auth-shell__panel-head p {
  margin: 0;
  color: rgba(17, 24, 39, 0.7);
}

.auth-shell__eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(60, 92, 255, 0.9);
  font-weight: 700;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.auth-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.auth-form__errors:empty {
  display: none;
}

.form-errors {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.08);
  color: #991b1b;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.12);
}

.form-errors p {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field__label {
  font-weight: 700;
  color: rgba(17, 24, 39, 0.9);
}

.auth-field__input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 249, 255, 0.85);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.auth-field__input:focus {
  border-color: rgba(60, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(60, 92, 255, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.auth-field__hint {
  color: rgba(17, 24, 39, 0.6);
}

.auth-field__hint--warning {
  color: rgba(180, 83, 9, 0.9);
}

.auth-field--captcha {
  margin-top: 0.35rem;
}

.auth-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.6rem;
}

.auth-captcha__image {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 249, 255, 0.9);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.auth-captcha__refresh {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 249, 255, 0.85);
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.auth-captcha__refresh:hover,
.auth-captcha__refresh:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(60, 92, 255, 0.32);
  box-shadow: 0 16px 28px rgba(60, 92, 255, 0.18);
  outline: none;
}

.auth-field__input--captcha {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-align: center;
  font-weight: 800;
}

.auth-field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.auth-button {
  border: none;
  border-radius: 18px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 25px 45px rgba(79, 70, 229, 0.25);
}

.auth-button--primary {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.92));
  color: #fff;
  border: 1px solid transparent;
}

.auth-button--primary:hover,
.auth-button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 50px rgba(60, 92, 255, 0.35);
}

.auth-switch {
  margin: 0;
  text-align: center;
  color: rgba(17, 24, 39, 0.75);
}

.auth-switch a {
  font-weight: 700;
  color: #3c5cff;
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 1.2rem 0.75rem 1.8rem;
  }

  .auth-shell__surface {
    padding: 1.1rem;
    border-radius: 28px;
  }

  .auth-shell__container {
    gap: 0.9rem;
  }

  .auth-shell__panel,
  .auth-shell__intro {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .auth-shell__panel {
    gap: 1rem;
  }

  .auth-shell__panel-head {
    gap: 0.2rem;
  }

  .auth-shell__panel-head h2 {
    font-size: 1.35rem;
  }

  .auth-shell__panel-head p {
    font-size: 0.95rem;
  }

  .auth-form {
    gap: 0.85rem;
  }

  .auth-form__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .auth-field__input {
    padding: 0.9rem 1.05rem;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-button {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 960px) {
  .auth-shell__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.75rem;
  }

  .auth-shell__container--solo {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
  }
}

/* Contacts mobile compact */
@media (max-width: 720px) {
  .workspace {
    padding: 0.9rem 0.7rem 1.4rem;
    gap: 0.9rem;
  }

  .workspace__hero {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .workspace__hero h1 {
    font-size: 1.25rem;
    text-align: left;
    margin-bottom: 0.1rem;
  }

  .workspace__hero p {
    font-size: 0.7rem;
    text-align: right;
    color: rgba(15, 23, 42, 0.6);
  }

  .workspace__intro {
    order: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .workspace__intro h1 {
    flex: 0 0 auto;
    margin: 0;
  }

  .workspace__intro p {
    flex: 1;
    margin: 0;
  }

  .workspace__stats {
    order: 2;
    width: 100%;
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .workspace__stats > div {
    min-width: 110px;
    padding: 0.45rem 0.5rem;
    text-align: center;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .workspace__intro {
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .workspace__intro h1 {
    flex: 0 0 auto;
  }

  .workspace__intro p {
    flex: 1;
  }

  .workspace__stats span {
    font-size: 0.62rem;
  }

  .workspace__stats strong {
    font-size: 0.85rem;
  }

  .workspace__stats .contact-form__add-btn.channel-board__add-btn {
    grid-column: 1 / -1;
    position: static;
    width: 100%;
    height: auto;
    min-height: 36px;
    padding: 0.5rem 0.9rem;
    border-radius: 14px;
    justify-content: center;
    font-size: 0.88rem;
    box-shadow: 0 12px 22px rgba(60, 92, 255, 0.2);
  }

  .workspace__stats .contact-form__add-btn.channel-board__add-btn .contact-form__add-btn-icon {
    margin-right: 0.35rem;
  }

  .workspace__controls {
    position: sticky;
    top: var(--shell-nav-height, 56px);
    z-index: 35;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.55rem 0.7rem 0.65rem;
    margin-bottom: 0.4rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    gap: 0.55rem;
    backdrop-filter: blur(16px) saturate(140%);
  }

  body:has(#contact-form-app) .contact-form--page {
    top: var(--shell-nav-height, 156px);
  }

  .workspace__controls input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: rgba(248, 249, 255, 0.95);
  }

  .segment-group {
    width: 100%;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.2rem;
    margin: 0;
    scrollbar-width: none;
  }

  .segment-group::-webkit-scrollbar {
    display: none;
  }

  .segment-group .chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 999px;
    border-width: 1px;
  }

  .segment-group .chip--active {
    box-shadow: 0 10px 20px rgba(60, 92, 255, 0.25);
  }

  .workspace__tags {
    display: none;
  }

  .workspace__tags .tag {
    justify-content: center;
  }

  .contacts {
    --contacts-pad-top: 0.7rem;
    --contacts-pad-bottom: 1.2rem;
    padding: var(--contacts-pad-top) 0.6rem var(--contacts-pad-bottom);
    min-height: calc(var(--viewport-height, 100vh) - var(--shell-nav-height, 0px) - var(--contacts-pad-top) - var(--contacts-pad-bottom));
  }

  @supports (height: 100dvh) {
    .contacts {
      min-height: calc(var(--viewport-height, 100dvh) - var(--shell-nav-height, 0px) - var(--contacts-pad-top) - var(--contacts-pad-bottom));
    }
  }

  .contacts__ambient {
    display: none;
  }

  .profile-stage {
    padding: 1.6rem 0.8rem 2.4rem;
  }

  .profile-stage__surface {
    padding: 0.3rem;
    border-radius: 28px;
  }

  .profile-stage__ambient {
    display: none;
  }

  .workspace__hero--profile {
    grid-template-columns: 1fr;
  }

  .workspace__stats--profile {
    width: 100%;
    flex-direction: column;
  }

  .workspace__back-btn {
    width: 100%;
  }

  .workspace__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .focus-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
  }

  .focus-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .focus-card__identity {
    flex: 1;
  }

  .focus-card__identity strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .focus-card__identity p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .focus-card__badges {
    display: none;
  }

  .chip {
    padding: 0.32rem 0.85rem;
  }

  .fab-add-contact {
    bottom: 1.1rem;
    right: 1.1rem;
  }

  body:has(#contacts-app) .workspace {
    padding: 0;
    gap: 0.85rem;
  }

  body:has(#contacts-app) .workspace__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
      linear-gradient(130deg, rgba(99, 102, 241, 0.04), rgba(59, 130, 246, 0.06), rgba(16, 185, 129, 0.04)),
      linear-gradient(120deg, rgba(248, 250, 255, 0.98), rgba(236, 244, 255, 0.96));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px) saturate(140%);
  }

  body:has(#contacts-app) .workspace__intro {
    display: grid;
    gap: 0.25rem;
    align-items: start;
    order: initial;
  }

  body:has(#contacts-app) .workspace__hero h1 {
    font-size: 1.22rem;
    margin: 0;
  }

  body:has(#contacts-app) .workspace__hero p {
    margin: 0;
    display: none;
  }

  body:has(#contacts-app) .workspace__stats {
    width: 100%;
    order: initial;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding: 0;
    justify-content: stretch;
  }

  body:has(#contacts-app) .workspace__stats > div {
    min-width: 0;
    padding: 0.22rem 0.25rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px) saturate(140%);
  }

  body:has(#contacts-app) .workspace__stats span {
    font-size: 0.6rem;
  }

  body:has(#contacts-app) .workspace__stats strong {
    font-size: 0.92rem;
  }

  body:has(#contacts-app) .workspace__controls {
    padding: 0.65rem 0.75rem 0.78rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
      linear-gradient(130deg, rgba(99, 102, 241, 0.04), rgba(59, 130, 246, 0.06), rgba(16, 185, 129, 0.04)),
      linear-gradient(120deg, rgba(248, 250, 255, 0.98), rgba(236, 244, 255, 0.96));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    gap: 0.55rem;
  }

  body:has(#contacts-app) .workspace__controls input[type="search"] {
    padding: 0.62rem 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  body:has(#contacts-app) .segment-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  body:has(#contacts-app) .segment-group .chip {
    width: 100%;
    justify-content: center;
    padding: 0.38rem 0.46rem;
    font-size: 0.66rem;
    line-height: 1.1;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
  }

  body:has(#contacts-app) .segment-group .chip--active {
    background: linear-gradient(135deg, rgba(60, 92, 255, 0.95), rgba(14, 165, 233, 0.9));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(60, 92, 255, 0.22);
  }

  body:has(#contacts-app) .segment-group .chip:active {
    transform: translateY(1px);
  }

  body:has(#contacts-app) .segment-group .chip:focus-visible {
    outline: 2px solid rgba(60, 92, 255, 0.35);
    outline-offset: 2px;
  }
}

/* Contacts access */

.contacts__no-access {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contacts__no-access-text {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

.contacts__no-access-card:hover,
.contacts__no-access-card:focus-within {
  transform: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.contacts__no-access-card .contacts__no-access-cta {
  align-self: center;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
}

/* Account profile (/profile) */

#account-profile-page .account-profile {
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#account-profile-page .account-profile__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

#account-profile-page .account-profile__header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#account-profile-page .account-profile__header-text .eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

#account-profile-page .account-profile__header-text h1 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.1;
  background: linear-gradient(120deg, #1e1b4b, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#account-profile-page .account-profile__header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#account-profile-page .account-profile__status-icon {
  display: inline-flex;
  width: 1.25rem;
  justify-content: center;
}

#account-profile-page .account-profile__tooltip {
  position: relative;
  cursor: help;
}

#account-profile-page .account-profile__tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  z-index: 12;
}

#account-profile-page .account-profile__tooltip:hover::after,
#account-profile-page .account-profile__tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

#account-profile-page .contact-form__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

#account-profile-page .account-profile__verify-badge {
  padding: 0.35rem 0.75rem;
  min-width: 2.1rem;
  justify-content: center;
}

#account-profile-page .account-profile__verify-badge > span {
  display: inline-flex;
  width: 1.25rem;
  justify-content: center;
}

#account-profile-page .account-profile__access-warning {
  border-radius: 26px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(254, 215, 170, 0.75));
  padding: 1.1rem 1.25rem;
  box-shadow: 0 24px 55px rgba(251, 146, 60, 0.18);
}

#account-profile-page .account-profile__access-warning strong {
  display: block;
  font-size: 1.05rem;
}

#account-profile-page .account-profile__access-warning p {
  margin: 0.35rem 0 0;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 500;
}

#account-profile-page .account-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.4rem;
  align-items: start;
}

#account-profile-page .account-profile__card {
  min-width: 0;
}

#account-profile-page .account-profile__identity {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

#account-profile-page .account-profile__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

#account-profile-page .account-profile__avatar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#account-profile-page .account-profile__avatar-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 11;
}

#account-profile-page .contact-form__avatar-preview-button:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.22);
  outline: none;
}

#account-profile-page .contact-form__avatar-preview-button:focus-within .contact-form__avatar-overlay {
  opacity: 1;
}

#account-profile-page .account-profile__surface-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

#account-profile-page .account-profile__hidden-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#account-profile-page .contact-form__avatar-preview {
  width: 160px;
  height: 160px;
}

#account-profile-page .account-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 34px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 28px 60px rgba(15, 23, 42, 0.14);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#account-profile-page .account-avatar:focus-within {
  outline: 3px solid rgba(60, 92, 255, 0.25);
  outline-offset: 4px;
}

#account-profile-page .account-avatar__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#account-profile-page .account-avatar__preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#account-profile-page .account-avatar__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#account-profile-page .account-avatar__initials {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

#account-profile-page .account-avatar__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#account-profile-page .account-avatar:hover .account-avatar__overlay,
#account-profile-page .account-avatar:focus-within .account-avatar__overlay {
  opacity: 1;
}

#account-profile-page .account-profile__avatar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
}

#account-profile-page .account-profile__security {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#account-profile-page .account-profile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

#account-profile-page .account-profile__row > :first-child {
  min-width: 0;
}

#account-profile-page .account-profile__row:first-child {
  padding-top: 0.2rem;
}

#account-profile-page .account-profile__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#account-profile-page .account-profile__row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

#account-profile-page .account-profile__row-actions .inline-form {
  margin: 0;
}

#account-profile-page .account-profile__row-actions .inline-form input[type="submit"] {
  margin: 0;
}

#account-profile-page .account-profile .muted {
  margin-top: 0.2rem;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 600;
  word-break: break-word;
}

#account-profile-page .account-profile__row--email {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "value value";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: center;
}

#account-profile-page .account-profile__row--email .account-profile__row-title {
  grid-area: title;
  min-width: 0;
}

#account-profile-page .account-profile__row--email .account-profile__row-actions {
  grid-area: actions;
  align-self: start;
}

#account-profile-page .account-profile__value--email {
  grid-area: value;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

#account-profile-page .account-profile__value--email-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

#account-profile-page .account-profile__email-verify {
  margin-left: auto;
}

/* Checkbox-driven form modals on profile */

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-toggle:checked + .form-modal {
  opacity: 1;
  pointer-events: auto;
}

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.form-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 240, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 1.7rem;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(18px) saturate(140%);
}

.form-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.form-modal__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.form-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 1.4rem;
  transition: transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.form-modal__close:hover,
.form-modal__close:focus-visible {
  background: rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.form-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-modal__form .form-field {
  gap: 0.35rem;
}

.form-modal__form .form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.form-modal__form input[type="email"],
.form-modal__form input[type="password"],
.form-modal__form input[type="text"] {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 249, 255, 0.95);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-modal__form input[type="email"]::placeholder,
.form-modal__form input[type="password"]::placeholder,
.form-modal__form input[type="text"]::placeholder {
  color: rgba(15, 23, 42, 0.35);
}

.form-modal__form input[type="email"]:focus,
.form-modal__form input[type="password"]:focus,
.form-modal__form input[type="text"]:focus {
  outline: none;
  border-color: rgba(60, 92, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(60, 92, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.form-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

body:has(#profile-email-modal:checked),
body:has(#profile-password-modal:checked) {
  overflow: hidden;
}

@media (max-width: 1024px) {
  #account-profile-page .account-profile {
    padding: 1rem 1rem 2.4rem;
  }

  #account-profile-page .account-profile__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #account-profile-page .account-profile {
    padding: 0.05rem 0.05rem 0.2rem;
    gap: 0.4rem;
  }

  #account-profile-page .account-profile__header-text h1 {
    font-size: 1.55rem;
  }

  #account-profile-page .account-profile__header-meta {
    width: 100%;
    justify-content: flex-start;
  }

  #account-profile-page .account-profile__identity {
    grid-template-columns: 1fr;
  }

  #account-profile-page .contact-form__avatar-preview {
    width: 140px;
    height: 140px;
  }

  #account-profile-page .account-avatar {
    width: 130px;
    height: 130px;
    border-radius: 30px;
  }

  #account-profile-page .account-avatar__initials {
    font-size: 2.05rem;
  }

  #account-profile-page .account-profile__row {
    align-items: flex-start;
  }
}
.admin-export-form {
  width: 100%;
}

/* Performance tuning (contact profile) */
body:has(#contact-profile-app) .profile-stage__ambient {
  opacity: 0.45;
}

body:has(#contact-profile-app) .profile-stage__orb {
  animation: none;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.45;
}

body:has(#contact-profile-app) .profile-hero,
body:has(#contact-profile-app) .profile-hero__top,
body:has(#contact-profile-app) .profile-card,
body:has(#contact-profile-app) .channel-column,
body:has(#contact-profile-app) #contact-direct-channels .channel-row,
body:has(#contact-profile-app) #contact-social-channels .channel-row,
body:has(#contact-profile-app) #contact-representatives .representative-phone,
body:has(#contact-profile-app) #contact-representatives .representative-channel--email,
body:has(#contact-profile-app) .comment-wall,
body:has(#contact-profile-app) .profile-card--photobank {
  backdrop-filter: none;
}

body:has(#contact-profile-app) .profile-hero {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transition: none;
}

body:has(#contact-profile-app) .profile-hero:hover,
body:has(#contact-profile-app) .profile-hero:focus-within {
  transform: none;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

body:has(#contact-profile-app) .profile-hero__top {
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.08);
}

body:has(#contact-profile-app) .profile-card {
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
}

body:has(#contact-profile-app) .profile-card:hover,
body:has(#contact-profile-app) .profile-card:focus-within {
  transform: none;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

body:has(#contact-profile-app) #contact-direct-channels .channel-row,
body:has(#contact-profile-app) #contact-social-channels .channel-row {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

body:has(#contact-profile-app) .comment-wall,
body:has(#contact-profile-app) .profile-card--photobank {
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.1);
}

body:has(#contact-profile-app) .comment-wall:hover,
body:has(#contact-profile-app) .comment-wall:focus-within,
body:has(#contact-profile-app) .profile-card--photobank:hover,
body:has(#contact-profile-app) .profile-card--photobank:focus-within {
  transform: none;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

body:has(#contact-profile-app) .comment-card {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 220px;
}

body:has(#contact-profile-app) .photobank-grid__item,
body:has(#contact-profile-app) .asset-item {
  content-visibility: auto;
  contain-intrinsic-size: 240px 200px;
}

/* Performance tuning (admin settings) */
body:has(#admin-platform-settings-page) .admin-toolbar,
body:has(#admin-platform-settings-page) .admin-backup-progress,
body:has(#admin-platform-settings-page) .admin-clear-status {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body:has(#admin-platform-settings-page) .admin-backup-progress__download {
  backdrop-filter: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

body:has(#admin-platform-settings-page) .admin-backup-progress.is-active,
body:has(#admin-platform-settings-page) .admin-backup-progress__ring {
  animation: none;
}

/* Performance tuning (profile-stage pages) */
body:has(#account-profile-page) .profile-stage__ambient,
body:has(#admin-user-page) .profile-stage__ambient,
body:has(#admin-report-page) .profile-stage__ambient,
body:has(#admin-users-page) .profile-stage__ambient,
body:has(#admin-invitations-page) .profile-stage__ambient,
body:has(#admin-reports-page) .profile-stage__ambient,
body:has(#admin-platform-settings-page) .profile-stage__ambient,
body:has(#contact-form-app) .profile-stage__ambient {
  opacity: 0.45;
}

body:has(#account-profile-page) .profile-stage__orb,
body:has(#admin-user-page) .profile-stage__orb,
body:has(#admin-report-page) .profile-stage__orb,
body:has(#admin-users-page) .profile-stage__orb,
body:has(#admin-invitations-page) .profile-stage__orb,
body:has(#admin-reports-page) .profile-stage__orb,
body:has(#admin-platform-settings-page) .profile-stage__orb,
body:has(#contact-form-app) .profile-stage__orb {
  animation: none;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.45;
}

/* Performance tuning (contact/admin forms) */
body:has(#contact-form-app) .contact-form-page__lede,
body:has(#admin-user-page) .contact-form-page__lede,
body:has(#admin-report-page) .contact-form-page__lede,
body:has(#account-profile-page) .contact-form-page__lede {
  backdrop-filter: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body:has(#contact-form-app) .contact-form__card,
body:has(#admin-user-page) .contact-form__card,
body:has(#admin-report-page) .contact-form__card,
body:has(#account-profile-page) .profile-card {
  backdrop-filter: none;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

body:has(#contact-form-app) .contact-form__card--identity,
body:has(#admin-user-page) .contact-form__card--identity,
body:has(#admin-report-page) .contact-form__card--identity {
  transition: none;
}

body:has(#contact-form-app) .contact-form__card--identity:hover,
body:has(#contact-form-app) .contact-form__card--identity:focus-within,
body:has(#admin-user-page) .contact-form__card--identity:hover,
body:has(#admin-user-page) .contact-form__card--identity:focus-within,
body:has(#admin-report-page) .contact-form__card--identity:hover,
body:has(#admin-report-page) .contact-form__card--identity:focus-within {
  transform: none;
  box-shadow: 0 20px 38px rgba(99, 102, 241, 0.16);
}

body:has(#account-profile-page) .profile-card:hover,
body:has(#account-profile-page) .profile-card:focus-within {
  transform: none;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

body:has(#contact-form-app) .contact-form__danger-zone {
  backdrop-filter: none;
  box-shadow: 0 18px 36px rgba(248, 113, 113, 0.16);
}

body:has(#admin-report-page) .admin-list--events .admin-row {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 88px;
}

/* Dashboard */
#admin-dashboard-page .profile-stage__surface {
  max-width: 1260px;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-page__header {
  gap: 1rem;
}

.dashboard-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-window-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: -0.15rem;
}

.dashboard-window-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.44rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 39, 65, 0.14);
  background: rgba(250, 252, 255, 0.86);
  color: rgba(20, 35, 60, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dashboard-window-switch__item:hover,
.dashboard-window-switch__item:focus-visible {
  border-color: rgba(24, 112, 255, 0.36);
  background: rgba(239, 246, 255, 0.95);
  color: #123f92;
  box-shadow: 0 8px 18px rgba(19, 103, 226, 0.18);
}

.dashboard-window-switch__item.is-active {
  border-color: rgba(19, 88, 197, 0.45);
  background: linear-gradient(145deg, rgba(36, 96, 204, 0.94), rgba(20, 77, 179, 0.95));
  color: #f8fbff;
  box-shadow: 0 10px 22px rgba(19, 81, 186, 0.3);
}

.dashboard-page__identity {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.35rem;
}

.dashboard-page__identity strong {
  font-size: 0.95rem;
}

.dashboard-page__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-kpi {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  border: 1px solid rgba(32, 48, 74, 0.08);
}

.dashboard-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(53, 124, 255, 0.17), transparent 58%);
  pointer-events: none;
}

.dashboard-kpi--warning::before {
  background: radial-gradient(circle at 85% -10%, rgba(255, 162, 53, 0.2), transparent 58%);
}

.dashboard-kpi--danger::before {
  background: radial-gradient(circle at 85% -10%, rgba(255, 86, 86, 0.2), transparent 58%);
}

.dashboard-kpi span,
.dashboard-kpi small,
.dashboard-kpi strong {
  position: relative;
  z-index: 1;
}

.dashboard-kpi span {
  display: block;
  font-size: 0.8rem;
  color: rgba(22, 36, 60, 0.74);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.38rem, 2.2vw, 1.74rem);
  line-height: 1.05;
  color: #112245;
}

.dashboard-kpi small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(19, 33, 55, 0.66);
}

.dashboard-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-card {
  min-height: 250px;
}

.dashboard-card--system {
  min-height: 0;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.dashboard-metrics div {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(24, 39, 66, 0.09);
  background: rgba(245, 248, 255, 0.8);
}

.dashboard-metrics dt {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(21, 35, 58, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-metrics dd {
  margin: 0.32rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #122546;
}

.dashboard-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dashboard-trend--up {
  color: #0f6d45;
  border-color: rgba(16, 141, 88, 0.32);
  background: rgba(209, 250, 229, 0.75);
}

.dashboard-trend--down {
  color: #a12828;
  border-color: rgba(214, 66, 66, 0.35);
  background: rgba(255, 228, 228, 0.8);
}

.dashboard-trend--flat {
  color: #445974;
  border-color: rgba(66, 92, 126, 0.3);
  background: rgba(229, 237, 247, 0.78);
}

.dashboard-mini-chart {
  margin-top: 0.8rem;
  padding: 0.9rem 0.95rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(179, 196, 214, 0.45);
  background: linear-gradient(180deg, #f9fcff 0%, #eff4f8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 26px rgba(132, 157, 185, 0.22);
  overflow: hidden;
  position: relative;
  color: #5d7389;
}

.dashboard-mini-chart::before,
.dashboard-mini-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dashboard-mini-chart::before {
  background:
    radial-gradient(circle at 8% 14%, rgba(188, 241, 247, 0.58), transparent 32%),
    radial-gradient(circle at 95% 4%, rgba(226, 244, 249, 0.86), transparent 44%);
}

.dashboard-mini-chart::after {
  background: linear-gradient(116deg, transparent 0%, rgba(255, 255, 255, 0.5) 46%, transparent 100%);
  transform: translateX(-120%);
  animation: dashboardChartShine 8s ease-in-out infinite;
}

.dashboard-mini-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.62rem;
}

.dashboard-mini-chart__head strong {
  font-size: 0.84rem;
  color: #35506a;
  letter-spacing: 0.02em;
}

.dashboard-mini-chart__head small {
  font-size: 0.73rem;
  color: rgba(78, 105, 132, 0.84);
}

.dashboard-mini-chart__stats {
  margin-bottom: 0.58rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.dashboard-mini-chart__stat {
  padding: 0.4rem 0.46rem;
  border-radius: 9px;
  border: 1px solid rgba(163, 191, 215, 0.36);
  background: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.dashboard-mini-chart__stat em {
  font-style: normal;
  font-size: 0.62rem;
  color: rgba(84, 110, 137, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-mini-chart__stat strong {
  font-size: 0.84rem;
  color: #304c65;
  line-height: 1.1;
}

.dashboard-mini-chart__plot-wrap {
  position: relative;
}

.dashboard-mini-chart__plot {
  height: 132px;
  padding: 0.48rem 0.3rem 0.34rem;
  border-radius: 12px;
  border: 1px solid rgba(170, 196, 220, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(240, 246, 252, 0.88)),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.95), transparent 45%);
  backdrop-filter: blur(2px);
}

.dashboard-mini-chart__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-mini-chart__ambient circle {
  fill: rgba(255, 255, 255, 0.95);
  opacity: 0.7;
  animation: dashboardSparkle 4.6s ease-in-out infinite;
}

.dashboard-mini-chart__ambient circle:nth-child(2n) {
  animation-delay: 1.2s;
}

.dashboard-mini-chart__ambient circle:nth-child(3n) {
  animation-delay: 2.1s;
}

.dashboard-mini-chart__grid line {
  stroke: rgba(131, 161, 188, 0.3);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.dashboard-mini-chart__segment {
  fill: url(#dashboard-mini-chart-fill);
  opacity: var(--segment-alpha, 0.22);
  transition: opacity 0.24s ease;
}

.dashboard-mini-chart__line {
  fill: none;
  stroke: url(#dashboard-mini-chart-line);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 3px rgba(120, 189, 205, 0.28));
  transition: opacity 0.24s ease;
}

.dashboard-mini-chart__point {
  fill: #94e0ec;
  stroke: rgba(248, 252, 255, 0.96);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 3px rgba(130, 196, 211, 0.26));
  transition: opacity 0.24s ease;
}

.dashboard-mini-chart__point.is-empty {
  fill: rgba(190, 214, 227, 0.92);
  stroke: rgba(243, 249, 255, 0.94);
  filter: none;
}

.dashboard-mini-chart__axis {
  margin-top: 0.46rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.68rem;
  color: rgba(87, 112, 136, 0.88);
}

.dashboard-mini-chart__axis span {
  padding: 0.11rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(170, 195, 219, 0.35);
  background: rgba(251, 254, 255, 0.78);
}

.dashboard-system-trends {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.54rem;
  transition: opacity 0.26s ease, transform 0.26s ease;
  will-change: opacity, transform;
}

.dashboard-system-trends.is-refreshing {
  opacity: 0.9;
  transform: translateY(1px);
}

.dashboard-mini-chart--resource {
  margin-top: 0;
  padding: 0.76rem 0.82rem 0.72rem;
  border-radius: 14px;
}

.dashboard-mini-chart--resource .dashboard-mini-chart__head {
  margin-bottom: 0.46rem;
}

.dashboard-mini-chart--resource .dashboard-mini-chart__head span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #23486f;
}

.dashboard-mini-chart__stats--single {
  grid-template-columns: 1fr;
}

.dashboard-mini-chart__stats--single .dashboard-mini-chart__stat {
  padding: 0.34rem 0.46rem;
}

.dashboard-mini-chart__stats--single .dashboard-mini-chart__stat strong {
  font-size: 0.8rem;
}

.dashboard-mini-chart__stats--resource {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.45rem;
}

.dashboard-mini-chart__stats--resource .dashboard-mini-chart__stat {
  padding: 0.32rem 0.42rem;
}

.dashboard-mini-chart__stats--resource .dashboard-mini-chart__stat strong {
  font-size: 0.79rem;
}

.dashboard-mini-chart__stats--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.45rem;
}

.dashboard-mini-chart__stats--dual .dashboard-mini-chart__stat {
  padding: 0.32rem 0.42rem;
}

.dashboard-mini-chart__stats--dual .dashboard-mini-chart__stat strong {
  font-size: 0.79rem;
}

.dashboard-mini-chart__stat--network-upload {
  border-color: rgba(240, 111, 82, 0.44);
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.96), rgba(255, 230, 222, 0.84));
}

.dashboard-mini-chart__stat--network-download {
  border-color: rgba(79, 151, 232, 0.42);
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.96), rgba(225, 241, 255, 0.84));
}

.dashboard-mini-chart__stat--network-upload em,
.dashboard-mini-chart__stat--network-download em {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dashboard-mini-chart__stat--network-upload em::before,
.dashboard-mini-chart__stat--network-download em::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dashboard-mini-chart__stat--network-upload em {
  color: #b34f3a;
}

.dashboard-mini-chart__stat--network-upload em::before {
  background: linear-gradient(180deg, #ff9a7d 0%, #f06f52 100%);
  box-shadow: 0 0 0 1px rgba(236, 123, 98, 0.3);
}

.dashboard-mini-chart__stat--network-upload strong {
  color: #8f3a2c;
}

.dashboard-mini-chart__stat--network-download em {
  color: #2e6ea8;
}

.dashboard-mini-chart__stat--network-download em::before {
  background: linear-gradient(180deg, #7dc6ff 0%, #4f97e8 100%);
  box-shadow: 0 0 0 1px rgba(84, 146, 218, 0.28);
}

.dashboard-mini-chart__stat--network-download strong {
  color: #275986;
}

.dashboard-mini-chart--resource .dashboard-mini-chart__plot {
  height: 118px;
}

.dashboard-mini-chart--resource .dashboard-mini-chart__plot-wrap {
  padding-right: 2.15rem;
}

.dashboard-mini-chart--resource .dashboard-mini-chart__plot-wrap--network {
  padding-right: 4.9rem;
}

.dashboard-mini-chart__zones {
  pointer-events: none;
}

.dashboard-mini-chart__zone {
  opacity: 0.12;
}

.dashboard-mini-chart__zone--high {
  fill: rgba(228, 98, 122, 0.35);
}

.dashboard-mini-chart__zone--medium {
  fill: rgba(248, 196, 99, 0.3);
}

.dashboard-mini-chart__zone--low {
  fill: rgba(117, 201, 156, 0.26);
}

.dashboard-mini-chart__levels {
  position: absolute;
  top: 0.34rem;
  bottom: 0.34rem;
  right: 0.05rem;
  width: 1.95rem;
  pointer-events: none;
}

.dashboard-mini-chart__levels span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.56rem;
  line-height: 1;
  color: rgba(70, 96, 123, 0.82);
}

.dashboard-mini-chart__levels--network {
  width: 4.65rem;
}

.dashboard-mini-chart__levels--network span {
  font-size: 0.54rem;
}

.dashboard-mini-chart__line--cpu {
  stroke-width: 1.5;
}

.dashboard-mini-chart__line--ram {
  stroke-width: 1.5;
}

.dashboard-mini-chart__line--disk {
  stroke-width: 1.5;
}

.dashboard-mini-chart__line--network {
  stroke-width: 1.5;
}

.dashboard-mini-chart__line--network-upload,
.dashboard-mini-chart__line--network-download {
  stroke-width: 1.6;
}

.dashboard-mini-chart__point--network-upload {
  fill: #ffb19f;
  filter: drop-shadow(0 1px 2px rgba(236, 123, 98, 0.32));
}

.dashboard-mini-chart__point--network-download {
  fill: #8fcbff;
  filter: drop-shadow(0 1px 2px rgba(84, 146, 218, 0.32));
}

.dashboard-mini-chart__line--memory {
  stroke-width: 1.5;
}

@keyframes dashboardChartShine {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  84% {
    transform: translateX(120%);
  }
}

@keyframes dashboardSparkle {
  0% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.78;
  }
  100% {
    opacity: 0.22;
  }
}

.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid rgba(23, 38, 63, 0.09);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.84);
}

.dashboard-list strong {
  display: block;
}

.dashboard-list__item--link {
  position: relative;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-list__item--link:hover,
.dashboard-list__item--link:focus-within {
  background: rgba(236, 245, 255, 0.92);
  border-color: rgba(88, 143, 204, 0.34);
  box-shadow: 0 8px 20px rgba(52, 98, 147, 0.08);
}

.dashboard-list__overlay-link {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 1;
}

.dashboard-list__overlay-link:focus-visible {
  outline: 2px solid rgba(64, 127, 196, 0.82);
  outline-offset: 2px;
}

.dashboard-list small,
.dashboard-list span {
  font-size: 0.8rem;
  color: rgba(22, 37, 60, 0.7);
}

.dashboard-system-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-system-panel {
  border-radius: 14px;
  border: 1px solid rgba(28, 45, 74, 0.1);
  background: linear-gradient(178deg, rgba(250, 253, 255, 0.98), rgba(242, 248, 255, 0.9));
  padding: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dashboard-system-panel--wide {
  grid-column: 1 / -1;
}

.dashboard-system-panel h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 38, 66, 0.8);
}

.dashboard-system-facts {
  margin: 0;
  display: grid;
  gap: 0.46rem;
}

.dashboard-system-facts--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-system-facts div {
  padding: 0.56rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(24, 43, 73, 0.09);
  background: rgba(252, 254, 255, 0.82);
}

.dashboard-system-facts dt {
  margin: 0;
  font-size: 0.67rem;
  color: rgba(23, 39, 64, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-system-facts dd {
  margin: 0.24rem 0 0;
  color: #122848;
  font-size: 0.82rem;
  font-weight: 600;
  word-break: break-word;
}

.dashboard-system-chart {
  border-radius: 12px;
  border: 1px solid rgba(29, 47, 76, 0.1);
  background: rgba(248, 252, 255, 0.74);
  padding: 0.62rem;
}

.dashboard-system-chart--pool {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: center;
}

.dashboard-system-gauge {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
}

.dashboard-system-gauge svg {
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.dashboard-system-gauge__track,
.dashboard-system-gauge__ring {
  fill: none;
  stroke-linecap: round;
}

.dashboard-system-gauge__track {
  stroke: rgba(181, 199, 225, 0.5);
  stroke-width: 8;
}

.dashboard-system-gauge__ring {
  stroke-width: 8;
}

.dashboard-system-gauge__ring--connections {
  stroke: rgba(65, 141, 255, 0.46);
}

.dashboard-system-gauge__ring--busy {
  stroke: rgba(26, 103, 219, 0.88);
  stroke-width: 9;
}

.dashboard-system-gauge > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.dashboard-system-gauge strong {
  font-size: 1.08rem;
  line-height: 1;
  color: #0f315f;
}

.dashboard-system-gauge small {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  color: rgba(20, 47, 83, 0.63);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-system-bars {
  display: grid;
  gap: 0.46rem;
}

.dashboard-system-bars__item {
  display: grid;
  gap: 0.22rem;
}

.dashboard-system-bars__item label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(22, 42, 72, 0.62);
}

.dashboard-system-bars__item strong {
  font-size: 0.76rem;
  color: #10325e;
}

.dashboard-system-bars__meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(176, 198, 230, 0.34);
  overflow: hidden;
}

.dashboard-system-bars__meter span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.dashboard-system-bars__meter .is-busy {
  background: linear-gradient(90deg, #1d6be8, #3f8af8);
}

.dashboard-system-bars__meter .is-connection {
  background: linear-gradient(90deg, #5d8ff2, #77a7ff);
}

.dashboard-system-bars__meter .is-free {
  background: linear-gradient(90deg, #7ecf9d, #64b888);
}

.dashboard-system-footprint {
  height: 16px;
  border-radius: 999px;
  background: rgba(170, 191, 221, 0.28);
  overflow: hidden;
  display: flex;
}

.dashboard-system-footprint span {
  display: block;
  min-width: 2px;
  height: 100%;
}

.dashboard-system-footprint .is-db {
  background: linear-gradient(90deg, #316ec7, #4289ee);
}

.dashboard-system-footprint .is-storage {
  background: linear-gradient(90deg, #6cb7d7, #8fdaee);
}

.dashboard-system-footprint__legend {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.dashboard-system-footprint__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: rgba(17, 37, 66, 0.74);
}

.dashboard-system-footprint__legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-system-footprint__legend .is-db {
  background: #3d7fe0;
}

.dashboard-system-footprint__legend .is-storage {
  background: #86d5ec;
}

.dashboard-system-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.dashboard-system-resources--single {
  grid-template-columns: minmax(0, 220px);
}

.dashboard-system-live {
  display: grid;
  gap: 0.54rem;
}

.dashboard-system-live__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.64rem;
  flex-wrap: wrap;
  padding: 0.44rem 0.54rem;
  border-radius: 11px;
  border: 1px solid rgba(27, 45, 73, 0.11);
  background: linear-gradient(180deg, rgba(254, 255, 255, 0.95), rgba(244, 249, 255, 0.88));
}

.dashboard-system-live__status {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #144174;
}

.dashboard-system-live__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #2a84f3;
  box-shadow: 0 0 0 4px rgba(42, 132, 243, 0.16);
  animation: dashboardSystemPulse 1.5s ease-in-out infinite;
}

.dashboard-system-live__status.is-syncing .dashboard-system-live__dot {
  background: #3ea3e2;
  box-shadow: 0 0 0 4px rgba(62, 163, 226, 0.18);
}

.dashboard-system-live__status.is-paused .dashboard-system-live__dot {
  background: #7f96b5;
  box-shadow: 0 0 0 4px rgba(127, 150, 181, 0.2);
  animation: none;
}

.dashboard-system-live__status.is-error .dashboard-system-live__dot {
  background: #d35263;
  box-shadow: 0 0 0 4px rgba(211, 82, 99, 0.22);
  animation: none;
}

.dashboard-system-live__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.dashboard-system-live__interval {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(15, 46, 83, 0.84);
}

.dashboard-system-live__interval select {
  min-width: 84px;
  border-radius: 999px;
  border: 1px solid rgba(41, 77, 122, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: #163a66;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem 0.2rem;
  outline: none;
}

.dashboard-system-live__interval select:focus {
  border-color: rgba(39, 112, 214, 0.48);
  box-shadow: 0 0 0 3px rgba(46, 130, 232, 0.16);
}

.dashboard-system-live__toggle {
  border: 1px solid rgba(37, 72, 117, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 247, 255, 0.92));
  color: #173f72;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.72rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dashboard-system-live__toggle:hover {
  border-color: rgba(42, 108, 202, 0.44);
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(227, 239, 255, 0.92));
}

.dashboard-system-live__toggle:active {
  transform: translateY(1px);
}

.dashboard-system-live__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.74rem;
  color: rgba(35, 64, 99, 0.66);
}

.dashboard-resource-card {
  border: 1px solid rgba(27, 45, 73, 0.11);
  background: linear-gradient(178deg, rgba(251, 254, 255, 0.98), rgba(242, 248, 255, 0.9));
  border-radius: 12px;
  padding: 0.5rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.dashboard-resource-card__gauge {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
}

.dashboard-resource-card__gauge svg {
  width: 82px;
  height: 82px;
  transform: rotate(-90deg);
}

.dashboard-resource-card__track,
.dashboard-resource-card__value {
  fill: none;
  stroke-linecap: round;
}

.dashboard-resource-card__track {
  stroke: rgba(175, 197, 226, 0.48);
  stroke-width: 7;
}

.dashboard-resource-card__value {
  stroke-width: 7;
}

.dashboard-resource-card--cpu .dashboard-resource-card__value {
  stroke: #2f7dee;
}

.dashboard-resource-card--ram .dashboard-resource-card__value {
  stroke: #35a4da;
}

.dashboard-resource-card--disk .dashboard-resource-card__value {
  stroke: #e39032;
}

.dashboard-resource-card--network .dashboard-resource-card__value {
  stroke: #f06f52;
}

.dashboard-resource-card--memory .dashboard-resource-card__value {
  stroke: #5fb7a2;
}

.dashboard-resource-card__gauge span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: #18365f;
}

.dashboard-resource-card__meta {
  text-align: center;
  display: grid;
  gap: 0.1rem;
}

.dashboard-resource-card__meta strong {
  font-size: 0.69rem;
  color: #122e56;
}

.dashboard-resource-card__meta em {
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  color: #173d6f;
}

.dashboard-resource-card__meta small {
  font-size: 0.62rem;
  color: rgba(21, 43, 75, 0.66);
}

@keyframes dashboardSystemPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .dashboard-page__kpis,
  .dashboard-page__grid,
  .dashboard-system-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-page__kpis,
  .dashboard-page__grid,
  .dashboard-metrics,
  .dashboard-system-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-card {
    min-height: 0;
  }

  .dashboard-page__header-actions {
    width: 100%;
  }

  .dashboard-window-switch {
    width: 100%;
  }

  .dashboard-mini-chart {
    padding: 0.84rem 0.82rem 0.74rem;
  }

  .dashboard-mini-chart__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .dashboard-mini-chart__stats {
    grid-template-columns: 1fr;
  }

  .dashboard-mini-chart__stats--resource {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-mini-chart--resource .dashboard-mini-chart__plot-wrap {
    padding-right: 1.9rem;
  }

  .dashboard-mini-chart--resource .dashboard-mini-chart__plot-wrap--network {
    padding-right: 4.2rem;
  }

  .dashboard-system-trends {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-mini-chart__plot {
    height: 112px;
  }

  .dashboard-system-chart--pool {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-system-facts--compact {
    grid-template-columns: 1fr;
  }

  .dashboard-system-resources {
    grid-template-columns: 1fr;
  }

  .dashboard-system-live__toolbar {
    align-items: flex-start;
  }

  .dashboard-system-live__controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .dashboard-system-live__interval {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }

  .dashboard-system-live__interval select {
    width: 100%;
  }
}
