:root {
  --bg: #070c18;
  --bg-gradient-1: rgba(47, 125, 255, 0.20);
  --bg-gradient-2: rgba(46, 229, 157, 0.14);
  --bg-gradient-3: rgba(55, 215, 255, 0.10);
  --surface-1: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-3: rgba(255, 255, 255, 0.04);
  --surface-4: rgba(255, 255, 255, 0.05);
  --surface-5: rgba(255, 255, 255, 0.06);
  --surface-6: rgba(255, 255, 255, 0.07);
  --surface-7: rgba(255, 255, 255, 0.10);
  --surface-8: rgba(255, 255, 255, 0.12);
  --surface-9: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --text-1: rgba(255, 255, 255, 0.86);
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.75);
  --text-4: rgba(255, 255, 255, 0.70);
  --text-5: rgba(255, 255, 255, 0.68);
  --text-6: rgba(255, 255, 255, 0.62);
  --panel: var(--surface-2);
  --panel2: var(--surface-4);
  --muted: var(--text-5);
  --border: var(--surface-7);
  --border-1: var(--surface-8);
  --border-2: var(--surface-9);
  --focus-ring: rgba(255, 255, 255, 0.35);
  --topbar-bg: rgba(7, 12, 24, 0.72);
  --primary: #2f7dff;
  --green: #2ee59d;
  --converosms-green: #33ab58;
  --cyan: #37d7ff;
  --glowBlue: rgba(47, 125, 255, 0.24);
  --glowGreen: rgba(46, 229, 157, 0.18);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --control-gap: 10px;
  --scrollbar-size: 8px;
  --scrollbar-size-sidebar: 6px;
  --scrollbar-track: rgba(255, 255, 255, 0.08);
  --scrollbar-thumb: var(--primary);
  --scrollbar-thumb-hover: #4a8fff;
  --scrollbar-gradient: linear-gradient(180deg, var(--primary) 0%, var(--green) 55%, var(--cyan) 100%);
  --scrollbar-gradient-hover: linear-gradient(180deg, #4a8fff 0%, #3aedab 55%, #5de4ff 100%);
  --scrollbar-sidebar-thumb: rgba(255, 255, 255, 0.34);
  --scrollbar-sidebar-thumb-hover: rgba(255, 255, 255, 0.52);
  /* Custom dropdown colors tuned to match sidebar */
  --custom-select-list-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  --custom-select-option-hover: rgba(148, 163, 184, 0.25);
  --disabled-state-bg: rgba(251, 191, 36, 0.08);
  --disabled-state-border: rgba(251, 191, 36, 0.45);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-gradient-1: rgba(47, 125, 255, 0.12);
  --bg-gradient-2: rgba(46, 229, 157, 0.10);
  --bg-gradient-3: rgba(55, 215, 255, 0.08);
  --surface-1: rgba(15, 23, 42, 0.02);
  --surface-2: rgba(15, 23, 42, 0.03);
  --surface-3: rgba(15, 23, 42, 0.04);
  --surface-4: rgba(15, 23, 42, 0.06);
  --surface-5: rgba(15, 23, 42, 0.08);
  --surface-6: rgba(15, 23, 42, 0.10);
  --surface-7: rgba(15, 23, 42, 0.12);
  --surface-8: rgba(15, 23, 42, 0.16);
  --surface-9: rgba(15, 23, 42, 0.22);
  --text: #0f172a;
  --text-1: rgba(15, 23, 42, 0.86);
  --text-2: rgba(15, 23, 42, 0.78);
  --text-3: rgba(15, 23, 42, 0.68);
  --text-4: rgba(15, 23, 42, 0.60);
  --text-5: rgba(15, 23, 42, 0.55);
  --text-6: rgba(15, 23, 42, 0.50);
  --focus-ring: rgba(47, 125, 255, 0.35);
  --topbar-bg: rgba(247, 249, 252, 0.92);
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
  --scrollbar-track: rgba(15, 23, 42, 0.08);
  --scrollbar-thumb: var(--primary);
  --scrollbar-thumb-hover: #1a6ae6;
  --scrollbar-gradient: linear-gradient(180deg, var(--primary) 0%, var(--green) 55%, var(--cyan) 100%);
  --scrollbar-gradient-hover: linear-gradient(180deg, #1a6ae6 0%, #1cb87a 55%, #12b8d9 100%);
  --scrollbar-sidebar-thumb: rgba(47, 125, 255, 0.42);
  --scrollbar-sidebar-thumb-hover: rgba(47, 125, 255, 0.62);
  --custom-select-list-bg: #ffffff;
  --custom-select-option-hover: rgba(15, 23, 42, 0.08);
  --disabled-state-bg: rgba(217, 119, 6, 0.12);
  --disabled-state-border: rgba(217, 119, 6, 0.42);
  color-scheme: light;
}

:root[data-theme="light"] .brandLink__mark {
  color: var(--primary);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  background:
    radial-gradient(900px 550px at 15% -10%, var(--bg-gradient-1), transparent 60%),
    radial-gradient(850px 500px at 85% -10%, var(--bg-gradient-2), transparent 60%),
    radial-gradient(900px 650px at 50% 110%, var(--bg-gradient-3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* App shell uses .main as the single vertical scroll container. */
body:not(.publicBody) {
  overflow: hidden;
}

/* Avoid a second native scrollbar on html when .main handles scrolling. */
html:has(body:not(.publicBody)) {
  overflow: hidden;
}

/* Theme-aware custom scrollbar (Firefox + WebKit). */
.main,
.publicMain,
body.publicBody.publicFormShell {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.sidebar__nav {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-sidebar-thumb) transparent;
}

html::-webkit-scrollbar,
.main::-webkit-scrollbar,
.publicMain::-webkit-scrollbar,
body.publicBody.publicFormShell::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.sidebar__nav::-webkit-scrollbar {
  width: var(--scrollbar-size-sidebar);
  height: var(--scrollbar-size-sidebar);
}

html::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track,
.publicMain::-webkit-scrollbar-track,
body.publicBody.publicFormShell::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.publicMain::-webkit-scrollbar-thumb,
body.publicBody.publicFormShell::-webkit-scrollbar-thumb {
  background: var(--scrollbar-gradient);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
.main::-webkit-scrollbar-thumb:hover,
.publicMain::-webkit-scrollbar-thumb:hover,
body.publicBody.publicFormShell::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-gradient-hover);
}

.sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--scrollbar-sidebar-thumb);
  border-radius: 999px;
}

.sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-sidebar-thumb-hover);
}

/* Hide native arrow buttons in Chrome/Linux scrollbars. */
html::-webkit-scrollbar-button,
.main::-webkit-scrollbar-button,
.publicMain::-webkit-scrollbar-button,
body.publicBody.publicFormShell::-webkit-scrollbar-button,
.sidebar__nav::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text); }

.layout { display: flex; height: 100vh; height: 100dvh; }
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--surface-4), var(--surface-1));
  border-right: 1px solid var(--border);
  padding: 14px;
  transition: width 160ms ease;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  position: relative;
  flex-shrink: 0;
}
.sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sidebar__top::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -14px;
  bottom: -8px;
  /* No background in light theme; tinted only in dark via theme override below */
  background: transparent;
  border-radius: 0;
  z-index: -1;
}
.sidebar__top::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 2px;
  height: 1px;
  background: var(--border);
}

/* Keep sidebar header background/line aligned when collapsed */
body.sidebar-collapsed .sidebar__top::before {
  top: -14px;
  bottom: 0;
}
body.sidebar-collapsed .sidebar__top::after {
  bottom: 0;
}

/* Keep sidebar header background neutral in dark theme */
:root:not([data-theme="light"]) .sidebar__top::before {
  background: transparent;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  flex: 1;
}
.sidebar__brandMark {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar__brandText { white-space: nowrap; }
.sidebar__brandLogo {
  width: 100%;
  height: auto;
  max-height: 52px;
  display: block;
  object-fit: contain;
}
.sidebar__brandLogo--dark {
  display: none;
}
:root:not([data-theme="light"]) .sidebar__brandLogo--light {
  display: none;
}
:root:not([data-theme="light"]) .sidebar__brandLogo--dark {
  display: block;
}
.brandLink__logo {
  height: 34px;
  width: auto;
  display: block;
}
.brandLink__logo--dark {
  display: none;
}
:root:not([data-theme="light"]) .brandLink__logo--light {
  display: none;
}
:root:not([data-theme="light"]) .brandLink__logo--dark {
  display: block;
}
.sidebar__toggle {
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  border-radius: 10px;
  padding: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  cursor: pointer;
}
.sidebar__toggle:hover { background: var(--surface-6); }
.sidebar__toggle .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.sidebar__toggle .icon svg {
  display: block;
}
.sidebar__toggle .icon--chevron { display: none; }

.sidebar__org {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 10px;
  margin-bottom: 12px;
}
.sidebar__orgLabel { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sidebar__orgName { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar__section + .sidebar__section {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.sidebar__sectionLabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 2px 10px 2px;
}

.sidebar__section--primary {
  margin-bottom: 8px;
}

.sidebar__nav .navItem {
  display: block;
  padding: 7px 14px 7px 20px;
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}
.sidebar__nav .navItem:hover {
  background: var(--surface-5);
  color: var(--text);
  transform: translate(2px, -1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.sidebar__nav .navItem.is-active { background: rgba(47, 125, 255, 0.20); color: var(--text); }
.sidebar__nav .navItem.is-active .icon { color: var(--primary); }
.sidebar__nav .navItem .icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar__nav .navItem .label { white-space: nowrap; }
.sidebar__footer .navItem { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; color: var(--muted); }
.sidebar__footer .navItem:hover { background: var(--surface-5); color: var(--text); }
.sidebar__footer .navItem--logout:hover .label { color: #ff6b6b; }

.sidebar__footer {
  flex-shrink: 0;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
body.sidebar-collapsed .sidebar__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.sidebar-collapsed .sidebar__sectionLabel {
  display: none;
}

/* Visual separator between apps and logout in sidebar footer */
.sidebar__footer .navItem--logout {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  display: none;
}

body.sidebar-collapsed .sidebar { width: 78px; padding: 14px 10px; }
body.sidebar-collapsed .sidebar__brandText { display: none; }
body.sidebar-collapsed .sidebar__brand { display: none; }
body.sidebar-collapsed .sidebar__org { display: none; }
body.sidebar-collapsed .sidebar__brandMark { display: none; }
body.sidebar-collapsed .sidebar__top {
  justify-content: center;
  gap: 0;
  min-height: 62px;
}
body.sidebar-collapsed .sidebar__toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.sidebar-collapsed .sidebar__toggle .icon--menu { display: none; }
body.sidebar-collapsed .sidebar__toggle .icon--chevron { display: inline-flex; }
body.sidebar-collapsed .sidebar__nav .navItem { justify-content: center; padding: 12px 10px; }
body.sidebar-collapsed .sidebar__nav .navItem .label { display: none; }
body.sidebar-collapsed .sidebar__nav .navItem.is-active { background: rgba(47, 125, 255, 0.18); color: var(--text); }
body.sidebar-collapsed .sidebar__footer .navItem { justify-content: center; padding: 12px 10px; }
body.sidebar-collapsed .sidebar__footer .navItem .label { display: none; }
body.sidebar-collapsed .sidebar__appIcon {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  padding: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 24, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
}
.theme[data-theme="light"] .modalOverlay,
:root[data-theme="light"] .modalOverlay {
  background: rgba(0, 0, 0, 0.55);
}
.modalOverlay[hidden] { display: none; }
.modalOverlay:not([hidden]) { display: flex; }

.modalPanel {
  background: #0b1220 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
}
.modalPanel .muted {
  color: rgba(255, 255, 255, 0.72);
}
.modalPanel h1,
.modalPanel h2,
.modalPanel h3,
.modalPanel h4 {
  color: rgba(255, 255, 255, 0.95);
}
.modalPanel .btn:not(.btn--danger) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}
.modalPanel .btn:not(.btn--danger):hover {
  background: rgba(255, 255, 255, 0.14);
}
.modalPanel .btn.btn--green {
  color: #ffffff;
  background: rgba(46, 229, 157, 0.38);
  border-color: rgba(46, 229, 157, 0.55);
}
.modalPanel .btn.btn--green:hover {
  background: rgba(46, 229, 157, 0.50);
}
.theme[data-theme="light"] .modalPanel,
:root[data-theme="light"] .modalPanel {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.92);
}
.theme[data-theme="light"] .modalPanel .muted,
:root[data-theme="light"] .modalPanel .muted {
  color: rgba(51, 65, 85, 0.86);
}
.theme[data-theme="light"] .modalPanel h1,
.theme[data-theme="light"] .modalPanel h2,
.theme[data-theme="light"] .modalPanel h3,
.theme[data-theme="light"] .modalPanel h4,
:root[data-theme="light"] .modalPanel h1,
:root[data-theme="light"] .modalPanel h2,
:root[data-theme="light"] .modalPanel h3,
:root[data-theme="light"] .modalPanel h4 {
  color: rgba(15, 23, 42, 0.96);
}
.theme[data-theme="light"] .modalPanel .btn:not(.btn--danger),
:root[data-theme="light"] .modalPanel .btn:not(.btn--danger) {
  color: rgba(15, 23, 42, 0.9);
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.06);
}
.theme[data-theme="light"] .modalPanel .btn:not(.btn--danger):hover,
:root[data-theme="light"] .modalPanel .btn:not(.btn--danger):hover {
  background: rgba(15, 23, 42, 0.10);
}
.theme[data-theme="light"] .modalPanel .btn.btn--green,
:root[data-theme="light"] .modalPanel .btn.btn--green {
  color: #ffffff;
  background: #16a34a;
  border-color: transparent;
}
.theme[data-theme="light"] .modalPanel .btn.btn--green:hover,
:root[data-theme="light"] .modalPanel .btn.btn--green:hover {
  background: #15803d;
}

/* QR logo picker: “Remove logo” — half the width of the 2-col + 10px gap row above, centered */
.modalPanel__removeLogoRow {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}
.modalPanel .btn.btn--remove-qr-logo {
  color: #ef4444 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  width: calc((100% - 10px) / 2);
  max-width: 100%;
  justify-content: center;
}
.modalPanel .btn.btn--remove-qr-logo:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
}
.theme[data-theme="light"] .modalPanel .btn.btn--remove-qr-logo,
:root[data-theme="light"] .modalPanel .btn.btn--remove-qr-logo {
  color: #dc2626 !important;
  background: transparent !important;
  border: none !important;
}
.theme[data-theme="light"] .modalPanel .btn.btn--remove-qr-logo:hover,
:root[data-theme="light"] .modalPanel .btn.btn--remove-qr-logo:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
}

.modalCloseIcon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.modalCloseIcon:hover,
.modalCloseIcon:focus-visible {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  opacity: 1 !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.modalCloseIcon:active {
  transform: translateY(1px);
  background: #dc2626 !important;
  color: #ffffff !important;
}
.modalCloseIcon:focus-visible {
  outline: none;
}
.modalCloseIcon span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.btn--danger {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #ef4444 !important;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn--danger::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6a1 1 0 0 1 1 1v1h4v2H4V5h4V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M6 8h12l-1 11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L6 8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6a1 1 0 0 1 1 1v1h4v2H4V5h4V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M6 8h12l-1 11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L6 8z'/%3E%3C/svg%3E");
}
.btn--danger:hover {
  background-color: #ef4444 !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.appTopbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 18px 0;
  margin-left: 0;
  margin-right: 0;
  background: linear-gradient(to right, rgba(12, 30, 58, 0.92), rgba(4, 9, 20, 0.98));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.appTopbar__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-4);
  padding-left: 120px;
}
.appTopbar__user { font-weight: 600; color: var(--text); }
.appTopbar__sep { opacity: 0.6; }
.appTopbar__org { font-family: var(--font-mono, monospace); }
.appTopbar__right {
  display: flex;
  align-items: center;
  gap: var(--control-gap);
  padding-right: 100px;
}

.appTopbar__icons {
  display: inline-flex;
  align-items: center;
  gap: var(--control-gap);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs__item {
  font-size: 0.9rem;
  color: var(--text-3);
}

.breadcrumbs__item--current {
  color: var(--text-1);
  font-weight: 600;
}

.breadcrumbs__sep {
  color: var(--text-5);
}

.appTopbar__greeting {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

.appTopbar__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  font-size: 12px;
  color: var(--text-3);
}
.appTopbar__dateIcon {
  flex-shrink: 0;
  opacity: 0.9;
}


.sidebar__appIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  position: relative;
}

.sidebar__appTooltip {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-6);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar__appIcon:hover .sidebar__appTooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

:root[data-theme="light"] .appTopbar {
  background: linear-gradient(to right, #e5edf7, #f9fafb);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}
.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  box-sizing: border-box;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
}
.iconButton svg {
  display: block;
}
.iconButton:hover { background: var(--surface-6); }
.iconButton--plain {
  border: none;
  background: transparent;
  border-radius: 999px;
}
/* Icon-only eye / visibility controls — shared circular hover (tables, forms, API token). */
.iconButton.iconButton--plain,
.passwordToggle,
.orgApiTokenControl__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-5);
  box-sizing: border-box;
  flex-shrink: 0;
}
.iconButton--plain:hover,
.passwordToggle:hover,
.orgApiTokenControl__toggle:hover,
.iconButton.iconButton--plain:focus-visible,
.passwordToggle:focus-visible,
.orgApiTokenControl__toggle:focus-visible {
  background: var(--surface-6);
  color: var(--text-2);
  border: none;
}
.iconButton.themeToggle .icon { display: none; }
:root[data-theme="light"] .iconButton.themeToggle .icon--moon { display: inline-flex; }
:root:not([data-theme="light"]) .iconButton.themeToggle .icon--sun { display: inline-flex; }
.langSwitch--app select { min-height: 38px; }
.langSwitch--app .langSwitch__customSelect {
  width: fit-content;
  min-width: unset;
  max-width: unset;
}
.langSwitch--app .langSwitch__customSelect .customSelect__trigger {
  width: auto;
  min-height: 38px;
  height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}
.langSwitch--app .langSwitch__customSelect .customSelect__list {
  left: 0;
  right: auto;
  width: max-content;
  min-width: 100%;
}
.iconButton--logout:hover {
  /* Use neutral hover styling (no red accent) */
  color: var(--text);
  border-color: var(--border);
}

.main {
  flex: 1;
  padding: 0 0 26px 0;
  overflow-y: auto;
  height: 100vh;
}
.centerPanel {
  max-width: 720px;
  margin: 24px auto 0 auto;
  text-align: center;
}
.centerPanel .centerField {
  max-width: 520px;
  margin: 0 auto;
}
.centerPanel .centerField input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
}
.centerPanel .row {
  justify-content: center;
}

/* Wide create-link layout: match edit-page card width. */
.centerPanel.centerPanel--wide {
  max-width: 1100px;
}
.centerPanel.centerPanel--wide .centerField {
  max-width: none;
}

.publicFormInput {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 8px auto 16px auto;
}

.publicFormPhoneGroup {
  max-width: 420px;
  margin: 8px auto 16px auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.publicFormPhoneGroup .customSelect {
  flex: 0 0 150px;
}

.publicFormPhoneGroup .publicFormInput {
  margin: 0;
  flex: 1 1 auto;
}

/* Create link page */
.linkCreate {
  padding: 20px 18px 22px 18px;
}

.linkCreate__title {
  margin: 0 0 6px 0;
}

.linkCreate__subtitle {
  margin: 0 0 16px 0;
}

.linkCreate__form {
  margin-top: 4px;
}

/* Create link: keep labels + counters left-aligned. */
.linkCreate__form .centerField {
  text-align: left;
}

.linkCreate__domainField {
  margin-bottom: 12px;
}

.linkCreate__domainField > label {
  display: block;
  margin-bottom: 8px;
}

.linkCreate__domainLocked {
  font-size: 15px;
  font-weight: 650;
  padding: 10px 12px;
  border: 1px solid var(--border-1);
  border-radius: 10px;
  background: var(--surface-2);
  display: inline-block;
  min-width: min(100%, 17rem);
}

.surveyCreate__domainField {
  margin-bottom: 12px;
}

.surveyCreate__domainField > label {
  display: block;
  margin-bottom: 8px;
}

.surveyCreate__domainHelp {
  font-size: 13px;
  margin: 8px 0 0 0;
}

.linkCreate__actions {
  margin: 16px 0 12px 0;
  display: flex;
  justify-content: center;
}

.linkCreate__regenHint {
  font-size: 13px;
  margin: 6px 0 12px 0;
  color: var(--muted-text);
}

/* Keep short-link availability preview compact and single-line. */
.linkCreate .inputGroup--center .inputPrefix,
.linkCreate .inputGroup--center input {
  font-size: 12px;
  line-height: 1.2;
}
.linkCreate .inputGroup--center .inputPrefix {
  white-space: nowrap;
}

/* A/B variant B URL: centered only on create-link (centerPanel). Edit/detail layouts use full width so labels and inputs align left. */
.centerPanel .linkCreate__abVariantB input[inputmode="url"] {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
}
.appContent {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 12px 24px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.publicMain { padding: 28px 18px; }
.publicBody {
  /* Let the body grow with its content (override html,body{height:100%})
     so the sticky topbar's containing block is the full page height and
     the header stays pinned while scrolling. */
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.publicBody .publicMain {
  flex: 1;
}

/* Public landing header (ConveroLINK marketing pages): match SMS header logo sizing/position */
body.publicBody .topbar {
  padding: 0.75rem 2rem; /* matches SMS landing header spacing */
}

body.publicBody .topbar__inner {
  max-width: 1200px; /* matches SMS header-content max width */
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.publicBody .topbar {
  display: block; /* let the inner wrapper handle flex layout */
}

body.publicBody .brandLink__logo {
  width: 160px;
  height: auto;
  max-width: 160px;
}

body.publicBody .brandLink__mark {
  padding: 0; /* SMS landing uses the logo without extra wrapper padding */
  border-radius: 0;
}

/* Survey / respondent full-page forms: no topbar/footer; Edge needs a real scroll box. */
body.publicBody.publicFormShell {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: auto;
}
body.publicBody.publicFormShell > main.publicMain {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.publicFooter {
  border-top: 1px solid var(--border);
  padding: 26px 26px;
}
.publicFooter__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.publicFooter__text {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  color: var(--text-5);
  text-align: center;
}
.publicFooter__links {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.publicFooter__links a {
  color: var(--text-4);
  text-decoration: none;
  font-size: 14px;
}
.publicFooter__links a:hover {
  color: var(--text-2);
  text-decoration: underline;
}
/* Switch footer to stacked/mobile layout earlier (tablet widths)
   so long legal link labels don't wrap awkwardly on one line. */
@media (max-width: 1024px) {
  .publicFooter__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .publicFooter__text {
    grid-column: 1;
    grid-row: auto;
  }
  .publicFooter__links {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .publicFooter__links a {
    display: block;
    color: var(--text-4);
    line-height: 1.2;
    text-align: center;
  }
  .publicFooter__links a:hover {
    color: var(--text-2);
    text-decoration: underline;
  }
}
.publicThankYou {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
}
.publicThankYou__inner {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.publicThankYou__logoWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.publicThankYou__logo {
  width: 72px;
  height: auto;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(47, 125, 255, 0.16);
  border: 1px solid rgba(47, 125, 255, 0.32);
}
/* Match header/sidebar logo background in dark mode */
:root:not([data-theme="light"]) .publicThankYou__logo {
  background: #cad7f1;
  border-color: rgba(233, 240, 255, 0.7);
}
.publicThankYou__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px auto;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid rgba(34, 197, 94, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.publicThankYou__check {
  font-size: 40px;
  color: #22c55e;
}
.publicThankYou__spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.5);
  border-top-color: #e5e7eb;
  animation: publicThankYouSpin 0.7s linear infinite;
  margin: 12px auto 0 auto;
}
@keyframes publicThankYouSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.publicThankYou__title {
  font-size: 26px;
  margin: 8px 0 4px 0;
}
.publicThankYou__text {
  font-size: 15px;
  color: var(--muted);
}
.publicThankYou__text + .publicThankYou__text {
  margin-top: 10px;
  font-size: 14px;
}

/* Public survey: highlight unanswered required questions */
.publicFormQuestion.publicFormQuestion--error {
  border: 1px solid #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

/* Public survey: respondent info card emphasis */
.publicRespondentCard {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.8);
}
.publicRespondentCard__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  display: block;
}
.publicRespondentCard__value {
  margin: 6px 0 0 0;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: block;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.publicRespondentCard__value--name {
  background: rgba(47, 125, 255, 0.16);
}
.publicRespondentCard__value--phone {
  background: rgba(47, 125, 255, 0.16);
}
.publicRespondentCard__value--email {
  background: rgba(47, 125, 255, 0.16);
}

/* Public survey pages: center title, copy, labels, and actions */
body.publicFormShell .publicSurveyPage {
  text-align: center;
}
body.publicFormShell .publicSurveyPage h1[data-page-title] {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}
body.publicFormShell .publicSurveyPage > p,
body.publicFormShell .publicSurveyPage > .muted {
  text-align: center;
}
body.publicFormShell .publicSurveyPage .card {
  text-align: center;
}
body.publicFormShell .publicSurveyPage label {
  text-align: center;
}
body.publicFormShell .publicSurveyPage .publicFormQuestion__header {
  justify-content: center;
}
body.publicFormShell .publicSurveyPage .publicFormQuestion__choices {
  text-align: center;
}
body.publicFormShell .publicSurveyPage .publicFormQuestion__choices label {
  text-align: center;
}
body.publicFormShell .publicSurveyPage .publicFormCharCounter {
  text-align: center !important;
}
body.publicFormShell .publicSurveyPage form > .btn {
  display: inline-flex;
}
body.publicFormShell .publicSurveyPage .message {
  text-align: center;
}

.messages { margin-bottom: 16px; }
.message { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); }
.message--error { border-color: rgba(255, 90, 90, 0.35); }
.message--success { border-color: rgba(46, 229, 157, 0.35); }

/* Toast notifications */
.toastStack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}
.toast {
  min-width: 320px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--success {
  border-color: rgba(46, 229, 157, 0.75);
  background: rgba(46, 229, 157, 0.18);
}
.toast--error {
  border-color: rgba(239, 68, 68, 0.85);
  background: rgba(239, 68, 68, 0.18);
}
.toast--warning {
  border-color: rgba(252, 211, 77, 0.9);
  background: rgba(252, 211, 77, 0.16);
}
.toast--info {
  border-color: rgba(46, 229, 157, 0.75);
  background: rgba(46, 229, 157, 0.18);
}

.inputWarnTooltip {
  position: fixed;
  z-index: 1200;
  max-width: 320px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.75);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.inputWarnTooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.disabledStateRow {
  background: var(--disabled-state-bg);
}
.disabledStateNotice {
  border-color: var(--disabled-state-border) !important;
  background: var(--disabled-state-bg) !important;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

th {
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.01);
}

tbody tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--surface-3);
}

.clickRow {
  cursor: pointer;
}
.clickRow:hover td {
  background: var(--surface-2);
  border-bottom-color: transparent;
}

/* Keep list table rows compact and consistent. */
.linksList__table th,
.linksList__table td,
.domainList__table th,
.domainList__table td {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}

/* Normalize row height across list tables.
   OTP/expiration icons should not make some rows taller than others. */
.linksList__table tbody td,
.qrList__table tbody td,
.surveysList__table tbody td {
  min-height: 46px;
  vertical-align: middle;
}

input, select, button, textarea {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
}
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
button:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--focus-ring);
  border-color: var(--border-2);
}

textarea {
  resize: vertical;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Chrome/WebKit: global input background covers the native color swatch. */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: 3px;
  min-height: 40px;
  cursor: pointer;
  color-scheme: dark;
}
:root[data-theme="light"] input[type="color"] {
  color-scheme: light;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border);
  border-radius: 8px;
}
input[type="color"]::-moz-color-swatch {
  border: 1px solid var(--border);
  border-radius: 8px;
}

button { cursor: pointer; }
button:not(:disabled):hover { background: var(--surface-6); }

/* Custom radio + checkbox controls across the app */
input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--surface-2);
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}
input[type="radio"]::before,
input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  background: #22c55e;
}
input[type="checkbox"]::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
input[type="radio"]:checked,
input[type="checkbox"]:checked {
  border-color: rgba(34, 197, 94, 0.75);
  background: rgba(34, 197, 94, 0.18);
}
input[type="radio"]:checked::before,
input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}
input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brandLink { display:flex; align-items:center; gap: 10px; font-weight: 900; letter-spacing: .2px; }
.brandLink__mark {
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 4px 6px;
  background: transparent;
  border: none;
  color: inherit;
}
:root:not([data-theme="light"]) .brandLink__mark {
  background: transparent;
  border-color: transparent;
}
.brandLink__text { white-space: nowrap; }
.topbar__right { display:flex; align-items:center; gap: 10px; }
.topbar__link { color: var(--text-2); padding: 9px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; }
.topbar__link:hover { background: var(--surface-6); border-color: var(--border); color: var(--text); }
.topbar__link:focus-visible { background: var(--surface-6); border-color: var(--border); color: var(--text); outline: none; }
.topbar__btn,
.topbar__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.topbar__btn { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-3); }
.topbar__btn:hover { background: var(--surface-6); border-color: var(--border); }
.topbar__btn--primary { background: rgba(47,125,255,0.22); border-color: rgba(47,125,255,0.40); box-shadow: 0 0 0 1px rgba(47,125,255,0.12) inset; }
.topbar__btn--primary:hover { background: rgba(47,125,255,0.30); }

/* language switcher */
.langSwitch select {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
}
.langSwitch select:hover { background: var(--surface-6); }
.langSwitch--sidebar select { width: 100%; }

/* ---- New UI primitives ---- */
.container { max-width: 1100px; margin: 0 auto; }
.section { margin: 22px 0; }
.kicker { color: var(--muted); font-weight: 650; letter-spacing: .18px; font-size: 13px; text-transform: uppercase; }
.h1 { font-size: 54px; line-height: 1.03; margin: 14px 0 10px 0; letter-spacing: -0.8px; }
.h2 { font-size: 28px; margin: 0 0 10px 0; letter-spacing: -0.2px; }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.65; max-width: 72ch; }
.lead--wide { max-width: none; }
.muted { color: var(--muted); }
/* Make helper paragraphs a bit more readable globally. */
p.muted { font-size: 13.5px !important; line-height: 1.5 !important; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--center { justify-content: center; }
.grid { display:grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Dashboard recent links + QR: explicit columns so stacked mobile cards match width */
.dashboardRecentGrid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
@media (max-width: 720px) {
  .dashboardRecentGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-5), var(--surface-1));
  box-shadow: 0 1px 0 var(--surface-5) inset;
  padding: 16px;
}
.card:hover { border-color: var(--border-2); }
.card--glow {
  box-shadow: 0 0 0 1px rgba(47,125,255,0.12) inset, 0 18px 60px rgba(0,0,0,.55);
}
.card--heroShadow {
  box-shadow: var(--shadow);
}
.card--current {
  background: linear-gradient(180deg, var(--surface-7), var(--surface-3));
  border-color: rgba(47, 125, 255, 0.78);
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(47, 125, 255, 0.28) inset,
    0 0 0 3px rgba(47, 125, 255, 0.14),
    0 14px 42px rgba(8, 19, 46, 0.45);
}
.badge {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}
.badge--green { border-color: rgba(46,229,157,.28); background: rgba(46,229,157,.10); color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-sizing: border-box;
}
a.btn:hover,
a.btn:focus {
  text-decoration: none;
  color: var(--text);
}
.btn:hover { background: var(--surface-6); }
.btn--primary { background: rgba(47,125,255,0.25); border-color: rgba(47,125,255,0.45); box-shadow: 0 0 0 1px rgba(47,125,255,0.10) inset; }
.btn--primary:hover { background: rgba(47,125,255,0.34); }
.btn--green { background: rgba(46,229,157,0.18); border-color: rgba(46,229,157,0.40); }
.btn--green:hover { background: rgba(46,229,157,0.24); }
.btn--ghost { background: transparent; }
.btn--disabled,
.btn.btn--disabled {
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: rgba(203, 213, 225, 0.62) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.btn--disabled:hover,
.btn.btn--disabled:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: rgba(203, 213, 225, 0.62) !important;
}
:root[data-theme="light"] .btn--disabled,
:root[data-theme="light"] .btn.btn--disabled {
  background: rgba(148, 163, 184, 0.18) !important;
  border-color: rgba(100, 116, 139, 0.30) !important;
  color: rgba(71, 85, 105, 0.55) !important;
}
.btn--current {
  background: rgba(47, 125, 255, 0.18) !important;
  border-color: rgba(47, 125, 255, 0.52) !important;
  color: #eaf1ff !important;
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.22) inset !important;
  cursor: default !important;
}
.btn--current:hover {
  background: rgba(47, 125, 255, 0.18) !important;
  border-color: rgba(47, 125, 255, 0.52) !important;
  color: #eaf1ff !important;
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.22) inset !important;
}
/* Make active/current plan stand out in light theme as well. */
:root[data-theme="light"] .card--current {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.18) inset,
    0 0 0 3px rgba(37, 99, 235, 0.14),
    0 12px 34px rgba(15, 23, 42, 0.16);
}
:root[data-theme="light"] .btn--current {
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.36) !important;
  color: #1e3a8a !important;
}
.btn--sm {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

/* Gradient campaign CTA — app topbar + public topbar (must follow .btn rules) */
.btn.appTopbar__campaignBtn {
  border: 1px solid rgba(56, 189, 248, 0.85);
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 11px;
  min-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 0 18px rgba(56, 189, 248, 0.55);
  animation: appTopbarCampaignPulse 1.6s ease-in-out infinite;
}
.btn.appTopbar__campaignBtn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 55%, #4338ca 100%);
  border-color: rgba(147, 197, 253, 0.85);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.3), 0 0 10px rgba(99, 102, 241, 0.35);
  color: #ffffff !important;
}
a.btn.appTopbar__campaignBtn:hover,
a.btn.appTopbar__campaignBtn:focus {
  text-decoration: none;
  color: #ffffff !important;
}
.btn.appTopbar__campaignBtn:focus,
.btn.appTopbar__campaignBtn:active,
.btn.appTopbar__campaignBtn:visited {
  color: #ffffff !important;
}
@keyframes appTopbarCampaignPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 0 12px rgba(56, 189, 248, 0.45);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 0 24px rgba(139, 92, 246, 0.75);
  }
}

.btn--lg {
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.btn .btn__leadIcon {
  flex-shrink: 0;
  display: block;
}
.btn .btn__leadPlus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.9em;
  min-width: 0.9em;
  line-height: 1;
  font-size: 1.12em;
  font-weight: 800;
  transform: translateY(-0.03em);
}
.btn:has(.btn__leadPlus) {
  gap: 6px;
}
/* Org settings: “Go” (link + icon) vs “Edit” (button) same row height */
.orgSettingsSmsActions {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.orgSettingsSmsActions > .btn.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
}
.btnSpinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  box-sizing: border-box;
  animation: btnSpinnerRotate 0.7s linear infinite;
}
@keyframes btnSpinnerRotate {
  to {
    transform: rotate(360deg);
  }
}
.textLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
}
.textLink:hover { color: var(--text); background: var(--surface-5); }
.textLink--muted { color: var(--text-5); }
.textLink--inline {
  display: inline;
  padding: 0;
  border-radius: 0;
  vertical-align: baseline;
}
.textLink--inline:hover {
  background: transparent;
  text-decoration: underline;
}
.textLink--emphasis {
  font-weight: 700;
  color: var(--text);
}

/* Legal / policy pages: inline cross-links match emphasized text style. */
.legalDoc a.textLink {
  display: inline;
  padding: 0;
  border-radius: 0;
  vertical-align: baseline;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.legalDoc a.textLink:hover {
  background: transparent;
  text-decoration: underline;
  color: var(--text);
}
.stackCenter { display:flex; flex-direction: column; align-items: center; gap: 8px; }
.authSecondary { margin-top: 18px; }
.authTitle { text-align: center; }
.authActions { margin-top: 22px; padding: 12px 0 28px; }
.authForm .authTurnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0 22px;
}
.authForm .authTurnstile .authTurnstile__widget {
  margin: 0;
}
.hero {
  padding: 34px 0 22px 0;
}
.hero__panel {
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(700px 260px at 18% 0%, rgba(47,125,255,0.18), transparent 60%),
    radial-gradient(700px 260px at 82% 0%, rgba(46,229,157,0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-4), var(--surface-1));
  padding: 26px 18px;
  box-shadow: var(--shadow);
}
.hero__panel--withQr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
}
.hero__content {
  min-width: 0;
}
.hero__qrWrap {
  display: flex;
  justify-content: flex-start;
  padding-right: 20px;
}
.hero__qrImage {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-1);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.hero__paidPlans {
  font-size: 0.7em;
}
.pillTabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-2);
  gap: 6px;
}
.pillTabs button {
  border: 0;
  background: transparent;
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: 999px;
}
.pillTabs button.is-active {
  background: rgba(47,125,255,0.26);
  color: var(--text);
}
.priceCard__head { display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.priceCard__titleRow { display: inline-flex; align-items: center; gap: 8px; }
.priceCard__head--growth .priceCard__titleRow { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.priceCard__recommended { margin: 0; width: fit-content; }
.price { font-weight: 950; letter-spacing: -0.4px; }
.price__line { display: inline-flex; align-items: flex-end; gap: 4px; }
.price__amount {
  font-size: 44px;
  line-height: 1.05;
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.price__currency {
  font-size: 0.46em;
  line-height: 1.15;
  font-weight: 800;
  opacity: 0.96;
  transform: translateY(-0.14em);
}
.price__currency--symbol {
  font-size: 0.62em;
  transform: translateY(-0.08em);
}
.price__number {
  font-size: 1em;
  line-height: 1;
}
.price__per { color: var(--text-4); font-size: 14px; font-weight: 700; }
.pricingCard__top { min-height: 140px; }
.pricingCards .price__amount { font-size: 40px; line-height: 1.02; }
.pricingCards .price__line { margin-bottom: 0; }
.pricingCards .price__per { font-size: 16px; line-height: 1.1; margin-bottom: 0; }
.pricingCards .priceCard__head { min-height: 32px; }
.price__annualHint { font-size: 12px; color: var(--text-5); margin-top: 2px; min-height: 18px; display: block; }
.price__annualHintPercent { color: #16a34a; font-weight: 700; }
.price__promoSlot {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}
.price__twoMonthsFree {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  animation: cnvrTwoMonthsFreeFlash 1.2s ease-in-out infinite;
}

@keyframes cnvrTwoMonthsFreeFlash {
  0% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(34, 197, 94, 0);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
  }
  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.02);
    /* Stronger glow for a shinier look. */
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.9), 0 0 26px rgba(34, 197, 94, 0.45);
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.55));
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(34, 197, 94, 0);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
  }
}
.checklist { margin: 12px 0 0 0; padding: 0; list-style: none; }
.checklist li { display:flex; gap: 10px; padding: 8px 0; color: var(--text-2); border-top: 1px solid var(--surface-7); }
.checklist li:first-child { border-top: 0; }
/* Redirect interstitial footnote: legend for "Unlimited redirects*" on plan cards */
/* Grows under price + CTA so redirect footnote can sit at card bottom (see .planCardRedirectFootnote). */
.pricingCard__features {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pricingCards > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.planCardRedirectFootnote {
  font-size: 12px;
  line-height: 1.4;
  padding-top: 0;
}
/* First footnote after checklist: absorb vertical space so legends sit at card bottom. */
.pricingCard__features > ul + .planCardRedirectFootnote {
  margin-top: auto;
  padding-top: 14px;
}
/* Stack multiple legends tightly (e.g. analytics + coming soon). */
.pricingCard__features > .planCardRedirectFootnote ~ .planCardRedirectFootnote {
  margin-top: 0;
  padding-top: 4px;
}

.boolIcon {
  font-size: 15px;
}
.boolIcon--true {
  color: rgba(46, 229, 157, 0.95);
}
.boolIcon--false {
  color: rgba(255, 120, 120, 0.95);
}

.inputGroup {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-3);
  overflow: hidden;
}
.inputGroup--center {
  max-width: 460px;
  width: 100%;
}
.inputGroup .inputPrefix {
  padding: 10px 12px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  background: var(--surface-1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.inputGroup input {
  border: 0;
  background: transparent;
  width: 100%;
  border-radius: 0;
}
.inputGroup input:focus,
.inputGroup input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Username input: base username + fixed "@ orgslug" suffix */
.inputGroup--username {
  padding: 0;
}
.inputGroup--username input {
  flex: 1;
  padding: 9px 10px;
  min-width: 0;
}
.inputGroup__at,
.inputGroup__suffix {
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  border-left: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--muted);
  white-space: nowrap;
}
.inputGroup__suffix {
  flex: 1;
  justify-content: flex-start;
  background: var(--surface-2);
  color: var(--text-3);
  min-width: 0;
}
.inputGroup.is-invalid {
  border-color: rgba(255, 90, 90, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.25);
}
.inputGroup.is-invalid .inputPrefix {
  border-right-color: rgba(255, 90, 90, 0.6);
  color: rgba(255, 190, 190, 0.95);
}
.input--invalid {
  border-color: rgba(255, 90, 90, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.25);
}
.inputGroup.is-valid {
  border-color: rgba(46, 229, 157, 0.7);
  box-shadow: 0 0 0 1px rgba(46, 229, 157, 0.2);
}

/* Phone country selector: allow dropdown to extend outside wrapper */
[data-phone-wrapper] {
  overflow: visible;
  position: relative;
}
[data-phone-wrapper] .customSelect__trigger {
  font-size: 0.75rem;
  line-height: 1.3;
}
[data-phone-wrapper] .customSelect__triggerText,
[data-phone-wrapper] .customSelect__label {
  font-size: inherit;
  line-height: inherit;
}
[data-phone-wrapper] .customSelect__option {
  font-size: 0.75rem;
  line-height: 1.3;
}

.input--disabled-preview {
  cursor: not-allowed;
  opacity: 0.75;
  background: var(--surface-2);
}

.codeStatus {
  margin-top: 6px;
  font-size: 13px;
}
.codeStatus--error {
  color: rgba(255, 120, 120, 0.95);
}

/* Password mismatch message (created by JS with data-pw-match="true").
   Make it look like the pwRules items (with the red ✕ icon). */
[data-pw-match="true"] {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  /* Align with pwRules indentation (rules ul has margin-left: 18px). */
  margin: 8px 0 0 18px;
  /* Inherit font sizing so it matches the surrounding pwRules text. */
  font-size: inherit;
  line-height: inherit;
}

[data-pw-match="true"]::before {
  content: "✕";
  width: 18px;
  flex: 0 0 18px;
  line-height: 1.2;
  font-weight: 900;
  font-size: inherit;
}
.codeStatus--ok {
  color: rgba(46, 229, 157, 0.95);
}

.pwRules {
  list-style: none;
}
.pwRules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
}
.pwRules__icon {
  width: 18px;
  flex: 0 0 18px;
  line-height: 1.2;
  font-weight: 900;
}
.pwRules__text {
  flex: 1;
}

.shortLinkDisplay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 18px;
}
.shortLinkBase {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.shortLinkCode {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.shortLinkRow {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.qrList {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qrRow {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-5), var(--surface-1));
  box-shadow: 0 1px 0 var(--surface-5) inset;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qrRow__url {
  word-break: break-all;
  color: var(--text);
}
.qrRow__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qrRow__right img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.statCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-top: 12px;
  padding-bottom: 12px;
}

.statCard--withIcon {
  padding-right: 84px;
}
.statLabel {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.statValue {
  font-size: 28px;
  font-weight: 800;
}
.statValue--totals {
  font-size: 18px;
  font-weight: 600;
}
.statTotalsRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.statTotalsLabel {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}
.statTotalsValue {
  font-size: 24px;
  font-weight: 850;
}
.statTotalsDivider {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.statHint {
  color: var(--muted);
  font-size: 13px;
}

.statIcon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.statIcon svg {
  width: 22px;
  height: 22px;
}

.statIcon--link {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.35);
  color: #2563eb;
}

.statIcon--qr {
  background: rgba(20, 184, 166, 0.24);
  border-color: rgba(20, 184, 166, 0.36);
  color: #0f766e;
}

.miniList {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.bioLinksSettings {
  max-width: 360px;
  margin: 0 auto;
}
.bioLinksSettings__empty {
  text-align: center;
  font-size: 14px;
}
.bioLinksAddForm {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.bioLinksAddForm .formRow {
  text-align: center;
}
.bioLinksAddForm .formRow input:not([type="checkbox"]):not([type="radio"]),
.bioLinksAddForm .formRow select,
.bioLinksAddForm .formRow textarea {
  width: 100%;
}
.bioLinksAddForm .formRow input[type="checkbox"],
.bioLinksAddForm .formRow input[type="radio"] {
  display: inline-block;
  margin-left: 0;
  margin-right: 0;
}
.bioLinksAddForm__actions {
  display: flex;
  justify-content: center;
}
.miniRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.miniRow__main {
  min-width: 0;
}
.miniRow__mainLink {
  display: block;
  color: inherit;
  text-decoration: none;
}
.miniRow__mainLink:hover,
.miniRow__mainLink:focus-visible {
  text-decoration: none;
}
.miniRow__content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.miniRow__icon {
  flex-shrink: 0;
}
.miniRow__text {
  min-width: 0;
}

/* Simple tooltip for upgrade hints */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tooltip__icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #ffffff;
  background: transparent;
}

.tooltip__bubble {
  position: absolute;
  left: 50%;
  bottom: 135%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 460px;
  white-space: normal;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid var(--border-1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 20;
}

.tooltip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tooltip:hover .tooltip__bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* In light mode, invert tooltip colors so it stands out */
:root[data-theme="light"] .tooltip__bubble {
  background: #0f172a;
  color: #f9fafb;
  border-color: rgba(15, 23, 42, 0.7);
}

:root[data-theme="light"] .tooltip__bubble::after {
  border-color: #0f172a transparent transparent transparent;
}
.miniRow__title {
  font-weight: 700;
  word-break: break-all;
}
.miniRow__sub {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
  margin-top: 3px;
}

/* Dashboard (and similar): clamp long target URLs without stretching the row */
.miniRow__targetLine {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.miniRow__targetFavicon {
  flex-shrink: 0;
  margin-top: 1px;
}
.miniRow__clampLines1,
.miniRow__clampLines2 {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.miniRow__clampLines1 {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.miniRow__clampLines2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.miniRow__title.miniRow__targetLine {
  word-break: normal;
  align-items: center;
}
.miniRow__title.miniRow__targetLine .miniRow__targetFavicon {
  margin-top: 0;
}

.miniRow__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.miniRow__right img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.check {
  width: 22px; height: 22px; border-radius: 8px;
  background: rgba(46,229,157,0.14);
  border: 1px solid rgba(46,229,157,0.28);
  display:inline-flex; align-items:center; justify-content:center;
  flex: 0 0 auto;
}
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Bio settings: columns align to content height (avoid stretching form card to match links column) */
.bioSettingsLayout {
  align-items: start;
}

.bioSettingsEditorCard {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

.bioSettingsTabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  background: var(--surface-2);
}

.bioSettingsTabs__tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bioSettingsTabs__tab:hover {
  color: var(--text);
  background: var(--surface-3);
}

.bioSettingsTabs__tab.is-active {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--border-1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bioSettingsTabPanel[hidden] {
  display: none !important;
}

.bioSettingsTabPanel__actions {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.bioSettingsOpenPublicIcon {
  flex-shrink: 0;
  opacity: 0.92;
}

/* Single-row actions so page title vertical alignment matches links/list headers */
.bioSettingsHeaderActions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
/* Invisible URL duplicate sizes the pill so "Copied" does not shrink it */
.bioSettingsCopyBtn {
  display: inline-grid;
  justify-items: stretch;
  align-items: center;
  max-width: min(100%, 420px);
  box-sizing: border-box;
}
.bioSettingsCopyBtn__sizer,
.bioSettingsCopyBtn__label {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.bioSettingsCopyBtn__sizer {
  visibility: hidden;
  pointer-events: none;
}

/* Bio page settings form layout */
.bioSettingsForm {
  max-width: 720px;
  margin: 0 auto;
}
.bioSettingsForm .formRow input:not([type="checkbox"]):not([type="radio"]),
.bioSettingsForm .formRow select,
.bioSettingsForm .formRow textarea {
  width: 100%;
}
.bioSettingsForm .formRow input[type="checkbox"],
.bioSettingsForm .formRow input[type="radio"] {
  width: 18px;
  height: 18px;
}
.bioSettingsForm .formGrid .formRow + .formRow {
  margin-top: 0;
}
.bioSettingsForm .authActions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 10px;
}
.bioSettingsImageControl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr);
  gap: 16px;
  align-items: center;
}
.bioSettingsImageControl__uploadPane {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.bioSettingsImageControl__previewPane {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.bioSettingsImageControl__clearInput {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.bioSettingsImageControl__uploadTrigger {
  position: relative;
  display: inline-flex;
  vertical-align: top;
}
.bioSettingsImageControl__uploadTrigger .bioSettingsImageControl__fileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.bioSettingsImageControl__uploadTrigger .bioSettingsImageControl__uploadBtn {
  position: relative;
  z-index: 1;
  margin: 0;
  cursor: pointer;
}
.bioSettingsImageControl__uploadBtn,
.bioSettingsImageControl__clearBtn {
  width: fit-content;
}
.bioSettingsImageControl__preview {
  position: relative;
  width: 124px;
  height: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  overflow: hidden;
}
.bioSettingsImageControl__preview--hasImage {
  line-height: 0;
  cursor: pointer;
}
.bioSettingsImageControl__clearOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(2, 6, 23, 0.58);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  font: inherit;
  color: inherit;
}
.bioSettingsForm .formRow label.bioSettingsImageControl__clearOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-weight: inherit;
  color: inherit;
}
.bioSettingsImageControl__clearOverlay .btn--danger {
  pointer-events: none;
}
.bioSettingsImageControl__preview--hasImage:hover .bioSettingsImageControl__clearOverlay,
.bioSettingsImageControl__preview--hasImage:focus-within .bioSettingsImageControl__clearOverlay,
.bioSettingsImageControl__clearOverlay:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.bioSettingsImageControl__preview--hasImage:hover .bioSettingsImageControl__clearOverlay .btn--danger,
.bioSettingsImageControl__preview--hasImage:focus-within .bioSettingsImageControl__clearOverlay .btn--danger,
.bioSettingsImageControl__clearOverlay:focus-visible .btn--danger {
  background-color: #ef4444 !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.bioSettingsImageControl__empty {
  font-size: 13px;
  text-align: center;
}
.bioSettingsImageControl__empty--cleared {
  align-self: center;
}
.bioSettingsImageControl .help {
  margin: 6px 0 0 0;
}
.bioSettingsSaveBtn {
  position: relative;
}
.bioSettingsSaveBtn__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.bioSettingsSaveBtn.is-loading {
  pointer-events: none;
}
.bioSettingsSaveBtn.is-loading .bioSettingsSaveBtn__icon,
.bioSettingsSaveBtn.is-loading .bioSettingsSaveBtn__text {
  visibility: hidden;
}
.bioSettingsSaveBtn.is-loading .bioSettingsSaveBtn__spinner {
  display: inline-flex;
}
.bioSettingsForm .formRow textarea {
  min-height: 110px;
  line-height: 1.45;
  resize: vertical;
}

/* Bio page: make status dropdown more compact */
.bioSettingsForm .formRow--pageStatus .customSelect {
  max-width: 220px;
}

/* Survey create page polish */
.surveyCreate {
  max-width: 860px;
  margin: 0 auto;
}
.surveyCreate__subtitle {
  margin-top: 4px;
}
.surveyCreateForm {
  margin-top: 14px;
}
.surveyCreate__meta {
  padding: 18px;
}
.surveyCreate__meta .centerField + .centerField {
  margin-top: 12px;
}
.surveyCreate__meta input:not([type="checkbox"]):not([type="radio"]),
.surveyCreate__meta textarea {
  width: 100%;
}
.surveyCreate__contact {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.surveyCreate__contactTitle {
  font-weight: 700;
  margin: 0 0 8px 0;
}
/* Match short-link edit (signupLabel): bold primary line + muted helper below */
.surveyCreate__choiceLabel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
  color: var(--text-2);
  font-weight: 650;
  cursor: pointer;
}
.surveyCreate__choiceLabel input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
}
.surveyCreate__divider {
  margin: 22px 0;
}
.surveyCreate__questionCard {
  margin-bottom: 14px;
  padding: 16px;
  position: relative;
}
.surveyCreate__questionRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.surveyCreate__questionIndex {
  font-weight: 700;
}
.surveyCreate__questionInput {
  flex: 1;
  max-width: 100%;
}
.surveyCreate__requiredLabel {
  font-size: 13px;
  margin: 0 0 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.surveyCreate__block {
  margin-top: 8px;
}
.surveyCreate__block--answerType {
  margin-bottom: 10px;
}
.surveyCreate__optionInput {
  margin-bottom: 6px;
  display: block;
  width: 100%;
}
.surveyCreate__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* align option inputs horizontally with the question text input (which has a leading index like "1)") */
  margin-left: 24px;
}
.surveyCreate__optionRow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.surveyCreate__optionRow .surveyCreate__optionInput {
  margin-bottom: 0;
  flex: 1;
}
.surveyCreate__optionRemove {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-4);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.surveyCreate__optionSpacer {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.surveyCreate__optionRemove:hover {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.45);
}
.surveyCreate__optionFooter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}
.surveyCreate__allowCustomLabel {
  font-size: 13px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.surveyCreate__fullInput {
  width: 100%;
}
.surveyCreate__actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.surveyCreate__removeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-4);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.surveyCreate__removeBtn:hover {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.45);
}

.surveyCreate__questionControls {
  margin-top: 8px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.surveyCreate__addBtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 255, 0.5);
  background: rgba(47, 125, 255, 0.18);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.surveyCreate__addBtn:hover {
  background: rgba(47, 125, 255, 0.28);
}
.surveyCreate__addOptionBtn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 255, 0.5);
  background: rgba(47, 125, 255, 0.18);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 4px auto;
}
.surveyCreate__addOptionBtn:hover {
  background: rgba(47, 125, 255, 0.28);
}
.surveyCreate__optionFooter .surveyCreate__allowCustomLabel {
  align-self: flex-start;
  margin-top: 6px;
}
.surveyCreate__questionCount {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.listSortSelect .customSelect__trigger,
.listSortSelect select {
  min-width: 170px;
}
.linksList__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--control-gap);
  flex-wrap: wrap;
}
.linksList__filters {
  display: flex;
  align-items: center;
  gap: var(--control-gap);
  flex-wrap: nowrap;
}
.linksList__filters input[type="text"] {
  min-width: 260px;
}
.linksList__mobileTitle {
  display: none;
}
.linksList__mobileShort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.linksList__mobileFavicon {
  display: none;
  border-radius: 4px;
  flex: 0 0 auto;
}
.linksList__titleCell,
.qrList__titleCell {
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
}
.resourceListTitleRow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  vertical-align: bottom;
}
.resourceListTitleRow__text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resourceListOtpLockWrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--muted);
  opacity: 0.88;
}
.resourceListOtpLock {
  display: block;
}
a.resourceListTitleRow--link {
  color: inherit;
  text-decoration: none;
}
a.resourceListTitleRow--link:hover {
  text-decoration: underline;
}
.qrList__targetLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.qrList__targetCell {
  max-width: 620px;
  min-width: 0;
}
.qrList__targetText {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrList__mobileName {
  display: none;
}

.qrList__table th.qrList__scansCol,
.qrList__table td.qrList__scansCol {
  text-align: center;
  white-space: nowrap;
}

/* Desktop: keep target columns URL-only.
   Mobile overrides below switch to domain-only view. */
.linksList__targetDomain,
.qrList__targetDomain {
  display: none;
}
.surveysList__table {
  width: 100%;
  table-layout: fixed;
}
/* Match Links table row sizing exactly on desktop. */
.surveysList__table th,
.surveysList__table td {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}
.surveysList__titleCell {
  min-width: 0;
  overflow: hidden;
}
.surveysList__titleCell .resourceListTitleRow {
  max-width: 100%;
}
.surveysList__shareLink {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.surveyDetail__topRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.surveyDetail__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 20ch);
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.surveyDetail__toolbar {
  display: inline-flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  height: auto;
}

.surveyDetail__toolbar .btn {
  flex-shrink: 0;
  align-self: auto;
  height: auto;
}

.surveyDetail__description,
.surveyDetail__count {
  margin-left: 0;
  margin-right: 0;
}
.surveyDetail__copyLink {
  margin-top: 8px;
  width: 100%;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.surveyDetail__linksCard {
  padding: 12px 14px;
}
.surveyDetail__linksCard .linkDetail__linksGrid {
  margin-top: 0;
}
.surveyDetail__linksTitle {
  margin-bottom: 10px;
}
/* Survey detail: requirements list + optional QR on one row (wide viewports). */
.surveyDetail__settingsQrRow {
  margin-top: 8px;
}
.surveyDetail__settingsQrRow--hasQr {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
}
.surveyDetail__requirements {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}
.surveyDetail__metaQr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: min(132px, 100%);
}
.surveyDetail__metaQrWrap {
  margin-left: auto;
  text-align: center;
}
/* Survey detail: compact inline QR (full size still opens in global qrOverlay). */
.surveyDetail__metaQrImg {
  display: block;
  width: 132px;
  max-width: min(132px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: zoom-in;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.surveyDetail__editBtn--disabled {
  background: rgba(120, 130, 148, 0.22);
  border-color: rgba(120, 130, 148, 0.4);
  color: #b7c0d1;
  cursor: not-allowed;
  opacity: 0.9;
}
.surveyDetail__editBtn--disabled:hover {
  background: rgba(120, 130, 148, 0.22);
  border-color: rgba(120, 130, 148, 0.4);
}

/* Short link detail page */
.linkDetail {
  display: block;
}
.linkDetail__head .linkDetail__target {
  margin: 4px 0 0 0;
}

.linkDetail__head {
  padding-top: 22px;
  margin-bottom: 8px;
}

.linkDetail__backWrap {
  margin-left: auto;
}

/* Title + description hero: shared column width so both align on the same center axis */
.linkDetail__hero {
  padding-top: 4px;
  padding-bottom: 14px;
}
.linkDetail__hero--hasBadges {
  padding-bottom: 48px;
}
.linkDetail__heroStack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
  padding: 4px 16px 0;
  box-sizing: border-box;
}
.linkDetail__heroTitle {
  width: 100%;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.linkDetail__heroDesc {
  width: 100%;
  max-width: 62ch;
  margin: 0;
  text-align: center;
  white-space: normal;
}

/* Analytics day range: native select stays dark in dark theme (Chrome/WebKit) */
select.analyticsRangeSelect {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  color-scheme: dark;
}
:root[data-theme="light"] select.analyticsRangeSelect {
  color-scheme: light;
}
select.analyticsRangeSelect option {
  background: var(--surface-2);
  color: var(--text);
}

/* Expiration: native date picker follows theme where supported.
   Keep the date field at the compact UA-style size; hour customSelect matches it. */
input[type="date"]#id_expires_at_date {
  color-scheme: dark;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] input[type="date"]#id_expires_at_date {
  color-scheme: light;
}
input[type="date"]#id_expires_at_date::-webkit-datetime-edit,
input[type="date"]#id_expires_at_date::-webkit-datetime-edit-fields-wrapper,
input[type="date"]#id_expires_at_date::-webkit-datetime-edit-text,
input[type="date"]#id_expires_at_date::-webkit-datetime-edit-month-field,
input[type="date"]#id_expires_at_date::-webkit-datetime-edit-day-field,
input[type="date"]#id_expires_at_date::-webkit-datetime-edit-year-field {
  font-family: inherit;
  font-size: inherit;
  font-variant-numeric: inherit;
}

.analyticsRangeCustomSelect {
  width: auto;
  min-width: 118px;
}
.analyticsRangeCustomSelect .customSelect__trigger {
  min-width: 118px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
}
.analyticsRangeCustomSelect .customSelect__list {
  min-width: 100%;
}
.analyticsGeo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.analyticsGeo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.analyticsGeo__hint {
  margin: 5px 0 0;
  font-size: 13px;
}
.analyticsGeo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.analyticsGeo__toggleBtn {
  border-color: transparent;
  background: transparent;
}
.analyticsGeo__toggleBtn.is-active {
  color: var(--text);
  border-color: rgba(47, 125, 255, 0.48);
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.28), rgba(79, 70, 229, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 18px rgba(47, 125, 255, 0.12);
}
.analyticsGeo__chart {
  height: 240px;
}

/* Pricing manage: unpaid billing period warning */
.pricingManage__unpaidBanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.08);
}
.pricingManage__unpaidBannerMain {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}
.pricingManage__unpaidBannerIcon {
  flex-shrink: 0;
  color: #fca5a5;
  margin-top: 2px;
}
.pricingManage__unpaidBannerTitle {
  margin: 0;
  font-weight: 700;
  color: #fca5a5;
  line-height: 1.4;
}
.pricingManage__unpaidBannerHint {
  margin: 6px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(252, 165, 165, 0.92);
}
:root[data-theme="light"] .pricingManage__unpaidBanner {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 226, 226, 0.85);
  box-shadow: none;
}
:root[data-theme="light"] .pricingManage__unpaidBannerIcon,
:root[data-theme="light"] .pricingManage__unpaidBannerTitle {
  color: #b91c1c;
}
:root[data-theme="light"] .pricingManage__unpaidBannerHint {
  color: #991b1b;
}

/* Pricing manage: scheduled plan change (downgrade = yellow warning) */
.pricingManage__scheduledBanner--warning {
  border: 1px solid rgba(252, 211, 77, 0.55);
  background: rgba(252, 211, 77, 0.12);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.08);
}
.pricingManage__scheduledBanner--warning .pricingManage__scheduledBannerTitle {
  color: #fde68a;
}
.pricingManage__scheduledBanner--warning .pricingManage__scheduledBannerText {
  color: #fcd34d;
}
.pricingManage__scheduledBannerText--neutral {
  color: var(--muted);
}
:root[data-theme="light"] .pricingManage__scheduledBanner--warning {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(254, 243, 199, 0.9);
  box-shadow: none;
}
:root[data-theme="light"] .pricingManage__scheduledBanner--warning .pricingManage__scheduledBannerTitle {
  color: #92400e;
}
:root[data-theme="light"] .pricingManage__scheduledBanner--warning .pricingManage__scheduledBannerText {
  color: #b45309;
}

.orgServicesBanner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(252, 211, 77, 0.55);
  border-radius: 12px;
  background: rgba(252, 211, 77, 0.12);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.08);
}
.orgServicesBanner--public {
  margin-bottom: 14px;
}
.orgServicesBanner__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.orgServicesBanner__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fde68a;
}
.orgServicesBanner__title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #fde68a;
}
.orgServicesBanner__text {
  margin: 0;
  line-height: 1.55;
  color: #fcd34d;
  font-size: 14px;
}
:root[data-theme="light"] .orgServicesBanner {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(254, 243, 199, 0.9);
  box-shadow: none;
}
:root[data-theme="light"] .orgServicesBanner__icon,
:root[data-theme="light"] .orgServicesBanner__title {
  color: #92400e;
}
:root[data-theme="light"] .orgServicesBanner__text {
  color: #b45309;
}

/* Deferred downgrade confirmation: center card in main content */
.purchaseDeferredConfirm__wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.purchaseFlow__title {
  text-transform: none;
}

.purchaseDeferredConfirm__card {
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 22px;
}

/* Billing summary (payments): center breakdown card; comfortable inner padding */
.purchaseSummary__breakdownWrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.purchaseSummary__breakdownCard {
  max-width: 500px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 24px 26px 28px 40px;
}
.purchaseSummary__breakdownCard .purchaseSummary__table {
  width: 100%;
  border-collapse: collapse;
}
.purchaseSummary__breakdownCard .purchaseSummary__table td {
  padding: 14px 12px;
  vertical-align: top;
}
.purchaseSummary__breakdownCard .purchaseSummary__table tbody td:first-child {
  padding-left: 22px;
}
.purchaseSummary__breakdownCard .purchaseSummary__table tbody td:nth-child(2) {
  text-align: right;
  padding-right: 22px;
}
.purchaseSummary__breakdownCard .purchaseSummary__table td[colspan="2"] {
  padding-left: 22px;
  padding-right: 22px;
}
.purchaseSummary__breakdownCard .purchaseSummary__table .purchaseSummary__dueCell {
  vertical-align: top;
}
.purchaseSummary__dueAmounts {
  width: 100%;
}
.purchaseSummary__dueGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.75rem, max-content);
  column-gap: 14px;
  row-gap: 6px;
  align-items: baseline;
}
.purchaseSummary__dueGridLabel {
  justify-self: start;
  text-align: left;
  min-width: 0;
}
.purchaseSummary__dueGridAmt {
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.purchaseSummary__dueGrid--muted {
  font-size: 13px;
  color: var(--muted);
}
.purchaseSummary__dueGrid--muted .purchaseSummary__dueGridLabel {
  font-weight: 500;
}
.purchaseSummary__dueGrid--muted .purchaseSummary__dueGridAmt {
  font-weight: 600;
}
.purchaseSummary__dueAmounts--withVat .purchaseSummary__dueGrid--total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.purchaseSummary__dueGrid--total .purchaseSummary__dueGridLabel {
  font-weight: 700;
  font-size: 1em;
}
.purchaseSummary__dueGrid--total .purchaseSummary__dueGridAmt {
  font-weight: 900;
  font-size: 1.15em;
  color: var(--text-1);
}
.purchaseSummary__discountFinalDue {
  margin-top: 6px;
}
.purchaseSummary__breakdownCard .purchaseSummary__table .purchaseSummary__valueCell {
  font-weight: 700;
  color: var(--text-1);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.purchaseSummary__breakdownCard .purchaseSummary__valueCell .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .purchaseSummary__breakdownWrap {
    padding: 0 10px;
    box-sizing: border-box;
  }
  .purchaseSummary__breakdownCard {
    padding: 22px 20px 26px;
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table,
  .purchaseSummary__breakdownCard .purchaseSummary__table tbody,
  .purchaseSummary__breakdownCard .purchaseSummary__table tr {
    display: block;
    width: 100%;
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 2px;
    text-align: left;
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table tbody td:first-child {
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 6px;
    font-weight: 650;
    color: var(--text-1);
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table tbody td:nth-child(2) {
    text-align: left;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 16px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border);
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table tbody tr:last-child td:nth-child(2) {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table td[colspan="2"] {
    padding-left: 2px;
    padding-right: 2px;
    border-bottom: 0;
  }
  .purchaseSummary__breakdownCard .purchaseSummary__table .purchaseSummary__dueCell {
    padding: 10px 2px 14px;
  }
  .purchaseSummary__dueAmounts {
    padding: 0 2px;
  }
  .purchaseSummary__dueGrid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
}

/* Payment checkout: failed / pending fallback (success uses .publicThankYou) */
.checkoutSuccess__fallback {
  padding-top: 8px;
}

/* Purchase plan compare (payments) — global so HTMX fragment swaps still get styles */
.planCompareFlow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px 8px;
}
.planCompareFlow__card {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.planCompareFlow__arrow {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 8px 4px;
  order: 2;
}
.planCompareFlow__card--current {
  order: 1;
}
.planCompareFlow__card--new {
  order: 3;
}
@media (max-width: 720px) {
  .planCompareFlow__arrow {
    flex-basis: 100%;
    order: 2;
    padding: 4px 0;
  }
  .planCompareFlow__card--current {
    order: 1;
  }
  .planCompareFlow__card--new {
    order: 3;
  }
}
/* Beat .checklist li { color: var(--text-2) } */
.checklist.planCompareFeatList > li.planCompareFeat--better,
.checklist.planCompareFeatList > li.planCompareFeat--better span,
.checklist.planCompareFeatList > li.planCompareFeat--better strong {
  color: #22c55e;
}
.checklist.planCompareFeatList > li.planCompareFeat--worse,
.checklist.planCompareFeatList > li.planCompareFeat--worse span,
.checklist.planCompareFeatList > li.planCompareFeat--worse strong {
  color: #ef4444;
}
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--better,
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--better span,
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--better strong {
  color: #15803d;
}
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--worse,
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--worse span,
:root[data-theme="light"] .checklist.planCompareFeatList > li.planCompareFeat--worse strong {
  color: #b91c1c;
}

.linkDetail__linksCard {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.linkDetail__linksGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.linkDetail__shareSlot {
  margin-top: 6px;
}

.linkDetail__shareSlot .socialShare {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.linkDetail__shareSlot .socialShare__label {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  text-align: left;
  margin-bottom: 0;
  z-index: 1;
}

.linkDetail__shareSlot .socialShare__row {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
}

.linkDetail__linkColumn {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Right column: stack Target A and Target B (short link stays left). */
.linkDetail__linkTargetsColumn {
  gap: 12px;
}

.linkDetail__targetPair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.linkDetail__linkLabel {
  font-size: 12px;
  color: var(--text-3);
}

.linkDetail__linkBox {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  cursor: pointer;
  border-width: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  position: relative;
}

/* Keep the pill size stable when showing copy feedback. */
.linkDetail__linkBox.copyFeedback--success > * {
  visibility: hidden;
}
.linkDetail__linkBox.copyFeedback--success::after {
  content: attr(data-copied-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  pointer-events: none;
}

/* Shared copied state for all copy-to-clipboard controls. */
.copyFeedback--success {
  background: rgba(46, 229, 157, 0.2) !important;
  border-color: rgba(46, 229, 157, 0.55) !important;
  color: var(--text-1) !important;
  box-shadow: 0 0 0 1px rgba(46, 229, 157, 0.2) inset;
}

.linkDetail__card {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.linkDetail__stats {
  text-align: center;
}

/* A/B testing card on link/QR detail: extra air above the kicker. */
.linkDetail__abTestingCard {
  padding: 24px 16px 16px;
}

/* Space between the explanatory copy and the large A/B redirect counts. */
.linkDetail__abTestingCounts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  text-align: center;
}

.linkDetail__clicksNumber {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.linkDetail__clicksLabel {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.linkDetail__meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
  text-align: center;
  font-size: 13px;
}

.linkDetail__meta > div {
  min-width: 0;
  width: 100%;
}

.linkDetail__qr {
  text-align: center;
}

.linkDetail__qrLabel {
  font-size: 12px;
  margin-bottom: 6px;
}

.linkDetail__qrImageWrap {
  display: inline-block;
}

.linkDetail__qrImageLink {
  position: relative;
  display: inline-block;
  border-radius: 12px;
}

.linkDetail__qrImage {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: 160px;
  height: auto;
}

.linkDetail__qrImage--placeholder {
  filter: blur(4px) saturate(0.8);
  opacity: 0.9;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.linkDetail__qrOverlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #f8fafc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  white-space: nowrap;
}

.linkDetail__qrImageLink--placeholder:hover .linkDetail__qrOverlay,
.linkDetail__qrImageLink--placeholder:focus-visible .linkDetail__qrOverlay {
  opacity: 1;
}

.linkDetail__qrImageLink--placeholder:hover .linkDetail__qrImage--placeholder,
.linkDetail__qrImageLink--placeholder:focus-visible .linkDetail__qrImage--placeholder {
  filter: blur(3px) saturate(0.85);
  opacity: 0.97;
}

/* Locked analytics preview chart */
.lockedGraphCard {
  margin-top: 12px;
  padding: 16px;
}
.lockedGraphCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.lockedGraphCard__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.lockedGraph {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  height: 240px;
}
.lockedGraph__content {
  width: 100%;
  height: 100%;
  filter: blur(8px);
  transform: scale(1.02);
  opacity: 0.95;
}
.lockedGraph__content canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.lockedGraph__overlay {
  position: absolute;
  inset: 0;
  position: absolute;
  pointer-events: none;
}
.lockedGraph__lock {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 140ms ease;
}
.lockedGraph__lock svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.9);
}
.lockedGraph__hoverText {
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 4px));
  transition: opacity 140ms ease, transform 140ms ease;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 750;
  font-size: 13px;
  max-width: min(520px, calc(100% - 28px));
  text-align: center;
  line-height: 1.35;
}
.lockedGraph:hover .lockedGraph__lock {
  opacity: 0;
}
.lockedGraph:hover .lockedGraph__hoverText {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.linkDetail__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

/* QR generate page */
.qrGenerate__form {
  margin-top: 8px;
}

.qrGenerate__right {
  text-align: center;
}

.qrGenerate__logoRow {
  text-align: left;
}

.qrGenerate__previewText {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.qrGenerate__submit {
  margin-top: 12px;
  text-align: right;
}

/* List pagination: desktop = prev + pages + next; narrow = pages row, nav row below */
.pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.pagination__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.pagination__pages .btn {
  margin: 0;
}
.pagination__prev .btn,
.pagination__next .btn {
  margin: 0;
}
@media (max-width: 640px) {
  .pagination__inner {
    flex-wrap: wrap;
  }
  .pagination__pages {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Member create page */
.memberCreate {
  max-width: 1100px;
  margin: 0 auto;
}
.memberCreate__form {
  margin-top: 10px;
}
.memberCreate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.memberCreate__card {
  padding: 18px;
  height: 100%;
  box-sizing: border-box;
}
.memberCreate__cardTitle {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.membersList__mobile {
  display: none;
  width: 100%;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.membersList__mobileHead,
.membersList__mobileRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  width: 100%;
}

.membersList__mobileHead {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.membersList__mobileUserLabel {
  flex: 1 1 auto;
  min-width: 0;
}

.membersList__mobileActionsLabel {
  flex: 0 0 40px;
  text-align: center;
}

.membersList__mobileUser {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.membersList__mobileActions {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.membersList__mobileEmpty {
  margin: 0;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.membersList__table {
  width: 100%;
  table-layout: fixed;
}

.membersList__table th.membersList__actionsCol,
.membersList__table td.membersList__actionsCol {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}

.membersList__table th.membersList__roleCol,
.membersList__table td.membersList__roleCol {
  width: 11%;
}

.membersList__table th:nth-child(1),
.membersList__table td:nth-child(1) {
  width: 13%;
}

.membersList__table th:nth-child(2),
.membersList__table td:nth-child(2) {
  width: 11%;
}

.membersList__table th:nth-child(3),
.membersList__table td:nth-child(3) {
  width: 11%;
}

.membersList__table th:nth-child(4),
.membersList__table td:nth-child(4) {
  width: 22%;
}

.membersList__table th:nth-child(5),
.membersList__table td:nth-child(5) {
  width: 14%;
}

.membersList__table td.membersList__cellTruncate {
  overflow: hidden;
}

.membersList__ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.usageHistoryList {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}

.usageHistory__table {
  width: 100%;
  max-width: 100%;
}
.usageHistory__table th,
.usageHistory__table td {
  text-align: center;
}

.usageHistory__periodRange {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  max-width: 100%;
}

.usageHistory__periodDate {
  white-space: nowrap;
}

.usageHistory__periodSep {
  opacity: 0.7;
  line-height: 1;
}

.supportLatest__table,
.supportQuestions__table {
  width: 100%;
}
.memberCreate .formRow {
  margin-bottom: 10px;
}
.memberCreate .formGrid {
  margin-top: 4px;
  margin-bottom: 4px;
  gap: 10px;
}
.memberCreate .formRow input,
.memberCreate .formRow textarea,
.memberCreate .formRow select {
  width: 100%;
}
.memberCreate .formGrid .formRow + .formRow {
  margin-top: 0;
}
.memberCreate__permList {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memberCreate__permItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.memberCreate__actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 900px) {
  .memberCreate__grid {
    grid-template-columns: 1fr;
  }
}

/* Account settings page */
.accountSettings {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.accountSettings__lead {
  margin: 0 0 18px;
}
.accountSettings__topActions {
  position: absolute;
  top: 0.67em;
  right: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 10px;
}
.orgSettings {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.orgInfoCard__grid--address {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.orgInfoCard__title--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.orgInfoCard__title--split > span {
  min-width: 0;
}
.orgSettingsTableWrap {
  max-width: 100%;
  margin-top: 8px;
}
.orgSettingsTable {
  width: 100%;
}
.orgSettingsTable__statusCol {
  text-align: center;
}
.smsOriginatorRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.smsOriginatorRow__select {
  flex: 1 1 200px;
  max-width: min(100%, 320px);
  min-width: 0;
}
.smsDeliveryForm label.formRow {
  min-width: 0;
  max-width: 100%;
}
.smsDeliveryForm label.formRow > span {
  min-width: 0;
  flex: 1 1 auto;
}
/* API IP whitelist page */
.orgApiWhitelist__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  min-width: 0;
}
.orgApiWhitelist__headerText {
  min-width: 0;
  flex: 1 1 auto;
}
.orgApiWhitelist__intro {
  margin-bottom: 0;
}
.orgApiWhitelist__back {
  flex-shrink: 0;
}
.orgApiWhitelist__addCard {
  margin-bottom: 16px;
}
.orgApiWhitelist__addGrid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.orgApiWhitelist__addGrid > .formRow {
  min-width: 0;
  max-width: 100%;
}
.orgApiWhitelist__addGrid input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.orgApiWhitelist h1[data-page-title] {
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.orgApiWhitelist .card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.orgApiWhitelist .formRow label {
  overflow-wrap: anywhere;
}
.orgApiWhitelist__addActions {
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.orgApiWhitelist__addActions .btn {
  white-space: nowrap;
}
.orgApiWhitelist__tableWrap {
  margin-top: 12px;
}
.orgApiWhitelist__table th,
.orgApiWhitelist__table td {
  text-align: left;
  vertical-align: middle;
}
.orgApiWhitelist__table .orgApiWhitelist__actionCol {
  text-align: right;
  white-space: nowrap;
}
.orgApiWhitelist__ipCell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}
.orgApiWhitelist__dateCell {
  white-space: nowrap;
}
.orgApiWhitelist__deleteForm {
  display: inline;
  margin: 0;
}
.orgInfoCard {
  padding: 20px 22px;
}
.orgInfoCard__title {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 12px;
}
.orgInfoCard__grid {
  margin-top: 8px;
}
.orgInfoCard .orgInfoCard__grid--three {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}
/* Organization name / domain / logo — one row on desktop (2 + 2 + 1 of 5 tracks) */
@media (min-width: 821px) {
  .orgInfoCard .formGrid.orgInfoCard__grid--info {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 12px 20px;
  }
  .orgInfoCard .formGrid.orgInfoCard__grid--info > .formRow {
    min-width: 0;
    margin-top: 0;
  }
  .orgInfoCard .formGrid.orgInfoCard__grid--info .orgInfoCard__nameRow {
    grid-column: span 2;
  }
  .orgInfoCard .formGrid.orgInfoCard__grid--info .orgInfoCard__domainRow {
    grid-column: span 2;
  }
  .orgInfoCard .formGrid.orgInfoCard__grid--info .orgInfoCard__logoRow {
    grid-column: span 1;
    justify-self: start;
  }
}
.orgInfoCard__grid .formRow + .formRow {
  margin-top: 0;
}
.orgInfoCard__label {
  color: var(--text-5);
  font-size: 15px;
  margin-bottom: 2px;
}
.orgInfoCard__value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.orgLogoForm {
  margin-top: 10px;
}
.orgInfoCard__logoRow .orgLogoForm {
  margin-top: 0;
}
.orgLogoForm__previewWrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.orgLogoForm__previewWrap--hasLogo {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  border-radius: 14px;
}
.orgLogoForm__preview {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: contain;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  padding: 4px;
  box-sizing: border-box;
}
.orgLogoForm__hoverOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.orgLogoForm__hoverActions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: calc(100% - 8px);
}
.orgLogoForm__hoverBtn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.22);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  vertical-align: middle;
}
.orgLogoForm__hoverBtn--upload svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.orgLogoForm__hoverBtn--delete {
  color: #b91c1c;
}
.orgLogoForm__hoverBtn--delete .iconTrash {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.formRow .orgLogoForm .orgLogoForm__hoverBtn {
  margin-bottom: 0;
}

.orgLogoForm .orgLogoForm__hoverBtn:not(:disabled):hover,
.orgLogoForm .orgLogoForm__hoverBtn:not(:disabled):focus-visible {
  background: #cbd5e1;
  border-color: rgba(15, 23, 42, 0.28);
  opacity: 1;
}
.orgLogoForm__triggerBtn.is-loading {
  pointer-events: none;
}
.orgLogoForm__triggerBtn {
  position: relative;
}
.orgLogoForm__triggerSpinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.orgLogoForm__triggerBtn.is-loading .orgLogoForm__triggerText {
  visibility: hidden;
}
.orgLogoForm__triggerBtn.is-loading .orgLogoForm__triggerIcon {
  visibility: hidden;
}
.orgLogoForm__triggerBtn.is-loading .orgLogoForm__triggerSpinner {
  display: inline-flex;
}
.orgLogoForm__previewWrap--hasLogo.is-loading .orgLogoForm__hoverOverlay {
  opacity: 1;
  pointer-events: auto;
}
.orgLogoForm__hoverSpinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.orgLogoForm__previewWrap--hasLogo.is-loading .orgLogoForm__hoverActions {
  visibility: hidden;
}
.orgLogoForm__previewWrap--hasLogo.is-loading .orgLogoForm__hoverSpinner {
  display: inline-flex;
}
.otpColHead,
.otpColCell {
  width: 28px;
  min-width: 28px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  vertical-align: middle;
}
.expColHead,
.expColCell {
  width: 28px;
  min-width: 28px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  vertical-align: middle;
}
.otpColHead .resourceListOtpLockWrap,
.otpColCell .resourceListOtpLockWrap {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.expColHead .resourceListOtpLockWrap,
.expColCell .resourceListOtpLockWrap {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.otpColHead .resourceListOtpLock,
.otpColCell .resourceListOtpLock {
  display: block;
}
.orgLogoForm__previewWrap--hasLogo:hover .orgLogoForm__hoverOverlay,
.orgLogoForm__previewWrap--hasLogo:focus-within .orgLogoForm__hoverOverlay {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 980px) {
  .orgInfoCard .orgInfoCard__grid--three {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .orgSettings {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .orgSettings .card,
  .orgSettings .orgInfoCard {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .orgInfoCard {
    padding: 16px 14px;
  }
  .orgInfoCard__grid--address {
    grid-template-columns: 1fr;
  }
  .orgInfoCard__grid--info {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .orgInfoCard__grid--info .orgInfoCard__nameRow,
  .orgInfoCard__grid--info .orgInfoCard__domainRow,
  .orgInfoCard__grid--info .orgInfoCard__logoRow {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .orgInfoCard__logoRow .orgLogoForm {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .orgInfoCard__logoRow .orgLogoForm__previewWrap {
    align-items: center;
  }
  .orgInfoCard__logoRow .orgLogoForm__triggerBtn {
    margin-left: auto;
    margin-right: auto;
  }
  .orgInfoCard__title--split > .btn {
    max-width: 100%;
  }
  .smsOriginatorRow__select {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .orgSettingsTableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .orgSettings .orgSettingsTableWrap table.orgSettingsTable {
    display: table;
    width: 100%;
    min-width: 0;
    overflow-x: visible;
  }
  .orgSettings .orgApiTokenControl,
  .orgSettings .orgApiIdControl {
    max-width: 100%;
  }
  .orgSettings .orgApiTokenControl__input {
    max-width: 100%;
  }
  .orgApiWhitelist__addGrid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .orgApiWhitelist__addActions {
    justify-content: stretch;
  }
  .orgApiWhitelist__addActions .btn {
    width: 100%;
    justify-content: center;
  }
  .orgApiWhitelist__header {
    flex-direction: column;
    align-items: stretch;
  }
  .orgApiWhitelist__back {
    align-self: flex-start;
  }
  .orgApiWhitelist__addCard {
    padding: 14px 12px;
  }
  .orgApiWhitelist__tableWrap {
    overflow-x: visible;
    max-width: 100%;
    margin-top: 10px;
  }
  .orgApiWhitelist__table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .orgApiWhitelist__table thead {
    display: none;
  }
  .orgApiWhitelist__table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .orgApiWhitelist__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-3);
  }
  .orgApiWhitelist__entry td {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    text-align: left !important;
    white-space: normal;
    box-sizing: border-box;
    border: none;
  }
  .orgApiWhitelist__entry td::before {
    display: none;
  }
  .orgApiWhitelist__ipCell {
    grid-column: 1;
    grid-row: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-1);
    word-break: break-all;
  }
  .orgApiWhitelist__nameCell {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-2);
  }
  .orgApiWhitelist__nameCell::before {
    content: attr(data-label) " · ";
    display: inline;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-5);
  }
  .orgApiWhitelist__nameCell--empty {
    display: none;
  }
  .orgApiWhitelist__entry:has(.orgApiWhitelist__nameCell--empty) .orgApiWhitelist__dateCell {
    grid-row: 2;
  }
  .orgApiWhitelist__entry:has(.orgApiWhitelist__nameCell--empty) .orgApiWhitelist__actionCol {
    grid-row: 1 / span 2;
  }
  .orgApiWhitelist__dateCell {
    grid-column: 1;
    grid-row: 3;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-5);
  }
  .orgApiWhitelist__dateCell::before {
    content: attr(data-label) " · ";
    display: inline;
    font-size: 12px;
    font-weight: 600;
  }
  .orgApiWhitelist__actionCol {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .orgApiWhitelist__entry .orgApiWhitelist__deleteBtn {
    position: relative;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    justify-content: center;
    gap: 0;
  }
  .orgApiWhitelist__entry .orgApiWhitelist__deleteBtn::before {
    width: 18px;
    height: 18px;
    margin: 0;
  }
  .orgApiWhitelist__deleteBtnText {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .orgApiWhitelist__entry .orgApiWhitelist__deleteBtn:hover,
  .orgApiWhitelist__entry .orgApiWhitelist__deleteBtn:focus-visible {
    background: #ef4444 !important;
    border-color: transparent !important;
    color: #fff !important;
  }
}
.supportLayout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.supportSide {
  display: grid;
  gap: 16px;
  align-content: start;
}
.supportFaqList {
  display: grid;
  gap: 8px;
}
.supportFaqItem {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-3);
}
.supportFaqItem > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.supportFaqItem > summary::-webkit-details-marker {
  display: none;
}
.supportFaqItem > summary::after {
  content: "+";
  float: right;
  color: var(--text-4);
}
.supportFaqItem[open] > summary::after {
  content: "-";
}
.supportRequest {
  position: relative;
  max-width: 980px;
}
.supportRequest__lead {
  margin: 0 0 18px;
}
.supportRequest__topActions {
  position: absolute;
  top: 0.67em;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.supportRequest__card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.supportRequest__form .formRow {
  margin-bottom: 14px;
}
.supportRequest__form .formRow:last-of-type {
  margin-bottom: 0;
}
.supportRequest__form .formRow input,
.supportRequest__form .formRow textarea,
.supportRequest__form .formRow select {
  width: 100%;
}
.supportRequest__form .formRow textarea {
  min-height: 140px;
  resize: vertical;
}
.supportRequest__actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supportRequest__fileUpload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.supportRequest__filePick {
  flex-shrink: 0;
  cursor: pointer;
}
.supportRequest__fileName {
  min-width: 0;
  flex: 1 1 140px;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .supportRequest__topActions {
    position: static;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
}
.pricingManageGrid {
  align-items: stretch;
}
.pricingManageCard {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricingManageCard__top {
  min-height: 140px;
  height: auto;
  display: flex;
  flex-direction: column;
}
.pricingManageCard__top .divider {
  margin-top: auto;
}
@media (max-width: 980px) {
  .supportLayout {
    grid-template-columns: 1fr;
  }
}
.accountSettings__card {
  padding: 0;
  overflow: hidden;
}
.accountSettings__cardHeader {
  padding: 20px 22px 0;
  border-bottom: 0;
}
.accountSettings__cardTitle {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 12px;
}
.accountSettings__card .formRow,
.accountSettings__card .formGrid {
  padding-left: 22px;
  padding-right: 22px;
}
.accountSettings__card .formGrid:last-of-type {
  padding-bottom: 12px;
}
.accountSettings__card .formGrid:first-of-type {
  padding-top: 0;
}
.accountSettings__card .formGrid {
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  margin-top: 8px;
  margin-bottom: 0;
}
.accountSettings__card .formGrid .formRow {
  margin: 0;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.accountSettings .formRow input,
.accountSettings .formRow textarea,
.accountSettings .formRow select {
  width: 100%;
}
.accountSettings .formRow input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.accountSettings .formRow select,
.accountSettings .formRow textarea {
  min-height: 38px;
  box-sizing: border-box;
}
.accountSettings [data-phone-wrapper] .inputGroup input {
  min-height: 38px;
}
.accountSettings #id_org_name {
  background: rgba(47, 125, 255, 0.14);
  border-color: rgba(47, 125, 255, 0.36);
  color: var(--text-2);
}

.accountSettings #id_username,
.accountSettings #id_username:disabled {
  background: rgba(47, 125, 255, 0.14);
  border-color: rgba(47, 125, 255, 0.36);
  color: var(--text-2);
}
.accountSettings__form {
  margin-top: 0;
}

@media (max-width: 640px) {
  .accountSettings__topActions {
    position: static;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
}
.accountSettings__actions {
  margin-top: 14px;
  padding: 0 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .accountSettings__actions {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Bio page preview inside dashboard – respects page theme */
.bioPreviewShell {
  border-radius: 28px;
  overflow: hidden;
  border: none;
  background: transparent;
}
/* Keep dashboard preview flush to top of its card. */
.bioSettingsLayout .bioPreviewShell .bioCard {
  margin-top: 0;
}
.bioPreviewFrame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

/* Link icon dropdown in settings */
.card .formRow select {
  min-height: 38px;
  border-radius: 12px;
}

/* auth pages */
.authShell { min-height: calc(100vh - 86px); display:flex; align-items:center; }
.authShell--inApp { min-height: calc(100vh - 170px); }
.publicBody .authShell {
  min-height: 100%;
  align-items: flex-start;
  padding-top: 18px;
}
.authGrid { display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; }
.authGrid--single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
@media (max-width: 980px) { .authGrid { grid-template-columns: 1fr; } }
.authCard { padding: 18px; border-radius: 22px; }
.authForm { max-width: 380px; margin: 0 auto; }
.authForm .formRow.is-invalid input {
  border-color: rgba(239, 68, 68, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.authForm .formRow.is-invalid input:focus,
.authForm .formRow.is-invalid input:focus-visible {
  border-color: rgba(239, 68, 68, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}
.authForm .formRow.is-invalid .inputGroup {
  border-color: rgba(239, 68, 68, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.authForm .formRow.is-invalid .inputGroup input:focus,
.authForm .formRow.is-invalid .inputGroup input:focus-visible {
  box-shadow: none !important;
}
.forgotPasswordSubmitWrap {
  display: inline-flex;
}
.forgotPasswordSubmitBtn--blocked {
  pointer-events: none;
}
.authForm .formFieldError {
  margin: 6px 0 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 120, 120, 0.95);
}
:root[data-theme="light"] .authForm .formFieldError {
  color: #dc2626;
}
.authCard input, .authCard select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
}
.authCard input { min-height: 38px; }
.authCard select { min-height: 38px; }
.authCard--otp {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 26px 26px;
}
.authCard--otp .authTitle,
.authCard--otp .otpTimerLabel,
.authCard--otp .btn,
.authCard--otp .otpInput::placeholder {
  text-transform: capitalize;
}
.authCard--otp .kicker {
  /* Override global uppercase kicker style on OTP pages. */
  text-transform: capitalize;
}
.otpForm {
  max-width: 380px;
  margin: 0 auto;
}
.otpInput {
  width: 100%;
  min-height: 62px !important;
  text-align: center;
  font-size: 38px;
  letter-spacing: 0.26em;
  font-weight: 600;
}
.authCard--otp input.otpInput,
.publicFormInput.otpInput {
  font-size: 38px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.26em !important;
  font-weight: 600 !important;
}
.otpInput::placeholder {
  letter-spacing: 0.08em;
  font-size: 16px;
  font-weight: 400;
}
.otpTimerWrap {
  text-align: center;
  margin-top: 16px;
}
.otpTimerLabel {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.otpCountdown {
  color: #3b82f6;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.formRow {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.centerField {
  min-width: 0;
  max-width: 100%;
}
.passwordField {
  position: relative;
}
.passwordField > input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}
.passwordField .passwordToggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}
.passwordToggle--inline {
  position: static;
  top: auto;
  right: auto;
  margin-left: 0;
}
.passwordToggle svg,
.orgApiTokenControl__icon {
  width: 18px;
  height: 18px;
}
.formGrid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 820px) { .formGrid { grid-template-columns: 1fr; } }

.customDomainEdit__datesInline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.customDomainEdit__dateItem {
  min-width: 0;
}

.customDomainEdit__dateItem .orgInfoCard__label {
  margin-bottom: 2px;
}

.customDomainEdit__dateItem .orgInfoCard__value {
  font-size: 18px;
}

.domainPage__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  min-width: 0;
}

.domainPage__headerMain {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.domainPage__header h1 {
  margin: 0;
  min-width: 0;
}

.domainPage__usage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 255, 0.4);
  background: rgba(47, 125, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.08);
}

.domainPage__usageValue {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(96, 165, 255, 1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.domainPage__headerActions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .domainPage__headerActions {
    width: 100%;
    justify-content: flex-end;
  }
}

.domainEdit__defaultMobile {
  display: none;
}

.domainEdit__makeDefaultForm {
  margin: 0;
}

@media (max-width: 960px) {
  .domainEdit__defaultMobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: -2px 0 10px;
  }
}

.domainPage__intro {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.5;
}

.domainPage__intro--secondary {
  margin-top: -4px;
}

.badge--default {
  border-color: rgba(47, 125, 255, 0.35);
  background: rgba(47, 125, 255, 0.12);
  color: rgba(96, 165, 255, 0.98);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.badge--active {
  border-color: rgba(46, 229, 157, 0.35);
  background: rgba(46, 229, 157, 0.12);
  color: rgba(46, 229, 157, 0.98);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.badge--muted {
  border-color: var(--border-1);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}

.domainList__table tbody tr.domainList__row:hover {
  background: var(--surface-2);
}

.domainList__defaultCol,
.domainList__defaultCell {
  text-align: center;
}

.domainList__linksCol {
  text-align: center;
  white-space: nowrap;
}

.domainList__statusCol {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.domainList__statusCol .badge {
  margin-top: 0;
  display: inline-block;
}

.domainList__defaultCell {
  white-space: nowrap;
  vertical-align: middle;
}

.domainList__actionsCol {
  text-align: center;
  white-space: nowrap;
  width: 56px;
}

.domainList__makeDefaultForm {
  margin: 0;
  display: inline-flex;
  justify-content: center;
}

.domainList__makeDefaultBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.domainList__table tbody tr.domainList__row:hover .domainList__makeDefaultBtn {
  border-color: var(--border-1);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
}

.domainList__mobile {
  display: none;
  width: 100%;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.domainList__mobileHead,
.domainList__mobileRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  width: 100%;
}

.domainList__mobileHead {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.domainList__mobileDomainLabel {
  flex: 1 1 42%;
  min-width: 0;
}

.domainList__mobileStatusLabel {
  flex: 1 1 38%;
  min-width: 0;
}

.domainList__mobileActionLabel {
  flex: 0 0 40px;
  text-align: center;
}

.domainList__mobileDomain {
  flex: 1 1 42%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.domainList__mobileStatus {
  flex: 1 1 38%;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.domainList__mobileAction {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.domainList__makeDefaultForm--mobileAction {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.domainList__mobileDefaultIcon {
  color: rgba(96, 165, 255, 0.98);
  cursor: default;
  pointer-events: none;
}

.formRow label { display:block; color: var(--text-2); font-weight: 750; margin-bottom: 7px; }
/* File-upload / action labels styled as buttons must not inherit form label typography. */
.formRow label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.formRow + .formRow { margin-top: 12px; }
.help { color: var(--text-6); font-size: 12px; margin-top: 6px; }
.signupLabel {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.signupLabel__icon {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.errorlist { margin: 8px 0 0 0; padding-left: 18px; color: rgba(255, 120, 120, 0.95); }

/* ---- Bio link public page ---- */
.bioShell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 12px 32px;
}
.bioLayout {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
}
.bioAd {
  flex: 0 0 160px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bioAd--left,
.bioAd--right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.bioAd--left {
  left: calc(50% - 480px);
}
.bioAd--right {
  right: calc(50% - 480px);
}
.surveyAd.bioAd--left {
  left: calc(50% - 590px);
}
.surveyAd.bioAd--right {
  right: calc(50% - 590px);
}
.bioAd__inner {
  width: 100%;
  max-width: 160px;
  height: 600px;
  border-radius: 24px;
  border: 1px dashed var(--border-1);
  background:
    radial-gradient(260px 260px at 50% 0%, rgba(148, 163, 184, 0.25), transparent 60%),
    var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bioAd__link {
  display: block;
  width: 100%;
  height: 100%;
}
.bioAd__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.bioAd__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-5);
}
@media (max-width: 1100px) {
  .bioAd {
    flex-basis: 120px;
  }
  .bioAd--left {
    left: calc(50% - 428px);
  }
  .bioAd--right {
    right: calc(50% - 428px);
  }
  .surveyAd.bioAd--left {
    left: calc(50% - 520px);
  }
  .surveyAd.bioAd--right {
    right: calc(50% - 520px);
  }
  .bioAd__inner {
    max-width: 120px;
    height: 500px;
  }
}
@media (max-width: 900px) {
  .bioLayout {
    justify-content: center;
    gap: 0;
  }
  .bioAd {
    display: none;
  }
}
.bioCard {
  width: 100%;
  max-width: 520px;
  /* Keep the card at a consistent vertical position, matching the ad-aligned layout. */
  margin-top: max(0px, calc(50vh - 396px));
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 18% 0%, rgba(47,125,255,0.18), transparent 60%),
    radial-gradient(600px 260px at 82% 0%, rgba(46,229,157,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-4), var(--surface-1));
  padding: 18px 18px 20px 18px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .bioCard { margin-top: 0; }
}
.bioCard__top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.bioHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.bioAvatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bioAvatar:has(img) {
  width: auto;
  height: auto;
  max-width: min(200px, 100%);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.bioAvatar:has(.bioAvatar__initials) {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--surface-6);
  overflow: hidden;
}
.bioAvatar img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(200px, 100%);
  max-height: 120px;
  object-fit: contain;
}
.bioSettingsAvatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.bioAvatar__initials {
  font-size: 32px;
  font-weight: 800;
}
.bioHeader__text {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
.bioUsername {
  font-size: 13px;
  color: var(--muted);
}
.bioName {
  margin: 2px 0 4px 0;
  font-size: 22px;
}
.bioHeadline {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}
.bioDescription {
  margin: 8px 0 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.bioMeta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.bioMeta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  box-sizing: border-box;
}
a.bioMeta__item {
  text-decoration: none;
  cursor: pointer;
}
a.bioMeta__item:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.bioMeta__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 0;
}
.bioMeta__icon svg {
  display: block;
}
.bioMeta__value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  line-height: 1.35;
}
.bioLinks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bioLinkRow {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.bioLinkButton {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-4);
  backdrop-filter: blur(12px);
}
.bioLinkButton__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.bioLinkButton__iconCircle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.bioLinkButton__iconCircle img {
  width: 18px;
  height: 18px;
  display: block;
}
/* Remote favicons: circular crop, no outer border */
.bioLinkButton__iconCircle--favicon {
  border: none;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
}
.bioLinkButton__iconCircle--favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bioLinkButton__iconCircle--instagram {
  background: #FF0069;
  border-color: #FF0069;
}
.bioLinkButton__iconCircle--youtube {
  background: #FF0000;
  border-color: #FF0000;
}
.bioLinkButton__iconCircle--facebook {
  background: #0866FF;
  border-color: #0866FF;
}
.bioLinkButton__iconCircle--whatsapp {
  background: #25D366;
  border-color: #25D366;
}
.bioLinkButton__iconCircle--tiktok {
  background: #ffffff;
  border-color: #ffffff;
}
.bioLinkButton__iconCircle--shopify {
  background: #7AB55C;
  border-color: #7AB55C;
}
.bioLinkButton__iconCircle--spotify {
  background: #1ED760;
  border-color: #1ED760;
}
.bioLinkButton__iconCircle--reddit {
  background: #FF4500;
  border-color: #FF4500;
}
.bioLinkButton__iconCircle--appstore {
  background: #0866FF;
  border-color: #0866FF;
}
.bioLinkButton__iconCircle--googleplay {
  background: #ffffff;
  border-color: #ffffff;
}
.bioLinkButton__iconCircle--linkedin {
  background: #0A66C2;
  border-color: #0A66C2;
}
.bioLinkButton__iconCircle--x {
  background: #ffffff;
  border-color: #ffffff;
}
.bioLinkButton__text {
  min-width: 0;
}
.bioLinkButton__label {
  font-weight: 650;
  font-size: 14px;
}
.bioLinkButton__sub {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}
.bioLinkButton__share {
  width: 40px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-5);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bioLinkButton__share:hover {
  background: var(--surface-6);
}
.bioFooter {
  margin-top: 16px;
  text-align: center;
}
.bioFooter__link {
  font-size: 12px;
  color: var(--text-5);
}
.bioFooter__link:hover {
  color: var(--text-2);
}

/* QR code fixed top-left on public bio page */
.bioPageQr {
  position: fixed;
  left: max(20px, env(safe-area-inset-left, 0px));
  top: max(20px, env(safe-area-inset-top, 0px));
  right: auto;
  bottom: auto;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.bioPageQr img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.bioPageQr__label {
  font-size: 11px;
  color: var(--text-5);
  font-weight: 600;
}

@media (max-width: 900px) {
  .bioShell {
    /* ~30% less top spacing than desktop shell on narrow screens */
    padding-top: calc(96px * 0.7);
    padding-bottom: 32px;
  }
  .bioPageQr {
    left: max(12px, env(safe-area-inset-left, 0px));
    top: max(12px, env(safe-area-inset-top, 0px));
    padding: 8px;
    border-radius: 12px;
    gap: 4px;
  }
  .bioPageQr img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
  }
  .bioPageQr__label {
    font-size: 10px;
  }
}

.bioEmpty {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

.shareOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.shareOverlay.is-visible {
  display: flex;
}
.shareOverlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px);
}
.shareModal {
  position: relative;
  z-index: 41;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid var(--border-2);
  /* Use a denser, less transparent background so the content is always readable. */
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(47,125,255,0.22), transparent 60%),
    radial-gradient(420px 220px at 90% 0%, rgba(46,229,157,0.18), transparent 60%),
    var(--bg);
  padding: 20px 20px 22px 20px;
  box-shadow: var(--shadow);
}
.shareModal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.shareModal__title {
  font-weight: 750;
}
.shareModal__close {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
}
.shareModal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shareModal__labelRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shareModal__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  display: none;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.shareModal__icon--instagram {
  background-color: #FF0069;
  border-color: #FF0069;
  background-image: url("../img/icons/instagram.svg");
}
.shareModal__icon--youtube {
  background-color: #FF0000;
  border-color: #FF0000;
  background-image: url("../img/icons/youtube.svg");
}
.shareModal__icon--facebook {
  background-color: #0866FF;
  border-color: #0866FF;
  background-image: url("../img/icons/facebook.svg");
}
.shareModal__icon--whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  background-image: url("../img/icons/whatsapp.svg");
}
.shareModal__icon--tiktok {
  background-color: #ffffff;
  border-color: #ffffff;
  background-image: url("../img/icons/tiktok.svg");
}
.shareModal__icon--shopify {
  background-color: #7AB55C;
  border-color: #7AB55C;
  background-image: url("../img/icons/shopify.svg");
}
.shareModal__icon--spotify {
  background-color: #1ED760;
  border-color: #1ED760;
  background-image: url("../img/icons/spotify.svg");
}
.shareModal__icon--reddit {
  background-color: #FF4500;
  border-color: #FF4500;
  background-image: url("../img/icons/reddit.svg");
}
.shareModal__icon--x {
  background-color: #ffffff;
  border-color: #ffffff;
  background-image: url("../img/icons/x.svg");
}
.shareModal__icon--appstore {
  background-color: #0866FF;
  border-color: #0866FF;
  background-image: url("../img/icons/appstore.svg");
}
.shareModal__icon--googleplay {
  background-color: #ffffff;
  border-color: #ffffff;
  background-image: url("../img/icons/googleplay.svg");
}
.shareModal__icon--linkedin {
  background-color: #0A66C2;
  border-color: #0A66C2;
  background-image: url("../img/icons/linkedin.svg");
}
.shareModal__label {
  font-size: 14px;
  color: var(--text-2);
}
.shareModal__url {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  font-size: 12px;
  word-break: break-all;
}
.shareModal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.shareModal__grid {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shareModal__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  font-size: 12px;
}
.shareModal__chip::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: none;
}
.shareModal__chip--x::before {
  background-image: url("../img/icons/share_x.svg");
}
.shareModal__chip--facebook::before {
  background-image: url("../img/icons/share_facebook.svg");
}
.shareModal__chip--whatsapp::before {
  background-image: url("../img/icons/whatsapp_white.svg");
  background-size: 11px 11px;
  background-color: #25D366;
  border-radius: 999px;
}
.shareModal__chip--linkedin::before {
  background-image: url("../img/icons/linkedin.svg");
}

.socialShare {
  margin-top: 10px;
}
.socialShare--center {
  text-align: center;
}
.socialShare--center .socialShare__row {
  justify-content: center;
}
.socialShare__label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.socialShare__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.socialShare__btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.socialShare__btn img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}
.socialShare__btn img.socialShare__btnIcon--nsosyal {
  width: 30px;
  height: 30px;
}
.socialShare__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* QR preview overlay */
.qrOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 45;
}
.qrOverlay.is-visible {
  display: flex;
}
.qrOverlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(10px);
}
.qrOverlay__dialog {
  position: relative;
  z-index: 46;
  max-width: 420px;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(47,125,255,0.22), transparent 60%),
    radial-gradient(420px 220px at 90% 0%, rgba(46,229,157,0.18), transparent 60%),
    var(--bg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qrOverlay__img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.qrOverlay__close {
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}
@media (max-width: 720px) {
  .qrOverlay__dialog {
    width: calc(100% - 28px);
    max-width: 360px;
    padding: 12px;
    border-radius: 16px;
  }

  .qrOverlay__img {
    max-width: 290px;
    border-radius: 12px;
  }

  .qrOverlay__close {
    top: -12px;
    right: -12px;
  }
}

/* Survey form: "Other" option; text input shown when Other is selected */
.formOtherBlock {
  margin-top: 0;
}
.formOtherInputWrap {
  margin-top: 6px;
  margin-bottom: 4px;
  display: none;
}
.formOtherInputWrap.is-visible {
  display: block;
}

/* ---- Custom dropdown (theme-aware, replaces native select list) ---- */
.customSelect {
  position: relative;
  width: 100%;
}

/* Expiration hour: compact width (base .customSelect is width:100% and would stretch in flex rows) */
.customSelect.expiresHourCustomSelect {
  width: max-content;
  max-width: 100%;
  flex-shrink: 0;
}
.customSelect.expiresHourCustomSelect .customSelect__trigger {
  width: max-content;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.customSelect.expiresHourCustomSelect .customSelect__triggerText {
  flex-shrink: 0;
  min-width: auto;
  overflow: visible;
  text-overflow: clip;
  font-family: inherit;
  font-size: inherit;
  font-variant-numeric: inherit;
}
.customSelect.expiresHourCustomSelect .customSelect__option {
  font-family: inherit;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.customSelect.expiresHourCustomSelect .customSelect__list {
  min-width: 100%;
}

/* PayTR checkout: themed custom dropdown; div trigger matches card input font */
.customSelect.paytrDirect__expSelect {
  width: 100%;
  max-width: 100%;
}
.customSelect.paytrDirect__expSelect .customSelect__trigger {
  min-height: 38px;
  padding: 8px 10px;
}
.customSelect.paytrDirect__expSelect .customSelect__list {
  min-width: 100%;
}
.customSelect--inputTrigger .customSelect__trigger {
  font: inherit;
}

.customSelect select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.customSelect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 38px;
}
.surveyCreate__questionCard .customSelect__trigger {
  width: 260px;
  max-width: 100%;
}
.customSelect__flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.customSelect__flag--trigger {
  width: 18px;
  height: 12px;
}
.customSelect__triggerText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customSelect__label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.customSelect__trigger:hover {
  background: var(--surface-5);
}
.customSelect__trigger:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--focus-ring);
  border-color: var(--border-2);
}
.customSelect__trigger::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-3);
  flex-shrink: 0;
}
.customSelect.is-open .customSelect__trigger {
  border-color: var(--border-2);
  box-shadow: 0 0 0 1px var(--focus-ring);
}
.customSelect__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.customSelect.is-open .customSelect__list {
  display: block;
}
/* When there is not enough space below, open the dropdown upwards. */
.customSelect.customSelect--dropUp .customSelect__list {
  top: auto;
  bottom: calc(100% + 4px);
}
.customSelect__option {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-1);
  background: rgba(15, 23, 42, 0.0);
  display: flex;
  align-items: center;
  gap: 8px;
}
.customSelect__option:hover,
.customSelect__option[aria-selected="true"] {
  background: var(--primary);
  color: #ffffff;
}

.customSelect--bioIcons .customSelect__brandIcon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 9px;
  line-height: 1;
}
.customSelect--bioIcons .customSelect__brandIcon--trigger {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.customSelect--bioIcons .customSelect__brandIcon img,
.customSelect--bioIcons .customSelect__brandIconImg {
  width: 14px;
  height: 14px;
}
.customSelect--bioIcons .customSelect__brandIcon--trigger img,
.customSelect--bioIcons .customSelect__brandIcon--trigger .customSelect__brandIconImg {
  width: 13px;
  height: 13px;
}
.customSelect--bioIcons .customSelect__option:hover .customSelect__brandIcon,
.customSelect--bioIcons .customSelect__option[aria-selected="true"] .customSelect__brandIcon {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Domain pickers: fixed width so trigger and menu align */
.customSelect.linkCreate__domainSelect,
.customSelect.bioSettings__domainSelect,
.customSelect.surveyCreate__domainSelect {
  width: 17rem;
  max-width: 100%;
}

.customSelect.linkCreate__domainSelect .customSelect__trigger,
.customSelect.bioSettings__domainSelect .customSelect__trigger,
.customSelect.surveyCreate__domainSelect .customSelect__trigger {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.customSelect.linkCreate__domainSelect .customSelect__list,
.customSelect.bioSettings__domainSelect .customSelect__list,
.customSelect.surveyCreate__domainSelect .customSelect__list {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* Light theme overrides for custom dropdown to match sidebar */
:root[data-theme="light"] .customSelect__list {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
}

:root[data-theme="light"] .customSelect__option {
  background: transparent;
  color: var(--text-2);
}

:root[data-theme="light"] .customSelect__option:hover,
:root[data-theme="light"] .customSelect__option[aria-selected="true"] {
  /* Match soft blue of primary buttons in light mode */
  background: rgba(47, 125, 255, 0.25);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.10) inset;
}
.customSelect__option:focus {
  outline: none;
  background: var(--custom-select-option-hover);
}
.customSelect--disabled .customSelect__trigger {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.customSelect--disabled .customSelect__list {
  display: none !important;
}

/* Theme-aware Leaflet popup styling for analytics maps */
.analyticsMapPopup .leaflet-popup-content-wrapper {
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.analyticsMapPopup .leaflet-popup-content {
  margin: 10px 12px;
  color: var(--text);
}

.analyticsMapPopup .leaflet-popup-tip {
  background: var(--panel);
}

/* Keep Leaflet tiles/controls inside the map card (Leaflet uses z-index 400–1000). */
.analyticsMapFrame {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

:root:not([data-theme="light"]) .analyticsMapFrame {
  border: none;
}

:root[data-theme="light"] .analyticsMapFrame {
  border: 1px solid var(--border);
}

:root[data-theme="light"] .analyticsMapPopup .leaflet-popup-content-wrapper,
:root[data-theme="light"] .analyticsMapPopup .leaflet-popup-tip {
  background: #ffffff;
  color: #0f172a;
}

:root:not([data-theme="light"]) .analyticsMapPopup .leaflet-popup-content-wrapper,
:root:not([data-theme="light"]) .analyticsMapPopup .leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96);
  color: rgba(255, 255, 255, 0.92);
}

/* Keep provider attribution visible but subtle on analytics maps */
.leaflet-container .leaflet-control-attribution {
  font-size: 10px;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 6px 0 0 0;
  opacity: 0.72;
}

.leaflet-container .leaflet-control-attribution:hover {
  opacity: 0.92;
}

:root[data-theme="light"] .leaflet-container .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.72);
}

:root:not([data-theme="light"]) .leaflet-container .leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.62);
  color: rgba(226, 232, 240, 0.78);
}

:root[data-theme="light"] .leaflet-container .leaflet-control-attribution a {
  color: rgba(30, 64, 175, 0.78);
}

:root:not([data-theme="light"]) .leaflet-container .leaflet-control-attribution a {
  color: rgba(147, 197, 253, 0.82);
}

/* Leaflet zoom (+/−): default Leaflet theme is light; match dark UI */
:root:not([data-theme="light"]) .leaflet-container .leaflet-control-zoom a {
  background-color: rgba(15, 23, 42, 0.92);
  color: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
}

:root:not([data-theme="light"]) .leaflet-container .leaflet-control-zoom a:hover {
  background-color: rgba(30, 41, 59, 0.96);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

:root:not([data-theme="light"]) .leaflet-container .leaflet-control-zoom a.leaflet-disabled {
  background-color: rgba(15, 23, 42, 0.55);
  color: rgba(148, 163, 184, 0.4);
}

:root[data-theme="light"] .leaflet-container .leaflet-control-zoom a.leaflet-disabled {
  color: rgba(100, 116, 139, 0.55);
}

/* Accessible: visually hidden but still readable by screen readers */
.srOnly {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- Responsive layout tweaks ---- */

.appTopbar__menu {
  display: none;
}

@media (max-width: 960px) {
  .layout {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  /* Dim main content when drawer is open; sit above Leaflet (z-index up to ~1000). */
  body:not(.sidebar-collapsed)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(3, 10, 24, 0.55);
    pointer-events: auto;
  }

  :root[data-theme="light"] body:not(.sidebar-collapsed)::after {
    background: rgba(15, 23, 42, 0.35);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1100;
    width: 260px;
    max-width: 80%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    transform: translateX(-100%);
    transition: transform 160ms ease;
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow: hidden;
    touch-action: pan-y;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .sidebar__nav {
    padding-bottom: 4px;
  }

  .sidebar__toggle {
    display: none;
  }

  .main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  body:not(.publicBody) {
    height: 100%;
    overflow: hidden;
  }

  body:not(.publicBody) .main {
    touch-action: pan-y;
  }

  .appTopbar {
    padding: 10px 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .appTopbar__left {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .appTopbar__right {
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .appTopbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .appContent {
    padding: 0 12px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    width: 260px;
    padding: 14px;
  }

  body:not(.sidebar-collapsed) .sidebar {
    transform: translateX(0);
  }

  .appTopbar__menu {
    display: inline-flex;
  }

  .appTopbar__date {
    display: none;
  }

  .iconButton--logout {
    display: none;
  }

  .sidebar__footer .navItem--logout {
    display: flex;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }

  .breadcrumbs__item--current {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .surveyDetail__topRow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .surveyDetail__title {
    width: 100%;
    max-width: 100%;
    flex: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
  }

  .surveyDetail__toolbar {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-self: stretch;
  }

  .linkDetail__linksGrid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .linkDetail__linksCard {
    text-align: center;
  }

  .linkDetail__linkLabel {
    text-align: center;
  }

  .linkDetail__shareSlot .socialShare {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .linkDetail__shareSlot .socialShare__label {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
    z-index: auto;
  }

  .linkDetail__shareSlot .socialShare__row {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .surveyCreate {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  .surveyCreateForm,
  .surveyCreate__meta,
  .surveyCreate__questionCard,
  .surveyCreate__block,
  .surveyCreate .centerField {
    width: 100%;
    min-width: 0;
  }
  .surveyCreate__questionCard .customSelect__trigger {
    width: 100%;
    max-width: 100%;
  }
  .surveyCreate__block--answerType {
    display: block !important;
  }
  .surveyCreate__block--answerType label {
    display: block;
    margin-bottom: 6px !important;
    white-space: normal !important;
  }
  .surveyCreate__questionRow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .surveyCreate__questionInput {
    width: 100%;
    min-width: 0;
  }
  .surveyCreate__optionSpacer {
    display: none;
  }
  .surveyCreate__options {
    margin-left: 0;
  }
  .surveyCreate__optionRow {
    width: 100%;
    min-width: 0;
  }
  .surveyCreate__optionRow .surveyCreate__optionInput {
    min-width: 0;
  }

  .appTopbar {
    flex-direction: column;
    align-items: center;
    gap: var(--control-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
  }

  .appTopbar__right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--control-gap);
    padding-right: 0;
  }

  .appTopbar__left {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    align-items: center;
  }

  .appTopbar__lang {
    margin-right: 0;
  }

  .appTopbar__greeting {
    text-align: center;
  }

  .appTopbar .breadcrumbs {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .appTopbar__icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--control-gap);
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__content .row {
    align-items: center;
  }

  .qrRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .analyticsGeo__head {
    flex-direction: column;
    align-items: stretch;
  }

  .analyticsGeo__toggle {
    width: fit-content;
    margin-left: auto;
  }

  .bioSettingsImageControl {
    grid-template-columns: 1fr;
  }

  .bioSettingsImageControl__previewPane {
    justify-content: flex-start;
  }

  .qrRow__right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .miniRow {
    flex-direction: column;
    align-items: stretch;
  }

  .miniRow > .btn {
    align-self: flex-end;
  }

  .miniRow__right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .dashboardRecentLinks .miniRow {
    flex-direction: row;
    align-items: center;
    padding: 6px 10px;
    gap: 8px;
  }

  .dashboardRecentLinks .miniRow__sub {
    margin-top: 2px;
  }

  .dashboardRecentLinks .miniRow > .btn {
    align-self: center;
  }

  .dashboardRecentLinks .miniRow__right {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .dashboardRecentQr .miniRow__title.miniRow__targetLine {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  .dashboardRecentQr .miniRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .dashboardRecentQr .miniRow__main {
    min-width: 0;
    text-align: center;
  }

  .dashboardRecentQr .miniRow__title.miniRow__targetLine {
    justify-content: center;
    align-items: center;
  }

  .dashboardRecentQr .miniRow__right {
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    padding-left: 12px;
    border-left: 1px solid var(--border);
  }

  .shortLinkRow {
    margin-left: 0;
    margin-right: 0;
  }

  .shortLinkDisplay {
    width: 100%;
    justify-content: space-between;
  }

  .linksList__toolbar {
    width: 100%;
    align-items: stretch;
    gap: var(--control-gap);
  }
  .linksList__toolbar > .btn {
    align-self: center;
  }

  .linksList__filters {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: var(--control-gap);
  }

  .linksList__filters input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .listSortSelect,
  .listSortSelect .customSelect__trigger,
  .listSortSelect select {
    min-width: 0;
    width: 100%;
  }

  .linksList__table {
    margin-top: 12px;
    width: 100%;
    table-layout: fixed;
  }

  /* Mobile links list: keep only Title + Target + Clicks. */
  .linksList__table th:nth-child(1),
  .linksList__table td:nth-child(1),
  .linksList__table th:nth-child(2),
  .linksList__table td:nth-child(2),
  .linksList__table th:nth-child(3),
  .linksList__table td:nth-child(3),
  .linksList__table th:nth-child(5),
  .linksList__table td:nth-child(5) {
    display: none;
  }

  .linksList__table th:nth-child(4),
  .linksList__table td:nth-child(4) {
    width: 36%;
    max-width: 0;
    overflow: hidden;
  }

  .linksList__table th:nth-child(6),
  .linksList__table td:nth-child(6) {
    width: 46%;
  }

  .linksList__table th:nth-child(7),
  .linksList__table td:nth-child(7) {
    width: 18%;
    text-align: right;
    white-space: nowrap;
  }

  /* Mobile overflow fix:
     The template sets `max-width: 520px` on the Target column inline.
     On small screens that forces horizontal overflow, so override it here. */
  .linksList__table th,
  .linksList__table td {
    padding: 8px 6px;
    font-size: 0.92rem;
    box-sizing: border-box;
  }

  /* Target cell should never force width. */
  .linksList__table td:nth-child(6) {
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .linksList__targetDomain {
    display: none;
  }
  .linksList__table td:nth-child(6) .linksList__targetUrl {
    display: none !important;
  }
  .linksList__table td:nth-child(6) img {
    display: inline-block !important;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: text-bottom;
  }
  .linksList__table td:nth-child(6) .linksList__targetDomain {
    display: inline-block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
  .linksList__table th:nth-child(7) .linksList__clicksHeadText {
    display: none;
  }
  .linksList__table th:nth-child(7),
  .linksList__table td:nth-child(7) {
    font-size: 0.88rem;
  }
  .linksList__mobileTitle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    min-width: 0;
    max-width: 100%;
  }
  .linksList__mobileTitle .resourceListTitleRow {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }
  .linksList__mobileTitle .resourceListTitleRow__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .linksList__mobileFavicon {
    display: inline-block;
  }

  .linksList__titleCell .resourceListTitleRow {
    display: flex;
    max-width: 100%;
    min-width: 0;
  }

  .linksList__titleCell .resourceListTitleRow__text {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mobile QR list: keep only Title + Target + QR image. */
  .qrList__table th:nth-child(1),
  .qrList__table td:nth-child(1),
  .qrList__table th:nth-child(2),
  .qrList__table td:nth-child(2),
  .qrList__table th:nth-child(3),
  .qrList__table td:nth-child(3),
  .qrList__table th:nth-child(6),
  .qrList__table td:nth-child(6),
  .qrList__table th:nth-child(7),
  .qrList__table td:nth-child(7) {
    display: none;
  }
  .qrList__table th:nth-child(5),
  .qrList__table td:nth-child(5) {
    display: table-cell !important;
  }
  .qrList__table th:nth-child(4),
  .qrList__table td:nth-child(4) {
    width: 40%;
    max-width: 0;
    overflow: hidden;
  }
  .qrList__table th:nth-child(5),
  .qrList__table td:nth-child(5) {
    width: 46%;
  }
  .qrList__table th:nth-child(8),
  .qrList__table td:nth-child(8) {
    width: 14%;
    text-align: center;
    white-space: nowrap;
  }
  .qrList__table td:nth-child(5) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .qrList__targetDomain {
    display: none;
  }
  .qrList__table td:nth-child(5) .qrList__targetText {
    display: none;
  }
  .qrList__table td:nth-child(5) .qrList__targetDomain {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
  .qrList__mobileName {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    min-width: 0;
    max-width: 100%;
  }
  .qrList__mobileName .resourceListTitleRow {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }
  .qrList__mobileName .resourceListTitleRow__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .qrList__table td:nth-child(5) .qrList__mobileName {
    display: none;
  }

  .qrList__titleCell .resourceListTitleRow {
    display: flex;
    max-width: 100%;
    min-width: 0;
  }

  .qrList__titleCell .resourceListTitleRow__text {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Match Links table row sizing exactly on mobile/tablet too. */
  .surveysList__table th,
  .surveysList__table td {
    padding: 8px 6px;
    font-size: 0.92rem;
    vertical-align: middle;
    box-sizing: border-box;
  }

  .surveysList__table {
    table-layout: fixed;
    width: 100%;
  }
  .surveysList__table th:nth-child(1),
  .surveysList__table td:nth-child(1) {
    width: 14%;
  }
  .surveysList__table th:nth-child(2),
  .surveysList__table td:nth-child(2) {
    width: 8%;
  }
  .surveysList__table th:nth-child(3),
  .surveysList__table td:nth-child(3) {
    width: 8%;
  }
  .surveysList__table th:nth-child(4),
  .surveysList__table td:nth-child(4) {
    width: 50%;
    max-width: 0;
    overflow: hidden;
  }
  .surveysList__table th:nth-child(5),
  .surveysList__table td:nth-child(5) {
    width: 20%;
    text-align: right;
    white-space: nowrap;
  }
  .surveysList__table th:nth-child(6),
  .surveysList__table td:nth-child(6) {
    display: none;
  }

  .surveysList__titleCell .resourceListTitleRow {
    display: flex;
    max-width: 100%;
    min-width: 0;
  }

  .surveysList__titleCell .resourceListTitleRow__text {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .surveyDetail__head {
    position: relative;
  }

  .surveyDetail__meta {
    width: 100%;
    text-align: center;
  }

  .surveyDetail__settingsQrRow--hasQr {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .surveyDetail__requirements {
    text-align: center;
    width: 100%;
  }
  .surveyDetail__metaQr {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .surveyDetail__description,
  .surveyDetail__count {
    text-align: center;
  }

  .surveyDetail__copyLink {
    text-align: center;
  }

  .surveyDetail__linksCard .linkDetail__linksGrid {
    grid-template-columns: 1fr;
  }

  .surveyDetail__backBtn {
    position: static;
  }

  .linkDetail__linkBox {
    max-width: 100%;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .linkDetail__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .linkDetail__meta {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
    justify-items: stretch;
  }

  .linkDetail__meta > div {
    text-align: center;
  }

  /* Survey response detail header */
  .surveyResponse__head {
    position: relative;
    align-items: flex-start;
    padding-top: 48px;
  }

  .surveyResponse__meta {
    width: 100%;
    text-align: center;
  }

  .surveyResponse__meta p,
  .surveyResponse__submitted {
    text-align: center;
  }

  .surveyResponse__actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .qrGenerate__layout {
    flex-direction: column;
    align-items: center;
  }

  .qrGenerate__left,
  .qrGenerate__right {
    width: 100%;
    max-width: 380px;
  }

  .qrGenerate__logoRow {
    text-align: center;
  }

  .qrGenerate__submit {
    text-align: right;
  }

  /* Members list on mobile: flex list (username + edit), full table on desktop. */
  .membersList__mobile {
    display: block;
  }

  .membersList__table {
    display: none;
  }

  /* Custom domains on mobile: flex list, full table on desktop. */
  .domainList__mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .domainList__table {
    display: none;
  }

  /* Usage history on mobile: show only the billing period (row remains clickable). */
  .usageHistory__table th:nth-child(1),
  .usageHistory__table td:nth-child(1),
  .usageHistory__table th:nth-child(3),
  .usageHistory__table td:nth-child(3),
  .usageHistory__table th:nth-child(4),
  .usageHistory__table td:nth-child(4),
  .usageHistory__table th:nth-child(5),
  .usageHistory__table td:nth-child(5),
  .usageHistory__table th:nth-child(6),
  .usageHistory__table td:nth-child(6),
  .usageHistory__table th:nth-child(7),
  .usageHistory__table td:nth-child(7),
  .usageHistory__table th:nth-child(8),
  .usageHistory__table td:nth-child(8),
  .usageHistory__table th:nth-child(9),
  .usageHistory__table td:nth-child(9) {
    display: none;
  }

  .usageHistoryList {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .usageHistory__table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .usageHistory__table thead,
  .usageHistory__table tbody {
    display: block;
    width: 100%;
  }

  .usageHistory__table tr {
    display: block;
    width: 100%;
  }

  .usageHistory__table th:nth-child(2),
  .usageHistory__table td:nth-child(2) {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Support latest table: keep subject + status on mobile */
  .supportLatest__table {
    table-layout: fixed;
  }

  .supportLatest__table th:nth-child(3),
  .supportLatest__table td:nth-child(3),
  .supportLatest__table th:nth-child(4),
  .supportLatest__table td:nth-child(4) {
    display: none;
  }

  .supportLatest__table th,
  .supportLatest__table td {
    width: 100%;
  }

  /* Support questions list: show subject, status, and actions on mobile */
  .supportQuestions__table {
    table-layout: fixed;
  }

  .supportQuestions__table th:nth-child(3),
  .supportQuestions__table td:nth-child(3),
  .supportQuestions__table th:nth-child(4),
  .supportQuestions__table td:nth-child(4),
  .supportQuestions__table th:nth-child(5),
  .supportQuestions__table td:nth-child(5) {
    display: none;
  }

  .supportQuestions__table th,
  .supportQuestions__table td {
    width: auto;
  }

  .supportQuestions__table th:nth-child(1),
  .supportQuestions__table td:nth-child(1) {
    width: 60%;
  }

  .supportQuestions__table th:nth-child(2),
  .supportQuestions__table td:nth-child(2) {
    width: 20%;
  }

  .supportQuestions__table th:nth-child(6),
  .supportQuestions__table td:nth-child(6) {
    width: 20%;
  }

  .surveyResponse__backBtn {
    position: absolute;
    top: 0;
    right: 0;
  }

  .authActions--password {
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  thead,
  tbody,
  tr {
    width: 100%;
  }
}

/* Public (logged-out) responsive improvements */
@media (max-width: 900px) {
  body.publicBody .topbar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  body.publicBody .topbar__left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.publicBody .topbar__right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Survey/public form pages: avoid nested scroll containers on mobile. */
  body.publicBody.publicFormShell {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.publicBody.publicFormShell > main.publicMain {
    min-height: auto;
    overflow-y: visible;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    padding-top: 44px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .publicMain {
    padding: 18px 12px;
  }

  .container {
    padding-left: 4px;
    padding-right: 4px;
  }

  .topbar {
    padding: 10px 12px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .topbar__left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .topbar__right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    padding: 20px 0 14px 0;
  }

  .hero__panel {
    border-radius: 18px;
    padding: 18px 14px;
  }
  .hero__panel--withQr {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero__qrWrap {
    justify-content: center;
    padding-right: 0;
  }
  .hero__qrImage {
    max-width: 130px;
  }
  .hero__content .row {
    justify-content: center;
  }
  .hero__content .row .muted {
    width: 100%;
    text-align: center;
  }

  .h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .pillTabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 700px) {
  .h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .topbar__link {
    display: none;
  }

  .grid--5 {
    grid-template-columns: 1fr;
  }
  .pricingCards .price__line {
    display: flex;
    justify-content: center;
  }
  .pricingCards .pricingCard__top {
    min-height: 122px;
  }
  .pricingCards .pricingManageCard__top {
    min-height: 122px;
  }
  .pricingCards .priceCard__head {
    justify-content: center;
  }
  .pricingCards .priceCard__title {
    text-align: center;
  }
}

/* ---- Survey response: respondent contact card ---- */
.surveyResponse__contactCard {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-4), var(--surface-3));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.surveyResponse__topGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.surveyResponse__titleCol {
  text-align: center;
}

.surveyResponse__rightCol {
  display: flex;
  justify-content: center;
  width: 100%;
}

.surveyResponse__backRow {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .surveyResponse__topGrid {
    grid-template-columns: 1fr;
  }
  .surveyResponse__rightCol {
    justify-content: center;
  }
  .surveyResponse__titleCol {
    text-align: center;
  }
}
.surveyResponse__respondentName {
  font-size: 22px;
  font-weight: 850;
  margin: 0;
  color: var(--text);
  max-width: 100%;
}
.surveyResponse__contactList {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-items: stretch;
  gap: 8px;
  max-width: 100%;
}
.surveyResponse__contactRow--pair {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  justify-content: center;
  align-items: stretch;
}
.surveyResponse__contactPill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  width: 100%;
}
.surveyResponse__contactPill--inline {
  width: auto;
  flex: 0 1 auto;
  max-width: 100%;
}
.surveyResponse__contactPill--full {
  width: 100%;
}
.surveyResponse__contactPill--inline .surveyResponse__contactValue {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}
.surveyResponse__contactIcon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.surveyResponse__contactIcon svg {
  display: block;
}
.surveyResponse__contactText {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
}
.surveyResponse__contactLabel {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
}
.surveyResponse__contactValue {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 750;
  letter-spacing: 0.01em;
}

/* ---- Subscription details (billing) ---- */
.subscriptionDetailsPage__stack {
  max-width: 520px;
  margin: 12px auto 0;
  width: 100%;
}
.subscriptionDetailsPage__card {
  width: 100%;
  box-sizing: border-box;
}

.subscriptionDetailsNotice {
  text-align: center;
  padding: 16px 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(234, 179, 8, 0.42);
  background: linear-gradient(
    145deg,
    rgba(234, 179, 8, 0.14) 0%,
    rgba(15, 23, 42, 0.35) 100%
  );
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.08) inset;
}
:root[data-theme="light"] .subscriptionDetailsNotice {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.18), rgba(255, 255, 255, 0.92));
}
.subscriptionDetailsNotice strong {
  display: block;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-align: center;
}
.subscriptionDetailsNotice p {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.55;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  text-wrap: balance;
}

.card.subscriptionDetailsCard {
  padding: 0;
}
.subscriptionDetailsCard {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(47, 125, 255, 0.28);
  background: linear-gradient(
    165deg,
    var(--surface-8) 0%,
    var(--surface-5) 38%,
    var(--surface-2) 100%
  );
  box-shadow:
    0 0 0 1px rgba(47, 125, 255, 0.1) inset,
    0 24px 64px rgba(0, 0, 0, 0.42);
}
:root[data-theme="light"] .subscriptionDetailsCard {
  border-color: rgba(47, 125, 255, 0.35);
  background: linear-gradient(165deg, #ffffff 0%, #f4f7ff 55%, #eef2ff 100%);
  box-shadow:
    0 0 0 1px rgba(47, 125, 255, 0.08) inset,
    0 20px 50px rgba(15, 23, 42, 0.1);
}

.subscriptionDetailsCard__accent {
  height: 5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(47, 125, 255, 0.2),
    rgba(47, 125, 255, 0.95),
    rgba(125, 211, 252, 0.75),
    rgba(47, 125, 255, 0.45)
  );
}

.subscriptionDetailsCard__hero {
  text-align: center;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--border-2);
}
.subscriptionDetailsCard__hero .kicker {
  margin-bottom: 2px;
}
.subscriptionDetailsCard__planName {
  margin: 4px 0 0 0;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--text);
  text-shadow: 0 2px 28px rgba(47, 125, 255, 0.22);
}
:root[data-theme="light"] .subscriptionDetailsCard__planName {
  text-shadow: none;
}

.subscriptionDetailsCard__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 8px;
}

.subscriptionDetailsRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.subscriptionDetailsRow:hover {
  border-color: rgba(47, 125, 255, 0.22);
  background: rgba(47, 125, 255, 0.06);
}
:root[data-theme="light"] .subscriptionDetailsRow {
  background: rgba(15, 23, 42, 0.028);
}
:root[data-theme="light"] .subscriptionDetailsRow:hover {
  background: rgba(47, 125, 255, 0.06);
}

.subscriptionDetailsRow__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.subscriptionDetailsRow__value {
  font-size: 15px;
  font-weight: 780;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.subscriptionDetailsRow__value--muted {
  color: var(--text-2);
  font-weight: 650;
  font-size: 14px;
}

.subscriptionDetailsRow__payOverdue {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 4px 0 0 0;
}

.subscriptionDetailsPeriodBand {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0 16px 10px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
:root[data-theme="light"] .subscriptionDetailsPeriodBand {
  background: rgba(15, 23, 42, 0.04);
}
.subscriptionDetailsPeriodBand__half {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subscriptionDetailsPeriodBand__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent,
    var(--border-2) 15%,
    var(--border-2) 85%,
    transparent
  );
  flex: 0 0 auto;
}
.subscriptionDetailsPeriodBand__value {
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.subscriptionDetailsStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.01em;
}
.subscriptionDetailsStatus__icon {
  flex-shrink: 0;
}
.subscriptionDetailsStatus--paid {
  border: 1px solid rgba(46, 229, 157, 0.38);
  background: rgba(46, 229, 157, 0.12);
  color: #b6f5d6;
  box-shadow: 0 0 20px rgba(46, 229, 157, 0.08);
}
.subscriptionDetailsStatus--unpaid {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.08);
}
:root[data-theme="light"] .subscriptionDetailsStatus--paid {
  color: #047857;
}
:root[data-theme="light"] .subscriptionDetailsStatus--unpaid {
  color: #b91c1c;
}

.subscriptionDetailsCard__footer {
  padding: 18px 18px 22px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-2);
  margin-top: 4px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}
:root[data-theme="light"] .subscriptionDetailsCard__footer {
  background: linear-gradient(180deg, transparent, rgba(47, 125, 255, 0.04));
}

.subscriptionDetailsCard__cancelBtn {
  border-radius: 999px;
  padding: 10px 20px;
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5 !important;
  background: rgba(248, 113, 113, 0.08);
}
.subscriptionDetailsCard__cancelBtn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}
:root[data-theme="light"] .subscriptionDetailsCard__cancelBtn {
  color: #b91c1c !important;
}
:root[data-theme="light"] .subscriptionDetailsCard__cancelBtn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

/* ============================================================
   LANDING PAGE (public home) — redesigned
   Self-contained, theme-aware via design tokens.
   ============================================================ */
.lp { padding-bottom: 24px; }

/* Landing icon color tokens */
.lp-i--blue   { color: var(--primary); }
.lp-i--green  { color: var(--green); }
.lp-i--violet { color: #8b5cf6; }
.lp-i--orange { color: #f97316; }

/* Solid colored tiles + white glyphs (features + stats) */
.lp-feature__icon.lp-i--blue,
.lp-stat__icon.lp-i--blue {
  background: linear-gradient(145deg, #4d8dff 0%, #2563eb 100%);
  box-shadow: 0 10px 24px rgba(47,125,255,0.28);
}
.lp-feature__icon.lp-i--green,
.lp-stat__icon.lp-i--green {
  background: linear-gradient(145deg, #3ee0a5 0%, #10b981 100%);
  box-shadow: 0 10px 24px rgba(16,185,129,0.24);
}
.lp-feature__icon.lp-i--violet,
.lp-stat__icon.lp-i--violet {
  background: linear-gradient(145deg, #b794ff 0%, #8b5cf6 100%);
  box-shadow: 0 10px 24px rgba(139,92,246,0.24);
}
.lp-feature__icon.lp-i--orange,
.lp-stat__icon.lp-i--orange {
  background: linear-gradient(145deg, #ffb36b 0%, #f97316 100%);
  box-shadow: 0 10px 24px rgba(249,115,22,0.24);
}

.lp-dot {
  display: inline-flex; width: 8px; height: 8px; border-radius: 99px;
  background: var(--green); box-shadow: 0 0 0 5px rgba(46,229,157,0.14);
}
.lp-linkIcon { flex: 0 0 auto; }

/* ---------- HERO ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 26px;
}
.lp-hero__content { min-width: 0; }
.lp-hero__title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 16px 0 14px;
  font-weight: 900;
}
.lp-hero__lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 0 24px;
}
.lp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dashboard mockup */
.lp-hero__visual { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-mock {
  border: 1px solid var(--border-1);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-5), var(--surface-1));
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(6px);
}
.lp-mock__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-mock__brand { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; color: var(--text-2); }
.lp-mock__brand strong { color: var(--primary); }
.lp-mock__pill {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-1); background: var(--surface-3);
}
.lp-mock__title { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text-1); }
.lp-mock__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.lp-mock__stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 8px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.lp-mock__num { font-size: 15px; font-weight: 900; letter-spacing: -0.3px; }
.lp-mock__lbl { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.lp-mock__panels { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.lp-mock__chart, .lp-mock__donut {
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 12px; padding: 10px;
}
.lp-mock__chartHead { font-size: 10px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.lp-mock__spark { width: 100%; height: 84px; display: block; }
.lp-mock__donut { display: flex; flex-direction: column; align-items: center; }
.lp-mock__ring {
  width: 78px; height: 78px; border-radius: 999px; margin: 6px 0 8px;
  background: conic-gradient(var(--primary) 0 68%, var(--green) 68% 92%, var(--cyan) 92% 100%);
  -webkit-mask: radial-gradient(circle 22px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 22px at center, transparent 98%, #000 100%);
}
.lp-mock__legend { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--text-3); }
.lp-mock__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-mock__legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--border-1); background: var(--surface-3);
  color: var(--text-2); font-size: 12.5px; font-weight: 700;
}
.lp-hero__visual .lp-chips { gap: 12px; margin-top: 2px; }
.lp-hero__visual .lp-chip {
  padding: 11px 18px;
  font-size: 15px;
  gap: 10px;
}
.lp-hero__visual .lp-chip .lp-linkIcon { width: 18px; height: 18px; color: var(--primary); }
.lp-chip .lp-linkIcon { color: var(--primary); }
.lp-chip--blue   { color: var(--primary); border-color: rgba(47,125,255,0.30); background: rgba(47,125,255,0.08); }
.lp-chip--green  .lp-linkIcon { color: var(--green); }
.lp-chip--green  { color: var(--green); border-color: rgba(46,229,157,0.30); background: rgba(46,229,157,0.08); }
.lp-chip--violet .lp-linkIcon { color: #a78bfa; }
.lp-chip--violet { color: #c4b5fd; border-color: rgba(167,139,250,0.30); background: rgba(167,139,250,0.08); }

/* ---------- SECURITY BANNER ---------- */
.lp-secure {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(47,125,255,0.30);
  border-radius: 22px;
  padding: 28px 30px;
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(47,125,255,0.20), transparent 65%),
    linear-gradient(180deg, rgba(13,28,64,0.85), rgba(9,18,42,0.92));
  box-shadow: var(--shadow);
  color: #eaf1ff;
}
.lp-secure__icon {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3ee0a5 0%, #10b981 100%);
  box-shadow: 0 10px 24px rgba(16,185,129,0.28);
  border: none;
}
.lp-secure__icon img { display: block; width: 30px; height: 30px; }
.lp-secure__body { flex: 1 1 0; min-width: 0; max-width: 100%; }
.lp-secure__title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
  color: #fff;
  max-width: none;
  text-wrap: pretty;
}
.lp-secure__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(234,241,255,0.82);
  max-width: none;
  text-wrap: pretty;
}
.lp-secure__text + .lp-secure__text { margin-top: 6px; }

/* ---------- SECTION HEADINGS ---------- */
.lp-section { margin: 46px 0; }
.lp-section__title {
  text-align: center; font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900; letter-spacing: -0.6px; margin: 0 0 26px;
}
.lp-section__title--left { text-align: left; margin-bottom: 8px; }
.lp-section__sub { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }

.lp-grid { display: grid; gap: 16px; }
.lp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- FEATURE CARDS ---------- */
.lp-feature {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-4), var(--surface-1));
  padding: 22px 20px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lp-feature:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 16px 40px rgba(0,0,0,0.30); }
.lp-feature__icon, .lp-usecase__icon, .lp-stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
}
.lp-feature__icon {
  width: 50px; height: 50px; border-radius: 14px;
}
.lp-feature__icon img { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.lp-feature__title { font-size: 16px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.2px; }
.lp-feature__text { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ---------- USE CASE CARDS ---------- */
.lp-usecase {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1));
  padding: 22px 16px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.lp-usecase:hover { transform: translateY(-3px); border-color: var(--border-2); }
.lp-usecase__icon {
  margin: 0 auto 14px;
  width: auto; height: auto;
  background: transparent;
  border-radius: 0;
}
.lp-usecase__icon img { width: 40px; height: 40px; }
.lp-usecase__title { font-size: 14.5px; font-weight: 800; margin: 0 0 6px; }
.lp-usecase__text { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }

/* ---------- CONVEROSMS INTEGRATION ---------- */
.lp-integration {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px 30px;
  background:
    radial-gradient(700px 260px at 18% 0%, rgba(47,125,255,0.18), transparent 60%),
    radial-gradient(700px 260px at 82% 0%, rgba(46,229,157,0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-4), var(--surface-1));
  box-shadow: var(--shadow);
}
.lp-integration__mark {
  width: 72px; height: 72px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-1); background: var(--surface-3);
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.lp-integration__mark:hover {
  border-color: var(--border-2);
  background: var(--surface-5);
  transform: translateY(-1px);
}
.lp-integration__mark img { display: block; width: 40px; height: 40px; }
.lp-integration__kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--converosms-green); margin-bottom: 6px;
}
.lp-integration__body { min-width: 0; }
.lp-integration__title {
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 900;
  margin: 0 0 8px; letter-spacing: -0.4px;
}
.lp-integration__text {
  margin: 0; font-size: 14.5px; line-height: 1.65;
  color: var(--text-2);
}

/* ---------- BRANDED BANNER ---------- */
.lp-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #2563eb 0%, #2f7dff 55%, #1d4ed8 100%);
  box-shadow: 0 22px 60px rgba(37,99,235,0.35);
  color: #fff;
}
.lp-banner__visual { display: flex; justify-content: center; }
.lp-banner__card {
  position: relative; width: 100%; max-width: 300px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px; padding: 22px;
  backdrop-filter: blur(8px);
}
.lp-banner__spark { width: 100%; height: 70px; display: block; }
.lp-banner__cardChip {
  position: absolute; right: 16px; bottom: -16px;
  width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.lp-banner__cardChip .lp-linkIcon { width: 20px; height: 20px; }
.lp-banner__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 0 0 12px; letter-spacing: -0.5px; }
.lp-banner__text { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.88); max-width: 52ch; }
.lp-banner__btn {
  background: #fff !important; color: #1d4ed8 !important;
  border-color: #fff !important; font-weight: 800;
}
.lp-banner__btn:hover { background: #eef2ff !important; color: #1d4ed8 !important; }

/* ---------- STATS ---------- */
.lp-stats { margin-top: 18px; }
.lp-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1));
  padding: 18px 14px;
  text-align: center;
}
.lp-stat__icon { margin: 0 auto 10px; width: 50px; height: 50px; border-radius: 14px; }
.lp-stat__icon img { display: block; width: 24px; height: 24px; }
.lp-stat__num { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.lp-stat__lbl { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- CUSTOM DOMAIN ---------- */
.lp-domain {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(46,229,157,0.22);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(520px 220px at 12% 0%, rgba(46,229,157,0.10), transparent 70%),
    linear-gradient(180deg, rgba(46,229,157,0.06), var(--surface-1));
  box-shadow: var(--shadow);
}
.lp-domain__chips { display: flex; flex-direction: column; gap: 12px; }
.lp-domain__chips .lp-chip { justify-content: flex-start; }
.lp-domain__text { min-width: 0; }
.lp-domain__globe { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lp-domain__globe img { display: block; width: 96px; height: 96px; }

/* Browser-window mock for example domains */
.lp-browser {
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(8,19,46,0.18);
}
.lp-browser__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: #f3f5f9;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.lp-browser__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.lp-browser__dots i { width: 9px; height: 9px; border-radius: 999px; background: #cbd2dd; display: block; }
.lp-browser__dots i:nth-child(1) { background: #ff5f57; }
.lp-browser__dots i:nth-child(2) { background: #febc2e; }
.lp-browser__dots i:nth-child(3) { background: #28c840; }
.lp-browser__url {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.10);
  color: #94a3b8; font-size: 12px; font-weight: 600;
}
.lp-browser__url img { display: block; }
.lp-browser__list { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; }
.lp-browser__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #475569;
}
.lp-browser__row img { display: block; flex: 0 0 auto; }
.lp-browser__link { color: #475569; font-size: 15px; font-weight: 600; white-space: nowrap; }
.lp-browser__link strong { color: #0f172a; font-weight: 800; }

/* ---------- FINAL CTA ---------- */
.lp-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  border-radius: 24px; padding: 34px 36px;
  background:
    radial-gradient(500px 200px at 90% 10%, rgba(46,229,157,0.18), transparent 60%),
    linear-gradient(135deg, #0b1c40 0%, #102a5e 100%);
  border: 1px solid rgba(47,125,255,0.30);
  box-shadow: var(--shadow);
  color: #fff;
}
.lp-cta__body { flex: 1 1 0; min-width: 0; max-width: 100%; }
.lp-cta__title {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  max-width: none;
  text-wrap: pretty;
}
.lp-cta__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(234,241,255,0.80);
  max-width: none;
  text-wrap: pretty;
}
.lp-cta__btn { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; font-weight: 800; white-space: nowrap; }
.lp-cta__btn:hover { background: #2563eb !important; color: #fff !important; }

/* ---------- PRODUCTS + COMPANY PANEL ---------- */
.lp-ready { padding: 26px 24px; }
.lp-ready__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
}
.lp-ready__products {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 100%;
}
.lp-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
a.lp-product:hover {
  border-color: var(--border-2);
  background: var(--surface-4);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}
.lp-product__logo {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  overflow: hidden;
}
.lp-product__logo img { display: block; width: 32px; height: 32px; }
.lp-product__name { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.lp-ready__contact {
  border-left: 1px solid var(--border-2);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-ready__contactHeader { display: flex; flex-direction: column; gap: 10px; }
.lp-ready__signature { width: 150px; display: block; }
.lp-ready__company { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.lp-ready__rows { display: flex; flex-direction: column; gap: 8px; }
.lp-ready__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-ready__link { color: var(--text-2); text-decoration: none; line-height: 1.45; }
.lp-ready__link:hover { color: var(--text); }
.lp-ready__icon {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); color: var(--text-muted, var(--muted)); background: var(--surface-2);
}

/* Light-theme polish for dark gradient panels */
:root[data-theme="light"] .lp-secure { color: #eaf1ff; }
:root[data-theme="light"] .lp-secure__title { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .lp-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-domain { grid-template-columns: 1fr; text-align: left; }
  .lp-domain__globe { display: none; }
  .lp-banner { grid-template-columns: 1fr; }
  .lp-banner__visual { order: 2; }
  .lp-secure { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .lp-grid--3 { grid-template-columns: 1fr; }
  .lp-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-secure { flex-direction: column; align-items: flex-start; text-align: left; }
  .lp-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .lp-cta__body { flex: none; }
  .lp-cta__btn { width: 100%; }

  /* Tighten vertical rhythm on mobile so gaps aren't oversized */
  .lp-hero { padding: 16px 0 14px; gap: 20px; }
  .lp-section { margin: 26px 0; }
  .lp-section__title { margin-bottom: 18px; }
  .lp .section { margin: 16px 0; }
  .lp-secure { padding: 22px 20px; }
  .lp-banner, .lp-domain, .lp-cta, .lp-integration { padding: 24px 20px; }
  .lp-integration { grid-template-columns: 1fr; }
  .lp-integration__mark { width: 60px; height: 60px; }
  .lp-ready__grid { grid-template-columns: 1fr; gap: 18px; }
  .lp-ready__contact {
    border-left: 0;
    border-top: 1px solid var(--border-2);
    padding-left: 0;
    padding-top: 18px;
  }
}
@media (max-width: 460px) {
  .lp-grid--5 { grid-template-columns: 1fr; }
  .lp-mock__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Bio page themes (public + preview) ---- */
.bioThemed .bioShell,
.bioPreviewShell.bioThemed {
  background: var(--bio-page-bg, #0b1220);
  font-family: var(--bio-font, inherit);
}
.bioPreviewShell.bioThemed {
  border-radius: 20px;
  padding: 16px 12px 20px;
  overflow: hidden;
}
.bioThemed .bioCard {
  background: var(--bio-card-bg, var(--surface-4));
  color: var(--bio-text, var(--text));
}
.bioThemed .bioUsername,
.bioThemed .bioHeadline,
.bioThemed .bioDescription,
.bioThemed .bioLinkButton__sub,
.bioThemed .bioFooter__link,
.bioThemed .bioPageQr__label {
  color: var(--bio-muted, var(--muted));
}
.bioThemed .bioName,
.bioThemed .bioLinkButton__label,
.bioThemed .bioLinkButton {
  color: var(--bio-text, var(--text));
}
.bioThemed a.bioMeta__item:hover {
  color: var(--bio-btn-text, var(--bio-text, var(--text)));
}
.bioThemed .bioLinkButton,
.bioThemed .bioLinkButton__share {
  background: var(--bio-btn-bg, var(--surface-4));
  color: var(--bio-btn-text, var(--bio-text, var(--text)));
  border-color: var(--bio-btn-border, var(--border-1));
}
.bioThemed .bioLinkButton:hover,
.bioThemed .bioLinkButton__share:hover {
  filter: brightness(1.08);
}
.bioThemed .bioMeta__item {
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-3)) 65%, transparent);
  border-color: var(--bio-btn-border, var(--border-1));
  color: var(--bio-btn-text, var(--bio-text, var(--text)));
}
.bioThemed .bioCard__top .iconButton {
  color: var(--bio-text, var(--text));
  border-color: var(--bio-btn-border, var(--border-1));
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-3)) 65%, transparent);
}
.bioThemed .bioCard__top .iconButton:hover {
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-3)) 85%, transparent);
  filter: brightness(1.08);
}
.bioThemed .bioCard__top .customSelect__trigger {
  color: var(--bio-text, var(--text));
  border-color: var(--bio-btn-border, var(--border-1));
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-3)) 65%, transparent);
}
.bioThemed .bioCard__top .customSelect__trigger:hover {
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-3)) 85%, transparent);
}
.bioThemed .bioCard__top .customSelect__trigger::after {
  border-top-color: var(--bio-text, var(--text-3));
}
.bioThemed .bioCard__top .customSelect__trigger:focus {
  border-color: var(--bio-btn-border, var(--border-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bio-text, var(--focus-ring)) 45%, transparent);
}
.bioThemed .bioAvatar:has(.bioAvatar__initials) {
  background: color-mix(in srgb, var(--bio-btn-bg, var(--surface-6)) 80%, transparent);
}
.bioThemed .bioAvatar:has(img) {
  background: transparent;
}
.bioThemed--btn-pill .bioLinkButton,
.bioThemed--btn-pill .bioLinkButton__share {
  border-radius: 999px;
}
.bioThemed--btn-rounded .bioLinkButton,
.bioThemed--btn-rounded .bioLinkButton__share {
  border-radius: 14px;
}
.bioThemed--btn-square .bioLinkButton,
.bioThemed--btn-square .bioLinkButton__share {
  border-radius: 6px;
}
.bioThemed--btn-outline .bioLinkButton,
.bioThemed--btn-outline .bioLinkButton__share {
  background: transparent;
  border-width: 2px;
}
.bioThemed--btn-soft .bioLinkButton,
.bioThemed--btn-soft .bioLinkButton__share {
  border-color: transparent;
}
.bioThemed--radius-sm .bioCard {
  border-radius: 16px;
}
.bioThemed--radius-md .bioCard {
  border-radius: 24px;
}
.bioThemed--radius-lg .bioCard {
  border-radius: 32px;
}
.bioThemed.bioThemed--has-bg .bioPreviewShell {
  background-size: cover;
  background-position: center;
}

/* Bio appearance settings */
.bioAppearanceCard {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bioAppearanceCard__intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}
.bioAppearanceSection {
  margin-bottom: 18px;
}
.bioAppearanceSection:has(.customSelect.is-open) {
  position: relative;
  z-index: 30;
}
.bioAppearanceSection--bg {
  margin-bottom: 0;
}
.bioAppearanceSection__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-5);
  margin-bottom: 10px;
}
.bioAppearanceOptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .bioAppearanceOptions {
    grid-template-columns: 1fr;
  }
}
.bioAppearanceOptions .formRow {
  margin: 0;
}
.bioAppearanceOptions .formRow label {
  font-size: 13px;
  margin-bottom: 6px;
}
.bioAppearanceSelect {
  max-width: 100%;
}
.bioAppearanceSelect select {
  width: 100%;
}
.bioAppearanceCard .formRow input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
.bioAppearanceCard .formRow select,
.bioAppearanceCard .formRow textarea {
  width: 100%;
}
.bioTemplateGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .bioTemplateGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bioTemplateCard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid var(--border-1);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bioTemplateCard:hover {
  border-color: var(--border-2);
}
.bioTemplateCard--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.bioTemplateCard__swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 36px;
}
.bioTemplateCard__swatches span {
  border-radius: 6px;
  min-height: 100%;
}
.bioTemplateCard__label {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
}
.bioAppearanceCustomize {
  margin: 0 0 18px;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: var(--surface-2);
  overflow: visible;
}
.bioAppearanceCustomize:has(.customSelect.is-open) {
  position: relative;
  z-index: 30;
}
.bioAppearanceCard .customSelect.is-open {
  position: relative;
  z-index: 40;
}
.bioThemeColorRow:has(.customSelect.is-open),
.bioAppearanceOptions .formRow:has(.customSelect.is-open) {
  position: relative;
  z-index: 35;
}
.bioAppearanceCustomize .customSelect__list {
  z-index: 45;
}
.bioAppearanceCustomize__title {
  font-weight: 650;
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1);
}
.bioThemeColorList {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  overflow: visible;
}
.bioThemeColorRow {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-1);
}
.bioThemeColorRow:first-child {
  border-top: 0;
}
@media (max-width: 640px) {
  .bioThemeColorRow {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }
}
.bioThemeColorRow--card {
  align-items: center;
}
.bioThemeColorRow__label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 550;
  margin: 0;
}
.bioThemeColorRow__control {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  flex-wrap: nowrap;
}
.bioThemeColorRow__control--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 320px;
}
.bioThemeColorRow__control .customSelect {
  width: 100%;
  min-width: 180px;
  max-width: 220px;
}
.bioThemeColorPicker {
  width: 40px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: var(--surface-1);
  flex-shrink: 0;
  cursor: pointer;
  color-scheme: dark;
}
:root[data-theme="light"] .bioThemeColorPicker {
  color-scheme: light;
}
.bioThemeColorPicker:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.bioThemeTransparentToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}
.bioThemeTransparentToggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.bioThemeColorInput--card {
  width: 100%;
  max-width: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.bioThemeColorRow__control--stack .help {
  margin: 0;
  font-size: 11px;
}
.bioAppearanceCard__actions {
  margin-top: 4px;
  padding-top: 4px;
  display: flex;
  justify-content: flex-end;
}
.bioSettingsImageControl--wide .bioSettingsImageControl__preview--wide {
  width: 100%;
  max-width: 220px;
  height: 120px;
  border-radius: 12px;
}
.bioSettingsImageControl--wide .bioSettingsImageControl__preview--wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

