/* Cult Connector dashboard — aligned with WordPress "Lativ" (theme.json) */
/* Tokens: #0b303b fg, #fef4ee cream, gradient bg, Sora, purple accent #5454d2 */

:root {
  --lativ-fg: #0b303b;
  --lativ-fg-muted: rgba(11, 48, 59, 0.65);
  --lativ-bg: #fef4ee;
  --lativ-grad: linear-gradient(
    127deg,
    rgb(190, 185, 242) 0%,
    rgb(197, 180, 217) 29%,
    rgb(252, 217, 210) 65%,
    rgb(197, 180, 217) 100%
  );
  --lativ-purple: #5454d2;
  --lativ-purple-hover: #4343b5;
  --lativ-tertiary: #f0f0f0;
  --lativ-radius: 20px;
  --lativ-radius-sm: 12px;
  --lativ-shadow: 0 4px 24px rgba(11, 48, 59, 0.08);
  --lativ-line: rgba(11, 48, 59, 0.12);
}

* {
  box-sizing: border-box;
}

body.dash-auth {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-weight: 200;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lativ-grad);
  color: var(--lativ-fg);
  line-height: 1.6;
}

body.dash-app {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-weight: 200;
  margin: 0;
  min-height: 100vh;
  background: var(--lativ-grad);
  color: var(--lativ-fg);
  line-height: 1.6;
}

/* —— Auth card —— */
.dash-auth .card {
  background: #fff;
  border-radius: var(--lativ-radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--lativ-shadow);
}

.dash-auth h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.dash-auth .sub {
  color: var(--lativ-fg-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.dash-auth .error {
  background: #fff0f0;
  color: #7f1d1d;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.dash-auth .success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 10px 12px;
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.dash-auth .message {
  color: var(--lativ-fg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.dash-auth label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--lativ-fg-muted);
  font-weight: 500;
}

.dash-auth input[type="email"],
.dash-auth input[type="password"],
.dash-auth input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  background: #fff;
  color: var(--lativ-fg);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 300;
  margin-bottom: 16px;
}

.dash-auth input:focus {
  outline: 2px solid rgba(84, 84, 210, 0.35);
  border-color: var(--lativ-purple);
}

.dash-auth button,
.dash-auth .btn {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-auth .btn-primary {
  background: var(--lativ-fg);
  color: #fff;
}

.dash-auth .btn-primary:hover {
  background: #0a2832;
  color: #fff;
}

.dash-auth .btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--lativ-fg);
  border: 1px solid var(--lativ-line);
  margin-bottom: 12px;
}

.dash-auth .btn-google__logo {
  flex-shrink: 0;
}

.dash-auth .btn-google:hover {
  background: var(--lativ-tertiary);
}

.dash-auth .divider {
  text-align: center;
  margin: 20px 0;
  color: var(--lativ-fg-muted);
  font-size: 0.85rem;
}

.dash-auth .footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

.dash-auth .footer a,
.dash-auth a.dash-link {
  color: var(--lativ-fg);
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.15em;
}

.dash-auth .footer a:hover {
  text-decoration: none;
}

.dash-auth .forgot-row {
  margin: -8px 0 16px;
  font-size: 0.9rem;
}

.dash-auth .forgot-row a {
  color: var(--lativ-fg);
  text-decoration: underline;
}

/* —— App shell (dashboard, static pages, admin) —— */
.dash-app .header {
  max-width: min(1400px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 20px 24px;
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  box-shadow: var(--lativ-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-app .header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.dash-app .header a {
  color: var(--lativ-fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.dash-app .header a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.15em;
}

.dash-app .header .dash-muted,
.dash-app .header span.dash-muted {
  color: var(--lativ-fg-muted);
  font-size: 0.9rem;
}

.dash-app .header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.dash-app main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.dash-app main.main-wide {
  max-width: 1200px;
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  padding: 24px;
  box-shadow: var(--lativ-shadow);
}

.dash-app main.main-admin {
  max-width: 1100px;
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  padding: 24px;
  box-shadow: var(--lativ-shadow);
}

.dash-app section {
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--lativ-shadow);
  color: var(--lativ-fg);
}

.dash-app section h2,
.dash-app main h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.dash-app .error {
  background: #fff0f0;
  color: #7f1d1d;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.dash-app .success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 10px 12px;
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.dash-app .success a {
  color: #047857;
  font-weight: 500;
}

.dash-app .email-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.dash-app .email-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 8px;
  color: var(--lativ-fg);
}

.dash-app .email-list form {
  margin: 0;
}

.dash-app .email-list button {
  background: transparent;
  border: 1px solid var(--lativ-line);
  color: var(--lativ-fg);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 400;
}

.dash-app .email-list button:hover {
  background: var(--lativ-tertiary);
}

.dash-app .add-email {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-app .add-email input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  background: #fff;
  color: var(--lativ-fg);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 300;
}

.dash-app .add-email button {
  padding: 10px 20px;
  background: var(--lativ-fg);
  color: var(--lativ-bg);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
}

.dash-app .add-email button:hover {
  background: #0a2832;
}

.dash-app .add-email button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dash-app .hint {
  font-size: 0.85rem;
  color: var(--lativ-fg-muted);
  margin-top: 8px;
}

.dash-app .btn-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--lativ-fg);
  color: var(--lativ-bg) !important;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dash-app .btn-link:hover {
  background: #0a2832;
  color: var(--lativ-bg) !important;
}

.dash-app .download-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: center;
}

.dash-app .download-btn-row .btn-link {
  margin-top: 0;
}

.dash-app .instructions {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lativ-fg-muted);
  white-space: pre-wrap;
}

.dash-app .install-video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  border-radius: var(--lativ-radius-sm);
  overflow: hidden;
  background: rgba(11, 48, 59, 0.06);
  aspect-ratio: 16 / 9;
}

.dash-app .install-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dash-app #install-tutorial {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  text-align: left;
  line-height: 1.7;
  color: var(--lativ-fg);
}

.dash-app #install-tutorial h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.dash-app #install-tutorial ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--lativ-fg-muted);
}

.dash-app #install-tutorial code {
  background: var(--lativ-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.dash-app .more-details-wrap {
  margin-top: 12px;
}

.dash-app .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.dash-app .plan-card {
  background: #fff;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.dash-app .plan-card__body {
  flex: 1 1 auto;
}

.dash-app .plan-card__actions {
  margin-top: auto;
  padding-top: 18px;
}

.dash-app .plan-tagline {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--lativ-fg-muted);
  font-weight: 400;
}

.dash-app .plan-features {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--lativ-fg-muted);
  line-height: 1.5;
  font-weight: 300;
}

.dash-app .plan-features li {
  margin-bottom: 8px;
}

.dash-app .plan-features li:last-child {
  margin-bottom: 0;
}

.dash-app .plan-card .plan-name {
  font-weight: 600;
  color: var(--lativ-fg);
  margin-bottom: 6px;
  text-align: left;
}

.dash-app .plan-card .plan-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lativ-fg);
  margin-bottom: 6px;
}

.dash-app .plan-card .plan-desc {
  font-size: 0.85rem;
  color: var(--lativ-fg-muted);
  margin-bottom: 0;
  line-height: 1.45;
}

.dash-app .plan-card .plan-btn {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: var(--lativ-purple);
  color: #fff;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: inherit;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.dash-app .plan-card .plan-btn:hover {
  background: var(--lativ-purple-hover);
  color: #fff;
}

.dash-app .plan-card a.plan-btn {
  color: #fff;
}

.dash-app .plan-card .plan-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dash-app .plan-card .plan-btn.plan-btn--secondary {
  background: transparent;
  color: var(--lativ-fg);
  border: 1px solid var(--lativ-line);
}

.dash-app .plan-card .plan-btn.plan-btn--secondary:hover {
  background: rgba(11, 48, 59, 0.06);
  color: var(--lativ-fg);
}

.dash-app .plan-card-enterprise .plan-price {
  font-size: 1.1rem;
}

.dash-app .muted {
  font-size: 0.85rem;
  color: var(--lativ-fg-muted);
}

.dash-app .dashboard-footer-actions .btn-cancel {
  background: transparent;
  border: 1px solid var(--lativ-line);
  color: var(--lativ-fg);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 400;
}

.dash-app .dashboard-footer-actions .btn-cancel:hover {
  background: rgba(11, 48, 59, 0.05);
}

.dash-app .dashboard-footer {
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--lativ-line);
  text-align: center;
  color: var(--lativ-fg-muted);
  font-size: 0.9rem;
}

.dash-app .dashboard-footer a {
  color: var(--lativ-fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-app .dashboard-footer a:hover {
  text-decoration: none;
}

/* Legal / trust content */
.dash-app main.simple-page {
  line-height: 1.6;
  color: var(--lativ-fg-muted);
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  padding: 28px 32px 40px;
  box-shadow: var(--lativ-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.dash-app main.simple-page h2 {
  color: var(--lativ-fg);
  margin-top: 24px;
}

.dash-app main.simple-page p,
.dash-app main.simple-page li {
  margin-bottom: 12px;
}

.dash-app main.simple-page a {
  color: var(--lativ-fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-app main.simple-page a:hover {
  text-decoration: none;
}

.dash-app .back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--lativ-fg);
  text-decoration: underline;
}

.dash-app main.centered {
  text-align: center;
  max-width: 560px;
  padding: 48px 32px;
  margin: 24px auto 48px;
  background: var(--lativ-bg);
  border-radius: var(--lativ-radius);
  box-shadow: var(--lativ-shadow);
}

.dash-app main.centered h2 {
  font-size: 1.5rem;
  color: var(--lativ-fg);
  margin-bottom: 16px;
}

.dash-app main.centered p {
  color: var(--lativ-fg-muted);
  margin-bottom: 12px;
}

.dash-app main.centered .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--lativ-fg);
  color: var(--lativ-bg);
  border-radius: 100px;
  text-decoration: none;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
}

.dash-app main.centered .btn:hover {
  background: #0a2832;
}

/* Profile form */
.dash-app .profile-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dash-app .profile-form .field {
  width: 100%;
}

.dash-app .profile-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--lativ-fg-muted);
  margin-bottom: 6px;
}

.dash-app .profile-form input[type="text"],
.dash-app .profile-form input[type="password"],
.dash-app .profile-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  background: #fff;
  color: var(--lativ-fg);
  font-size: 1rem;
  font-family: inherit;
}

.dash-app .profile-form input[readonly] {
  background: #f5f5f5;
  opacity: 0.92;
}

.dash-app .profile-display {
  font-size: 0.95rem;
  color: var(--lativ-fg-muted);
  line-height: 1.6;
}

.dash-app .profile-display strong {
  color: var(--lativ-fg);
  font-weight: 500;
}

.dash-app .btn-link.btn-link--compact {
  padding: 6px 14px;
  font-size: 0.85rem;
  margin: 0;
}

.dash-app .link-quiet {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--lativ-fg-muted);
  text-decoration: underline;
}

.dash-app .link-quiet:hover {
  color: var(--lativ-fg);
}

.dash-app .save-profile {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 18px;
  background: var(--lativ-fg);
  color: var(--lativ-bg);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
}

.dash-app .save-profile:hover {
  background: #0a2832;
}

/* Admin tables */
.dash-app table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  overflow: hidden;
}

.dash-app th,
.dash-app td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--lativ-line);
  color: var(--lativ-fg);
  font-size: 0.9rem;
}

.dash-app th {
  background: var(--lativ-tertiary);
  color: var(--lativ-fg);
  font-weight: 600;
  font-size: 0.85rem;
}

.dash-app td {
  color: var(--lativ-fg-muted);
  background: #fff;
}

.dash-app td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dash-app .emails-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--lativ-fg);
}

.dash-app .emails-list li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
}

.dash-app .btn.admin-btn {
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  border: 1px solid var(--lativ-line);
  background: #fff;
  color: var(--lativ-fg);
  font-family: inherit;
}

.dash-app .btn.admin-btn:hover {
  background: var(--lativ-tertiary);
}

.dash-app .btn.btn-danger {
  border-color: #fecaca;
  background: #fff0f0;
  color: #991b1b;
}

.dash-app .btn.btn-danger:hover {
  background: #fee2e2;
}

.dash-app .btn.admin-btn.admin-btn-sm {
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.dash-app select,
.dash-app .filters input,
.dash-app .filters select {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--lativ-fg);
  border: 1px solid var(--lativ-line);
  font-size: 0.85rem;
  font-family: inherit;
}

.dash-app .filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dash-app .filters label {
  color: var(--lativ-fg-muted);
  font-size: 0.9rem;
}

.dash-app .filters input[type="text"] {
  min-width: 160px;
}

.dash-app .filters button {
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: var(--lativ-fg);
  border: 1px solid var(--lativ-line);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.dash-app .filters button:hover {
  background: var(--lativ-tertiary);
}

.dash-app .note {
  color: var(--lativ-fg-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

.dash-app .admin-h2 {
  margin-top: 32px;
  font-size: 1rem;
  color: var(--lativ-fg);
}

.dash-app code {
  font-size: 0.8rem;
  background: var(--lativ-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--lativ-fg);
}

.dash-app .empty-note {
  color: var(--lativ-fg-muted);
  margin-top: 24px;
}

.dash-app main.main-wide table th,
.dash-app main.main-wide table td {
  border-right: 1px solid var(--lativ-line);
}
.dash-app main.main-wide table th:last-child,
.dash-app main.main-wide table td:last-child {
  border-right: none;
}

.dash-app .admin-inline-form {
  display: inline;
  margin-left: 8px;
}
.dash-app .admin-form-block {
  display: inline-block;
  margin-right: 8px;
}
.dash-app .admin-add-email-form {
  margin-top: 6px;
}
.dash-app .admin-input-email {
  width: 180px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--lativ-line);
  background: #fff;
  color: var(--lativ-fg);
  font-size: 0.85rem;
  font-family: inherit;
}
.dash-app .emails-list .muted-empty {
  color: var(--lativ-fg-muted);
}

.dash-app #cancel-form {
  margin: 0;
}

.dash-app .plan-card a.plan-btn {
  text-decoration: none;
  display: block;
}

/* —— App shell + glass sidebar —— */
.dash-app--shell {
  margin: 0;
  min-height: 100vh;
}

.dash-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.glass-sidebar {
  --cc-ink: #0b303b;
  --cc-ink2: rgba(11, 48, 59, 0.78);
  --cc-border: rgba(255, 255, 255, 0.55);
  --cc-shadow: 0 14px 40px rgba(11, 48, 59, 0.14);
  width: 260px;
  flex-shrink: 0;
  margin: 16px 0 16px 16px;
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px solid var(--cc-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    var(--cc-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--cc-ink);
}

.dash-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.dash-sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
}

.dash-sidebar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dash-sidebar__brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.dash-sidebar__link {
  text-decoration: none;
  color: var(--cc-ink2);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-sidebar__link:hover {
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.45);
}

.dash-sidebar__link.is-active {
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.dash-sidebar__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.dash-sidebar__muted {
  color: var(--cc-ink2);
  word-break: break-all;
}

.dash-sidebar__mini {
  color: var(--lativ-purple);
  text-decoration: none;
  font-size: 0.85rem;
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 40px;
}

.dash-main__header {
  margin-bottom: 20px;
}

.dash-main__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.glass-panel {
  border-radius: var(--lativ-radius);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--lativ-shadow);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.dash-panel .dash-hint {
  color: var(--lativ-fg-muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.dash-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--lativ-fg);
}

.dash-alert {
  padding: 12px 16px;
  border-radius: var(--lativ-radius-sm);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.dash-alert--error {
  background: #fff0f0;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.dash-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dash-users-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dash-install-quick-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.dash-app--crowdin .dash-install-quick-panel {
  border-color: rgba(84, 84, 210, 0.22);
  box-shadow: 0 10px 36px rgba(45, 45, 90, 0.08);
}

.dash-account-panel .dash-account-lead {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--lativ-fg);
}

.dash-account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 18px 0 6px;
  align-items: center;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--lativ-line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--lativ-fg-muted);
}

.dash-badge--muted {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.028);
}

.dash-badge--trial {
  border-color: rgba(180, 140, 60, 0.35);
  background: rgba(255, 248, 220, 0.85);
  color: #7a5c14;
}

.dash-badge--warn {
  border-color: rgba(180, 90, 60, 0.35);
  background: rgba(255, 237, 230, 0.9);
  color: #8b3a1a;
}

.dash-badge--demo {
  border-style: dashed;
  border-color: rgba(100, 100, 180, 0.35);
  background: rgba(84, 84, 210, 0.06);
  color: #45459c;
}

.dash-email-table {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.dash-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lativ-line);
}

.dash-email-row__main {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-email-row__email {
  font-weight: 500;
}

.dash-email-row__name {
  font-size: 0.9rem;
  color: var(--lativ-fg-muted);
}

.dash-email-row__form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-email-row__form input[type="text"] {
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--lativ-line);
  font-family: inherit;
}

.btn-tiny {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--lativ-line);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.btn-tiny--danger {
  border-color: #fecaca;
  color: #991b1b;
}

.dash-add-email-block {
  margin-top: 20px;
  max-width: 480px;
}

.dash-add-email-open {
  display: inline-block;
}

.dash-add-email-open[hidden] {
  display: none !important;
}

.dash-add-email {
  margin-top: 20px;
  max-width: 480px;
}

.dash-add-email--panel {
  margin-top: 0;
  padding-top: 4px;
}

.dash-add-email--panel[hidden] {
  display: none !important;
}

.dash-add-email__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.dash-add-email__actions .btn-primary-inline {
  margin-top: 0;
}

.dash-add-email-cancel {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--lativ-line);
  background: #fff;
  color: var(--lativ-fg);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-add-email-cancel:hover {
  background: rgba(11, 48, 59, 0.06);
}

.dash-field-row {
  margin-bottom: 12px;
}

.dash-label {
  display: block;
  font-size: 0.85rem;
  color: var(--lativ-fg-muted);
  margin-bottom: 4px;
}

.dash-add-email input[type="email"],
.dash-add-email input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--lativ-radius-sm);
  border: 1px solid var(--lativ-line);
  font-family: inherit;
}

.btn-primary-inline {
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6b5cff, #5454d2);
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}

.dash-user-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.dash-user-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--lativ-radius-sm);
  border: 1px solid var(--lativ-line);
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.dash-user-link.is-active {
  border-color: var(--lativ-purple);
  box-shadow: 0 0 0 1px rgba(84, 84, 210, 0.25);
}

.dash-user-link__name {
  display: block;
  font-weight: 600;
}

.dash-user-link__email {
  font-size: 0.85rem;
  color: var(--lativ-fg-muted);
}

.dash-comp-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.dash-activity-project-line {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.dash-activity-project-primary {
  font-weight: 600;
  color: var(--lativ-fg, #0b303b);
}

.dash-activity-project-id {
  font-weight: 400;
  opacity: 0.72;
}

.dash-activity-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 48, 59, 0.08);
}

.dash-activity-section:first-of-type {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.dash-activity-section__heading {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lativ-fg, #0b303b);
}

.dash-activity-section__hint {
  margin: 0 0 14px 0;
}

.dash-activity-section__empty {
  margin-top: 18px;
}

.dash-activity-section--unassigned {
  margin-top: 28px;
}

.dash-activity-project {
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(11, 48, 59, 0.1);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 48, 59, 0.06);
}

.dash-activity-project__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--lativ-fg, #0b303b);
  user-select: none;
  transition: background 0.15s ease;
}

.dash-activity-project__summary::-webkit-details-marker {
  display: none;
}

.dash-activity-project__summary:hover {
  background: rgba(84, 84, 210, 0.06);
}

.dash-activity-project__summary:focus-visible {
  outline: 3px solid rgba(84, 84, 210, 0.28);
  outline-offset: -2px;
}

.dash-activity-project__label {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.3;
}

.dash-activity-project__chev {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(11, 48, 59, 0.45);
  border-bottom: 2px solid rgba(11, 48, 59, 0.45);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.18s ease;
  opacity: 0.75;
}

.dash-activity-project[open] .dash-activity-project__chev {
  transform: rotate(225deg);
  margin-top: 4px;
}

.dash-activity-project__panel {
  padding: 2px 14px 14px 14px;
  border-top: 1px solid rgba(11, 48, 59, 0.06);
}

.dash-activity-detail-list {
  --dash-activity-detail-fs: 0.88rem;
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: var(--dash-activity-detail-fs);
  color: var(--lativ-fg-muted, rgba(11, 48, 59, 0.72));
  line-height: 1.45;
}

.dash-activity-detail-list__item {
  margin-bottom: 6px;
}

.dash-activity-detail-list__item:last-child {
  margin-bottom: 0;
}

.dash-activity-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 14px;
}

.dash-activity-row__main {
  flex: 1;
  min-width: 0;
}

.dash-activity-row__time {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  /* ~50% of detail line; floor keeps short dates readable */
  font-size: max(0.65rem, calc(var(--dash-activity-detail-fs, 0.88rem) * 0.5));
  line-height: 1.25;
  color: var(--lativ-fg-muted, rgba(11, 48, 59, 0.72));
  text-align: right;
  white-space: nowrap;
}

.dash-profile-form {
  max-width: 440px;
}

.dash-profile-form input[disabled] {
  opacity: 0.85;
  background: #f5f5f5;
}

.dash-cancel-wrap {
  margin-top: 44px;
  padding-top: 4px;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Plan page: cancel as text control (not pill button) */
.dash-app--crowdin .dash-cancel-wrap .dash-cancel-plan-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  color: rgba(107, 44, 44, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  box-shadow: none;
}

.dash-app--crowdin .dash-cancel-wrap .dash-cancel-plan-link:hover {
  color: #6b2c2c;
  background: none;
}

.dash-app--crowdin .dash-cancel-wrap .dash-cancel-plan-link:focus-visible {
  outline: 2px solid rgba(84, 84, 210, 0.35);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .dash-shell {
    flex-direction: column;
  }
  .glass-sidebar {
    width: auto;
    margin: 12px;
  }
}

/* —— Crowdin-like dashboard (purple accents, white / gray chrome) —— */
.dash-app--crowdin {
  background: #f6f7f8;
  color: #1a1d21;
}

.dash-crowdin-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 1.05rem;
}

.dash-topbar__logo img {
  display: block;
  border-radius: 8px;
}

.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-topbar__user {
  font-size: 0.85rem;
  color: rgba(26, 29, 33, 0.65);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-topbar__link {
  font-size: 0.85rem;
  color: var(--lativ-purple);
  text-decoration: none;
  font-weight: 500;
}

.dash-topbar__link:hover {
  text-decoration: underline;
}

.dash-topbar__btn {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  color: #1a1d21;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.dash-topbar__btn--help {
  background: var(--lativ-purple);
  border-color: var(--lativ-purple);
  color: #fff;
}

.dash-topbar__btn--help:hover {
  background: var(--lativ-purple-hover);
  border-color: var(--lativ-purple-hover);
  color: #fff;
}

.dash-topbar__btn--logout:hover {
  border-color: var(--lativ-purple);
  color: var(--lativ-purple);
}

.dash-body-split {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}

/* Keep sidebar + “Other tools” visible while scrolling long dashboard pages */
.dash-side-nav {
  --dash-topbar-sticky-height: 52px;
  width: 240px;
  flex-shrink: 0;
  background: #eef0f2;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: flex-start;
  position: sticky;
  top: var(--dash-topbar-sticky-height);
  height: calc(100vh - var(--dash-topbar-sticky-height));
  max-height: calc(100vh - var(--dash-topbar-sticky-height));
  box-sizing: border-box;
}

.dash-side-nav__main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.dash-side-nav__bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-side-nav__links--tools {
  padding-bottom: 4px;
}

.dash-side-nav__label {
  margin: 16px 16px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 29, 33, 0.45);
}

.dash-side-nav__label:first-child {
  margin-top: 8px;
}

.dash-side-nav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.dash-side-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(26, 29, 33, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.dash-side-nav__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  opacity: 0.88;
}

.dash-side-nav__icon svg {
  display: block;
}

.dash-side-nav__link.is-active .dash-side-nav__icon {
  opacity: 1;
}

.dash-side-nav__link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1a1d21;
}

.dash-side-nav__link.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1d21;
  font-weight: 600;
  border-left-color: var(--lativ-purple);
}

.dash-content {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 40px;
  background: #f6f7f8;
}

.dash-content__header {
  margin-bottom: 20px;
}

.dash-content__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  color: #1a1d21;
}

.dash-app--crowdin .glass-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dash-app--crowdin .dash-alert--success {
  background: #f3f0ff;
  border-color: rgba(84, 84, 210, 0.35);
  color: #312e81;
}

.dashboard-footer--minimal {
  border-top: none;
  margin-top: 48px;
  padding-top: 0;
  text-align: left;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .dash-body-split {
    flex-direction: column;
  }

  .dash-side-nav {
    width: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
    position: static;
    height: auto;
    max-height: none;
    align-self: stretch;
    top: auto;
  }

  .dash-side-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-side-nav__link {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .dash-side-nav__link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--lativ-purple);
  }

  .dash-side-nav__main {
    flex: 0 1 auto;
    overflow: visible;
  }

  .dash-side-nav__bottom {
    margin-top: 16px;
    width: 100%;
  }

  .dash-content {
    padding: 16px 18px 32px;
  }
}

/* —— Cult Connector dashboard refinements (tabs route /dashboard/:section) —— */
.dash-app--crowdin,
.dash-app--crowdin button,
.dash-app--crowdin input,
.dash-app--crowdin textarea {
  font-weight: 300;
}

.dash-app--crowdin strong {
  font-weight: 500;
}

.dash-app--crowdin .dash-content__title {
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dash-app--crowdin .dash-subheading {
  font-weight: 400;
}

.dash-app--crowdin .dash-subheading--spaced {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-app--crowdin .dash-side-nav__link {
  font-weight: 400;
}

.dash-app--crowdin .dash-side-nav__link.is-active {
  font-weight: 500;
}

.dash-app--crowdin .dash-side-nav__label {
  font-weight: 600;
}

.dash-app--crowdin .dash-topbar__brand-text {
  font-weight: 400;
}

.dash-app--crowdin .dash-topbar__link {
  font-weight: 300;
}

.dash-app--crowdin .dash-topbar__user {
  font-weight: 300;
}

.dash-app--crowdin .dash-topbar__btn {
  font-weight: 400;
}

.dash-app--crowdin .dash-content__header {
  margin-bottom: 24px;
}

.dash-app--crowdin .glass-panel {
  padding: 28px 32px;
  margin-bottom: 28px;
}

.dash-app--crowdin .dash-alert {
  margin-bottom: 18px;
}

.dash-app--crowdin .dash-hint {
  margin-bottom: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.dash-app--crowdin .dash-add-email-block {
  margin-top: 1.35rem;
}

.dash-app--crowdin .dash-add-email {
  margin-top: 1.35rem;
  padding-bottom: 0.25rem;
}

.dash-app--crowdin .dash-add-email--panel {
  margin-top: 0;
  padding-top: 0.35rem;
}

.dash-app--crowdin .dash-add-email-cancel {
  border-color: rgba(0, 0, 0, 0.12);
  font-weight: 400;
}

.dash-app--crowdin .dash-add-email-cancel:hover {
  background: rgba(84, 84, 210, 0.06);
  border-color: rgba(84, 84, 210, 0.3);
}

.dash-app--crowdin .dash-field-row {
  margin-bottom: 16px;
}

.dash-app--crowdin .dash-email-row {
  padding: 14px 0;
}

.dash-app--crowdin .dash-account-panel .dash-account-lead {
  font-weight: 300;
}

.dash-app--crowdin .dash-badge {
  font-weight: 400;
  backdrop-filter: blur(6px);
}

.dash-app--crowdin .dash-badge--muted {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(84, 84, 210, 0.18);
  color: rgba(45, 45, 70, 0.82);
}

.dash-app--crowdin .dash-badge--trial {
  background: rgba(255, 252, 235, 0.92);
  border-color: rgba(200, 160, 70, 0.4);
  color: #6b5216;
}

.dash-app--crowdin .dash-badge--warn {
  background: rgba(255, 240, 235, 0.92);
  border-color: rgba(200, 100, 80, 0.35);
}

.dash-app--crowdin .dash-badge--demo {
  background: rgba(84, 84, 210, 0.08);
  border-color: rgba(84, 84, 210, 0.28);
  color: #3d3d7a;
}

.dash-app--crowdin .download-btn-row {
  margin-top: 14px;
  margin-bottom: 18px;
  gap: 14px;
}

.dash-app--crowdin .instructions {
  margin-top: 14px;
  font-weight: 300;
}

.dash-app--crowdin .dash-user-link__name {
  font-weight: 400;
}

/* Soft purple outline buttons (replace solid fills) */
.dash-app--crowdin .btn-primary-inline--crowdin,
.dash-app--crowdin .save-profile {
  background: rgba(84, 84, 210, 0.1);
  color: #3d3daf;
  border: 1px solid rgba(84, 84, 210, 0.35);
  font-weight: 400;
}

.dash-app--crowdin .btn-primary-inline--crowdin:hover,
.dash-app--crowdin .save-profile:hover {
  background: rgba(84, 84, 210, 0.16);
  color: #2f2f88;
  border-color: rgba(84, 84, 210, 0.45);
}

.dash-app--crowdin .btn-link--dash-download {
  background: #fff !important;
  color: var(--lativ-fg) !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 300;
}

.dash-app--crowdin .btn-link--dash-download:hover {
  background: #fafafa !important;
  border-color: rgba(84, 84, 210, 0.35);
  color: var(--lativ-fg) !important;
}

.dash-app--crowdin .btn-link--crowdin-outline {
  background: #fff !important;
  color: var(--lativ-fg) !important;
  border: 1px solid rgba(84, 84, 210, 0.28);
  font-weight: 300;
}

.dash-app--crowdin .btn-link--crowdin-outline:hover {
  background: rgba(84, 84, 210, 0.06) !important;
  color: var(--lativ-fg) !important;
  border-color: rgba(84, 84, 210, 0.45) !important;
}

.dash-app--crowdin .plan-card .plan-btn {
  background: rgba(84, 84, 210, 0.1);
  color: #3d3daf !important;
  border: 1px solid rgba(84, 84, 210, 0.35);
  font-weight: 400;
}

.dash-app--crowdin .plan-card .plan-btn:hover:not(:disabled) {
  background: rgba(84, 84, 210, 0.16);
  color: #2f2f88 !important;
}

.dash-app--crowdin .plan-card .plan-btn:disabled {
  opacity: 0.55;
}

body.dash-app--crowdin.dash-app .plan-card a.plan-btn {
  color: #3d3daf !important;
}

body.dash-app--crowdin.dash-app .plan-card a.plan-btn:hover {
  color: #2f2f88 !important;
}

.dash-app--crowdin .dash-topbar__btn--help {
  background: rgba(84, 84, 210, 0.12);
  border: 1px solid rgba(84, 84, 210, 0.38);
  color: #3d3daf;
}

.dash-app--crowdin .dash-topbar__btn--help:hover {
  background: rgba(84, 84, 210, 0.18);
  border-color: rgba(84, 84, 210, 0.48);
  color: #2f2f88;
}

.dash-app--crowdin .btn-cancel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #6b2c2c;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 400;
}

.dash-app--crowdin .btn-cancel:hover {
  border-color: rgba(107, 44, 44, 0.35);
  background: rgba(254, 242, 242, 0.8);
}

.dash-app--crowdin .btn-tiny {
  font-weight: 400;
  background: #fff;
}

.dash-app--crowdin .dashboard-footer--minimal {
  font-weight: 300;
}

.dash-email-row__role {
  font-size: 0.82rem;
  color: rgba(26, 29, 33, 0.55);
  display: block;
  margin-top: 2px;
}

.dash-email-row__form {
  flex-wrap: wrap;
}

.dash-email-row__role-input {
  min-width: 100px;
  max-width: 140px;
}

.dash-howto-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
  font-weight: 300;
}

.dash-howto-list li {
  margin-bottom: 10px;
}

.dash-legal-page .dash-legal-list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
  font-weight: 300;
}

.dash-legal-page .dash-legal-list li {
  margin-bottom: 8px;
}

/* TMS toolbar */
.dash-tms-bar {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 16px 20px !important;
}

.dash-tms-bar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.dash-tms-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lativ-fg-muted);
}

/* Shared select chrome (admin filters, etc.): keep native menu arrow */
.dash-tms-select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1d21;
  padding: 10px 14px;
}

/* Custom TMS picker (matches dashboard chrome; avoids native select menu styling) */
.dash-tms-dropdown {
  position: relative;
  min-width: 240px;
  flex: 1 1 220px;
  max-width: 360px;
}

.dash-tms-dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: #1a1d21;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-tms-dropdown__trigger:hover {
  border-color: rgba(84, 84, 210, 0.35);
}

.dash-tms-dropdown__trigger:focus {
  outline: none;
  border-color: rgba(84, 84, 210, 0.45);
  box-shadow: 0 0 0 3px rgba(84, 84, 210, 0.12);
}

.dash-tms-dropdown__value {
  flex: 1;
  min-width: 0;
}

.dash-tms-dropdown__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: rgba(26, 29, 33, 0.55);
}

.dash-tms-dropdown__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(11, 48, 59, 0.12);
  z-index: 300;
  box-sizing: border-box;
}

.dash-tms-dropdown__option {
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 300;
  color: #1a1d21;
  line-height: 1.35;
}

.dash-tms-dropdown__option:hover {
  background: rgba(84, 84, 210, 0.07);
}

.dash-tms-dropdown__option.is-selected {
  font-weight: 500;
  background: rgba(84, 84, 210, 0.06);
}

.dash-tms-translator-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(84, 84, 210, 0.38);
  background: rgba(84, 84, 210, 0.1);
  color: #3d3daf;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  font-family: inherit;
}

.dash-tms-translator-btn:hover {
  background: rgba(84, 84, 210, 0.16);
  color: #2f2f88;
}

.dash-tms-translator-btn--nav {
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.dash-tms-translator-btn--nav.is-active {
  background: rgba(84, 84, 210, 0.18);
  border-color: rgba(84, 84, 210, 0.55);
  color: #2f2f88;
  font-weight: 500;
}

.dash-other-tms-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dash-other-tms-form input[type="text"],
.dash-other-tms-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1d21;
}

.dash-other-tms-form input[type="text"]:focus,
.dash-other-tms-form input[type="email"]:focus,
.dash-other-tms-form .dash-textarea:focus {
  outline: none;
  border-color: rgba(84, 84, 210, 0.45);
  box-shadow: 0 0 0 3px rgba(84, 84, 210, 0.12);
}

.dash-other-tms-form .dash-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1d21;
  resize: vertical;
}

.dash-other-tms-form .dash-field-row {
  margin-bottom: 18px;
}

.dash-subheading--tight {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Plan summary strip */
.dash-plan-current {
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(84, 84, 210, 0.22);
  background: rgba(84, 84, 210, 0.06);
}

.dash-plan-current__label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lativ-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-plan-current__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--lativ-fg);
}

.plan-price--enterprise {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
}

/* Installation numbered steps */
.dash-install-steps {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}

.dash-install-steps li {
  margin-bottom: 14px;
}

/* Profile actions row */
.dash-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.dash-app .save-profile {
  margin-top: 0;
}

.dash-subheading--profile-gap {
  margin-top: 2rem;
}

.dash-profile-saved-banner {
  margin-bottom: 18px !important;
}

.dash-profile-google-hint {
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
  color: rgba(26, 29, 33, 0.62) !important;
  margin-top: 0.45rem !important;
  margin-bottom: 1.25rem !important;
  max-width: 440px;
  font-weight: 300 !important;
}

.dash-profile-google-hint a {
  font-weight: 400;
}

/* Tighter gap after Google-only hint before Delete account */
.dash-profile-google-hint + .dash-subheading--profile-gap {
  margin-top: 0.25rem;
}

.dash-text-support-smallcaps {
  font-variant: all-small-caps;
  letter-spacing: 0.04em;
}

.btn-profile-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(84, 84, 210, 0.35);
  background: rgba(84, 84, 210, 0.08);
  color: #3d3daf;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  font-family: inherit;
}

.btn-profile-edit:hover {
  background: rgba(84, 84, 210, 0.14);
  color: #2f2f88;
}

.btn-profile-edit svg {
  flex-shrink: 0;
}

/* Cult Translator in-dashboard page */
.dash-translator-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 16px;
  font-weight: 300;
}

.dash-translator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}

.dash-translator-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

.dash-translator-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
}

.dash-translator-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Admin (glass shell) */
.admin-dash-panel .dash-hint {
  margin-bottom: 16px;
}

.admin-table-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.admin-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-dash-table th,
.admin-dash-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-dash-table th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--lativ-fg-muted);
  white-space: nowrap;
}

.admin-dash-table .num {
  text-align: right;
  white-space: nowrap;
}

.admin-code {
  font-size: 0.8rem;
  word-break: break-all;
}

.admin-email-inline-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.admin-email-inline-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.admin-inline-form {
  display: inline;
}

.admin-add-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-input-email {
  min-width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--lativ-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
}

.admin-form-block {
  margin-bottom: 10px;
}

.admin-dash-select {
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--lativ-line);
  font-family: inherit;
  font-size: 0.88rem;
}

.admin-usage-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.admin-usage-filter-field {
  margin-bottom: 0 !important;
}

.admin-usage-filter-field--grow {
  flex: 1 1 220px;
}

.admin-usage-apply {
  margin-bottom: 2px;
}

.dash-app--crowdin .admin-dash-table th {
  color: rgba(26, 29, 33, 0.55);
}

@media (max-width: 900px) {
  .dash-tms-bar__top {
    flex-direction: column;
    align-items: stretch;
  }
}

/* —— Plan: checkout iframe modal + enterprise quote —— */
.dash-checkout-modal,
.dash-modal--enterprise {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  box-sizing: border-box;
}

.dash-checkout-modal[hidden],
.dash-modal--enterprise[hidden] {
  display: none !important;
}

.dash-checkout-modal__backdrop,
.dash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 48, 59, 0.45);
  backdrop-filter: blur(4px);
}

.dash-checkout-modal__panel,
.dash-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: var(--lativ-radius);
  box-shadow: 0 24px 80px rgba(11, 48, 59, 0.25);
  border: 1px solid var(--lativ-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-checkout-modal__panel {
  width: min(1040px, calc(100vw - 20px));
  max-width: 100%;
  max-height: min(94vh, 920px);
}

.dash-checkout-modal__head,
.dash-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lativ-line);
  background: #fff;
}

.dash-checkout-modal__title,
.dash-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lativ-fg);
}

.dash-checkout-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--lativ-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--lativ-fg);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.dash-checkout-modal__body {
  flex: 1;
  min-height: 240px;
  background: #fff;
  overflow: auto;
  padding: 0;
}

.dash-checkout-modal__embed-host {
  width: 100%;
  max-width: none;
  min-height: min(68vh, 620px);
  box-sizing: border-box;
}

/* Stripe injects a container; nudge embedded checkout toward full panel width */
.dash-checkout-modal__embed-host > * {
  max-width: 100% !important;
}

.dash-checkout-modal__embed-host:empty {
  min-height: 120px;
}

.dash-checkout-modal__foot {
  padding: 14px 16px;
  border-top: 1px solid var(--lativ-line);
  background: #fff;
}

.dash-checkout-modal__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--lativ-fg-muted);
  line-height: 1.4;
}

.dash-enterprise-form {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-enterprise-form__lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lativ-fg-muted);
  line-height: 1.45;
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-field__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lativ-fg);
}

.dash-field__opt {
  font-weight: 300;
  color: var(--lativ-fg-muted);
}

.dash-field textarea,
.dash-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lativ-line);
  border-radius: var(--lativ-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--lativ-fg);
  background: #fff;
}

.dash-field textarea {
  resize: vertical;
  min-height: 100px;
}

.dash-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: stretch;
  margin-top: 8px;
}

/* Match plan-card pill buttons: full rounded rectangles, shared row */
.dash-modal__actions .plan-btn {
  flex: 1 1 calc(50% - 6px);
  min-width: min(160px, 100%);
  width: auto;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.dash-modal__actions .plan-btn.plan-btn--secondary {
  background: #fff;
  color: var(--lativ-fg);
  border: 1px solid var(--lativ-line);
}

.dash-modal__actions .plan-btn.plan-btn--secondary:hover {
  background: rgba(11, 48, 59, 0.06);
  color: var(--lativ-fg);
}

.dash-modal__actions .plan-btn:not(.plan-btn--secondary) {
  border: none;
  background: var(--lativ-purple);
  color: #fff;
}

.dash-modal__actions .plan-btn:not(.plan-btn--secondary):hover {
  background: var(--lativ-purple-hover);
  color: #fff;
}
