@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Profile avatar cropper: one predictable square source for every avatar size. */
.avatar-crop-modal .modal-dialog {
  max-width: 760px;
}

.avatar-crop-modal .modal-content {
  overflow: hidden;
  border-radius: 18px;
}

.avatar-crop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  align-items: start;
  gap: 1.5rem;
}

.avatar-crop-editor {
  min-width: 0;
}

.avatar-crop-stage {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}

.avatar-crop-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.25);
}

.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop-stage > img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.avatar-crop-window {
  position: absolute;
  inset: 1px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(4, 10, 24, 0.48), 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.avatar-crop-help {
  margin: 0.7rem 0 0;
  color: var(--ph-muted);
  font-size: 0.78rem;
  text-align: center;
}

.avatar-crop-controls {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  max-width: 430px;
  margin: 0.9rem auto 0;
}

.avatar-crop-controls input[type="range"] {
  width: 100%;
  accent-color: var(--ph-primary, #0077ff);
}

.avatar-crop-reset {
  white-space: nowrap;
}

.avatar-crop-preview-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid #e1e7f2;
  border-radius: 14px;
  background: #fafbff;
  text-align: center;
}

.avatar-crop-preview-label {
  color: var(--ph-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.avatar-crop-preview-circle {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eef3ff;
  box-shadow: 0 0 0 1px #d9e1f2, 0 8px 20px rgba(46, 66, 130, 0.12);
}

.avatar-crop-preview-lg {
  width: 94px;
  height: 94px;
}

.avatar-crop-preview-sm {
  width: 52px;
  height: 52px;
}

.avatar-crop-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-crop-preview-row {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.55rem;
}

.avatar-crop-preview-row span {
  color: var(--ph-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.avatar-crop-error {
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: #9b2438;
  background: #fff0f3;
  font-size: 0.85rem;
}

.avatar-crop-selection {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border: 1px solid #dce8ff;
  border-radius: 999px;
  color: var(--ph-primary-dark);
  background: #f3f7ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.avatar-crop-selection img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-crop-selection[hidden] {
  display: none;
}

html[data-theme="dark"] .avatar-crop-preview-panel {
  border-color: rgba(159, 177, 214, 0.2);
  background: rgba(23, 31, 52, 0.86);
}

html[data-theme="dark"] .avatar-crop-preview-circle {
  border-color: #202a43;
  box-shadow: 0 0 0 1px rgba(159, 177, 214, 0.22), 0 8px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .avatar-crop-selection {
  border-color: rgba(96, 152, 255, 0.3);
  color: #a9c7ff;
  background: rgba(42, 87, 166, 0.18);
}

html[data-theme="dark"] .avatar-crop-error {
  color: #ffb4c0;
  background: rgba(150, 35, 63, 0.22);
}

@media (max-width: 575.98px) {
  .avatar-crop-modal .modal-dialog {
    margin: 0.5rem;
  }

  .avatar-crop-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .avatar-crop-preview-panel {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem;
    text-align: left;
  }

  .avatar-crop-preview-label {
    align-self: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .avatar-crop-preview-row {
    align-items: center;
    flex-direction: row;
  }

  .avatar-crop-preview-row span {
    max-width: 150px;
  }

  .avatar-crop-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .avatar-crop-reset {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Social profile links and horizontal mobile navigation hints */
.profile-social-editor {
  min-width: 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(31, 44, 71, 0.1);
}

.profile-social-editor legend {
  float: none;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  width: auto;
  margin: 0;
  color: var(--ph-text);
  font-size: 0.96rem;
  font-weight: 750;
}

.profile-social-editor legend span {
  color: var(--ph-muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.profile-social-editor-heading {
  margin-bottom: 0.8rem;
}

.profile-social-editor-heading p {
  margin: 0.18rem 0 0;
  color: var(--ph-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.profile-social-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-social-label i {
  color: #718096;
  font-size: 0.88rem;
}

.profile-social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding-left: 0.1rem;
}

.profile-social-links a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(53, 102, 255, 0.16);
  border-radius: 50%;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.profile-social-links a:hover,
.profile-social-links a:focus-visible {
  color: var(--ph-primary-dark);
  border-color: rgba(53, 102, 255, 0.4);
  box-shadow: 0 5px 14px rgba(53, 102, 255, 0.12);
  transform: translateY(-1px);
  outline: 0;
}

.scroll-nav-shell {
  position: relative;
  min-width: 0;
}

.scroll-nav-shell > [data-scroll-nav-track] {
  width: 100%;
}

.scroll-nav-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(53, 102, 255, 0.2);
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(31, 44, 71, 0.16);
  transform: translateY(-50%);
}

.scroll-nav-arrow.is-previous {
  left: 0.35rem;
}

.scroll-nav-arrow.is-next {
  right: 0.35rem;
}

.scroll-nav-arrow[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .scroll-nav-shell.has-overflow .scroll-nav-arrow {
    display: grid;
  }

  .scroll-nav-shell.has-overflow::before,
  .scroll-nav-shell.has-overflow::after {
    position: absolute;
    z-index: 4;
    top: 1px;
    bottom: 1px;
    width: 48px;
    pointer-events: none;
    content: "";
  }

  .scroll-nav-shell.has-overflow::before {
    left: 1px;
    background: linear-gradient(90deg, #fff 25%, rgba(255, 255, 255, 0));
  }

  .scroll-nav-shell.has-overflow::after {
    right: 1px;
    background: linear-gradient(270deg, #fff 25%, rgba(255, 255, 255, 0));
  }

  .scroll-nav-shell.has-overflow:not(.can-scroll-previous)::before,
  .scroll-nav-shell.has-overflow:not(.can-scroll-next)::after {
    display: none;
  }
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ph-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-font-sans-serif: var(--ph-font-sans);
  --bs-body-font-family: var(--ph-font-sans);
  --ph-bg: #f6fbff;
  --ph-surface: #ffffff;
  --ph-surface-soft: #eaf8ff;
  --ph-ink: #061426;
  --ph-muted: #607084;
  --ph-primary: #00beff;
  --ph-primary-dark: #0077ff;
  --ph-accent: #00a6ff;
  --ph-pink: #00beff;
  --ph-warm: #00beff;
  --ph-card-radius: 8px;
  --ph-soft-border: rgba(0, 148, 255, 0.14);
  --ph-line: rgba(31, 44, 71, 0.13);
  --ph-focus: rgba(0, 190, 255, 0.24);
  --ph-shadow-sm: 0 8px 24px rgba(0, 119, 255, 0.07);
  --ph-shadow-md: 0 18px 46px rgba(0, 119, 255, 0.12);
}

html {
  min-height: 100%;
  background: var(--ph-bg);
}

body {
  min-height: 100%;
  font-family: var(--ph-font-sans);
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 109, 246, 0.1), transparent 320px),
    radial-gradient(circle at 86% 4%, rgba(255, 79, 172, 0.1), transparent 320px),
    linear-gradient(180deg, #ffffff 0%, #f5f7ff 390px, var(--ph-bg) 780px);
  color: var(--ph-ink);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: var(--ph-font-sans);
  letter-spacing: 0;
}

a {
  color: var(--ph-primary-dark);
}

a:hover {
  color: #6d35d8;
}

.container {
  max-width: 1160px;
}

.btn {
  border-radius: 8px;
  text-transform: none;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.btn-primary {
  --bs-btn-bg: var(--ph-primary);
  --bs-btn-border-color: var(--ph-primary);
  --bs-btn-hover-bg: #6d35d8;
  --bs-btn-hover-border-color: #6d35d8;
  --bs-btn-active-bg: #174bd1;
  --bs-btn-active-border-color: #174bd1;
  background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-accent) 58%, var(--ph-pink));
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 109, 246, 0.27);
}

.btn-outline-primary {
  --bs-btn-color: var(--ph-primary-dark);
  --bs-btn-border-color: rgba(47, 109, 246, 0.42);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: rgba(155, 77, 255, 0.68);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #6d35d8;
  --bs-btn-active-border-color: #6d35d8;
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 109, 246, 0.42) !important;
  color: var(--ph-primary-dark) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-image: linear-gradient(135deg, rgba(47, 109, 246, 0.95), rgba(155, 77, 255, 0.95), rgba(255, 79, 172, 0.95));
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.19);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  --bs-btn-color: #415166;
  --bs-btn-border-color: rgba(31, 44, 71, 0.18);
  --bs-btn-hover-color: #17212b;
  --bs-btn-hover-bg: rgba(47, 109, 246, 0.07);
  --bs-btn-hover-border-color: rgba(155, 77, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 44, 71, 0.18) !important;
  color: #415166 !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  color: #17212b !important;
  background-color: rgba(47, 109, 246, 0.07);
  border-color: rgba(155, 77, 255, 0.28) !important;
  box-shadow: 0 10px 20px rgba(31, 44, 71, 0.08);
}

.btn-outline-danger {
  border: 1px solid rgba(220, 53, 69, 0.36) !important;
  color: #b42335 !important;
  background-color: rgba(255, 255, 255, 0.82);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  border-color: rgba(220, 53, 69, 0.62) !important;
  color: #ffffff !important;
  background-color: #c6283c;
  box-shadow: 0 10px 20px rgba(198, 40, 60, 0.12);
}

.btn-link {
  color: var(--ph-primary-dark);
  text-decoration: none;
  font-weight: 650;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: #6d35d8;
}

.btn-sm {
  --bs-btn-padding-y: 0.42rem;
  --bs-btn-padding-x: 0.72rem;
}

.form-control,
.form-select {
  background-color: #ffffff;
  background-image: none !important;
  border-radius: 8px;
  border: 1px solid var(--ph-line) !important;
  min-height: 44px;
  color: #1f2937;
  padding: 0.72rem 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(31, 44, 71, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.form-select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23415166' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px 12px !important;
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(47, 109, 246, 0.28) !important;
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(155, 77, 255, 0.62) !important;
  box-shadow: 0 0 0 0.2rem var(--ph-focus), 0 10px 22px rgba(47, 109, 246, 0.08);
}

.form-control::placeholder {
  color: #98a3b3;
}

.form-control-lg,
.form-select-lg {
  min-height: 52px;
  padding: 0.82rem 0.95rem;
}

textarea.form-control {
  line-height: 1.55;
  resize: vertical;
}

.form-label {
  margin-bottom: 0.45rem;
  color: #263244;
  font-weight: 700;
}

.form-text {
  color: var(--ph-muted);
}

.input-group-text {
  border: 1px solid var(--ph-line);
  background: var(--ph-surface-soft);
  color: #536174;
  font-weight: 650;
}

.form-check-input {
  border: 1px solid rgba(31, 44, 71, 0.22);
  background-color: #ffffff;
  box-shadow: none;
}

.form-check-input:checked {
  border-color: var(--ph-primary);
  background-color: var(--ph-primary);
}

.form-check-input:focus {
  border-color: rgba(155, 77, 255, 0.62);
  box-shadow: 0 0 0 0.2rem var(--ph-focus);
}

.login-remember-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: var(--ph-card-radius);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.login-remember-check .form-check-input {
  margin-left: 0;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.login-remember-check .form-check-label {
  display: grid;
  gap: 0.12rem;
  color: #243044;
  font-weight: 760;
}

.login-remember-check .form-check-label span {
  color: var(--ph-muted);
  font-size: 0.88rem;
  font-weight: 550;
}

.form-control::file-selector-button {
  margin: -0.72rem 0.85rem -0.72rem -0.86rem;
  padding: 0.72rem 0.86rem;
  border: 0;
  border-right: 1px solid rgba(31, 44, 71, 0.12);
  background: #f1f5ff;
  color: #2d3b52;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease;
}

.form-control:hover::file-selector-button {
  background: rgba(47, 109, 246, 0.1);
  color: var(--ph-primary-dark);
}

.card {
  border-radius: var(--ph-card-radius);
}

.badge {
  font-weight: 650;
}

.app-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(20, 24, 31, 0.05);
}

.navbar-brand {
  font-weight: 750;
  min-width: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 190px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.brand-wordmark-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-wordmark-text {
  color: #061426;
  font-size: 1.38rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-wordmark-text span {
  color: var(--ph-primary-dark);
}

.footer-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.navbar .nav-link {
  border-radius: 8px;
  color: #334155;
  font-weight: 620;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
}

.nav-create-btn {
  min-height: 38px;
  padding-left: 0.95rem;
  padding-right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border-radius: var(--ph-card-radius);
}

.profile-nav-item {
  display: flex;
  align-items: center;
  margin-left: 0.2rem;
}

.nav-avatar-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(47, 109, 246, 0.38), rgba(255, 79, 172, 0.34)) border-box;
  color: #334155;
  box-shadow: 0 8px 18px rgba(29, 50, 107, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.nav-avatar-toggle:hover,
.nav-avatar-toggle:focus-visible,
.nav-avatar-toggle.show {
  transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.16), 0 0 0 0.2rem rgba(155, 77, 255, 0.12);
  outline: 0;
}

.nav-avatar-toggle .avatar {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.profile-menu {
  min-width: 230px;
  padding: 0.45rem;
  border: 1px solid var(--ph-soft-border);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ph-shadow-md) !important;
}

.profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  color: #334155;
  font-weight: 650;
}

.profile-menu .dropdown-item:hover,
.profile-menu .dropdown-item:focus {
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.1), rgba(255, 79, 172, 0.1));
  color: #6d35d8;
}

.profile-menu .dropdown-divider {
  border-color: rgba(31, 44, 71, 0.09);
}

.profile-menu form {
  margin: 0;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mobile-header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 8px;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(29, 50, 107, 0.07);
  text-decoration: none;
  padding: 0;
}

.mobile-header-icon:hover,
.mobile-header-icon:focus-visible {
  color: #6d35d8;
  background: rgba(47, 109, 246, 0.07);
  outline: 0;
}

.mobile-header-icon i {
  font-size: 1.18rem;
  line-height: 1;
}

.mobile-admin-icon {
  border-color: rgba(220, 53, 69, 0.22);
  color: #c02233;
  background: linear-gradient(180deg, #fff7f8, #ffffff);
}

.mobile-admin-icon span {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.mobile-admin-icon:hover,
.mobile-admin-icon:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #dc3545, #b91c1c);
}

.mobile-admin-menu-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc3545, #b91c1c);
  box-shadow: 0 12px 26px rgba(220, 53, 69, 0.2);
  font-size: 1.08rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.guest-menu-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.18);
  flex: 0 0 auto;
}

.mobile-notification-badge,
.mobile-admin-badge {
  position: absolute;
  top: 0.24rem;
  right: 0.18rem;
  min-width: 1.08rem;
  height: 1.08rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 0.22rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-pink));
  font-size: 0.64rem;
  font-weight: 800;
}

.mobile-admin-badge {
  background: linear-gradient(135deg, #dc3545, #00beff);
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.12rem;
  padding: 0.42rem max(0.55rem, env(safe-area-inset-left)) calc(0.42rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(31, 44, 71, 0.11);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px rgba(29, 50, 107, 0.09);
}

.mobile-tabbar-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-tabbar-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mobile-tabbar-item {
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border-radius: 8px;
  color: #687386;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1;
}

.mobile-tabbar-item > i {
  font-size: 1.24rem;
  line-height: 1;
}

.mobile-tabbar-item:hover,
.mobile-tabbar-item:focus-visible,
.mobile-tabbar-item.is-active {
  color: var(--ph-primary-dark);
  background: rgba(47, 109, 246, 0.07);
  text-decoration: none;
  outline: 0;
}

.mobile-tabbar-create {
  color: var(--ph-primary-dark);
}

.mobile-create-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 10px 20px rgba(47, 109, 246, 0.22);
  font-size: 1.2rem;
}

.mobile-tabbar-create:hover,
.mobile-tabbar-create:focus-visible,
.mobile-tabbar-create.is-active {
  background: transparent;
  color: var(--ph-primary-dark);
}

.mobile-tabbar-avatar .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
  box-shadow: 0 0 0 2px rgba(47, 109, 246, 0.12);
}

.app-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(31, 44, 71, 0.09);
  background: #ffffff;
  padding: 2.2rem 0 1rem;
}

.footer-top {
  display: grid;
  gap: 0.8rem;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #17212b;
  text-decoration: none;
}

.footer-brand-mark > span {
  display: grid;
  gap: 0.08rem;
}

.footer-brand-mark strong {
  font-size: 1rem;
  font-weight: 800;
}

.footer-brand-mark small {
  color: #788598;
  font-size: 0.76rem;
  font-weight: 650;
}

.footer-note {
  max-width: 620px;
  margin: 0.1rem auto 0;
  color: #687386;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.footer-social {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.48rem;
  margin: 0;
  flex: 0 0 auto;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
  color: #536174;
  font-size: 1rem;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  border-color: rgba(47, 109, 246, 0.35);
  background: #f6f8ff;
  color: var(--ph-primary-dark);
  outline: 0;
}

.footer-navigation {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.2rem;
}

.footer-links-all > * {
  white-space: nowrap;
}

.app-footer a,
.footer-links a,
.footer-cookie-link {
  color: #687386;
  text-decoration: none;
  font-weight: 600;
  transition: color 140ms ease;
}

.app-footer a:hover,
.app-footer a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: #334155;
  text-decoration: none;
}

.footer-cookie-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.15rem;
  padding-top: 0;
  color: #8a96a7;
  font-size: 0.78rem;
}

.app-footer .footer-social-link:hover,
.app-footer .footer-social-link:focus-visible {
  color: var(--ph-primary-dark);
}

.cookie-notice {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1040;
  max-width: 760px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 79, 172, 0.12), transparent 220px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
  box-shadow: 0 20px 58px rgba(29, 50, 107, 0.18);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.cookie-notice.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(100% + 1.5rem));
  pointer-events: none;
}

.cookie-notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.2);
}

.cookie-notice-content {
  min-width: 0;
}

.cookie-notice-content strong {
  display: block;
  color: #17212b;
  font-weight: 820;
  margin-bottom: 0.12rem;
}

.cookie-notice-content p {
  margin: 0;
  color: #536174;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-notice-content a {
  color: var(--ph-primary-dark);
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .cookie-notice {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 0.9rem;
  }

  .cookie-notice .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Prompt notes and their account mentions */
.prompt-note-composer {
  position: relative;
}

.prompt-note-composer textarea {
  min-height: 112px;
  resize: vertical;
}

.prompt-note-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  color: #667085;
  font-size: 0.82rem;
}

.prompt-note-meta > span:first-child {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.prompt-note-meta > span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.prompt-note-suggestions {
  top: calc(100% + 0.4rem);
  bottom: auto;
  z-index: 30;
}

.mention-suggestion.is-active {
  background: rgba(0, 119, 255, 0.09);
}

.mention-suggestion-copy {
  display: grid;
  min-width: 0;
}

.mention-suggestion-copy strong {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  color: inherit;
  line-height: 1.2;
}

.mention-suggestion-copy small {
  color: #7a8698;
}

.prompt-note-panel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 190, 255, 0.3);
  border-radius: 8px;
  background: #f2fbff;
  color: #263442;
}

.prompt-note-panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 190, 255, 0.13);
  color: #0077ff;
  font-size: 1rem;
}

.prompt-note-panel-title {
  margin-bottom: 0.2rem;
  color: #102033;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-note-panel-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.prompt-note-panel .mention-link {
  color: #0077ff;
  font-weight: 750;
}

.admin-prompt-note {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #00beff;
  border-radius: 0 6px 6px 0;
  background: #f2fbff;
  color: #526071;
}

html[data-theme="dark"] .prompt-note-panel,
html[data-theme="dark"] .admin-prompt-note {
  border-color: #3a6472;
  background: #242729;
  color: #d7d9dc;
}

html[data-theme="dark"] .prompt-note-panel-title {
  color: #f2f3f5;
}

html[data-theme="dark"] .prompt-note-panel-icon {
  background: rgba(0, 190, 255, 0.15);
  color: #62d8ff;
}

html[data-theme="dark"] .prompt-note-meta,
html[data-theme="dark"] .mention-suggestion-copy small {
  color: #b0b3b8;
}

html[data-theme="dark"] .prompt-note-suggestions {
  border-color: #4a4b4d;
  background: #242526;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .mention-suggestion.is-active,
html[data-theme="dark"] .prompt-note-suggestions .mention-suggestion:hover,
html[data-theme="dark"] .prompt-note-suggestions .mention-suggestion:focus-visible {
  background: #333638;
}

@media (max-width: 575.98px) {
  .prompt-note-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .prompt-note-panel {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0.75rem;
  }

  .prompt-note-panel-icon {
    width: 34px;
    height: 34px;
  }
}

.nav-notification-badge,
.nav-admin-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 0.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-pink));
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(255, 79, 172, 0.2);
}

.nav-admin-badge {
  background: linear-gradient(135deg, #dc3545, #00beff);
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
}

.nav-pills .nav-link,
.nav-tabs .nav-link,
.list-group-item-action {
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.18);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
  background: rgba(155, 77, 255, 0.07);
  border-color: rgba(155, 77, 255, 0.18);
  color: #6d35d8;
}

.nav-tabs .nav-link.active {
  color: var(--ph-primary-dark);
  border-color: rgba(47, 109, 246, 0.16) rgba(47, 109, 246, 0.16) #ffffff;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.24);
}

.hero-panel {
  border: 1px solid rgba(80, 105, 255, 0.16);
  border-radius: var(--ph-card-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.96)),
    linear-gradient(135deg, rgba(47, 109, 246, 0.08), rgba(255, 79, 172, 0.08));
  box-shadow: var(--ph-shadow-md);
}

.hero-panel .text-primary {
  color: var(--ph-primary-dark) !important;
}

.hero-panel .lead {
  max-width: 760px;
}

.hero-panel .hero-title {
  max-width: 830px;
  color: var(--ph-ink);
  font-size: 3.35rem;
  font-weight: 820;
  line-height: 1.04;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #0077ff, #00beff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.guest-limit-card {
  border: 1px solid rgba(47, 109, 246, 0.14) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 172, 0.1), transparent 280px),
    linear-gradient(180deg, #ffffff, #f8faff);
}

.guest-limit-icon {
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 18px 36px rgba(47, 109, 246, 0.2);
  font-size: 1.7rem;
}

.prompt-card {
  border: 1px solid rgba(23, 33, 43, 0.08) !important;
  border-radius: var(--ph-card-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ph-shadow-sm) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.prompt-card:hover,
.prompt-card:focus-within {
  border-color: rgba(155, 77, 255, 0.28) !important;
  box-shadow: var(--ph-shadow-md) !important;
  transform: translateY(-2px);
}

.prompt-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 0;
  background: #e9eef2;
  cursor: pointer;
  overflow: hidden;
}

.prompt-image-button::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, rgba(13, 18, 24, 0), rgba(13, 18, 24, 0.22));
  pointer-events: none;
}

.prompt-image-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.prompt-image-button:hover img,
.prompt-image-button:focus-visible img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.prompt-image-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #758393;
  background: linear-gradient(135deg, #eaf1f4, #f8fafc);
  font-size: 2rem;
}

.prompt-title-link {
  color: var(--ph-ink);
  line-height: 1.22;
}

.prompt-title-link:hover {
  color: var(--ph-primary-dark);
}

.prompt-card-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  min-width: max-content;
  max-width: none;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6f7b8c !important;
}

.prompt-card-date i,
.prompt-time-meta i {
  flex: 0 0 auto;
  margin-right: 0 !important;
  font-size: 0.9em;
}

.prompt-card-author-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.prompt-card-author-wrap > a {
  min-width: 0;
}

.prompt-card-author-wrap form {
  margin: 0;
}

.prompt-card-follow-btn {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 109, 246, 0.24);
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  padding: 0.28rem 0.58rem;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.prompt-card-follow-btn:hover,
.prompt-card-follow-btn:focus-visible {
  border-color: rgba(155, 77, 255, 0.42);
  background: rgba(155, 77, 255, 0.1);
  color: #6230cc;
  outline: 0;
  transform: translateY(-1px);
}

form.is-follow-complete .prompt-card-follow-btn {
  border-color: rgba(21, 149, 108, 0.28);
  background: rgba(21, 149, 108, 0.1);
  color: #147b5d;
}

.prompt-more-dropdown {
  flex: 0 0 auto;
}

.prompt-more-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #758393;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.prompt-more-button:hover,
.prompt-more-button:focus-visible,
.prompt-more-button.show {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
  outline: 0;
  transform: translateY(-1px);
}

.prompt-more-menu {
  min-width: 210px;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(31, 44, 71, 0.16);
  padding: 0.35rem;
}

.prompt-more-menu .dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-weight: 720;
  padding: 0.52rem 0.65rem;
}

.prompt-more-menu .dropdown-item i {
  width: 1.1rem;
  text-align: center;
  color: #718096;
}

.prompt-more-menu .dropdown-item:hover,
.prompt-more-menu .dropdown-item:focus-visible {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
  outline: 0;
}

.prompt-more-menu .dropdown-item.text-danger {
  color: #b42335 !important;
}

.prompt-more-menu .dropdown-item.text-danger i {
  color: #b42335;
}

.prompt-more-menu .dropdown-item.text-danger:hover,
.prompt-more-menu .dropdown-item.text-danger:focus-visible {
  background: rgba(220, 53, 69, 0.08);
  color: #9f1f2f !important;
}

.prompt-more-menu form {
  margin: 0;
}

.prompt-card-actions {
  align-items: center;
  min-height: 30px;
}

.prompt-card-actions form {
  margin: 0;
  line-height: 1;
}

.prompt-card-action {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #687386;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  padding: 0.22rem 0.12rem;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.prompt-card-action i {
  font-size: 1.05rem;
}

.prompt-card-action:hover,
.prompt-card-action:focus-visible {
  background: rgba(47, 109, 246, 0.07);
  color: var(--ph-primary-dark);
  outline: 0;
}

.prompt-card-action.is-liked,
.prompt-card-action.is-liked:hover,
.prompt-card-action.is-liked:focus-visible {
  color: #dc3545;
}

.prompt-card-action.is-favorited,
.prompt-card-action.is-favorited:hover,
.prompt-card-action.is-favorited:focus-visible,
.prompt-card-action.is-saved,
.prompt-card-action.is-saved:hover,
.prompt-card-action.is-saved:focus-visible {
  color: var(--ph-primary-dark);
}

.prompt-card-action.is-static {
  pointer-events: auto;
  cursor: default;
}

.prompt-time-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  line-height: 1;
  color: #687386;
  font-size: 0.86rem;
  font-weight: 650;
}

.search-panel {
  border: 1px solid rgba(47, 109, 246, 0.12) !important;
  background: rgba(255, 255, 255, 0.96);
}

.search-hero {
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: var(--ph-card-radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 79, 172, 0.1), transparent 290px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  box-shadow: var(--ph-shadow-sm);
  padding: 0.85rem;
}

.explore-search-form {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem;
  border: 1px solid rgba(31, 44, 71, 0.11);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 50, 107, 0.08);
}

.explore-search-form .form-control {
  min-height: 50px;
  padding-left: 2.65rem;
  border-color: transparent !important;
  box-shadow: none;
}

.explore-search-form .form-control:focus {
  border-color: transparent !important;
  box-shadow: none;
}

.explore-search-icon {
  position: absolute;
  left: 1.25rem;
  z-index: 2;
  color: #687386;
  font-size: 1.15rem;
  pointer-events: none;
}

.search-filter-chip {
  color: #334155;
  background: rgba(255, 255, 255, 0.9) !important;
}

.user-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.user-result-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ph-ink);
  box-shadow: var(--ph-shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.user-result-card:hover,
.user-result-card:focus-visible {
  border-color: rgba(155, 77, 255, 0.24);
  color: var(--ph-ink);
  box-shadow: var(--ph-shadow-md);
  transform: translateY(-1px);
}

.user-result-bio {
  min-height: 2.4em;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.55rem;
}

.explore-tile {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: var(--ph-card-radius);
  background: #e9eef5;
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.explore-tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.explore-tile img,
.explore-tile-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  transition: transform 190ms ease, filter 190ms ease;
}

.explore-tile-placeholder {
  color: #758393;
  background: linear-gradient(135deg, #eaf1f4, #f8fafc);
  font-size: 2rem;
}

.explore-tile:hover img,
.explore-tile:focus-visible img,
.explore-tile:hover .explore-tile-placeholder,
.explore-tile:focus-visible .explore-tile-placeholder {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.explore-tile-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.8rem 0.8rem 0.75rem;
  background: linear-gradient(180deg, rgba(9, 13, 18, 0), rgba(9, 13, 18, 0.76));
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.explore-tile:hover .explore-tile-overlay,
.explore-tile:focus-visible .explore-tile-overlay {
  opacity: 1;
  transform: translateY(0);
}

.explore-fsk18-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(120, 0, 0, 0.22);
  pointer-events: none;
}

.explore-tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 780;
  line-height: 1.16;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.explore-tile-meta,
.explore-tile-date,
.explore-tile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.86);
}

.explore-tile-date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.explore-tile-tags {
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
}

.tag-link {
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.tag-link:hover,
.tag-link:focus-visible {
  border-color: rgba(255, 79, 172, 0.45) !important;
  background: rgba(255, 79, 172, 0.08) !important;
  color: var(--ph-primary-dark);
}

.ai-tool-badge {
  border: 1px solid rgba(47, 109, 246, 0.16);
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.1), rgba(255, 79, 172, 0.12));
  color: #2343a6;
  font-weight: 760;
}

.ai-tool-badge:hover,
.ai-tool-badge:focus-visible {
  color: #6d35d8;
  border-color: rgba(155, 77, 255, 0.26);
}

.fsk18-badge {
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  object-fit: cover;
  background: #eef3ff;
  color: var(--ph-primary-dark);
  font-weight: 750;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.18);
}

.avatar-link {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}

.avatar-link:hover,
.avatar-link:focus-visible {
  outline: 0;
}

.avatar-link:hover .avatar,
.avatar-link:focus-visible .avatar {
  box-shadow: inset 0 0 0 2px rgba(155, 77, 255, 0.28), 0 8px 18px rgba(47, 109, 246, 0.14);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.avatar-md {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
}

.avatar-lg {
  width: 94px;
  height: 94px;
  font-size: 2rem;
}

.avatar-fallback {
  border: 1px solid rgba(155, 77, 255, 0.18);
}

.prompt-detail-card,
.comments-card {
  border: 1px solid rgba(23, 33, 43, 0.08) !important;
  box-shadow: var(--ph-shadow-md) !important;
  background: rgba(255, 255, 255, 0.98);
}

.prompt-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.prompt-author-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.prompt-author-line form {
  flex: 0 0 auto;
  margin: 0;
}

.prompt-author-link {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--ph-ink);
  text-decoration: none;
}

.prompt-author-link:hover,
.prompt-author-link:focus-visible {
  color: var(--ph-primary-dark);
  text-decoration: none;
  outline: 0;
}

.prompt-author-link span {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.prompt-author-link small {
  color: #687386;
  font-weight: 600;
}

.prompt-follow-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border-radius: 8px;
  font-weight: 760;
  white-space: nowrap;
  padding-inline: 0.62rem;
}

.prompt-follow-btn i {
  margin-right: 0 !important;
}

.prompt-meta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.report-icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8390a3;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.report-icon-button:hover,
.report-icon-button:focus-visible {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
  outline: 0;
  transform: translateY(-1px);
}

.report-icon-button-sm {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.detail-image-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: var(--ph-card-radius);
  overflow: hidden;
  isolation: isolate;
  background: #171a20;
  cursor: zoom-in;
  box-shadow: none;
}

.detail-image-button::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, rgba(9, 13, 18, 0), rgba(9, 13, 18, 0.5));
  pointer-events: none;
}

/* Keep a blurred fallback behind the sharp, top-focused media crop. */
.detail-image-backdrop {
  position: absolute;
  z-index: 0;
  inset: -28px;
  overflow: hidden;
  background: #171a20;
  filter: blur(26px) saturate(1.04);
  opacity: 0.94;
  transform: scale(1.14);
  pointer-events: none;
}

.detail-image-backdrop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.detail-image-button .image-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.93);
  color: #17212b;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 6px 18px rgba(9, 13, 18, 0.18);
  backdrop-filter: blur(10px) saturate(1.1);
}

html[data-theme="dark"] .detail-image-button .image-label {
  background: rgba(15, 20, 27, 0.88);
  color: #f5f7fb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.detail-image-button:hover .prompt-detail-image,
.detail-image-button:focus-visible .prompt-detail-image {
  transform: scale(1.1);
}

.reference-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.reference-image-grid.has-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: auto;
  aspect-ratio: 4 / 5;
  grid-auto-rows: minmax(0, 1fr);
}

.reference-image-grid.has-multiple .detail-image-button {
  height: 100%;
  aspect-ratio: auto;
}

.reference-image-grid.has-multiple .prompt-detail-image {
  height: 100%;
  aspect-ratio: auto;
}

.prompt-detail-gallery > [class*="col-"] {
  display: flex;
}

.prompt-detail-gallery > [class*="col-"] > .detail-image-button,
.prompt-detail-gallery > [class*="col-"] > .reference-image-grid {
  width: 100%;
}

/* A single detail image should remain prominent without filling the whole page. */
@media (min-width: 768px) {
  .prompt-detail-gallery.single-media {
    justify-content: center;
  }

  .prompt-detail-gallery.single-media > .single-media-column {
    flex: 0 1 680px;
    width: min(100%, 680px);
    max-width: 680px;
  }
}

@media (min-width: 768px) {
  .prompt-detail-gallery.has-both-media .reference-image-grid.has-multiple {
    height: 100%;
    aspect-ratio: auto;
  }
}

.prompt-detail-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  /* Keep the top-focused detail crop anchored while trimming the lower edge. */
  transform: scale(1.08);
  transform-origin: center top;
  background: transparent;
  transition: transform 180ms ease, filter 180ms ease;
}

.prompt-text-box,
.legal-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.66;
}

.prompt-text-box {
  border-color: rgba(23, 33, 43, 0.1) !important;
  background: #f8fafb !important;
  color: #22303d;
}

.copy-prompt-btn {
  min-width: 210px;
}

.copy-prompt-zone { display: grid; justify-items: center; }
.copy-prompt-primary { display: flex; justify-content: center; width: 100%; }
.copy-prompt-primary[hidden],
.copy-prompt-inline[hidden] { display: none; }

.comment-thread {
  display: grid;
  gap: 1rem;
}

.comment-group {
  display: grid;
  gap: 0.45rem;
}

.comment-item {
  display: grid;
  gap: 0.42rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  scroll-margin-top: 96px;
}

.comment-item.is-targeted .comment-body {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(53, 102, 255, 0.12), rgba(236, 69, 185, 0.12));
  box-shadow: 0 0 0 1px rgba(53, 102, 255, 0.12);
}

.comment-item.is-reply {
  margin-left: clamp(1.65rem, 7vw, 3.25rem);
  padding-top: 0.5rem;
}

.comment-replies-collapsed {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
  border-left: 2px solid rgba(47, 109, 246, 0.1);
}

.comment-replies-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d6b7d;
  font-size: 0.9rem;
  font-weight: 780;
  padding: 0.28rem 0.2rem;
}

.comment-replies-toggle:hover,
.comment-replies-toggle:focus-visible {
  color: var(--ph-primary-dark);
  outline: 0;
}

.comment-replies-toggle i {
  font-size: 0.82rem;
  transition: transform 140ms ease;
}

.comment-replies-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.04rem;
}

.comment-author {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ph-ink);
  text-decoration: none;
}

.comment-author span {
  display: grid;
  line-height: 1.08;
}

.comment-author small {
  color: #7a8698;
  font-weight: 620;
}

.comment-author:hover,
.comment-author:focus-visible,
.mention-link:hover,
.mention-link:focus-visible {
  color: var(--ph-primary-dark);
  text-decoration: none;
  outline: 0;
}

.comment-body {
  margin-left: 3rem;
  color: #243044;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-link {
  color: var(--ph-primary-dark);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(53, 102, 255, 0.28);
  text-underline-offset: 0.16em;
}

.comment-link:hover,
.comment-link:focus-visible {
  color: #d536a7;
  text-decoration-color: currentColor;
  outline: 0;
}

.comment-shared-prompt {
  width: min(430px, calc(100% - 3rem));
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  margin: 0.14rem 0 0.1rem 3rem;
  padding: 0.5rem;
  border: 1px solid rgba(53, 102, 255, 0.13);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.98), rgba(255, 247, 253, 0.9));
  box-shadow: 0 8px 22px rgba(29, 50, 107, 0.08);
  color: var(--ph-ink);
  text-decoration: none;
}

.comment-shared-prompt:hover,
.comment-shared-prompt:focus-visible {
  border-color: rgba(155, 77, 255, 0.32);
  box-shadow: 0 12px 28px rgba(53, 102, 255, 0.13);
  color: var(--ph-ink);
  outline: 0;
  text-decoration: none;
}

.comment-shared-prompt-image {
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf0ff;
  color: var(--ph-primary);
}

.comment-shared-prompt-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comment-shared-prompt-image i {
  font-size: 1.35rem;
}

.comment-shared-prompt-content {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.comment-shared-prompt-content small {
  color: var(--ph-primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.comment-shared-prompt-content small i {
  margin-right: 0.2rem;
}

.comment-shared-prompt-content strong,
.comment-shared-prompt-content > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-shared-prompt-content strong {
  color: var(--ph-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.comment-shared-prompt-content > span {
  color: #738197;
  font-size: 0.74rem;
}

.comment-shared-prompt-arrow {
  color: #8a96a8;
  font-size: 0.82rem;
}

.comment-image {
  width: min(340px, calc(100% - 3rem));
  aspect-ratio: 4 / 5;
  margin: 0.12rem 0 0.1rem 3rem;
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #f4f7fb;
  padding: 0;
  text-align: left;
  box-shadow: 0 10px 28px rgba(29, 50, 107, 0.12);
}

.comment-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comment-image span {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2c47;
  font-size: 0.78rem;
  font-weight: 780;
  padding: 0.32rem 0.52rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.comment-image:hover,
.comment-image:focus-visible {
  outline: 0;
  box-shadow: 0 14px 34px rgba(53, 102, 255, 0.18);
}

.mention-link {
  color: #5f2cc7;
  font-weight: 780;
  text-decoration: none;
}

.comment-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.02rem;
  margin-left: 2.65rem;
}

.comment-toolbar form {
  margin: 0;
}

.comment-action {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7b8c;
  font-weight: 720;
  padding: 0.24rem 0.38rem;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease;
}

.comment-action:hover,
.comment-action:focus-visible {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
  outline: 0;
}

.comment-action.is-liked {
  color: #e72056;
}

.comment-action.is-danger:hover,
.comment-action.is-danger:focus-visible {
  background: rgba(231, 32, 86, 0.09);
  color: #c41646;
}

.comment-more-dropdown {
  display: inline-flex;
}

.comment-more-button {
  min-width: 30px;
  padding-inline: 0.36rem;
}

.comment-more-button.show,
.comment-more-button[aria-expanded="true"] {
  background: rgba(47, 109, 246, 0.08);
  color: var(--ph-primary-dark);
}

.comment-more-menu {
  min-width: 150px;
}

.comment-form {
  position: relative;
  width: 100%;
}

.comments-heading {
  align-items: center;
}

.comments-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.comments-summary strong {
  color: #344258;
}

.comments-result-share {
  flex: 0 0 auto;
  white-space: nowrap;
}

.comment-image-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(53, 102, 255, 0.12);
  border-radius: var(--ph-card-radius);
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.07), rgba(236, 69, 185, 0.07)),
    #ffffff;
  color: #243044;
}

.comment-image-callout-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.comment-image-callout-copy > span:last-child {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.comment-image-callout-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.1);
}

.comment-image-callout.has-image .comment-image-callout-icon {
  color: #16815d;
  background: rgba(27, 158, 119, 0.12);
}

.comment-image-callout strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.comment-image-callout span {
  color: #6a7586;
  font-size: 0.88rem;
}

.comment-image-callout-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.comment-reply-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: #243044;
  font-weight: 720;
}

.comment-reply-preview button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #536174;
}

.comment-image-preview {
  width: min(210px, 100%);
  position: relative;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f7fb;
  box-shadow: var(--ph-shadow-sm);
}

.comment-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
}

.comment-image-preview button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #243044;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.comment-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 0.5rem;
  width: 100%;
}

.comment-input-shell {
  min-width: 0;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  align-items: end;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--ph-shadow-sm);
  overflow: visible;
}

.comment-input-shell textarea.form-control {
  grid-column: 1 / 2;
  width: 100% !important;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 42px;
  max-height: 104px;
  display: block;
  resize: none !important;
  overflow-y: auto;
  line-height: 1.35;
  padding: 0.68rem 0.15rem 0.58rem 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.comment-input-icon {
  position: static;
  align-self: end;
  width: 34px;
  height: 34px;
  margin: 0 0.24rem 0.24rem 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ph-primary-dark);
}

.comment-image-trigger {
  grid-column: 2 / 3;
}

.comment-emoji-trigger {
  grid-column: 3 / 4;
}

.comment-input-shell.is-reply-mode {
  grid-template-columns: minmax(0, 1fr) 36px;
}

.comment-input-shell.is-reply-mode .comment-emoji-trigger {
  grid-column: 2 / 3;
}

.comment-input-icon:hover,
.comment-input-icon:focus-visible {
  background: rgba(47, 109, 246, 0.08);
  outline: 0;
}

.comment-form .comment-send-button.btn,
.comments-card .comment-send-button.btn {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: inline-grid !important;
  place-items: center;
  border-radius: 999px;
  padding: 0 !important;
  flex: 0 0 44px !important;
  line-height: 1;
}

.comment-send-button i {
  margin-left: 1px;
}

.emoji-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: min(320px, calc(100vw - 48px));
  padding: 0.55rem;
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(29, 50, 107, 0.16);
}

.emoji-panel button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: #ffffff;
  font-size: 1.05rem;
}

.mention-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 5;
  display: grid;
  gap: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 42px rgba(29, 50, 107, 0.16);
}

.mention-suggestion {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #243044;
  padding: 0.45rem;
  text-align: left;
}

.mention-suggestion:hover,
.mention-suggestion:focus-visible {
  background: rgba(47, 109, 246, 0.08);
  outline: 0;
}

.mention-suggestion-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.1);
  color: var(--ph-primary-dark);
  font-weight: 800;
  overflow: hidden;
}

.mention-suggestion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-modal .modal-content {
  border: 1px solid rgba(47, 109, 246, 0.12) !important;
  border-radius: 14px;
}

.form-shell {
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: var(--ph-card-radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 79, 172, 0.08), transparent 280px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  box-shadow: var(--ph-shadow-md);
  padding: 1.55rem;
}

.form-section-header {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.09);
}

.form-block {
  margin-bottom: 1.15rem;
}

.tag-composer {
  position: relative;
}

.tag-composer-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.48rem 0.58rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.08), transparent 210px),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(31, 44, 71, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  cursor: text;
}

.tag-composer-control:hover {
  border-color: rgba(47, 109, 246, 0.28);
}

.tag-composer:focus-within .tag-composer-control {
  border-color: rgba(155, 77, 255, 0.62);
  box-shadow: 0 0 0 0.2rem var(--ph-focus), 0 10px 22px rgba(47, 109, 246, 0.08);
}

.tag-chip-list {
  display: contents;
}

.tag-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.1), rgba(236, 69, 185, 0.09));
  color: var(--ph-primary-dark);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
  padding: 0.38rem 0.42rem 0.38rem 0.68rem;
  max-width: 100%;
}

.tag-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-chip button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #64748b;
  line-height: 1;
  padding: 0;
}

.tag-chip button:hover,
.tag-chip button:focus-visible {
  background: #ffffff;
  color: #c6283c;
  outline: 0;
}

.tag-chip.is-auto {
  border-color: rgba(155, 77, 255, 0.28);
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.14), rgba(236, 69, 185, 0.14));
}

.tag-chip small {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #6d35d8;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  padding: 0.22rem 0.38rem;
}

.tag-composer-input {
  min-width: 8rem;
  flex: 1 1 9rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 650;
  padding: 0.45rem 0.25rem;
}

.tag-composer-input::placeholder {
  color: #8c98aa;
}

.tag-composer-input:disabled {
  color: #8c98aa;
  cursor: not-allowed;
}

.tag-composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  color: var(--ph-muted);
  font-size: 0.84rem;
}

.tag-composer-meta strong {
  color: var(--ph-primary-dark);
}

.tag-composer.is-full .tag-composer-meta strong {
  color: #c6283c;
}

.tag-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.42rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(29, 50, 107, 0.16);
}

.tag-suggestion {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.07);
  background: transparent;
  color: #263244;
  text-align: left;
  padding: 0.72rem 0.85rem;
}

.tag-suggestion:last-child {
  border-bottom: 0;
}

.tag-suggestion:hover,
.tag-suggestion:focus-visible {
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.08), rgba(236, 69, 185, 0.08));
  outline: 0;
}

.tag-suggestion-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ph-primary-dark);
  font-weight: 820;
}

.tag-suggestion-count {
  color: #6b7686;
  font-size: 0.84rem;
  white-space: nowrap;
}

.tag-suggestion-pill {
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.1);
  color: #6d35d8;
  font-size: 0.72rem;
  font-weight: 780;
  padding: 0.18rem 0.45rem;
}

.prompt-large-textarea {
  min-height: 260px;
}

.upload-tile,
.choice-card {
  height: 100%;
  border: 1px solid rgba(31, 44, 71, 0.11);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.upload-tile {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.upload-flow {
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: var(--ph-card-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.08), transparent 230px),
    rgba(255, 255, 255, 0.78);
}

.upload-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.upload-picker {
  display: grid;
  gap: 0.55rem;
}

.upload-picker-surface {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(53, 102, 255, 0.34);
  border-radius: var(--ph-card-radius);
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.06), rgba(236, 69, 185, 0.06)),
    #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upload-picker-surface:hover,
.upload-picker-surface:focus-within {
  border-color: rgba(236, 69, 185, 0.58);
  box-shadow: 0 16px 34px rgba(53, 102, 255, 0.12);
  transform: translateY(-1px);
}

.upload-picker-result .upload-picker-surface,
.upload-picker-original .upload-picker-surface {
  min-height: 280px;
}

.upload-picker-preview {
  position: absolute;
  inset: 0;
}

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

.upload-picker-empty {
  max-width: 24rem;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 1.2rem;
  text-align: center;
  color: #526071;
}

.upload-picker-empty i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0077ff;
  background: rgba(53, 102, 255, 0.1);
  font-size: 1.65rem;
}

.upload-picker-title {
  color: var(--ph-ink);
  font-size: 1.02rem;
  font-weight: 780;
}

.upload-picker-description {
  font-size: 0.92rem;
}

.upload-picker-action {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent) 58%, var(--ph-pink));
  font-weight: 760;
  box-shadow: 0 12px 24px rgba(53, 102, 255, 0.22);
}

.upload-picker:not(.has-image) .upload-picker-surface {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.15rem;
}

.upload-picker:not(.has-image) .upload-picker-empty {
  padding: 0;
}

.upload-picker:not(.has-image) .upload-picker-action {
  position: static;
  width: 100%;
  max-width: 44rem;
}

.upload-picker.has-image .upload-picker-action {
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(10px);
}

.upload-picker-clear {
  justify-self: start;
  border-color: rgba(31, 44, 71, 0.14);
  color: #5f6b7a;
  font-weight: 650;
}

.upload-remove-check {
  padding: 0.55rem 0.7rem 0;
}

.original-upload-list {
  display: grid;
  gap: 0.85rem;
}

.original-upload-slot {
  display: grid;
  gap: 0.45rem;
}

.original-upload-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ph-ink);
  font-weight: 760;
}

.original-upload-label small {
  color: #6b7280;
  font-weight: 650;
}

.add-original-button {
  margin-top: 0.85rem;
}

.reference-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reference-upload-slot {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.72);
  padding: 0.9rem;
}

.upload-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 10px;
  background: #eef2f5;
}

.upload-preview-image-lg {
  margin-bottom: 0.75rem;
}

.choice-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(47, 109, 246, 0.05), rgba(255, 79, 172, 0.05)),
    rgba(255, 255, 255, 0.78);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  margin-top: 1.1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.09);
}

.dashboard-hero,
.profile-hero {
  border: 1px solid rgba(47, 109, 246, 0.12) !important;
  border-radius: var(--ph-card-radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 79, 172, 0.1), transparent 280px),
    linear-gradient(135deg, #ffffff, #f8faff);
  box-shadow: var(--ph-shadow-md);
}

.dashboard-hero {
  padding: 1.35rem;
}

.profile-hero {
  position: relative;
  padding: 0;
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-wrap {
  flex: 0 0 auto;
}

.profile-main {
  min-width: 0;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-display-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.2rem;
}

.profile-display-name .text-truncate {
  min-width: 0;
  max-width: 100%;
}

.profile-username-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-edit-icon {
  width: auto;
  height: auto;
  display: inline-grid;
  place-items: center;
  color: var(--ph-primary-dark);
  text-decoration: none;
  line-height: 1;
  transform: translateY(1px);
}

.profile-edit-icon:hover,
.profile-edit-icon:focus-visible {
  color: #00beff;
  outline: 0;
}

.profile-bio {
  max-width: 54rem;
  color: #334155;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.profile-mobile-follow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.profile-mobile-follow form,
.profile-mobile-follow .btn {
  min-width: 148px;
}

.profile-block-menu .profile-block-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.profile-completion-card {
  border: 1px solid rgba(53, 102, 255, 0.15);
  border-radius: var(--ph-card-radius);
  padding: 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.1), transparent 260px),
    linear-gradient(135deg, rgba(53, 102, 255, 0.055), #ffffff 64%);
  box-shadow: var(--ph-shadow-sm);
}

.profile-completion-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.profile-completion-heading p {
  max-width: 48rem;
}

.profile-completion-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.2);
}

.profile-completion-progress {
  min-width: 60px;
  display: grid;
  place-items: center;
  gap: 0.02rem;
  color: #536174;
  text-align: center;
}

.profile-completion-progress strong {
  color: #1f2c47;
  font-size: 1.1rem;
  line-height: 1;
}

.profile-completion-progress span {
  font-size: 0.72rem;
}

.profile-completion-progressbar {
  height: 5px;
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(53, 102, 255, 0.09);
}

.profile-completion-progressbar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #0077ff, #00beff);
  transition: width 240ms ease;
}

.profile-completion-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-completion-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  padding: 0.75rem;
  border: 1px solid rgba(53, 102, 255, 0.12);
  border-radius: 8px;
  color: #243044;
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-completion-step-button {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-completion-upload {
  padding: 0;
}

.profile-completion-step-hitarea {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  padding: 0.75rem;
  cursor: pointer;
}

.profile-completion-upload.is-uploading {
  pointer-events: none;
  opacity: 0.72;
}

.profile-completion-step-action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.28rem 0.52rem;
  border-radius: 6px;
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.09);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.profile-completion-step:hover,
.profile-completion-step:focus-visible {
  border-color: rgba(53, 102, 255, 0.4);
  box-shadow: var(--ph-shadow-sm);
  color: #243044;
  outline: 0;
  transform: translateY(-1px);
}

.profile-completion-step.is-complete {
  border-color: rgba(27, 158, 119, 0.2);
  background: rgba(27, 158, 119, 0.045);
}

.profile-completion-step-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.09);
}

.profile-completion-step.is-complete .profile-completion-step-icon {
  color: #16815d;
  background: rgba(27, 158, 119, 0.13);
}

.profile-completion-step-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.profile-completion-step-copy strong,
.profile-completion-step-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-completion-step-copy strong {
  white-space: nowrap;
}

.profile-completion-step-copy small {
  color: #687588;
  line-height: 1.3;
}

.profile-completion-arrow {
  color: var(--ph-primary-dark);
}

.profile-completion-bio {
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(53, 102, 255, 0.12);
}

.profile-completion-bio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.65rem;
}

.profile-completion-bio textarea {
  min-height: 72px;
}

.profile-completion-bio .btn {
  align-self: end;
}

@media (max-width: 767.98px) {
  .profile-completion-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-completion-progress {
    grid-column: 2 / 3;
    justify-self: start;
    display: flex;
    gap: 0.25rem;
    min-width: 0;
    text-align: left;
  }

  .profile-completion-progress strong {
    font-size: 0.9rem;
  }

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

  .profile-completion-step-copy small {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
  }

  .profile-completion-bio-row {
    grid-template-columns: 1fr;
  }

  .profile-completion-bio .btn {
    width: 100%;
  }

  .comment-image-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-image-callout-action {
    width: 100%;
  }

  .comments-heading {
    align-items: flex-start;
  }

  .comments-result-share {
    align-self: flex-start;
  }
}

.dashboard-stat {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.98);
  padding: 1.15rem;
  box-shadow: var(--ph-shadow-sm);
}

.dashboard-stat-icon,
.empty-state > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.2);
  flex: 0 0 auto;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 1.2rem;
  box-shadow: var(--ph-shadow-sm);
}

.dashboard-table-card {
  border: 1px solid rgba(23, 33, 43, 0.08) !important;
  overflow: hidden;
}

.dashboard-prompt-list {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.dashboard-prompt-card {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(29, 50, 107, 0.055);
}

.dashboard-prompt-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-self: start;
}

.dashboard-prompt-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8faff, #eef3ff);
  color: #8390a3;
  text-decoration: none;
}

.dashboard-prompt-thumb img,
.dashboard-prompt-thumb > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.dashboard-reference-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-reference-stack.has-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-reference-stack img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-prompt-thumb > span i {
  font-size: 1.35rem;
}

.dashboard-prompt-thumb small {
  position: absolute;
  left: 0.32rem;
  bottom: 0.32rem;
  max-width: calc(100% - 0.64rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.64rem;
  font-weight: 780;
  line-height: 1.2;
  padding: 0.16rem 0.38rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-prompt-main,
.dashboard-prompt-heading {
  min-width: 0;
}

.dashboard-prompt-title {
  display: inline-block;
  max-width: 100%;
  color: var(--ph-ink);
  font-size: 1.05rem;
  font-weight: 820;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dashboard-prompt-title:hover,
.dashboard-prompt-title:focus-visible {
  color: var(--ph-primary-dark);
  outline: 0;
}

.dashboard-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
}

.dashboard-prompt-actions form {
  margin: 0;
}

.dashboard-icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 8px;
  color: var(--ph-primary-dark);
  background: #ffffff;
  padding: 0;
  box-shadow: 0 8px 18px rgba(29, 50, 107, 0.06);
}

.dashboard-icon-action:hover,
.dashboard-icon-action:focus-visible {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  outline: 0;
}

.dashboard-icon-action.is-danger {
  border-color: rgba(220, 53, 69, 0.18);
  color: #dc3545;
}

.dashboard-icon-action.is-danger:hover,
.dashboard-icon-action.is-danger:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #dc3545, #00beff);
}

.dashboard-prompt-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.86rem;
}

.dashboard-prompt-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0;
  color: #334155;
}

.profile-social-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.profile-social-stats strong {
  color: var(--ph-ink);
}

.profile-social-stats small {
  color: #536174;
  font-size: 0.95rem;
}

.profile-mobile-actions {
  --bs-offcanvas-height: auto;
  height: auto !important;
  max-height: min(92vh, 720px);
  max-height: min(92svh, 720px);
  border-radius: 18px 18px 0 0;
  border: 0;
  box-shadow: 0 -18px 55px rgba(29, 50, 107, 0.22);
  overflow: hidden;
}

.profile-mobile-actions .offcanvas-header {
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
  padding: 1rem 1.1rem;
}

.profile-mobile-actions .offcanvas-body {
  padding: 0.75rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-mobile-actions .offcanvas-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.profile-action-sheet {
  display: grid;
  gap: 0.5rem;
}

.profile-action-sheet a,
.profile-action-sheet button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  color: #243044;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  padding: 0.8rem 0.9rem;
}

.profile-action-sheet button {
  font: inherit;
}

.profile-action-sheet a:hover,
.profile-action-sheet a:focus-visible,
.profile-action-sheet button:hover,
.profile-action-sheet button:focus-visible {
  border-color: rgba(47, 109, 246, 0.22);
  color: var(--ph-primary-dark);
  box-shadow: var(--ph-shadow-sm);
  outline: 0;
}

.profile-action-sheet .is-primary-action {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 109, 246, 0.18);
}

.profile-action-sheet .is-primary-action i {
  color: #ffffff;
}

.profile-action-sheet .is-primary-action:hover,
.profile-action-sheet .is-primary-action:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff);
}

.profile-action-sheet i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  flex: 0 0 auto;
}

.follow-user-card,
.notification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ph-ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.follow-user-card {
  padding: 0.85rem;
}

.follow-user-card:hover,
.follow-user-card:focus-visible {
  border-color: rgba(155, 77, 255, 0.24);
  background: #ffffff;
  box-shadow: var(--ph-shadow-sm);
  transform: translateY(-1px);
}

.notification-card {
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ph-shadow-sm);
}

.notifications-inbox-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.notifications-inbox {
  display: grid;
  gap: 1.15rem;
}

.notification-section-title {
  margin: 0 0 0.45rem;
  color: var(--ph-muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.notification-item {
  position: relative;
  padding: 0.75rem 0.9rem;
  border-width: 0 0 1px 0;
  border-radius: 0;
  background: transparent;
}

.notification-item-with-actions {
  padding: 0;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-main:hover,
.notification-main:focus-visible {
  background: transparent;
  color: var(--ph-ink);
}

.notification-main:hover strong,
.notification-main:focus-visible strong {
  color: #0077ff;
}

.notification-item.is-unread {
  background: rgba(0, 190, 255, 0.055);
}

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

.notification-system-body {
  margin-top: 0.15rem;
  color: #526273;
  line-height: 1.45;
}

.notification-system-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.1), rgba(255, 79, 172, 0.12));
  color: var(--ph-primary-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.notification-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem 0.75rem 0;
  flex: 0 1 auto;
}

.notification-system-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.notification-item-system.notification-item-with-actions {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar main controls"
    ". poll controls"
    ". actions controls";
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  padding: 0.95rem 1rem;
}

.notification-actor-stack {
  display: flex;
  align-items: center;
  width: 42px;
  min-width: 42px;
}

.notification-actor-stack .avatar {
  width: 28px;
  height: 28px;
  margin-right: -13px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.notification-actor-more {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -2px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--ph-primary);
  font-size: 0.7rem;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.notification-context-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-system.notification-item-with-actions > .notification-avatar-link,
.notification-item-system.notification-item-with-actions > .avatar,
.notification-item-system.notification-item-with-actions > .notification-actor-stack {
  grid-area: avatar;
  margin-left: 0;
  align-self: start;
}

.notification-item-system.notification-item-with-actions > .notification-main {
  grid-area: main;
  min-width: 0;
  padding: 0;
  align-self: start;
}

.notification-item-system.notification-item-with-actions > .notification-system-actions {
  grid-area: actions;
  min-width: 0;
  padding: 0.55rem 0 0;
}

.notification-item-system.notification-item-with-actions > .notification-poll {
  grid-area: poll;
}

.notification-item-system.notification-item-with-actions > .notification-actions {
  grid-area: controls;
  align-self: center;
  padding: 0;
}

.notification-item-system .notification-system-body {
  overflow-wrap: anywhere;
}

.notification-poll {
  width: min(100%, 620px);
  margin-top: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(0, 190, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 190, 255, 0.045);
}

.notification-poll-question {
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.notification-poll-options {
  display: grid;
  gap: 0.45rem;
}

.notification-poll-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  cursor: pointer;
}

.notification-poll-option:hover,
.notification-poll-option:focus-within {
  border-color: rgba(0, 190, 255, 0.38);
  background: #ffffff;
}

.notification-poll-option input {
  accent-color: var(--ph-primary);
}

.notification-poll-thanks {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #087f5b;
  font-weight: 760;
}

.notification-poll-ended {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 999px;
  background: rgba(31, 44, 71, 0.055);
  color: var(--ph-muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.notification-poll-results {
  display: grid;
  gap: 0.5rem;
}

.notification-poll-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 720;
}

.notification-poll-result-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 44, 71, 0.08);
}

.notification-poll-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ph-primary), var(--ph-accent));
}

.notification-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
  padding: 0.9rem 1rem;
  color: var(--ph-ink);
}

.notification-preview-thumb {
  width: 52px;
  height: 52px;
  margin-left: auto;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(31, 44, 71, 0.06);
}

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

.notification-item > .notification-main {
  padding: 0;
}

.notification-item-with-actions > .notification-main {
  padding: 0.9rem 1rem 0.9rem 0;
}

.notification-avatar-link {
  align-self: center;
}

.notification-item-with-actions > .notification-avatar-link,
.notification-item-with-actions > .avatar,
.notification-item-with-actions > .notification-actor-stack {
  margin-left: 1rem;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-right: 1rem;
  flex: 0 0 auto;
}

.notification-actions form {
  margin: 0;
}

.notification-action-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ph-primary-dark);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.notification-action-btn:hover,
.notification-action-btn:focus-visible {
  border-color: rgba(155, 77, 255, 0.42);
  background: rgba(47, 109, 246, 0.08);
  color: #6d35d8;
  box-shadow: 0 10px 20px rgba(31, 44, 71, 0.08);
  transform: translateY(-1px);
  outline: 0;
}

.notification-action-btn.is-danger {
  border-color: rgba(220, 53, 69, 0.18);
  color: #b42335;
}

.notification-action-btn.is-danger:hover,
.notification-action-btn.is-danger:focus-visible {
  border-color: rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.08);
  color: #9f1f2f;
}

.notification-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-pink));
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.08);
  flex: 0 0 auto;
}

.admin-user-form {
  min-width: min(100%, 420px);
}

.admin-page.container {
  max-width: min(1560px, calc(100vw - 28px));
}

.admin-page h1,
.admin-page h2 {
  color: #17212b;
  font-weight: 780;
}

.admin-page > .row {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .admin-page > .row > .col-lg-3 {
    width: 238px;
    flex: 0 0 238px;
  }

  .admin-page > .row > .col-lg-9 {
    width: auto;
    flex: 1 1 0;
  }
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ph-shadow-sm);
}

.admin-sidebar .list-group-item {
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px !important;
  color: #334155;
  font-weight: 700;
  padding: 0.72rem 0.8rem;
  background: transparent;
}

.admin-sidebar .admin-nav-label {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-sidebar .admin-nav-badge {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 0.42rem;
  color: #ffffff;
  background: linear-gradient(135deg, #dc3545, #00beff);
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.16);
  flex: 0 0 auto;
}

.admin-sidebar .list-group-item:hover,
.admin-sidebar .list-group-item:focus-visible {
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.09), rgba(255, 79, 172, 0.08));
  color: #6d35d8;
}

.admin-sidebar .list-group-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.16);
}

.admin-sidebar .list-group-item.active:hover,
.admin-sidebar .list-group-item.active:focus-visible {
  color: #ffffff;
}

.admin-sidebar .list-group-item.active .admin-nav-badge {
  color: #dc3545;
  background: #ffffff;
  box-shadow: none;
}

.mobile-admin-menu .offcanvas-body {
  padding-top: 0.85rem;
}

.mobile-admin-menu .admin-sidebar {
  position: static;
  display: grid;
  gap: 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mobile-admin-menu .admin-sidebar .list-group-item {
  min-height: 50px;
  border: 1px solid rgba(31, 44, 71, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: none;
}

.mobile-admin-menu .admin-sidebar .list-group-item.active {
  border-color: transparent;
  background: linear-gradient(135deg, #dc3545, #b91c1c);
  box-shadow: 0 14px 28px rgba(220, 53, 69, 0.16);
}

.admin-page .card,
.dashboard-table-card {
  border: 1px solid rgba(31, 44, 71, 0.09) !important;
  box-shadow: var(--ph-shadow-sm) !important;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.admin-page .card-body {
  padding: 1.15rem;
}

.admin-stat-card {
  height: 100%;
}

.admin-stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.18);
  flex: 0 0 auto;
}

.admin-filter-card .card-body {
  padding: 1rem;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding: 0.85rem 0;
  color: #66758a;
  font-size: 0.86rem;
}

.admin-pagination-summary {
  font-weight: 650;
  white-space: nowrap;
}

.admin-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.admin-pagination-size label {
  margin: 0;
  font-weight: 650;
  white-space: nowrap;
}

.admin-pagination-size .form-select {
  width: 76px;
  min-width: 76px;
  border-radius: 8px;
}

.admin-pagination .pagination {
  --bs-pagination-color: #355be3;
  --bs-pagination-border-color: #dbe3f0;
  --bs-pagination-hover-color: #273fb4;
  --bs-pagination-hover-bg: #f0f3ff;
  --bs-pagination-hover-border-color: #cfd9ff;
  --bs-pagination-active-bg: #4f46e5;
  --bs-pagination-active-border-color: #4f46e5;
  --bs-pagination-disabled-color: #a6b1c1;
  --bs-pagination-disabled-bg: #f8fafc;
  --bs-pagination-disabled-border-color: #e5eaf1;
}

.admin-pagination .page-link {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0.35rem 0.45rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .admin-pagination {
    align-items: flex-start;
  }

  .admin-pagination-summary {
    flex: 1 1 100%;
  }

  .admin-pagination-size {
    margin-left: 0;
  }

  .admin-pagination nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .admin-pagination .pagination {
    width: max-content;
  }
}

/* Integrated admin comments and tags */
.admin-content-filter-grid.is-comments {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(160px, 0.8fr)) auto;
}

.admin-content-filter-grid.is-tags {
  grid-template-columns: minmax(280px, 1fr) auto;
}

.admin-comment-list {
  display: grid;
  gap: 0.7rem;
}

.admin-comment-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(260px, 2fr) minmax(190px, 0.9fr);
  gap: 0.8rem 1rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  box-shadow: 0 8px 26px rgba(29, 46, 73, 0.05);
}

.admin-comment-card.is-removed {
  border-left: 3px solid #d83343;
}

.admin-comment-identity {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.admin-comment-identity > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #172033;
  text-decoration: none;
}

.admin-comment-identity > a > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.admin-comment-identity strong,
.admin-comment-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-comment-identity strong {
  font-size: 0.84rem;
}

.admin-comment-identity small,
.admin-comment-identity time {
  color: var(--admin-content-muted);
  font-size: 0.72rem;
}

.admin-comment-content {
  min-width: 0;
}

.admin-comment-content p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #344157;
  font-size: 0.86rem;
  line-height: 1.48;
}

.admin-comment-image {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  margin-top: 0.65rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: var(--admin-content-soft);
  cursor: zoom-in;
}

.admin-comment-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-comment-image span {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 0.7rem;
}

.admin-comment-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: var(--admin-content-soft);
  color: #273348;
  text-decoration: none;
}

.admin-comment-context span,
.admin-comment-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-comment-context span {
  grid-column: 1;
  color: var(--admin-content-muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-comment-context span i {
  margin-right: 0.3rem;
}

.admin-comment-context strong {
  grid-column: 1;
  font-size: 0.79rem;
}

.admin-comment-context > i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.admin-comment-context:hover,
.admin-comment-context:focus-visible {
  border-color: #8ebfff;
  color: #0077ff;
}

.admin-comment-badges {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-comment-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.67rem;
}

.admin-content-moderation-form.is-comment-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.6fr) minmax(260px, 2fr) auto;
  margin-top: 0;
}

.admin-comment-danger-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-comment-danger-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-tag-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  box-shadow: 0 8px 26px rgba(29, 46, 73, 0.05);
}

.admin-tag-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-tag-section-heading h2 {
  margin: 0.1rem 0 0.2rem;
  color: #172033;
  font-size: 1.05rem;
}

.admin-tag-section-heading p {
  margin: 0;
  color: var(--admin-content-muted);
  font-size: 0.78rem;
}

.admin-tag-total {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--admin-content-soft);
  color: #445269;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.admin-ai-tool-create {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(120px, 0.25fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: var(--admin-content-soft);
}

.admin-ai-tool-create .form-label,
.admin-ai-tool-card .form-label {
  margin-bottom: 0.25rem;
  color: #4a586d;
  font-size: 0.7rem;
  font-weight: 750;
}

.admin-ai-tool-create .btn,
.admin-ai-tool-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.admin-ai-tool-list,
.admin-tag-list {
  display: grid;
  gap: 0.55rem;
}

.admin-ai-tool-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.45fr) minmax(100px, 0.35fr) 72px auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: #fff;
}

.admin-ai-tool-usage {
  display: grid;
  align-self: center;
  text-align: center;
}

.admin-ai-tool-usage small {
  color: var(--admin-content-muted);
  font-size: 0.64rem;
}

.admin-ai-tool-usage strong {
  color: #172033;
  font-size: 0.95rem;
}

.admin-ai-tool-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-tag-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tag-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: #fff;
}

.admin-tag-card > form:first-child {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.admin-tag-input {
  position: relative;
  min-width: 0;
}

.admin-tag-input > span {
  position: absolute;
  top: 50%;
  left: 0.55rem;
  z-index: 1;
  color: #0077ff;
  font-weight: 800;
  transform: translateY(-50%);
}

.admin-tag-input .form-control {
  padding-left: 1.3rem;
}

.admin-tag-usage {
  color: var(--admin-content-muted);
  font-size: 0.69rem;
  white-space: nowrap;
}

html[data-theme="dark"] .admin-comment-card,
html[data-theme="dark"] .admin-tag-section,
html[data-theme="dark"] .admin-ai-tool-card,
html[data-theme="dark"] .admin-tag-card {
  border-color: var(--admin-content-border);
  background: var(--admin-content-surface);
  box-shadow: none;
}

html[data-theme="dark"] .admin-comment-identity > a,
html[data-theme="dark"] .admin-comment-content p,
html[data-theme="dark"] .admin-comment-context,
html[data-theme="dark"] .admin-tag-section-heading h2,
html[data-theme="dark"] .admin-ai-tool-usage strong {
  color: #f4f5f6;
}

html[data-theme="dark"] .admin-comment-context,
html[data-theme="dark"] .admin-ai-tool-create {
  border-color: var(--admin-content-border);
  background: var(--admin-content-soft);
}

html[data-theme="dark"] .admin-tag-total {
  background: #353638;
  color: #d7dade;
}

html[data-theme="dark"] .admin-ai-tool-create .form-label,
html[data-theme="dark"] .admin-ai-tool-card .form-label {
  color: #b9bdc4;
}

@media (max-width: 1199.98px) {
  .admin-content-filter-grid.is-comments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content-filter-grid.is-tags {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-comment-card {
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.8fr);
  }

  .admin-comment-context {
    grid-column: 1 / -1;
  }

  .admin-ai-tool-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-ai-tool-name {
    grid-column: span 2;
  }

  .admin-ai-tool-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .admin-content-filter-grid.is-comments,
  .admin-content-filter-grid.is-tags,
  .admin-comment-card,
  .admin-content-moderation-form.is-comment-form,
  .admin-ai-tool-create,
  .admin-ai-tool-card,
  .admin-tag-list {
    grid-template-columns: 1fr;
  }

  .admin-comment-card {
    gap: 0.7rem;
    padding: 0.75rem;
  }

  .admin-comment-identity {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-comment-context,
  .admin-content-moderation-form.is-comment-form,
  .admin-comment-badges,
  .admin-comment-danger-actions {
    grid-column: auto;
  }

  .admin-comment-danger-actions,
  .admin-ai-tool-actions {
    justify-content: flex-start;
  }

  .admin-tag-section {
    padding: 0.75rem;
  }

  .admin-ai-tool-name {
    grid-column: auto;
  }

  .admin-ai-tool-usage {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0.35rem;
    text-align: left;
  }

  .admin-tag-card > form:first-child {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-tag-usage {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Profile content: prompts and shared community results */
.profile-content {
  scroll-margin-top: 96px;
  margin-top: 0.5rem;
}

.profile-content-tabs {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--ph-line);
}

.profile-content-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 52px;
  padding: 0.65rem 0.1rem;
  color: #526071;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-content-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.profile-content-tab small {
  min-width: 24px;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  color: #697789;
  background: #eef2f6;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.profile-content-tab:hover,
.profile-content-tab:focus-visible {
  color: #0077ff;
  outline: 0;
}

.profile-content-tab.is-active {
  color: #0077ff;
}

.profile-content-tab.is-active::after {
  background: #0077ff;
}

.profile-content-tab.is-active small {
  color: #005fcc;
  background: rgba(0, 119, 255, 0.1);
}

.profile-content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-content-heading h2 {
  color: var(--ph-ink);
}

.profile-content-heading p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.9rem;
}

.profile-content-heading > span {
  flex: 0 0 auto;
  color: var(--ph-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.profile-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-results-grid .community-result-card {
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-results-grid .community-result-card:hover {
  border-color: rgba(0, 119, 255, 0.24);
  box-shadow: 0 12px 28px rgba(31, 44, 71, 0.08);
  transform: translateY(-1px);
}

.community-result-profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 24px;
  color: var(--ph-muted);
  font-size: 0.72rem;
}

.community-result-profile-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0077ff;
  font-weight: 750;
}

.community-result-profile-meta time {
  white-space: nowrap;
}

.profile-results-grid .community-result-note.is-empty {
  display: none;
}

.profile-results-grid .community-result-source {
  border-color: rgba(0, 119, 255, 0.14);
  background: #f7fbff;
}

.profile-results-grid .community-result-source:hover,
.profile-results-grid .community-result-source:focus-visible {
  border-color: rgba(0, 119, 255, 0.34);
  color: var(--ph-ink);
  background: #f1f8ff;
}

.profile-results-grid .community-result-source-thumb {
  background: #0077ff;
  box-shadow: none;
}

.profile-results-grid .community-result-source small,
.profile-results-grid .community-result-tool {
  color: #006ee6;
}

.profile-results-grid .community-result-actions {
  justify-content: flex-start;
}

.profile-results-grid .community-result-tool {
  margin-left: auto;
}

.profile-results-empty {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 110px;
  padding: 1.1rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.profile-results-empty > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  color: #0077ff;
  background: rgba(0, 119, 255, 0.09);
  font-size: 1.15rem;
}

.profile-results-empty > div {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-results-empty strong {
  display: block;
  margin-bottom: 0.14rem;
  color: var(--ph-ink);
}

.profile-results-empty p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.86rem;
}

.profile-results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  margin-top: 1.25rem;
}

.profile-results-pagination > a,
.profile-results-page-numbers > a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ph-line);
  border-radius: 7px;
  color: #445164;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-results-page-numbers {
  display: flex;
  gap: 0.32rem;
}

.profile-results-pagination a:hover,
.profile-results-pagination a:focus-visible {
  border-color: rgba(0, 119, 255, 0.3);
  color: #0077ff;
  outline: 0;
}

.profile-results-pagination a.is-active {
  border-color: #0077ff;
  color: #fff;
  background: #0077ff;
}

.profile-results-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

html[data-theme="dark"] .profile-content-tabs {
  border-color: #3e4042;
}

html[data-theme="dark"] .profile-content-tab {
  color: #b0b3b8;
}

html[data-theme="dark"] .profile-content-tab:hover,
html[data-theme="dark"] .profile-content-tab:focus-visible,
html[data-theme="dark"] .profile-content-tab.is-active,
html[data-theme="dark"] .community-result-profile-meta > span {
  color: #67b3ff;
}

html[data-theme="dark"] .profile-content-tab.is-active::after {
  background: #67b3ff;
}

html[data-theme="dark"] .profile-content-tab small {
  color: #b0b3b8;
  background: #3a3b3c;
}

html[data-theme="dark"] .profile-content-tab.is-active small {
  color: #9bceff;
  background: rgba(0, 119, 255, 0.18);
}

html[data-theme="dark"] .profile-results-grid .community-result-card,
html[data-theme="dark"] .profile-results-empty {
  border-color: #3e4042;
  background: #242526;
}

html[data-theme="dark"] .profile-results-grid .community-result-card:hover {
  border-color: rgba(103, 179, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .profile-results-grid .community-result-source {
  border-color: #3e4042;
  background: #2d2e30;
}

html[data-theme="dark"] .profile-results-grid .community-result-source:hover,
html[data-theme="dark"] .profile-results-grid .community-result-source:focus-visible {
  border-color: rgba(103, 179, 255, 0.45);
  color: #e4e6eb;
  background: #323335;
}

html[data-theme="dark"] .profile-results-grid .community-result-source small,
html[data-theme="dark"] .profile-results-grid .community-result-tool {
  color: #67b3ff;
}

html[data-theme="dark"] .profile-results-empty > span {
  color: #67b3ff;
  background: rgba(0, 119, 255, 0.17);
}

html[data-theme="dark"] .profile-results-pagination > a,
html[data-theme="dark"] .profile-results-page-numbers > a {
  border-color: #3e4042;
  color: #d6d8dc;
  background: #242526;
}

html[data-theme="dark"] .profile-results-pagination a:hover,
html[data-theme="dark"] .profile-results-pagination a:focus-visible {
  border-color: rgba(103, 179, 255, 0.45);
  color: #67b3ff;
}

html[data-theme="dark"] .profile-results-pagination a.is-active {
  border-color: #0077ff;
  color: #fff;
  background: #0077ff;
}

@media (max-width: 991.98px) {
  .profile-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .profile-social-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .profile-social-stats span {
    padding-right: 0.12rem;
    padding-left: 0.12rem;
  }

  .profile-social-stats small {
    font-size: 0.68rem;
  }

  .profile-content-tabs {
    gap: 0;
  }

  .profile-content-tab {
    flex: 1 1 50%;
  }

  .profile-content-heading {
    align-items: start;
  }

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

@media (max-width: 575.98px) {
  .profile-content {
    margin-top: 0.25rem;
  }

  .profile-content-tabs {
    margin-bottom: 1rem;
  }

  .profile-content-tab {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .profile-content-heading {
    display: block;
  }

  .profile-content-heading > span {
    display: none;
  }

  .profile-content-heading p {
    font-size: 0.84rem;
  }

  .profile-results-grid .community-result-image {
    aspect-ratio: 4 / 5;
  }

  .profile-results-grid .community-result-body {
    gap: 0.58rem;
    padding: 0.8rem;
  }

  .profile-results-grid .community-result-note {
    min-height: auto;
    -webkit-line-clamp: 3;
  }

  .profile-results-grid .community-result-source {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    min-height: 64px;
  }

  .profile-results-grid .community-result-source-thumb {
    width: 42px;
    height: 42px;
  }

  .profile-results-empty {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-results-empty .btn {
    width: 100%;
  }

  .profile-results-page-numbers > a {
    display: none;
  }

  .profile-results-page-numbers > a.is-active {
    display: grid;
  }
}

/* Dashboard hub and copied-prompt workflow */
.dashboard-hub {
  display: grid;
  gap: 1.25rem;
}

.dashboard-section-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.3rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ph-shadow-sm);
  scrollbar-width: none;
}

.dashboard-section-nav::-webkit-scrollbar { display: none; }

.dashboard-section-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex: 1 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  color: #5f6c80;
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

.dashboard-section-nav a:hover,
.dashboard-section-nav a:focus-visible {
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.07);
  outline: 0;
}

.dashboard-section-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 8px 18px rgba(53, 102, 255, 0.2);
}

.dashboard-section-nav a small {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ph-primary-dark);
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.dashboard-hub-heading,
.dashboard-list-heading,
.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-hub-heading {
  padding: 0.35rem 0.15rem 0;
}

.dashboard-hub .profile-completion-card { margin: 0; }

.dashboard-continue-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(53, 102, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(118deg, #ffffff 50%, rgba(245, 240, 255, 0.92));
  padding: 0.9rem;
  box-shadow: var(--ph-shadow-sm);
}

.dashboard-continue-media {
  width: 124px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ph-primary);
  background: #edf2ff;
}

.dashboard-continue-media img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-continue-media i { font-size: 1.6rem; }
.dashboard-continue-copy { min-width: 0; }
.dashboard-continue-copy h2 { overflow-wrap: anywhere; }
.dashboard-continue-copy > p:last-child { color: #3f4c60; font-size: 0.9rem; }
.dashboard-continue-eyebrow { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.35rem; color: #6559b6; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.dashboard-continue-actions { display: grid; gap: 0.5rem; min-width: 185px; }

.dashboard-content-overview {
  display: grid;
  gap: 0.85rem;
}

.dashboard-hub-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-hub-links > a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 9px;
  background: #ffffff;
  color: #29364a;
  padding: 1rem;
  text-decoration: none;
  box-shadow: var(--ph-shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-hub-links > a:hover,
.dashboard-hub-links > a:focus-visible { border-color: rgba(53, 102, 255, 0.32); box-shadow: var(--ph-shadow-md); outline: 0; transform: translateY(-1px); }
.dashboard-hub-links > a > span:nth-child(2) { min-width: 0; display: grid; gap: 0.1rem; }
.dashboard-hub-links strong { overflow-wrap: anywhere; }
.dashboard-hub-links small { color: #6f7b8e; line-height: 1.35; }
.dashboard-hub-link-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #ffffff; background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink)); }

.dashboard-table-card { margin: 0; }
.dashboard-prompt-card { grid-template-columns: 112px 58px minmax(0, 1fr) auto; align-items: center; }
.dashboard-prompt-primary-thumb,
.dashboard-prompt-reference-thumb { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(31, 44, 71, 0.09); border-radius: 8px; color: #8995a7; background: #f3f6fb; text-decoration: none; }
.dashboard-prompt-primary-thumb { width: 112px; aspect-ratio: 1 / 1; }
.dashboard-prompt-reference-thumb { width: 58px; aspect-ratio: 1 / 1; }
.dashboard-prompt-primary-thumb img,
.dashboard-prompt-reference-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-prompt-primary-thumb small { position: absolute; left: 0.3rem; bottom: 0.3rem; padding: 0.14rem 0.32rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #344156; font-size: 0.58rem; font-weight: 760; }
.dashboard-prompt-reference-thumb > span { position: absolute; right: 0.2rem; bottom: 0.2rem; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: rgba(27, 36, 53, 0.78); font-size: 0.65rem; font-weight: 800; }
.dashboard-prompt-reference-thumb.is-empty { opacity: 0.7; }
.dashboard-prompt-main { display: grid; gap: 0.48rem; }
.dashboard-prompt-actions { align-self: center; }

.dashboard-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 9px;
  background: #ffffff;
  padding: 0.72rem;
  box-shadow: var(--ph-shadow-sm);
}

.dashboard-pagination-summary {
  min-width: 118px;
  display: grid;
  color: #6e7a8d;
  font-size: 0.76rem;
  line-height: 1.3;
}

.dashboard-pagination-summary strong {
  color: #2d3a4e;
  font-size: 0.9rem;
}

.dashboard-pagination-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.dashboard-page-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(53, 102, 255, 0.16);
  border-radius: 7px;
  color: var(--ph-primary-dark);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.dashboard-page-button:hover,
.dashboard-page-button:focus-visible {
  border-color: rgba(53, 102, 255, 0.42);
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.07);
  outline: 0;
}

.dashboard-page-button.is-current {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 8px 17px rgba(53, 102, 255, 0.2);
}

.dashboard-page-button.is-disabled {
  border-color: rgba(31, 44, 71, 0.07);
  color: #b4bdca;
  background: #f7f8fa;
}

.dashboard-page-ellipsis {
  min-width: 18px;
  color: #8792a3;
  text-align: center;
}

.dashboard-pagination-jump {
  display: grid;
  grid-template-columns: auto 64px 36px;
  align-items: center;
  gap: 0.42rem;
}

.dashboard-pagination-jump label {
  margin: 0;
  color: #687588;
  font-size: 0.76rem;
  font-weight: 680;
  white-space: nowrap;
}

.dashboard-pagination-jump .form-control {
  min-height: 36px;
  height: 36px;
  padding: 0.35rem 0.45rem;
  text-align: center;
}

.dashboard-pagination-jump .btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
}

.dashboard-status-tabs { display: flex; align-items: center; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.1rem; scrollbar-width: none; }
.dashboard-status-tabs::-webkit-scrollbar { display: none; }
.dashboard-status-tabs a { display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; min-height: 40px; padding: 0.48rem 0.72rem; border: 1px solid rgba(31, 44, 71, 0.1); border-radius: 8px; color: #5e6b7f; background: #ffffff; font-size: 0.86rem; font-weight: 720; text-decoration: none; }
.dashboard-status-tabs a.is-active { border-color: rgba(53, 102, 255, 0.35); color: var(--ph-primary-dark); background: rgba(53, 102, 255, 0.07); }
.dashboard-status-tabs small { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: #edf1f7; font-size: 0.67rem; }

.dashboard-tried-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.dashboard-tried-card { overflow: hidden; border: 1px solid rgba(31, 44, 71, 0.09); border-radius: 9px; background: #ffffff; box-shadow: var(--ph-shadow-sm); }
.dashboard-tried-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; color: #8995a7; background: #f1f4fa; text-decoration: none; }
.dashboard-tried-image img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-tried-image i { font-size: 1.6rem; }
.dashboard-tried-body { display: grid; gap: 0.5rem; padding: 0.85rem; }
.dashboard-tried-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #748095; font-size: 0.72rem; }
.dashboard-tried-meta span { color: #6559b6; font-weight: 780; text-transform: uppercase; }
.dashboard-tried-card h2 { margin: 0; overflow-wrap: anywhere; }
.dashboard-tried-card h2 a { color: var(--ph-ink); text-decoration: none; }
.dashboard-tried-author { color: #6c788b; font-size: 0.82rem; text-decoration: none; }
.dashboard-tried-actions { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.25rem; }
.dashboard-tried-actions > .btn:first-child { flex: 1; }
.dashboard-tried-actions form { margin: 0; }
.dashboard-tried-actions form .btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }
.dashboard-tried-empty { min-height: 130px; }

.dashboard-result-picker { min-height: 210px; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(53, 102, 255, 0.38); border-radius: 9px; color: #667387; background: linear-gradient(135deg, #f7f9ff, #fff8fc); cursor: pointer; }
.dashboard-result-picker > span { display: grid; justify-items: center; gap: 0.25rem; text-align: center; }
.dashboard-result-picker > span i { color: var(--ph-primary); font-size: 1.8rem; }
.dashboard-result-picker > span strong { color: #273448; }
.dashboard-result-picker > span small { color: #7b8798; }
.dashboard-result-picker img { width: 100%; max-height: 360px; object-fit: contain; }

.copy-prompt-inline {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(53, 102, 255, 0.18);
  border-bottom: 1px solid rgba(236, 69, 185, 0.16);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.copy-prompt-inline.is-visible { opacity: 1; transform: translateY(0); }
.copy-prompt-inline-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #178e70; font-size: 1.15rem; }
.copy-prompt-inline-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.7rem 1rem; min-width: 0; }
.copy-prompt-inline-copy { display: grid; gap: 0.12rem; min-width: 0; }
.copy-prompt-inline-copy strong { color: #213149; }
.copy-prompt-inline-copy span { color: #687588; font-size: 0.84rem; line-height: 1.45; }
.copy-prompt-inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.42rem; }
.copy-prompt-inline-actions .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.copy-prompt-inline-saved { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.28rem; color: #768297; font-size: 0.75rem; }
.copy-prompt-inline-saved i { color: #178e70; }
.copy-prompt-inline-saved a { color: #405ed0; font-weight: 700; text-decoration: none; }
.copy-prompt-inline-saved a:hover { text-decoration: underline; }
.comment-image-callout.is-highlighted { animation: promptaloResultHighlight 1.5s ease; }
@keyframes promptaloResultHighlight { 0%, 100% { box-shadow: none; } 35% { box-shadow: 0 0 0 4px rgba(236, 69, 185, 0.16); } }

@media (max-width: 991.98px) {
  .dashboard-hub-links,
  .dashboard-tried-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-continue-card { grid-template-columns: 108px minmax(0, 1fr); }
  .dashboard-continue-media { width: 108px; }
  .dashboard-continue-actions { grid-column: 1 / -1; display: flex; min-width: 0; }
}

@media (max-width: 767.98px) {
  .dashboard-hub { gap: 1rem; }
  .dashboard-section-nav { margin-inline: -0.15rem; }
  .dashboard-section-nav a { flex: 0 0 auto; min-width: max-content; padding-inline: 0.72rem; }
  .dashboard-hub-heading,
  .dashboard-list-heading { align-items: stretch; flex-direction: column; }
  .dashboard-hub-heading .btn,
  .dashboard-list-heading .btn { width: 100%; }
  .dashboard-continue-card { grid-template-columns: 82px minmax(0, 1fr); gap: 0.75rem; }
  .dashboard-continue-media { width: 82px; }
  .dashboard-continue-copy > p:last-child { display: none; }
  .dashboard-continue-actions .btn { flex: 1; }
  .dashboard-hub-links { grid-template-columns: 1fr; }
  .dashboard-prompt-card { grid-template-columns: 86px 48px minmax(0, 1fr); gap: 0.65rem; }
  .dashboard-prompt-primary-thumb { width: 86px; }
  .dashboard-prompt-reference-thumb { width: 48px; }
  .dashboard-prompt-main { align-self: stretch; }
  .dashboard-prompt-main > p,
  .dashboard-prompt-metrics { display: none; }
  .dashboard-prompt-actions { grid-column: 1 / -1; justify-self: end; }
  .dashboard-tried-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .dashboard-section-nav a span { display: none; }
  .dashboard-section-nav a { min-width: 52px; }
  .dashboard-continue-actions { display: grid; }
  .dashboard-prompt-card { grid-template-columns: 78px 42px minmax(0, 1fr); }
  .dashboard-prompt-primary-thumb { width: 78px; }
  .dashboard-prompt-reference-thumb { width: 42px; }
  .dashboard-prompt-title { font-size: 0.94rem; }
}

/* Facebook publishing */
.facebook-share-consent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e3e7ef;
  border-radius: 7px;
  background: #fafbfc;
}

.facebook-share-consent .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.facebook-share-consent .form-check-label {
  min-width: 0;
  flex: 1 1 auto;
  color: #17223b;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.social-share-info {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #6b768a;
  background: transparent;
}

.social-share-info:hover,
.social-share-info:focus-visible {
  color: #0077ff;
  background: #eef2ff;
  outline: none;
}

.facebook-admin-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(22, 34, 59, 0.06);
}

.facebook-admin-status.is-connected { border-left: 4px solid #24a77b; }
.facebook-admin-status.is-disconnected { border-left: 4px solid #8d99aa; }

.facebook-admin-status-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  background: #1877f2;
}

.facebook-status-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.facebook-status-tabs::-webkit-scrollbar { display: none; }

.facebook-status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  color: #546176;
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}

.facebook-status-tabs a:hover,
.facebook-status-tabs a.is-active {
  border-color: #6b72ff;
  color: #3159df;
  background: #f6f7ff;
}

.facebook-status-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 11px;
  color: #536078;
  background: #edf0f6;
  font-size: 0.72rem;
}

.facebook-publication-list {
  display: grid;
  gap: 0.75rem;
}

.facebook-publication-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(25, 37, 65, 0.045);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.facebook-publication-row.is-completing {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.facebook-publication-thumb {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  color: #8b96a8;
  background: #f0f3f8;
}

.facebook-publication-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facebook-publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.45rem;
  color: #6f7c91;
  font-size: 0.78rem;
}

.facebook-publication-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.facebook-publication-action { display: inline-flex; align-items: center; gap: 0.45rem; }

.facebook-review-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
  gap: 1.25rem;
  align-items: start;
}

.facebook-review-preview {
  overflow: hidden;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(28, 39, 68, 0.07);
}

.facebook-review-preview > img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  background: #f2f4f8;
}

.facebook-review-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e3e7ef;
  background: #fff;
}

.facebook-review-preview-heading > div { display: grid; gap: 0.1rem; }
.facebook-review-preview-heading span { color: #1877f2; font-size: 0.7rem; font-weight: 750; }
.facebook-review-preview-heading strong { color: #243451; font-size: 0.9rem; }
.facebook-review-preview-heading a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  color: #506078;
  text-decoration: none;
}
.facebook-review-preview-heading a:hover { border-color: #5e6dff; color: #365fe7; background: #f6f7ff; }

.facebook-review-details { padding: 1rem; }

.facebook-review-no-image {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  aspect-ratio: 4 / 3;
  color: #7b879a;
  background: #f2f4f8;
}

.facebook-review-no-image i { font-size: 2rem; }
.facebook-review-controls { display: grid; gap: 1rem; }

.facebook-publish-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.facebook-publication-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.facebook-publication-actions form { margin: 0; }
.facebook-publication-date strong { color: #34435c; }

.facebook-current-schedule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dce3ff;
  border-radius: 7px;
  color: #3049c8;
  background: #f5f7ff;
}

.facebook-current-schedule > i { font-size: 1.15rem; }
.facebook-current-schedule > span { display: grid; gap: 0.05rem; }
.facebook-current-schedule small { color: #6f7b94; }

.facebook-reject-form {
  padding: 1rem;
  border: 1px solid #e1e5ed;
  border-radius: 8px;
  background: #fff;
}

.facebook-schedule-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.facebook-schedule-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid #dce2ed;
  border-radius: 7px;
  cursor: pointer;
}

.facebook-schedule-options label:has(input:checked) {
  border-color: #5a67ff;
  background: #f5f6ff;
}

.facebook-schedule-options input { margin-top: 0.2rem; }
.facebook-schedule-options span { display: grid; gap: 0.15rem; }
.facebook-schedule-options small { color: #758196; line-height: 1.3; }

.facebook-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.facebook-setup-steps span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #748096;
  font-size: 0.85rem;
  font-weight: 650;
}

.facebook-setup-steps b,
.facebook-settings-heading > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #667187;
  background: #edf0f5;
}

.facebook-setup-steps .is-done { color: #263650; }
.facebook-setup-steps .is-done b { color: #fff; background: linear-gradient(135deg, #0077ff, #00beff); }

.facebook-settings-heading { display: flex; align-items: flex-start; gap: 0.8rem; }
.facebook-settings-heading > span { color: #fff; background: #5067f7; font-weight: 750; }

.facebook-callback-url {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e1e5ed;
  border-radius: 7px;
  background: #f8f9fc;
  color: #69758a;
  font-size: 0.82rem;
}

.facebook-callback-url code { overflow-wrap: anywhere; color: #243451; }

.facebook-enable-switch { display: flex; align-items: flex-start; gap: 0.65rem; padding-left: 0; }
.facebook-enable-switch .form-check-input { flex: 0 0 auto; margin: 0.2rem 0 0; }
.facebook-enable-switch label { display: grid; gap: 0.15rem; }
.facebook-enable-switch small { color: #758196; font-weight: 400; }

.btn-facebook { color: #fff; border-color: #1877f2; background: #1877f2; }
.btn-facebook:hover { color: #fff; border-color: #1266d4; background: #1266d4; }

.facebook-connected-page {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #f9fafc;
}

.facebook-connected-page > i { color: #1877f2; font-size: 1.8rem; }
.facebook-connected-page > div > small { display: block; color: #768297; }

.facebook-page-choice { display: grid; gap: 0.55rem; }
.facebook-page-choice form { margin: 0; }
.facebook-page-choice button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #dfe4ed;
  border-radius: 7px;
  color: #263650;
  background: #fff;
  text-align: left;
}
.facebook-page-choice button:hover { border-color: #6473ff; background: #f7f7ff; }
.facebook-page-choice button > i:first-child { color: #1877f2; font-size: 1.35rem; }
.facebook-page-choice button span { display: grid; }
.facebook-page-choice button small { color: #778399; }

.social-settings-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-settings-overview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  background: #fff;
}

.social-settings-overview-item.is-connected { border-color: #cfe8df; }
.social-settings-overview-item > div { display: grid; min-width: 0; }
.social-settings-overview-item small { overflow: hidden; color: #748096; text-overflow: ellipsis; white-space: nowrap; }

.social-settings-platform-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.05rem;
}

.social-settings-platform-icon.is-facebook { background: #1877f2; }
.social-settings-platform-icon.is-instagram { background: linear-gradient(135deg, #6555df, #d946a8); }
.social-settings-platform-icon.is-tiktok { background: #111827; }

.social-platform-settings { overflow: hidden; }
.social-platform-settings.is-facebook { border-top: 3px solid #1877f2 !important; }
.social-platform-settings.is-instagram { border-top: 3px solid #d946a8 !important; }
.social-platform-settings.is-tiktok { border-top: 3px solid #111827 !important; }

.social-platform-settings-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
}

.social-platform-settings-header h2 { margin: 0; color: #202d43; font-size: 1.15rem; }
.social-platform-settings-header p { margin: 0.15rem 0 0; color: #748096; font-size: 0.84rem; }

.social-settings-section {
  padding: 1.1rem 0;
  border-top: 1px solid #e6e9f0;
}

.social-settings-section:last-child { padding-bottom: 0; }
.social-settings-section-title { display: grid; gap: 0.1rem; margin-bottom: 0.9rem; }
.social-settings-section-title > span { color: #27364e; font-weight: 750; }
.social-settings-section-title > small { color: #748096; }

.social-connection-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid #e0e5ee;
  border-radius: 7px;
  background: #f9fafc;
}

.social-connection-control > div:first-child { display: grid; min-width: 0; }
.social-connection-control small { color: #748096; }

.social-review-platforms { display: grid; gap: 0.9rem; margin-bottom: 1rem; }

.social-review-platform {
  overflow: hidden;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  background: #fff;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.social-review-platform.is-facebook { border-top: 3px solid #1877f2; }
.social-review-platform.is-instagram { border-top: 3px solid #d946a8; }
.social-review-platform.is-tiktok { border-top: 3px solid #111827; }
.social-review-platform.is-disabled { opacity: 0.62; }

.social-review-platform > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e5e9f0;
  background: #fafbfe;
}

.social-review-platform-toggle { display: flex; align-items: center; gap: 0.65rem; min-width: 0; cursor: pointer; }
.social-review-platform-toggle > span:last-child { display: grid; min-width: 0; }
.social-review-platform-toggle small { overflow: hidden; color: #748096; text-overflow: ellipsis; white-space: nowrap; }
.social-review-platform-body { padding: 0.85rem; }

.social-review-current-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: #53627a;
  font-size: 0.78rem;
  font-weight: 650;
}

.social-channel-statuses { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }

.social-channel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #dfe4ed;
  border-radius: 6px;
  color: #44536b;
  background: #f9fafc;
  font-size: 0.72rem;
  white-space: nowrap;
}

.social-channel-status strong { color: #27364e; }
.social-channel-status.is-facebook i { color: #1877f2; }
.social-channel-status.is-instagram i { color: #d946a8; }
.social-channel-status.is-tiktok i { color: #111827; }

.social-hub-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.5rem;
  color: #68758b;
  font-size: 0.75rem;
}

.social-hub-admin-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.social-hub-admin-meta .is-visible { color: #168264; }
.social-hub-admin-meta .is-hidden { color: #8993a5; }
.social-hub-admin-meta .is-pinned { color: #5f55d9; }
.social-hub-admin-actions { display: inline-flex; align-items: center; gap: 0.35rem; }
.social-hub-admin-actions .facebook-publication-action.is-active { border-color: #7567ee; color: #fff; background: #7567ee; }

.social-hub-page {
  padding: 0 1rem 2rem;
}

.social-hub-shell {
  width: min(100%, 880px);
  margin: 0 auto;
}

.social-hub-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.35rem;
  border-bottom: 1px solid #e2e7f0;
}

.social-hub-intro-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e4d9fa;
  border-radius: 8px;
  background: #fbf7ff;
}

.social-hub-intro-mark img { width: 36px; height: 36px; object-fit: contain; }

.social-hub-intro span {
  color: #496178;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.social-hub-intro h1 {
  margin: 0.1rem 0 0.2rem;
  color: #16243b;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 780;
  letter-spacing: 0;
}

.social-hub-intro p { margin: 0; color: #65738a; font-size: 0.93rem; }

.social-hub-platform-links { display: flex; align-items: center; gap: 0.5rem; }

.social-hub-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34435b;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.48rem;
  border: 1px solid #e0e5ee;
  border-radius: 6px;
}

.social-hub-profile-link:hover { border-color: #b8c4dc; color: #315de5; background: #fff; }

.social-hub-list {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0;
}

.social-hub-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 168px;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28, 42, 72, 0.055);
}

.social-hub-card-media {
  position: relative;
  display: block;
  width: 168px;
  min-height: 168px;
  overflow: hidden;
  background: #eef1f6;
}

.social-hub-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.social-hub-pin {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 35, 57, 0.76);
  backdrop-filter: blur(8px);
}

.social-hub-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.85rem 1rem;
}

.social-hub-card-kicker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #8050bd;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.social-hub-card h2 { margin: 0.3rem 0 0.1rem; font-size: 1.1rem; line-height: 1.25; }
.social-hub-card h2 a { color: #17243a; text-decoration: none; }
.social-hub-card h2 a:hover { color: #315de5; }
.social-hub-card-author { color: #738097; font-size: 0.82rem; }
.social-hub-card-author a { color: #44536b; font-weight: 700; text-decoration: none; }

.social-hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  color: #77849a;
  font-size: 0.74rem;
}

.social-hub-card-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.social-hub-card-actions { display: flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 0.65rem; }
.social-hub-card-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 6px; }

.social-hub-load-wrap { display: grid; justify-items: center; gap: 0.45rem; padding: 0.35rem 0 1.25rem; }
.social-hub-load-wrap .btn { display: inline-flex; align-items: center; gap: 0.45rem; border-radius: 6px; }

.social-hub-discover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e7f0;
  color: #68758a;
  font-size: 0.88rem;
}

.social-hub-discover a { color: #2858df; font-weight: 750; text-decoration: none; white-space: nowrap; }
.social-hub-empty { display: grid; justify-items: center; gap: 0.45rem; padding: 3rem 1rem; text-align: center; color: #728096; }
.social-hub-empty > i { color: #8a75e8; font-size: 2rem; }
.social-hub-empty strong { color: #25354d; }
.social-hub-empty .btn { margin-top: 0.5rem; border-radius: 6px; }

.admin-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 3rem 1rem;
  border: 1px dashed #d4dce9;
  border-radius: 8px;
  color: #748096;
  background: #fff;
  text-align: center;
}
.admin-empty-state i { font-size: 2rem; }
.admin-empty-state strong { color: #263650; }

@media (max-width: 991.98px) {
  .facebook-review-layout { grid-template-columns: 1fr; }
  .facebook-review-preview > img { max-height: 560px; }
}

@media (max-width: 767.98px) {
  .facebook-share-consent { padding: 0.6rem 0.65rem; }
  .facebook-admin-status { align-items: flex-start; flex-wrap: wrap; }
  .facebook-admin-status > .badge { margin-left: 3.7rem; }
  .facebook-publication-row { grid-template-columns: 76px minmax(0, 1fr) 38px; gap: 0.7rem; }
  .facebook-publication-thumb { width: 76px; }
  .facebook-publication-action { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .facebook-publication-action span { display: none; }
  .facebook-publication-actions { flex-direction: column; gap: 0.4rem; }
  .facebook-publication-publish { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .facebook-publication-publish span { display: none; }
  .facebook-publication-copy p { display: none; }
  .facebook-publication-meta { gap: 0.4rem; }
  .facebook-schedule-options { grid-template-columns: 1fr; }
  .facebook-publish-buttons { grid-template-columns: 1fr; }
  .facebook-setup-steps { grid-template-columns: 1fr; }
  .facebook-callback-url { grid-template-columns: 1fr; gap: 0.25rem; }
  .facebook-connected-page { align-items: flex-start; flex-wrap: wrap; }
  .facebook-connected-page > .d-flex { width: 100%; padding-left: 2.6rem; }
  .social-settings-overview { grid-template-columns: 1fr; }
  .social-settings-overview-item { grid-template-columns: auto minmax(0, 1fr); }
  .social-settings-overview-item > .badge { grid-column: 2; justify-self: start; }
  .social-platform-settings-header { grid-template-columns: auto minmax(0, 1fr); }
  .social-platform-settings-header > .badge { grid-column: 2; justify-self: start; }
  .social-connection-control { align-items: flex-start; flex-direction: column; }
  .social-review-platform > header { align-items: flex-start; flex-direction: column; }
  .social-review-current-slot { margin-left: 2.15rem; }
  .social-hub-admin-actions { flex-direction: column; }
  .social-hub-intro {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
  }
  .social-hub-intro-mark {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .social-hub-intro-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .social-hub-platform-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    margin-top: 0.15rem;
  }
  .social-hub-profile-link {
    justify-content: center;
    min-height: 40px;
  }
}

@media (max-width: 575.98px) {
  .social-hub-page { padding: 0 0.75rem 1.25rem; }
  .social-hub-intro { grid-template-columns: 42px minmax(0, 1fr); gap: 0.7rem; padding-top: 0.35rem; }
  .social-hub-intro-mark { width: 42px; height: 42px; font-size: 1.2rem; }
  .social-hub-intro h1 { font-size: 1.38rem; }
  .social-hub-intro p { font-size: 0.82rem; line-height: 1.4; }
  .social-hub-platform-links { grid-column: 1 / -1; justify-self: stretch; }
  .social-hub-profile-link span { display: inline; }
  .social-hub-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 142px; }
  .social-hub-card-media { width: 112px; min-height: 142px; }
  .social-hub-card-body { padding: 0.68rem 0.72rem; }
  .social-hub-card-kicker { font-size: 0.62rem; }
  .social-hub-card h2 { margin-top: 0.22rem; font-size: 0.96rem; }
  .social-hub-card-author { font-size: 0.75rem; }
  .social-hub-card-meta { gap: 0.25rem 0.5rem; margin-top: 0.25rem; font-size: 0.68rem; }
  .social-hub-card-actions { padding-top: 0.45rem; }
  .social-hub-card-actions .btn { min-height: 32px; padding: 0.32rem 0.55rem; font-size: 0.72rem; }
  .social-hub-pin { top: 0.4rem; left: 0.4rem; width: 25px; height: 25px; }
  .social-hub-discover { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}

.admin-page .form-control,
.admin-page .form-select {
  border-color: #dce3ef !important;
  background-color: #fbfcff;
}

.admin-page .form-control:hover,
.admin-page .form-select:hover {
  border-color: rgba(47, 109, 246, 0.34) !important;
  background-color: #ffffff;
}

.admin-page .form-control:focus,
.admin-page .form-select:focus {
  background-color: #ffffff;
}

.admin-search-control {
  min-height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce3ef;
  border-radius: 10px;
  background: #fbfcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 1px 2px rgba(31, 44, 71, 0.025);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.admin-search-control:focus-within {
  border-color: rgba(155, 77, 255, 0.64);
  background: #ffffff;
  box-shadow: 0 0 0 0.2rem var(--ph-focus), 0 10px 22px rgba(47, 109, 246, 0.08);
}

.admin-search-control > i {
  width: 44px;
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  color: #718097;
  font-size: 1rem;
}

.admin-search-control .form-control {
  min-width: 0;
  min-height: 44px;
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
}

.admin-search-control .btn {
  min-width: 46px;
  min-height: 46px;
  align-self: stretch;
  border-radius: 0;
  box-shadow: none;
  padding-inline: 0.95rem;
}

.admin-search-control .btn:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88);
}

.admin-header-search {
  width: min(100%, 340px);
}

.admin-username-control {
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce3ef;
  border-radius: 10px;
  background: #fbfcff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.admin-username-control:focus-within {
  border-color: rgba(155, 77, 255, 0.64);
  background: #ffffff;
  box-shadow: 0 0 0 0.2rem var(--ph-focus), 0 10px 22px rgba(47, 109, 246, 0.08);
}

.admin-username-control > span {
  width: 43px;
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  border-right: 1px solid #e3e8f1;
  color: var(--ph-primary-dark);
  font-weight: 800;
}

.admin-username-control .form-control {
  min-width: 0;
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-profile-form textarea.form-control {
  min-height: 132px;
}

.analytics-stat-card .card-body {
  min-height: 142px;
}

.analytics-range-switch {
  flex-wrap: wrap;
}

.analytics-series-list,
.analytics-route-list {
  display: grid;
  gap: 0.8rem;
}

.analytics-series-row,
.analytics-route-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.analytics-route-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
  color: var(--ph-ink);
  padding: 0.72rem;
}

.analytics-route-row:hover,
.analytics-route-row:focus-visible {
  border-color: rgba(47, 109, 246, 0.28);
  color: var(--ph-primary-dark);
  outline: 0;
}

.analytics-series-label {
  color: #667085;
  font-size: 0.86rem;
  font-weight: 760;
  text-align: right;
}

.analytics-series-bars {
  min-width: 0;
}

.analytics-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
}

.analytics-progress .progress-bar {
  background: linear-gradient(90deg, #0077ff, #00beff);
}

.analytics-meter + .analytics-meter {
  margin-top: 0.9rem;
}

.analytics-hour-grid {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.28rem;
  align-items: end;
}

.analytics-hour-cell {
  min-height: 190px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: end;
}

.analytics-hour-cell span {
  min-height: 4px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #00beff, #0077ff);
}

.analytics-hour-cell small {
  color: #667085;
  font-size: 0.68rem;
  text-align: center;
}

.admin-wide-page {
  max-width: 1680px;
}

.admin-system-summary .card-body {
  min-height: 78px;
}

.admin-system-summary.has-issues {
  border-color: rgba(220, 53, 69, 0.22) !important;
}

.admin-system-summary-icon,
.admin-system-kpi-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0077ff;
  background: #eef3ff;
}

.admin-system-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.15rem;
}

.admin-system-summary.has-issues .admin-system-summary-icon {
  color: #b42318;
  background: #fff1f0;
}

.admin-system-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-system-kpis .card-body {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-system-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.08rem;
}

.admin-system-kpi-icon.is-success {
  color: #087a55;
  background: #e9f9f3;
}

.admin-system-kpi-icon.is-warning {
  color: #9a6700;
  background: #fff8df;
}

.admin-system-kpi-icon.is-danger {
  color: #b42318;
  background: #fff1f0;
}

.admin-system-kpis small,
.admin-system-kpis strong {
  display: block;
}

.admin-system-kpis small {
  color: #667085;
  font-size: 0.76rem;
}

.admin-system-kpis strong {
  margin-top: 0.12rem;
  color: #17212b;
  font-size: 1.2rem;
}

.admin-task-status-list,
.admin-migration-list {
  display: grid;
  gap: 0.7rem;
}

.admin-task-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(430px, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  padding: 0.95rem;
  background: #fff;
}

.admin-task-status-main {
  display: flex;
  gap: 0.8rem;
  min-width: 0;
}

.admin-task-status-icon {
  font-size: 1.2rem;
  padding-top: 0.08rem;
}

.admin-task-status-main h3 {
  margin: 0;
  color: #17212b;
  font-size: 0.96rem;
}

.admin-task-status-main p,
.admin-task-message {
  display: block;
  margin: 0.2rem 0 0;
  color: #667085;
  font-size: 0.8rem;
}

.admin-task-message {
  color: #43516a;
}

.admin-task-status-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.admin-task-status-meta dt,
.admin-task-status-meta dd {
  margin: 0;
}

.admin-task-status-meta dt {
  color: #8792a5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-task-status-meta dd {
  margin-top: 0.15rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 650;
}

.admin-migration-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.admin-migration-state {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  color: #9a6700;
  background: #fff8df;
}

.admin-migration-state.is-applied {
  color: #087a55;
  background: #e9f9f3;
}

.admin-migration-item strong,
.admin-migration-item small {
  display: block;
}

.admin-migration-item strong {
  color: #263244;
  font-size: 0.88rem;
}

.admin-migration-item small,
.admin-migration-item > span:last-child {
  color: #748096;
  font-size: 0.74rem;
}

.admin-system-command {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: auto;
  border-radius: 7px;
  padding: 0.7rem 0.8rem;
  color: #42506a;
  background: #f5f7fb;
  font-size: 0.78rem;
}

@media (max-width: 1199.98px) {
  .admin-system-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-task-status-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admin-task-status-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .admin-system-kpis {
    grid-template-columns: 1fr;
  }

  .admin-task-status-item {
    padding: 0.8rem;
  }

  .admin-migration-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .admin-migration-item > span:last-child {
    grid-column: 2;
  }
}

.admin-statistics-shell {
  padding-bottom: 2rem;
}

.admin-statistics-shell .card {
  border-radius: 14px;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-kpi-card .card-body {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 0.28rem;
}

.analytics-kpi-card strong {
  color: var(--ph-ink);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}

.analytics-kpi-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.16);
  margin-bottom: 0.18rem;
}

.analytics-live-icon {
  background: linear-gradient(135deg, #18a980, #36c59a) !important;
  box-shadow: 0 12px 26px rgba(24, 169, 128, 0.18) !important;
}

.analytics-live-card-note {
  color: #718096;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.analytics-live-card .card-body {
  padding: 1.35rem;
}

.analytics-live-heading-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #168968;
  background: rgba(24, 169, 128, 0.11);
}

.analytics-live-refresh,
.analytics-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5d6b7f;
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
}

.analytics-live-refresh i,
.analytics-live-status i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #20b486;
  box-shadow: 0 0 0 4px rgba(32, 180, 134, 0.12);
}

.analytics-live-table-wrap {
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
}

.analytics-live-table {
  min-width: 920px;
}

.analytics-live-table thead th {
  border-bottom-color: rgba(31, 44, 71, 0.08);
  background: #f7f9fd;
  color: #677489;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.analytics-live-table tbody td {
  border-color: rgba(31, 44, 71, 0.07);
  color: #334155;
  font-size: 0.84rem;
  vertical-align: middle;
}

.analytics-live-table tbody tr:last-child td {
  border-bottom: 0;
}

.analytics-live-table code {
  color: #516076;
  font-size: 0.76rem;
  white-space: nowrap;
}

.analytics-live-referrer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #516076;
  font-size: 0.78rem;
  white-space: nowrap;
}

.analytics-live-referrer i {
  color: var(--ph-primary);
  font-size: 0.84rem;
}

.analytics-live-participant {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 150px;
}

.analytics-live-participant > span:last-child {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.analytics-live-participant strong,
.analytics-live-participant a {
  color: var(--ph-ink);
  font-weight: 760;
  text-decoration: none;
}

.analytics-live-participant a:hover,
.analytics-live-participant a:focus-visible {
  color: var(--ph-primary-dark);
  text-decoration: none;
}

.analytics-live-participant small,
.analytics-live-route + small {
  color: #738197;
  font-size: 0.73rem;
}

.analytics-live-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  color: #2563eb;
  background: #edf3ff;
  border: 1px solid rgba(53, 102, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.analytics-live-avatar.is-guest {
  color: #5e6b7d;
  background: #f4f6f9;
  border-color: #e0e5ec;
}

.analytics-live-route {
  display: block;
  color: var(--ph-ink);
  font-size: 0.84rem;
}

.analytics-live-route + small {
  display: block;
  margin-top: 0.12rem;
}

.analytics-live-empty {
  padding: 1.65rem !important;
  color: #738197 !important;
  text-align: center;
}

.analytics-live-limit-note {
  color: #738197;
  font-size: 0.78rem;
}

.analytics-online-users-card .card-body {
  padding: 1rem;
}

.analytics-online-count {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(53, 102, 255, 0.14);
  border-radius: 999px;
  color: var(--ph-primary-dark);
  background: rgba(53, 102, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-online-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.45rem;
}

.analytics-online-user {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92));
  color: var(--ph-ink);
  text-decoration: none;
  padding: 0.48rem 0.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.analytics-online-user .avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.analytics-online-user:hover,
.analytics-online-user:focus-visible {
  border-color: rgba(53, 102, 255, 0.24);
  box-shadow: var(--ph-shadow-sm);
  color: var(--ph-ink);
  outline: 0;
  transform: translateY(-1px);
}

.analytics-online-user strong,
.analytics-online-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-online-user strong {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
}

.analytics-online-user small {
  color: #718096;
  font-size: 0.66rem;
  line-height: 1.15;
}

.analytics-online-user-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-items: start;
  gap: 0.22rem 0.4rem;
  min-width: 0;
  text-align: left;
}

.analytics-online-user-meta em {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  color: #168968;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.analytics-online-user-meta em i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #20b486;
  box-shadow: 0 0 0 4px rgba(32, 180, 134, 0.12);
}

.analytics-live-dashboard-card .card-body {
  display: grid;
  align-content: start;
}

.analytics-range-switch {
  gap: 0.42rem;
}

.analytics-range-switch .btn {
  border-radius: 9px !important;
  font-weight: 760;
  min-width: 76px;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 720;
}

.analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.analytics-dot {
  width: 0.62rem;
  height: 0.62rem;
  display: inline-block;
  border-radius: 999px;
}

.analytics-dot-pageviews {
  background: linear-gradient(135deg, #0077ff, #8a4dff);
}

.analytics-dot-visitors {
  background: linear-gradient(135deg, #18a980, #49c59f);
}

.analytics-dot-prompts {
  background: linear-gradient(135deg, #00beff, #0077ff);
}

.analytics-chart {
  min-height: 274px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 0.46rem;
  align-items: end;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.55rem;
  scrollbar-width: thin;
}

.analytics-chart-item {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.38rem;
  align-items: end;
}

.analytics-chart-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
  color: #667085;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.analytics-chart-values .is-visitors {
  color: #168968;
}

.analytics-chart-values .is-pageviews {
  color: #4665d8;
}

.analytics-chart-values .is-prompts {
  color: #d93a9e;
}

.analytics-chart-bars {
  min-height: 164px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.14rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.09);
  padding: 0 0.12rem;
}

.analytics-chart-bar {
  width: 100%;
  min-height: 5px;
  display: block;
  align-self: end;
  border-radius: 999px 999px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.analytics-chart-bar.is-visitors {
  background: linear-gradient(180deg, rgba(24, 169, 128, 0.95), rgba(73, 197, 159, 0.78));
}

.analytics-chart-bar.is-pageviews {
  background: linear-gradient(180deg, rgba(53, 102, 255, 0.95), rgba(138, 77, 255, 0.78));
}

.analytics-chart-bar.is-prompts {
  background: linear-gradient(180deg, rgba(236, 69, 185, 0.92), rgba(255, 122, 191, 0.84));
}

.analytics-chart-item small {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 720;
  text-align: center;
  white-space: nowrap;
}

.analytics-single-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.analytics-single-summary > div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 0.18rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  padding: 1rem;
}

.analytics-single-summary span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 720;
}

.analytics-single-summary strong {
  color: var(--ph-ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.analytics-hour-grid-compact {
  min-height: 132px;
  gap: 0.22rem;
}

.analytics-hour-grid-compact .analytics-hour-cell {
  min-height: 118px;
}

.analytics-hour-grid-compact .analytics-hour-cell small {
  font-size: 0.62rem;
}

.analytics-compact-row + .analytics-compact-row {
  margin-top: 0.82rem;
}

.analytics-ranked-list {
  display: grid;
  gap: 0.62rem;
}

.analytics-ranked-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.68rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
  color: var(--ph-ink);
  background: rgba(248, 250, 255, 0.62);
  text-decoration: none;
}

.analytics-ranked-item:hover,
.analytics-ranked-item:focus-visible {
  border-color: rgba(53, 102, 255, 0.24);
  color: var(--ph-primary-dark);
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.08), rgba(236, 69, 185, 0.06));
  outline: 0;
}

.analytics-ranked-item strong,
.analytics-ranked-item small {
  display: block;
}

.analytics-ranked-item small {
  color: #667085;
}

.analytics-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5f2cc7;
  background: rgba(155, 77, 255, 0.1);
  font-weight: 820;
}

.analytics-mini-table {
  display: grid;
  gap: 0.48rem;
}

.analytics-mini-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.analytics-mini-table > div:last-child {
  border-bottom: 0;
}

.analytics-mini-table strong {
  color: var(--ph-ink);
}

.analytics-referrer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.analytics-referrer-row:hover,
.analytics-referrer-row:focus-visible {
  color: var(--bs-primary);
}

.analytics-referrer-row:last-child {
  border-bottom: 0;
}

.analytics-referrer-row > i {
  font-size: 0.78rem;
}

.analytics-detail-list {
  display: grid;
  gap: 0.2rem;
}

.analytics-detail-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.66rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.analytics-detail-list-row:last-child {
  border-bottom: 0;
}

.analytics-referrer-events-table {
  min-width: 760px;
}

.analytics-referrer-event-source {
  max-width: 430px;
}

html[data-theme="dark"] .analytics-referrer-row,
html[data-theme="dark"] .analytics-detail-list-row {
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1199.98px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .admin-statistics-shell .card-body {
    padding: 1rem;
  }

  .analytics-kpi-grid {
    gap: 0.75rem;
  }

  .analytics-kpi-card .card-body {
    min-height: 108px;
  }

  .analytics-kpi-icon {
    width: 36px;
    height: 36px;
  }

  .analytics-live-card .card-body {
    padding: 1rem;
  }

  .analytics-live-table {
    min-width: 840px;
  }

  .analytics-range-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .analytics-range-switch .btn {
    min-width: 0;
  }

  .analytics-chart {
    min-height: 228px;
    grid-auto-columns: minmax(38px, 1fr);
  }

  .analytics-chart-item {
    min-height: 214px;
  }

  .analytics-chart-bars {
    min-height: 126px;
  }

  .analytics-single-summary {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .analytics-single-summary > div {
    min-height: 76px;
  }

  .analytics-hour-grid-compact {
    overflow-x: auto;
    grid-template-columns: repeat(24, minmax(16px, 1fr));
  }
}

.admin-report-list {
  display: grid;
  gap: 1rem;
}

.admin-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ph-shadow-sm);
  padding: 1rem;
}

.admin-report-main {
  min-width: 0;
}

.admin-report-body {
  color: #3a4658;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-report-message {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8faff, #ffffff);
  color: #334155;
}

.report-reason-badge {
  color: #5f2cc7;
  background: rgba(155, 77, 255, 0.1);
  border: 1px solid rgba(155, 77, 255, 0.16);
}

.admin-report-side {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.admin-report-review,
.admin-report-actions {
  display: grid;
  gap: 0.5rem;
}

.admin-report-review {
  padding: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #f8faff;
}

@media (max-width: 991.98px) {
  .admin-report-card {
    grid-template-columns: 1fr;
  }
}

.admin-settings-upload,
.admin-system-image-note {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: var(--ph-card-radius);
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(255, 247, 253, 0.9));
}

.admin-poll-compose {
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: rgba(248, 250, 255, 0.86);
}

.notification-system-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.notification-reminder-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 190, 255, 0.1);
  color: var(--ph-primary-dark);
  font-size: 0.68rem;
  font-weight: 820;
}

.admin-poll-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
}

.admin-poll-toggle .form-check-input {
  margin-left: 0;
  flex: 0 0 auto;
}

.admin-poll-fields {
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-poll-result-check {
  padding: 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.admin-poll-card {
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: #ffffff;
  box-shadow: var(--ph-shadow-sm);
}

.admin-poll-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-poll-vote-total {
  min-width: 96px;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0, 190, 255, 0.08);
  text-align: center;
  color: var(--ph-ink);
}

.admin-poll-vote-total strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.admin-poll-vote-total span {
  color: var(--ph-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-poll-results {
  display: grid;
  gap: 0.75rem;
}

.admin-page-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--ph-primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-poll-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-poll-kpis > div {
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-poll-kpis span,
.admin-poll-kpis strong {
  display: block;
}

.admin-poll-kpis span {
  overflow: hidden;
  color: var(--ph-muted);
  font-size: 0.73rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-poll-kpis strong {
  margin-top: 0.15rem;
  color: var(--ph-ink);
  font-size: 1.15rem;
}

.admin-poll-management {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-poll-management-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-poll-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-poll-control-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fbfcfe;
}

.admin-poll-panel-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-poll-panel-title > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(0, 190, 255, 0.1);
  color: var(--ph-primary-dark);
}

.admin-poll-panel-title strong,
.admin-poll-panel-title span {
  display: block;
}

.admin-poll-panel-title span {
  margin-top: 0.05rem;
  color: var(--ph-muted);
  font-size: 0.78rem;
}

.admin-poll-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.66rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.07);
}

.admin-poll-switch-row strong,
.admin-poll-switch-row small {
  display: block;
}

.admin-poll-switch-row small {
  margin-top: 0.12rem;
  color: var(--ph-muted);
  line-height: 1.35;
}

.admin-poll-switch-row .form-check-input {
  margin: 0;
}

.admin-poll-history {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
}

.admin-poll-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  background: #f8fafc;
  color: var(--ph-ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 780;
  list-style: none;
}

.admin-poll-history > summary::-webkit-details-marker {
  display: none;
}

.admin-poll-history .table {
  font-size: 0.8rem;
}

.admin-poll-end-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 190, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 190, 255, 0.07);
  color: var(--ph-muted);
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.admin-poll-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-poll-result-meta span {
  color: var(--ph-muted);
  font-size: 0.9rem;
}

.admin-poll-result-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 44, 71, 0.08);
}

.admin-poll-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ph-primary), var(--ph-accent));
}

.admin-poll-voters {
  margin-top: 0.55rem;
}

.admin-poll-voters summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 999px;
  background: rgba(31, 44, 71, 0.035);
  color: var(--ph-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 780;
  list-style: none;
}

.admin-poll-voters summary::-webkit-details-marker {
  display: none;
}

.admin-poll-voters summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 0.7rem;
}

.admin-poll-voters[open] summary::after {
  content: "\F286";
}

.admin-poll-voter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.admin-poll-voter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ph-ink);
  text-decoration: none;
}

.admin-poll-voter:hover,
.admin-poll-voter:focus-visible {
  border-color: rgba(0, 190, 255, 0.32);
  background: rgba(0, 190, 255, 0.055);
  color: var(--ph-ink);
}

.admin-poll-voter span {
  min-width: 0;
}

.admin-poll-voter strong,
.admin-poll-voter small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-poll-voter strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.admin-poll-voter small {
  color: var(--ph-muted);
  font-size: 0.76rem;
}

html[data-theme="dark"] .notification-poll,
html[data-theme="dark"] .admin-poll-compose,
html[data-theme="dark"] .admin-poll-card {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .notification-poll-option,
html[data-theme="dark"] .admin-poll-result-check {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ph-ink);
}

html[data-theme="dark"] .notification-poll-option:hover,
html[data-theme="dark"] .notification-poll-option:focus-within {
  border-color: rgba(0, 190, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .notification-poll-thanks {
  color: #66e6ba;
}

html[data-theme="dark"] .notification-poll-ended {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .notification-poll-result-bar,
html[data-theme="dark"] .admin-poll-result-bar {
  background: rgba(255, 255, 255, 0.11);
}

html[data-theme="dark"] .admin-poll-fields {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .admin-poll-vote-total {
  background: rgba(0, 190, 255, 0.12);
}

html[data-theme="dark"] .admin-poll-kpis > div,
html[data-theme="dark"] .admin-poll-control-panel,
html[data-theme="dark"] .admin-poll-history {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .admin-poll-management,
html[data-theme="dark"] .admin-poll-switch-row {
  border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .admin-poll-history > summary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ph-ink);
}

html[data-theme="dark"] .admin-poll-history .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ph-ink);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .admin-poll-end-meta {
  border-color: rgba(0, 190, 255, 0.24);
  background: rgba(0, 190, 255, 0.1);
}

html[data-theme="dark"] .admin-poll-voters summary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .admin-poll-voter {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .admin-poll-voter:hover,
html[data-theme="dark"] .admin-poll-voter:focus-visible {
  border-color: rgba(0, 190, 255, 0.35);
  background: rgba(0, 190, 255, 0.1);
}

html[data-theme="dark"] .notification-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #242526;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .notification-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

html[data-theme="dark"] .notification-main:hover,
html[data-theme="dark"] .notification-main:focus-visible {
  background: transparent;
  color: var(--ph-ink);
}

html[data-theme="dark"] .notification-main:hover strong,
html[data-theme="dark"] .notification-main:focus-visible strong {
  color: #0077ff;
}

html[data-theme="dark"] .notification-item.is-unread {
  background: rgba(0, 190, 255, 0.09);
}

html[data-theme="dark"] .notification-actor-stack .avatar,
html[data-theme="dark"] .notification-actor-more {
  border-color: #242526;
}

html[data-theme="dark"] .notification-actor-more {
  background: #303134;
  color: #8adaff;
}

html[data-theme="dark"] .notification-preview-thumb {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  .admin-poll-card-head {
    flex-direction: column;
  }

  .admin-poll-vote-total {
    width: 100%;
    text-align: left;
  }

  .admin-poll-voter-list {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .admin-poll-kpis,
  .admin-poll-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .admin-poll-card {
    padding: 0.85rem;
  }

  .admin-poll-kpis {
    gap: 0.45rem;
  }

  .admin-poll-kpis > div {
    padding: 0.62rem;
  }

  .admin-poll-management-grid {
    grid-template-columns: 1fr;
  }

  .admin-poll-history > summary {
    align-items: flex-start;
  }
}

.admin-settings-section {
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: var(--ph-card-radius);
  background: #fbfcff;
}

.admin-settings-section .form-label {
  font-weight: 760;
}

.admin-settings-section textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

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

.admin-email-protection-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.admin-email-protection-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.1);
  color: #0077ff;
  font-size: 1.08rem;
}

.admin-email-protection-status {
  display: grid;
  flex: 0 0 auto;
  min-width: 148px;
  padding-left: 1rem;
  border-left: 1px solid rgba(31, 44, 71, 0.1);
  text-align: right;
}

.admin-email-protection-status strong {
  color: var(--ph-ink);
  font-size: 1.15rem;
  line-height: 1.15;
}

.admin-email-protection-status span,
.admin-email-protection-status small {
  color: var(--ph-muted);
  font-size: 0.74rem;
}

.admin-email-domain-test {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(260px, 1fr);
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: #fff;
}

.admin-email-protection-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--ph-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-email-protection-note i {
  margin-top: 0.08rem;
  color: #0077ff;
}

html[data-theme="dark"] body .admin-page .admin-email-domain-test {
  border-color: #3a3b3c;
  background: #2f3033;
}

html[data-theme="dark"] body .admin-page .admin-email-protection-status {
  border-left-color: #3a3b3c;
}

html[data-theme="dark"] body .admin-page .admin-email-protection-status strong {
  color: #e4e6eb;
}

html[data-theme="dark"] body .admin-page .admin-email-protection-icon {
  background: rgba(0, 190, 255, 0.12);
  color: #67d9ff;
}

@media (max-width: 767.98px) {
  .admin-email-protection-head {
    display: grid;
  }

  .admin-email-protection-status {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0 0.35rem;
    min-width: 0;
    padding: 0;
    border-left: 0;
    text-align: left;
  }

  .admin-email-protection-status small {
    grid-column: 1 / -1;
  }

  .admin-email-domain-test {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 575.98px) {
  .admin-email-domain-test .input-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .admin-email-domain-test .input-group-text {
    display: none;
  }

  .admin-email-domain-test .form-control,
  .admin-email-domain-test .btn {
    width: 100%;
    border: 1px solid var(--ph-border);
    border-radius: 8px !important;
  }
}

.admin-newsletter-setting {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(63, 92, 246, 0.16);
  border-radius: var(--ph-card-radius);
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.055), rgba(236, 69, 185, 0.035)),
    #fff;
}

.admin-newsletter-setting::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0077ff, #00beff);
  content: "";
}

.admin-newsletter-setting-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-newsletter-setting-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0077ff, #b54ef3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(53, 102, 255, 0.18);
  font-size: 1.08rem;
}

.admin-newsletter-setting-head h2 {
  margin: 0 0 0.15rem;
  color: #172033;
  font-size: 1rem;
  font-weight: 800;
}

.admin-newsletter-setting-head p {
  margin: 0;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-newsletter-setting-controls {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(360px, 1.25fr);
  align-items: end;
  gap: 1rem;
}

.admin-newsletter-batch-field label,
.admin-newsletter-presets-label {
  display: block;
  margin-bottom: 0.42rem;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 780;
}

.admin-newsletter-batch-field .input-group {
  max-width: 270px;
}

.admin-newsletter-batch-field .form-control {
  min-height: 46px;
  font-size: 1.05rem;
  font-weight: 780;
}

.admin-newsletter-batch-field .input-group-text {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-newsletter-preset-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  background: #fff;
}

.admin-newsletter-preset {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-right: 1px solid #e3e8f1;
  background: transparent;
  color: #475467;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 780;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.admin-newsletter-preset:last-child {
  border-right: 0;
}

.admin-newsletter-preset:hover {
  background: #f4f6ff;
  color: #2454e8;
}

.admin-newsletter-preset.is-active {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0077ff, #9e4cf3);
  color: #fff;
  box-shadow: 0 7px 18px rgba(53, 102, 255, 0.2);
}

.admin-newsletter-preset small {
  font-size: 0.62rem;
  font-weight: 720;
  opacity: 0.82;
}

.admin-newsletter-capacity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(63, 92, 246, 0.11);
  color: #667085;
}

.admin-newsletter-capacity > i {
  color: #0077ff;
  font-size: 1rem;
}

.admin-newsletter-capacity div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.45rem;
}

.admin-newsletter-capacity strong {
  color: #344054;
  font-size: 0.82rem;
}

.admin-newsletter-capacity span {
  font-size: 0.76rem;
}

.admin-settings-domain-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-settings-domain-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(32, 180, 134, 0.2);
  border-radius: 999px;
  background: rgba(32, 180, 134, 0.07);
  color: #16795b;
  font-size: 0.74rem;
  font-weight: 760;
}

.admin-settings-image-preview,
.admin-system-image-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ph-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(155, 77, 255, 0.18), 0 10px 24px rgba(47, 109, 246, 0.11);
}

.admin-settings-image-preview {
  width: 64px;
  height: 64px;
  font-size: 1.45rem;
}

.admin-system-image-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

.admin-settings-image-preview img,
.admin-system-image-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-settings-remove-check {
  padding: 0.42rem 0.62rem 0.42rem 2rem;
  border: 1px solid rgba(220, 53, 69, 0.14);
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.05);
  color: #9f1f2f;
  font-size: 0.88rem;
}

.admin-user-list {
  display: grid;
  gap: 1rem;
}

.admin-user-card {
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ph-shadow-sm);
  padding: 1rem;
}

.admin-user-card.is-muted {
  opacity: 0.72;
}

.admin-user-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-user-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-user-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.42rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.1), rgba(155, 77, 255, 0.09));
  color: var(--ph-primary-dark);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.15;
  white-space: nowrap;
}

.admin-user-prompt-badge i {
  font-size: 0.9em;
}

.admin-user-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.admin-user-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-user-registered {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 255, 0.92);
  color: #536174;
  font-size: 0.83rem;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-user-registered span {
  color: #7b8798;
  font-weight: 720;
}

.admin-user-registered strong {
  color: #263244;
  font-weight: 780;
}

.admin-user-last-active {
  border-color: rgba(24, 169, 128, 0.16);
  background: rgba(24, 169, 128, 0.06);
}

.admin-user-last-active i {
  color: #168968;
}

.admin-user-details-toggle .bi-chevron-down {
  transition: transform 0.18s ease;
}

.admin-user-details-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.admin-user-reason {
  margin-top: 0.85rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(220, 53, 69, 0.16);
  border-radius: 8px;
  color: #9f1f2f;
  background: rgba(220, 53, 69, 0.06);
  font-size: 0.9rem;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(220px, 0.82fr) minmax(360px, 1.35fr);
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.admin-user-collapse {
  margin-top: 0.05rem;
}

.admin-user-panel {
  min-width: 0;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.9), rgba(255, 255, 255, 0.96));
  padding: 0.85rem;
}

.admin-user-panel-title {
  margin-bottom: 0.45rem;
  color: #263244;
  font-size: 0.84rem;
  font-weight: 780;
  text-transform: uppercase;
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  color: #536174;
  font-size: 0.9rem;
}

.admin-user-metrics span,
.admin-user-metrics a {
  padding: 0.52rem 0.6rem;
  border: 1px solid rgba(31, 44, 71, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #536174;
  text-decoration: none;
}

.admin-user-metrics a:hover,
.admin-user-metrics a:focus-visible {
  border-color: rgba(47, 109, 246, 0.22);
  color: var(--ph-primary-dark);
  box-shadow: var(--ph-shadow-sm);
  outline: 0;
}

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

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

.admin-content-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #ffffff;
  color: #536174;
  font-weight: 760;
  text-decoration: none;
  padding: 0.58rem 0.85rem;
}

.admin-content-tabs a:hover,
.admin-content-tabs a:focus-visible,
.admin-content-tabs a.is-active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.18);
  outline: 0;
}

.admin-content-search {
  max-width: 860px;
}

.admin-profile-manage-card {
  border: 1px solid rgba(31, 44, 71, 0.09) !important;
}

.admin-profile-preview {
  width: min(100%, 260px);
  display: grid;
  gap: 0.85rem;
  align-content: start;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 172, 0.09), transparent 190px),
    linear-gradient(135deg, #ffffff, #f8faff);
  padding: 1rem;
}

.admin-profile-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

.admin-profile-form {
  min-width: 0;
}

.admin-profile-social-box {
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 172, 0.08), transparent 170px),
    linear-gradient(135deg, rgba(47, 109, 246, 0.04), rgba(255, 255, 255, 0.94));
  padding: 0.95rem;
}

.admin-profile-social-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.admin-profile-social-head span {
  color: #243149;
  font-weight: 820;
}

.admin-profile-social-head small {
  max-width: 430px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

.admin-profile-remove-avatar {
  border: 1px solid rgba(220, 53, 69, 0.16);
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.045);
  padding: 0.85rem 0.85rem 0.85rem 2.55rem;
}

.admin-profile-remove-avatar .form-check-label {
  color: #9f1f2f;
  font-weight: 760;
}

.admin-content-list {
  display: grid;
  gap: 1rem;
}

.admin-content-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: var(--ph-card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ph-shadow-sm);
  padding: 1rem;
}

.admin-copy-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.admin-copy-thumb {
  width: 96px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: var(--ph-surface-soft);
  color: var(--ph-muted);
  text-decoration: none;
}

.admin-copy-thumb img,
.admin-copy-thumb > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.admin-copy-author a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.admin-copy-author a:hover,
.admin-copy-author a:focus-visible {
  color: var(--ph-primary-dark);
}

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

.admin-copy-meta > * {
  min-width: 116px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 7px;
  background: rgba(248, 250, 255, 0.8);
  color: #536174;
  text-decoration: none;
}

.admin-copy-meta i {
  grid-row: 1 / 3;
  color: var(--ph-primary);
}

.admin-copy-meta small {
  color: var(--ph-muted);
  font-size: 0.65rem;
  line-height: 1.1;
}

.admin-copy-meta strong {
  color: var(--ph-text);
  font-size: 0.75rem;
  line-height: 1.2;
}

.admin-copy-meta > a:hover,
.admin-copy-meta > a:focus-visible {
  border-color: rgba(0, 148, 255, 0.26);
  background: rgba(0, 190, 255, 0.08);
}

@media (max-width: 575.98px) {
  .admin-copy-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
  }

  .admin-copy-thumb {
    width: 72px;
  }

  .admin-copy-meta {
    grid-column: 1 / -1;
  }

  .admin-copy-meta > * {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
  }
}

html[data-theme="dark"] body .admin-page .admin-copy-thumb,
html[data-theme="dark"] body .admin-page .admin-copy-meta > * {
  border-color: #3a3b3c;
  background: #2f3033;
  color: #e4e6eb;
}

html[data-theme="dark"] body .admin-page .admin-copy-meta strong,
html[data-theme="dark"] body .admin-page .admin-copy-author a {
  color: #e4e6eb;
}

.admin-content-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-self: start;
}

.admin-content-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8faff, #eef3ff);
  color: #8390a3;
  text-decoration: none;
}

.admin-content-thumb img,
.admin-content-thumb > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.admin-reference-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

.admin-reference-stack.has-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-reference-stack img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-content-thumb > span i {
  font-size: 1.4rem;
}

.admin-content-thumb small {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-weight: 760;
  font-size: 0.68rem;
  padding: 0.16rem 0.42rem;
}

.admin-content-main {
  min-width: 0;
}

/* Scalable member administration */
.admin-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-members-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.admin-members-summary > div {
  min-width: 0;
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-members-summary > div:last-child {
  border-right: 0;
}

.admin-members-summary span,
.admin-members-summary strong {
  display: block;
}

.admin-members-summary span {
  color: #718096;
  font-size: 0.76rem;
  font-weight: 720;
}

.admin-members-summary strong {
  margin-top: 0.1rem;
  color: #1e293b;
  font-size: 1.42rem;
  line-height: 1.1;
}

.admin-member-views {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.admin-member-views a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 7px;
  background: #fff;
  color: #526075;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.admin-member-views a:hover,
.admin-member-views a:focus-visible,
.admin-member-views a.is-active {
  border-color: rgba(68, 96, 255, 0.35);
  background: rgba(68, 96, 255, 0.08);
  color: var(--ph-primary-dark);
  outline: 0;
}

.admin-members-filter {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.admin-members-filter-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 230px) auto auto;
  gap: 0.65rem;
}

.admin-members-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-members-filter-grid label {
  min-width: 0;
}

.admin-members-filter-grid label > span {
  display: block;
  margin-bottom: 0.3rem;
  color: #526075;
  font-size: 0.77rem;
  font-weight: 760;
}

.admin-member-bulk {
  position: sticky;
  z-index: 20;
  top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(68, 96, 255, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.97);
  box-shadow: 0 10px 28px rgba(36, 57, 102, 0.12);
}

.admin-member-bulk[hidden],
.admin-member-bulk-options[hidden] {
  display: none !important;
}

.admin-member-bulk .form-select {
  width: min(100%, 290px);
  margin-left: auto;
}

.admin-member-bulk-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(68, 96, 255, 0.14);
  border-radius: 8px;
  background: #fff;
}

.admin-member-bulk-options[data-admin-bulk-options="system_message"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-member-bulk-options textarea {
  grid-column: 1 / -1;
}

.admin-member-list {
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.admin-member-list-head,
.admin-member-row {
  display: grid;
  grid-template-columns: minmax(270px, 1.4fr) minmax(170px, 0.75fr) minmax(230px, 0.95fr) minmax(155px, 0.65fr) 42px;
  gap: 0.85rem;
  align-items: center;
}

.admin-member-list-head {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  background: #f5f7fc;
  color: #5b687c;
  font-size: 0.75rem;
  font-weight: 780;
  text-transform: uppercase;
}

.admin-member-list-head label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-member-row {
  min-height: 88px;
  padding: 0.72rem 0.8rem;
  border-top: 1px solid rgba(31, 44, 71, 0.075);
}

.admin-member-row.is-muted {
  opacity: 0.68;
}

.admin-member-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-member-name {
  display: block;
  overflow: hidden;
  color: #152033;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.admin-member-name:hover {
  color: var(--ph-primary-dark);
}

.admin-member-state {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.admin-role-badge {
  border: 1px solid rgba(111, 74, 255, 0.24);
  background: rgba(111, 74, 255, 0.1);
  color: #5d3bd8;
}

.admin-member-content-stats {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.admin-member-content-stats > * {
  min-width: 54px;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  color: #536174;
  text-align: center;
  text-decoration: none;
}

.admin-member-content-stats > a:hover {
  background: rgba(68, 96, 255, 0.07);
  color: var(--ph-primary-dark);
}

.admin-member-content-stats strong {
  color: #1e293b;
  font-size: 0.94rem;
}

.admin-member-content-stats span span,
.admin-member-content-stats a span {
  font-size: 0.67rem;
}

.admin-member-content-stats .is-alert strong,
.admin-member-content-stats .is-alert span {
  color: #c53245;
}

.admin-member-activity {
  display: grid;
  gap: 0.35rem;
}

.admin-member-activity span {
  display: flex;
  flex-direction: column;
}

.admin-member-activity small {
  color: #8a96a8;
  font-size: 0.68rem;
}

.admin-member-activity strong {
  overflow: hidden;
  color: #526075;
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-member-mobile-meta {
  display: none;
}

.admin-user-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-user-overview-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  color: #536174;
  text-decoration: none;
  box-shadow: var(--ph-shadow-sm);
}

.admin-user-overview-stat i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ph-primary);
  font-size: 1.15rem;
}

.admin-user-overview-stat span {
  overflow: hidden;
  font-size: 0.71rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-overview-stat strong {
  color: #172033;
  font-size: 1.3rem;
  line-height: 1.05;
}

a.admin-user-overview-stat:hover {
  border-color: rgba(68, 96, 255, 0.28);
  color: var(--ph-primary-dark);
}

.admin-user-center-card {
  padding: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.admin-user-center-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.admin-user-center-card-head > a {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.admin-user-facts > div {
  min-width: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.07);
}

.admin-user-facts dt {
  color: #8793a5;
  font-size: 0.72rem;
  font-weight: 720;
}

.admin-user-facts dd {
  margin: 0.12rem 0 0;
  color: #273348;
  font-size: 0.88rem;
  font-weight: 680;
}

.admin-user-timeline {
  display: grid;
  gap: 0.8rem;
}

.admin-user-timeline > div {
  display: flex;
  gap: 0.65rem;
}

.admin-user-timeline > div > i {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(68, 96, 255, 0.09);
  color: var(--ph-primary);
}

.admin-user-timeline span,
.admin-user-timeline small {
  display: block;
}

.admin-user-timeline strong {
  color: #263244;
  font-size: 0.86rem;
}

.admin-user-timeline small {
  color: #8995a7;
  font-size: 0.73rem;
}

.admin-preference-list,
.admin-notification-audit,
.admin-session-list,
.admin-note-list,
.admin-case-list {
  display: grid;
}

.admin-preference-list > div,
.admin-notification-audit > div,
.admin-session-list > div,
.admin-case-list > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.07);
}

.admin-preference-list > div {
  justify-content: space-between;
}

.admin-preference-list small,
.admin-notification-audit small,
.admin-session-list small,
.admin-case-list small {
  display: block;
  color: #8490a2;
  font-size: 0.73rem;
}

.admin-notification-audit > div > span,
.admin-session-list > div > span,
.admin-case-list > div > span {
  min-width: 0;
  flex: 1;
}

.admin-notification-audit time {
  color: #8490a2;
  font-size: 0.73rem;
  white-space: nowrap;
}

.admin-note-list {
  gap: 0.65rem;
}

.admin-note-list article {
  padding: 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 7px;
  background: #f8faff;
}

.admin-note-list article p {
  margin-bottom: 0.55rem;
  color: #344054;
  font-size: 0.86rem;
}

.admin-note-list footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #8793a5;
  font-size: 0.72rem;
}

.admin-case-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-case-summary a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(68, 96, 255, 0.14);
  border-radius: 7px;
  color: #526075;
  text-decoration: none;
}

.admin-case-summary a strong {
  color: var(--ph-primary);
  font-size: 1.25rem;
}

.admin-danger-zone {
  border-color: rgba(220, 53, 69, 0.18);
}

@media (max-width: 1399.98px) {
  .admin-member-list-head,
  .admin-member-row {
    grid-template-columns: minmax(250px, 1.35fr) minmax(155px, 0.72fr) minmax(205px, 0.9fr) minmax(140px, 0.62fr) 42px;
  }

  .admin-user-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .admin-members-filter-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .admin-member-list-head {
    display: none;
  }

  .admin-member-row {
    grid-template-columns: minmax(250px, 1.3fr) minmax(160px, 0.7fr) minmax(210px, 0.9fr) 42px;
  }

  .admin-member-activity {
    display: none;
  }

  .admin-member-row:first-of-type {
    border-top: 0;
  }
}

@media (max-width: 991.98px) {
  .admin-members-summary {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .admin-members-filter-main {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
  }

  .admin-members-filter-main .btn-outline-secondary {
    grid-column: 1 / -1;
  }

  .admin-member-row {
    grid-template-columns: minmax(250px, 1.2fr) minmax(155px, 0.65fr) minmax(190px, 0.8fr) 42px;
  }
}

@media (max-width: 767.98px) {
  .admin-members-header {
    align-items: flex-start;
  }

  .admin-members-header p {
    font-size: 0.82rem;
  }

  .admin-members-filter-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-members-filter-main .admin-search-control {
    grid-column: 1 / -1;
  }

  .admin-members-filter-main .form-select {
    grid-column: 1 / -1;
  }

  .admin-members-filter-main .btn-outline-secondary {
    grid-column: auto;
  }

  .admin-members-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-member-bulk {
    flex-wrap: wrap;
  }

  .admin-member-bulk .form-select {
    order: 3;
    width: calc(100% - 92px);
    margin-left: 0;
  }

  .admin-member-bulk-options,
  .admin-member-bulk-options[data-admin-bulk-options="system_message"] {
    grid-template-columns: 1fr;
  }

  .admin-member-bulk-options textarea {
    grid-column: auto;
  }

  .admin-member-row {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    min-height: 78px;
  }

  .admin-member-state,
  .admin-member-content-stats,
  .admin-member-activity {
    display: none;
  }

  .admin-member-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.65rem;
    margin-top: 0.2rem;
    color: #7e8a9d;
    font-size: 0.7rem;
  }

  .admin-user-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-facts,
  .admin-case-summary {
    grid-template-columns: 1fr;
  }

  .admin-user-center-card-head {
    flex-direction: column;
    gap: 0.65rem;
  }

  .admin-notification-audit time {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .admin-members-header {
    flex-direction: column;
  }

  .admin-members-summary {
    grid-template-columns: repeat(5, 105px);
  }

  .admin-members-summary > div {
    padding: 0.7rem;
  }

  .admin-member-person {
    gap: 0.5rem;
  }

  .admin-member-row {
    padding: 0.65rem;
  }

  .admin-user-overview-stat {
    padding: 0.68rem;
  }

  .admin-user-overview-stat span {
    font-size: 0.66rem;
  }
}

.admin-inline-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-inline-manage .form-select {
  width: auto;
  min-width: 150px;
}

.table {
  vertical-align: middle;
}

.table thead th {
  border-bottom-color: rgba(23, 33, 43, 0.1);
  background: linear-gradient(180deg, #f8faff, #f3f6ff);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 0.88rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  border-color: rgba(31, 44, 71, 0.075);
  padding: 1rem;
}

.table tbody tr {
  transition: background-color 140ms ease;
}

.table tbody tr:hover {
  background: rgba(47, 109, 246, 0.025);
}

.table a {
  font-weight: 700;
  text-decoration: none;
}

.admin-page .table .form-control-sm,
.admin-page .table .form-select-sm,
.dashboard-table-card .form-control-sm,
.dashboard-table-card .form-select-sm {
  min-height: 38px;
  font-size: 0.9rem;
}

.admin-page .table .btn-sm,
.dashboard-table-card .btn-sm {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-page form.d-flex,
.admin-page .admin-user-form {
  row-gap: 0.55rem;
}

.badge.text-bg-primary,
.badge.bg-primary {
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent)) !important;
}

.badge.text-bg-success {
  background-color: #15956c !important;
}

.badge.text-bg-warning {
  color: #563b00 !important;
  background-color: #ffe39b !important;
}

.image-lightbox .modal-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
}

.image-lightbox .modal-content {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  border: 0 !important;
  border-radius: 0;
  overflow: hidden;
  background: #000000 !important;
  box-shadow: none;
}

.image-lightbox .modal-body {
  background: transparent;
}

body.promptalo-lightbox-open .modal-backdrop.show {
  opacity: 0.94;
}

.lightbox-heading {
  min-width: 0;
  max-width: min(760px, calc(100vw - 17rem));
  pointer-events: auto;
}

.lightbox-kicker,
.lightbox-author {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.15;
}

.lightbox-kicker {
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.lightbox-author {
  margin-top: 0.18rem;
}

.image-lightbox .modal-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #000000;
  padding: 3.7rem 4.75rem 2.65rem;
  touch-action: pan-y;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 6.35rem);
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #000000;
  box-shadow: none;
}

.lightbox-topbar,
.lightbox-bottombar {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.lightbox-topbar {
  top: 1rem;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-bottombar {
  bottom: 1rem;
  justify-content: center;
}

.lightbox-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.lightbox-open-action,
.lightbox-close-action,
.lightbox-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.74);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.lightbox-open-action {
  min-height: 40px;
  gap: 0.42rem;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.lightbox-close-action {
  width: 40px;
  height: 40px;
  padding: 0;
}

.lightbox-open-action:hover,
.lightbox-open-action:focus-visible,
.lightbox-close-action:hover,
.lightbox-close-action:focus-visible {
  outline: 0;
  color: #ffffff;
  background: rgba(48, 48, 48, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.lightbox-counter {
  min-height: 34px;
  padding: 0 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 720;
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  background: rgba(4, 8, 18, 0.52);
  backdrop-filter: blur(4px);
}

.image-lightbox.is-loading .lightbox-loader {
  display: grid;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.64);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: none;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: #ffffff;
  background: rgba(48, 48, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: none;
}

.lightbox-prev {
  left: 1.2rem;
}

.lightbox-next {
  right: 1.2rem;
}

.lightbox-nav[hidden] {
  display: none !important;
}

.stretched-link-safe {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .navbar-collapse {
    display: none !important;
  }

  .app-nav .container {
    min-height: 58px;
  }

  .mobile-tabbar {
    display: grid;
  }

  .app-footer {
    margin-bottom: 4rem;
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 0.25rem;
  }

  .user-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page > .row > .col-lg-3:has(.admin-sidebar),
  .admin-page > .row > .col-lg-2:has(.admin-sidebar),
  .admin-page > .row > .col-lg-3:first-child,
  .admin-page > .row > .col-lg-2:first-child {
    display: none;
  }

  .admin-page > .row .admin-sidebar {
    display: none;
  }

  .mobile-admin-menu .admin-sidebar {
    position: static;
    display: grid;
  }

  .admin-user-grid {
    grid-template-columns: 1fr;
  }

  .admin-content-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  main {
    padding-top: 1rem !important;
  }

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

  .hero-panel {
    box-shadow: var(--ph-shadow-sm);
  }

  .search-hero {
    padding: 0.85rem;
  }

  .explore-search-form {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
  }

  .explore-search-form .form-control {
    width: 100%;
  }

  .explore-search-form .btn {
    width: 100%;
  }

  .notification-item-with-actions {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "avatar main"
      ". poll"
      ". controls";
    align-items: start;
    gap: 0.5rem 0.7rem;
    padding: 0.8rem;
  }

  .notification-item-with-actions > .notification-avatar-link,
  .notification-item-with-actions > .avatar,
  .notification-item-with-actions > .notification-actor-stack {
    grid-area: avatar;
    margin-left: 0;
    align-self: start;
    justify-self: center;
  }

  .notification-main {
    grid-area: main;
    padding: 0;
    gap: 0.6rem;
    align-items: flex-start;
    min-width: 0;
  }

  .notification-main > .notification-copy {
    min-width: 0;
  }

  .notification-item-with-actions > .notification-poll {
    grid-area: poll;
    width: 100%;
  }

  .notification-actions {
    grid-area: controls;
    justify-content: flex-start;
    padding: 0;
    margin-top: -0.1rem;
  }

  .notifications-inbox-head {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-preview-thumb {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 7px;
  }

  .notification-system-actions {
    flex-basis: 100%;
    padding: 0 0.85rem 0.85rem 3.85rem;
  }

  .notification-system-actions .btn {
    flex: 1 1 9rem;
  }

  .notification-item-system.notification-item-with-actions {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "avatar main"
      ". poll"
      ". actions"
      ". controls";
    gap: 0.5rem 0.7rem;
    padding: 0.8rem;
  }

  .notification-item-system.notification-item-with-actions > .notification-avatar-link,
  .notification-item-system.notification-item-with-actions > .avatar,
  .notification-item-system.notification-item-with-actions > .notification-actor-stack {
    margin-left: 0;
  }

  .notification-item-system.notification-item-with-actions > .notification-main {
    padding: 0;
  }

  .notification-item-system.notification-item-with-actions > .notification-actions {
    padding: 0;
    justify-content: flex-start;
  }

  .notification-item-system.notification-item-with-actions > .notification-system-actions {
    flex-basis: auto;
    padding: 0.35rem 0 0;
  }

  .notification-item-system .notification-system-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
  }

  .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .prompt-card-date {
    font-size: 0.76rem;
  }

  .prompt-card-author-wrap {
    gap: 0.32rem;
  }

  .prompt-card-follow-btn {
    min-height: 25px;
    font-size: 0.74rem;
    padding: 0.24rem 0.5rem;
  }

  .prompt-more-button {
    width: 28px;
    height: 28px;
  }

  .explore-tile-overlay {
    opacity: 1;
    transform: none;
    padding: 2.2rem 0.55rem 0.55rem;
  }

  .explore-tile-title {
    font-size: 0.82rem;
  }

  .explore-tile-meta,
  .explore-tile-date,
  .explore-tile-tags {
    display: none;
  }

  .hero-panel .display-6,
  .prompt-detail-page .display-6 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .prompt-card {
    box-shadow: var(--ph-shadow-sm) !important;
  }

  .prompt-detail-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .prompt-author-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 0.45rem;
  }

  .prompt-author-link {
    min-width: 0;
  }

  .prompt-follow-btn {
    min-height: 31px;
    max-width: 88px;
    padding: 0.28rem 0.48rem;
    border-radius: 7px;
    font-size: 0.78rem;
  }

  .prompt-follow-label {
    min-width: 0;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .prompt-meta-badges {
    justify-content: flex-start;
  }

  .comment-thread {
    gap: 0.85rem;
  }

  .comment-item.is-reply {
    margin-left: 1.05rem;
  }

  .comment-replies-collapsed {
    margin-left: 0.45rem;
    padding-left: 0.65rem;
  }

  .comment-body {
    margin-left: 2.65rem;
  }

  .comment-shared-prompt {
    width: min(390px, calc(100% - 2.65rem));
    margin-left: 2.65rem;
  }

  .comment-image {
    width: min(210px, calc(100% - 2.65rem));
    margin-left: 2.65rem;
  }

  .comment-item.is-reply .comment-image {
    width: min(180px, calc(100% - 2.65rem));
  }

  .comment-toolbar {
    margin-left: 2.3rem;
    gap: 0.18rem;
  }

  .comment-action {
    min-height: 27px;
    padding: 0.22rem 0.34rem;
    font-size: 0.9rem;
  }

  .comment-replies-toggle {
    margin-left: 2.65rem;
    font-size: 0.86rem;
  }

  .comment-compose-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0.42rem;
  }

  .comment-input-shell {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    border-radius: 21px;
  }

  .comment-input-shell.is-reply-mode {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .comment-input-shell textarea.form-control {
    min-height: 42px;
    padding: 0.66rem 0.12rem 0.54rem 0.9rem;
    font-size: 16px;
  }

  .comment-input-icon {
    width: 32px;
    height: 32px;
    margin: 0 0.22rem 0.24rem 0;
  }

  .comment-form .comment-send-button.btn,
  .comments-card .comment-send-button.btn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex-basis: 42px !important;
  }

  .emoji-panel {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 42px));
  }

  .mention-suggestions {
    max-height: 210px;
  }

  .copy-prompt-btn {
    width: 100%;
  }

  .form-shell {
    padding: 1.1rem;
    box-shadow: var(--ph-shadow-sm);
  }

  .prompt-large-textarea {
    min-height: 220px;
  }

  .tag-composer-control {
    min-height: 56px;
    padding: 0.52rem;
  }

  .tag-chip {
    max-width: 100%;
    min-height: 36px;
    font-size: 0.88rem;
  }

  .tag-composer-input {
    min-width: 7rem;
    font-size: 1rem;
  }

  .tag-composer-meta {
    flex-direction: column;
    gap: 0.14rem;
    font-size: 0.8rem;
  }

  .tag-suggestions {
    max-height: 280px;
    overflow-y: auto;
  }

  .tag-suggestion {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tag-suggestion-pill {
    display: none;
  }

  .dashboard-hero,
  .profile-hero {
    padding: 1.1rem;
  }

  .profile-hero {
    padding: 0;
  }

  .profile-hero .card-body {
    padding: 1.1rem !important;
  }

  .profile-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
    padding-top: 0.35rem;
  }

  .profile-main {
    width: 100%;
  }

  .profile-title-row {
    justify-content: center;
    padding: 0 2.6rem;
  }

  .profile-display-name,
  .profile-username-line {
    justify-content: center;
  }

  .profile-social-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.9rem 0;
  }

  .profile-social-stats span {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    border: 1px solid rgba(31, 44, 71, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 0.62rem 0.35rem;
  }

  .profile-social-stats strong {
    font-size: 1.08rem;
    line-height: 1;
  }

  .profile-social-stats small {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .profile-mobile-follow {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.9rem;
  }

  .profile-mobile-follow form,
  .profile-mobile-follow .btn {
    width: auto;
    min-width: 118px;
    max-width: 152px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.72rem;
    font-size: 0.86rem;
  }

  .profile-mobile-follow .profile-block-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  .profile-bio {
    max-width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }

  .profile-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .profile-actions .btn,
  .profile-actions form,
  .profile-actions form .btn {
    width: 100%;
  }

  .admin-page .card-body {
    padding: 1rem;
  }

  .admin-page .table tbody td,
  .dashboard-table-card .table tbody td {
    padding: 0.85rem;
  }

  .admin-user-head {
    flex-direction: column;
  }

  .admin-user-actions {
    align-items: stretch;
    width: 100%;
  }

  .admin-user-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-action-row .btn {
    width: 100%;
  }

  .admin-user-registered {
    align-self: flex-start;
  }

  .analytics-online-users-list {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  .analytics-online-user {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .analytics-online-user-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .admin-user-card {
    padding: 0.9rem;
  }

  .admin-content-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-content-card {
    grid-template-columns: 1fr;
  }

  .dashboard-prompt-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .dashboard-prompt-media {
    width: min(100%, 300px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-prompt-actions {
    align-self: flex-start;
  }

  .admin-content-media {
    max-width: 320px;
  }

  .table-responsive {
    border-radius: var(--ph-card-radius);
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 28px;
    max-width: 150px;
  }

  .footer-icon {
    width: 38px;
    height: 38px;
  }

  .app-footer {
    margin-top: 3rem;
    padding-top: 1.8rem;
  }

  .footer-top {
    gap: 0.85rem;
  }

  .footer-brand-mark,
  .footer-links {
    justify-content: center;
  }

  .footer-brand-row {
    gap: 0.75rem;
  }

  .footer-social {
    justify-content: flex-end;
  }

  .footer-note {
    margin-top: 0;
  }

  .footer-navigation {
    margin-top: 1.2rem;
    padding-top: 0.95rem;
  }

  .footer-links-all {
    justify-content: center;
    gap: 0.6rem 1rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .hero-panel {
    padding: 1.25rem !important;
  }

  .admin-page.container {
    max-width: 100%;
  }

  .admin-user-identity {
    align-items: flex-start;
  }

  .admin-settings-upload,
  .admin-system-image-note {
    align-items: flex-start;
  }

  .admin-newsletter-setting-controls {
    grid-template-columns: 1fr;
  }

  .admin-newsletter-batch-field .input-group {
    max-width: none;
  }

  .admin-newsletter-preset-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-newsletter-preset:nth-child(2) {
    border-right: 0;
  }

  .admin-newsletter-preset:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e8f1;
  }

  .admin-newsletter-capacity div {
    display: grid;
    gap: 0.08rem;
  }

  .comment-image {
    width: min(170px, calc(100% - 2.65rem));
    border-radius: 12px;
  }

  .comment-shared-prompt {
    width: calc(100% - 2.65rem);
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .comment-shared-prompt-image {
    width: 60px;
  }

  .comment-item.is-reply .comment-image {
    width: min(150px, calc(100% - 2.65rem));
  }

  .admin-user-metrics {
    grid-template-columns: 1fr;
  }

  .admin-content-tabs,
  .admin-inline-manage {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-content-tabs a,
  .admin-inline-manage .form-select,
  .admin-inline-manage .btn {
    width: 100%;
  }

  .admin-content-media {
    max-width: 100%;
  }

  .admin-profile-preview {
    width: 100%;
  }

  .admin-profile-social-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .admin-profile-social-head small {
    max-width: none;
    text-align: left;
  }

  .admin-header-search {
    width: 100%;
  }

  .dashboard-prompt-list {
    padding: 0.75rem;
  }

  .dashboard-prompt-media {
    width: min(100%, 260px);
  }

  .dashboard-prompt-thumb small {
    font-size: 0.6rem;
    padding-inline: 0.32rem;
  }

  .dashboard-prompt-actions {
    gap: 0.32rem;
  }

  .dashboard-icon-action {
    width: 36px;
    height: 36px;
  }

  .reference-upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-flow {
    padding: 0.9rem;
  }

  .upload-section-heading {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .upload-section-heading .badge {
    flex: 0 0 auto;
  }

  .upload-picker-surface {
    min-height: 158px;
  }

  .upload-picker-result .upload-picker-surface,
  .upload-picker-original .upload-picker-surface {
    min-height: 220px;
  }

  .upload-picker-action {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .add-original-button {
    width: 100%;
  }

  .profile-hero .avatar-lg {
    width: 88px;
    height: 88px;
    font-size: 2rem;
  }

  .profile-title-row {
    padding: 0 2.3rem;
  }

  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-result-grid {
    grid-template-columns: 1fr;
  }

  .explore-tile-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-panel .display-6,
  .prompt-detail-page .display-6 {
    font-size: 1.7rem;
  }

  .prompt-detail-card .btn,
  .comments-card .btn,
  .hero-panel .btn,
  .form-actions .btn,
  .dashboard-hero .btn {
    width: 100%;
  }

  .form-actions {
    padding-top: 1rem;
  }

  .upload-tile,
  .choice-card {
    padding: 0.9rem;
  }

  .prompt-detail-card form {
    width: 100%;
  }

  .detail-image-button .image-label {
    left: 10px;
    bottom: 10px;
  }

  .image-lightbox .modal-dialog {
    width: auto;
    max-width: 100%;
    margin: 0;
  }

  .image-lightbox .modal-content {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .image-lightbox .modal-body {
    min-height: 0;
    overflow: hidden;
  }

  .lightbox-heading {
    max-width: calc(100vw - 8.4rem);
  }

  .image-lightbox .modal-title {
    font-size: 0.86rem;
  }

  .lightbox-kicker,
  .lightbox-author {
    font-size: 0.68rem;
  }

  .lightbox-stage {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding:
      calc(env(safe-area-inset-top) + 3.55rem)
      0.72rem
      calc(env(safe-area-inset-bottom) + 3.1rem);
    background: #000000;
  }

  .lightbox-stage img {
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 7.1rem);
    border-radius: 10px;
    box-shadow: none;
  }

  .lightbox-topbar {
    top: calc(env(safe-area-inset-top) + 0.62rem);
    left: 0.72rem;
    right: 0.72rem;
  }

  .lightbox-bottombar {
    bottom: calc(env(safe-area-inset-bottom) + 0.72rem);
  }

  .lightbox-open-action {
    min-height: 36px;
    width: 36px;
    padding: 0;
  }

  .lightbox-open-action span {
    display: none;
  }

  .lightbox-close-action {
    width: 36px;
    height: 36px;
  }

  .lightbox-counter {
    min-height: 30px;
    padding: 0 0.62rem;
    font-size: 0.8rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    background: rgba(12, 18, 32, 0.42);
  }

  .lightbox-prev {
    left: 0.65rem;
  }

  .lightbox-next {
    right: 0.65rem;
  }
}

@media (max-width: 991.98px) {
  .hero-panel .hero-title {
    font-size: 2.75rem;
    line-height: 1.06;
  }
}

@media (max-width: 767.98px) {
  .hero-panel .hero-title {
    font-size: 2.2rem;
    line-height: 1.08;
  }
}

@media (max-width: 575.98px) {
  .hero-panel .hero-title {
    font-size: 1.95rem;
  }
}

@media (max-width: 575.98px) {
  .prompt-detail-actions {
    gap: 0.45rem !important;
    align-items: center;
  }

  .prompt-detail-actions form {
    width: auto !important;
    flex: 0 0 auto;
  }

  .prompt-detail-actions .btn {
    width: auto !important;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    border-radius: 999px;
    padding: 0.42rem 0.58rem;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: none;
  }

  .prompt-detail-actions .btn i {
    margin-right: 0 !important;
    font-size: 1rem;
  }

  .prompt-detail-actions [data-prompt-favorite-label],
  .prompt-detail-actions [data-prompt-save-label],
  .prompt-detail-actions .prompt-action-label,
  .prompt-detail-actions .prompt-action-separator {
    display: none !important;
  }

  .prompt-detail-actions .text-muted {
    flex-basis: 100%;
    margin-left: 0 !important;
    padding-top: 0.2rem;
  }
}

.settings-page {
  max-width: min(1160px, calc(100vw - 28px));
}

.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 92px;
}

.settings-nav {
  display: grid;
  gap: 0.32rem;
  padding: 0.45rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ph-shadow-sm);
}

.settings-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 7px;
  color: #536174;
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
  padding: 0.62rem 0.72rem;
}

.settings-nav a:hover,
.settings-nav a:focus-visible {
  background: #f3f6ff;
  color: var(--ph-primary-dark);
  outline: 0;
}

.settings-nav a.is-active {
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.16);
}

.settings-main {
  min-width: 0;
}

.settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.settings-heading h1 {
  margin: 0;
  color: #17212b;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
}

.settings-heading p {
  max-width: 660px;
  margin: 0.42rem 0 0;
  color: var(--ph-muted);
}

.settings-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin-bottom: 0.42rem;
  color: var(--ph-primary-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-eyebrow.is-danger {
  color: #b42338;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.settings-overview-card,
.settings-link-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ph-shadow-sm);
  color: #17212b;
  text-decoration: none;
  padding: 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.settings-overview-card:hover,
.settings-overview-card:focus-visible,
.settings-link-card:hover,
.settings-link-card:focus-visible {
  border-color: rgba(47, 109, 246, 0.32);
  box-shadow: 0 14px 30px rgba(32, 52, 104, 0.1);
  color: #17212b;
  outline: 0;
  transform: translateY(-1px);
}

.settings-overview-card.is-danger:hover,
.settings-overview-card.is-danger:focus-visible {
  border-color: rgba(220, 53, 69, 0.3);
}

.settings-overview-card strong,
.settings-link-card strong {
  display: block;
  font-weight: 800;
}

.settings-overview-card small,
.settings-link-card small,
.settings-session-row small,
.settings-blocked-row small,
.notification-preference-row small,
.settings-ready-export small {
  display: block;
  margin-top: 0.22rem;
  color: var(--ph-muted);
  line-height: 1.45;
}

.settings-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.12), rgba(236, 69, 185, 0.12));
  color: var(--ph-primary-dark);
  font-size: 1.05rem;
}

.settings-card-arrow {
  color: #92a0b3;
}

.settings-card {
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--ph-shadow-sm);
  padding: 1.15rem;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-card-header h2 {
  margin: 0;
  color: #17212b;
  font-size: 1.08rem;
  font-weight: 800;
}

.settings-card-header p,
.settings-account-intro p {
  margin: 0.38rem 0 0;
  color: var(--ph-muted);
  line-height: 1.55;
}

.settings-card-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.settings-channel-labels {
  display: grid;
  grid-template-columns: repeat(2, 68px);
  gap: 0.4rem;
  color: #7a8798;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.notification-preference-list,
.settings-session-list,
.settings-blocked-list {
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.notification-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
  padding: 0.85rem 0;
}

.notification-preference-row strong {
  color: #263244;
  font-size: 0.94rem;
}

.notification-preference-row .form-switch {
  display: grid;
  place-items: center;
  margin: 0;
  padding-left: 0;
}

.notification-preference-row .form-check-input {
  width: 2.15rem;
  height: 1.15rem;
  margin: 0;
}

.settings-choice-list {
  display: grid;
  gap: 0.7rem;
}

.settings-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fbfcff;
  cursor: pointer;
  padding: 0.9rem;
}

.settings-choice:has(input:checked) {
  border-color: rgba(47, 109, 246, 0.42);
  background: #f5f7ff;
}

.settings-choice .form-check-input {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
}

.settings-choice strong {
  display: block;
  color: #263244;
}

.settings-choice small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ph-muted);
  line-height: 1.45;
}

.settings-link-card {
  min-height: 88px;
}

.settings-blocked-row,
.settings-session-row,
.settings-ready-export {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
  padding: 0.88rem 0;
}

.settings-blocked-row:last-child,
.settings-session-row:last-child {
  border-bottom: 0;
}

.settings-blocked-row > .min-w-0,
.settings-session-row > .min-w-0,
.settings-ready-export > div {
  min-width: 0;
  flex: 1 1 auto;
}

.settings-blocked-row strong,
.settings-session-row strong,
.settings-ready-export strong {
  color: #263244;
}

.settings-current-badge {
  display: inline-flex;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #e8eeff;
  color: #315ad1;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.16rem 0.42rem;
  vertical-align: middle;
}

.settings-empty-state {
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  color: var(--ph-muted);
  text-align: center;
  padding: 1rem;
}

.settings-empty-state i {
  color: var(--ph-primary);
  font-size: 1.5rem;
}

.settings-empty-state strong {
  color: #334155;
}

.settings-account-intro {
  border-color: rgba(47, 109, 246, 0.16);
  background: linear-gradient(135deg, #ffffff, #f7f9ff);
}

.settings-account-intro strong {
  color: #17212b;
  font-size: 1.02rem;
}

.settings-danger-card {
  border-color: rgba(220, 53, 69, 0.16);
}

.settings-danger-card .settings-card-header h2 {
  color: #9f1f2f;
}

.settings-deletion-feedback {
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.07), transparent 190px),
    #f8faff;
  color: #334155;
  padding: 0.95rem;
  margin-bottom: 1rem;
}

.settings-deletion-feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.settings-deletion-feedback-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #243149;
  font-weight: 820;
}

.settings-deletion-feedback-head small {
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 760;
  padding: 0.16rem 0.48rem;
}

.settings-deletion-feedback p {
  color: #667085;
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

.settings-confirm-field {
  max-width: 440px;
}

.settings-account-email,
.settings-export-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(47, 109, 246, 0.13);
  border-radius: 8px;
  background: #f7f9ff;
  color: #314056;
  padding: 0.8rem 0.9rem;
}

.settings-account-email strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-account-email > i,
.settings-export-info > i {
  color: var(--ph-primary);
  font-size: 1.15rem;
}

.settings-account-email span {
  margin-left: auto;
  border-radius: 999px;
  background: #e4f7ef;
  color: #117657;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
}

.settings-pending-email {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 8px;
  background: #f7f9ff;
  color: #536174;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.78rem 0.9rem;
}

.settings-pending-email i {
  flex: 0 0 auto;
  color: var(--ph-primary);
}

.settings-email-change-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.settings-ready-export {
  margin-top: 0.95rem;
  border-top: 0;
  border-bottom: 0;
  border-radius: 8px;
  background: #f7f9ff;
  padding: 0.85rem 0.9rem;
}

.settings-reactivate-page {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}

.settings-reactivate-card {
  width: min(100%, 540px);
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(32, 52, 104, 0.12);
  text-align: center;
  padding: 2rem;
}

.settings-reactivate-card .settings-card-icon {
  margin: 0 auto 1rem;
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}

.settings-reactivate-card h1 {
  margin: 0;
  color: #17212b;
  font-size: 1.6rem;
  font-weight: 800;
}

.settings-reactivate-card p {
  margin: 0.7rem auto 1.25rem;
  color: var(--ph-muted);
  line-height: 1.6;
}

.comment-permission-note {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem;
}

@media (max-width: 991.98px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.38rem;
    scrollbar-width: none;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.52rem 0.66rem;
  }
}

@media (max-width: 575.98px) {
  .settings-page {
    max-width: 100%;
  }

  .settings-heading {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .settings-heading .btn {
    width: 100%;
  }

  .settings-overview-grid {
    grid-template-columns: 1fr;
  }

  .settings-overview-card {
    min-height: 88px;
  }

  .settings-card {
    padding: 1rem;
  }

  .settings-channel-labels {
    display: none;
  }

  .notification-preference-row {
    grid-template-columns: minmax(0, 1fr) 52px 52px;
  }

  .settings-session-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .settings-session-row form {
    width: 100%;
    margin-left: 50px;
  }

  .settings-session-row form .btn {
    width: 100%;
  }

  .settings-ready-export {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-ready-export .btn {
    width: 100%;
  }

  .settings-reactivate-card {
    padding: 1.5rem 1.1rem;
  }
}

/* FAQ and locally managed rich-text content */
.faq-page {
  max-width: 1040px;
}

.faq-hero {
  margin: 0 auto 1.75rem;
  max-width: 760px;
  text-align: center;
}

.faq-eyebrow,
.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--ph-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-hero h1,
.admin-page-heading h1 {
  margin: 0.35rem 0 0.45rem;
  color: #17212b;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 790;
}

.faq-hero p,
.admin-page-heading p {
  margin: 0;
  color: #687386;
  line-height: 1.55;
}

.faq-search {
  width: min(100%, 620px);
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin: 1.25rem auto 0;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(42, 61, 105, 0.08);
  color: var(--ph-primary);
  padding: 0.15rem 0.85rem;
}

.faq-search:focus-within {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(53, 102, 255, 0.12);
}

.faq-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273345;
  font-size: 0.98rem;
  padding: 0.72rem 0;
}

.faq-search input::placeholder {
  color: #98a3b3;
}

.faq-category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.faq-category-filter button {
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #526174;
  font-size: 0.82rem;
  font-weight: 720;
  padding: 0.42rem 0.75rem;
}

.faq-category-filter button:hover,
.faq-category-filter button:focus-visible,
.faq-category-filter button.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #0077ff, #00a6ff 58%, #00beff);
  color: #ffffff;
  outline: 0;
}

.faq-content {
  display: grid;
  gap: 1.75rem;
}

.faq-category h2 {
  margin: 0 0 0.72rem;
  color: #263244;
  font-size: 1.08rem;
  font-weight: 780;
}

.faq-accordion {
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(35, 53, 86, 0.06);
}

.faq-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.09);
}

.faq-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.faq-accordion .accordion-button {
  color: #243144;
  font-size: 0.98rem;
  font-weight: 730;
  letter-spacing: 0;
  padding: 1rem 1.1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
  background: #f7f9ff;
  color: var(--ph-primary-dark);
}

.faq-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, 0.16);
}

.faq-accordion .accordion-body {
  color: #556276;
  padding: 1.05rem 1.1rem 1.15rem;
}

.rich-text-content,
.legal-content {
  overflow-wrap: anywhere;
  color: inherit;
  line-height: 1.66;
  white-space: normal;
}

.rich-text-content > :first-child {
  margin-top: 0;
}

.rich-text-content > :last-child {
  margin-bottom: 0;
}

.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
  color: #263244;
  font-weight: 780;
  line-height: 1.25;
}

.rich-text-content h2 { font-size: 1.3rem; margin: 1.4rem 0 0.7rem; }
.rich-text-content h3 { font-size: 1.1rem; margin: 1.2rem 0 0.55rem; }
.rich-text-content h4 { font-size: 1rem; margin: 1rem 0 0.45rem; }
.rich-text-content p { margin: 0 0 0.85rem; }
.rich-text-content ul,
.rich-text-content ol { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.rich-text-content blockquote { margin: 1rem 0; border-left: 3px solid #00a6ff; color: #5e6b7e; padding: 0.15rem 0 0.15rem 0.9rem; }
.rich-text-content a { color: var(--ph-primary-dark); font-weight: 720; text-decoration: none; }
.rich-text-content a:hover,
.rich-text-content a:focus-visible { color: #c5389d; text-decoration: underline; }

.faq-answer-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin-top: 0.2rem;
  color: var(--ph-primary-dark);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.faq-answer-link:hover,
.faq-answer-link:focus-visible {
  color: #c5389d;
  text-decoration: underline;
}

.faq-empty,
.admin-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  border: 1px dashed rgba(47, 109, 246, 0.28);
  border-radius: 10px;
  background: #fbfcff;
  color: #657286;
  padding: 2rem 1.25rem;
  text-align: center;
}

.faq-empty i,
.admin-empty-state i {
  color: var(--ph-primary);
  font-size: 1.3rem;
}

.faq-empty strong,
.admin-empty-state strong {
  color: #2a3748;
}

.faq-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 10px;
  background: linear-gradient(112deg, #f7f9ff, #fff7fc);
  padding: 1.15rem 1.25rem;
}

.faq-contact-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.72rem;
}

.faq-contact-card i {
  grid-row: span 2;
  color: #a34ee5;
  font-size: 1.35rem;
}

.faq-contact-card strong { color: #263244; }
.faq-contact-card span { color: #667386; font-size: 0.88rem; }

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page-heading h1 {
  font-size: 1.55rem;
}

.admin-faq-list {
  display: grid;
  gap: 0.65rem;
}

.admin-faq-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(35, 53, 86, 0.045);
  padding: 0.9rem;
}

.admin-faq-order {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f2f5ff;
  color: var(--ph-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-faq-category {
  color: #6561b6;
  font-size: 0.75rem;
  font-weight: 780;
}

.admin-faq-item h2 {
  margin: 0;
  color: #263244;
  font-size: 0.98rem;
  font-weight: 760;
}

.admin-faq-item p {
  margin: 0.32rem 0 0;
  color: #697689;
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-faq-item small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  color: #758195;
  font-size: 0.75rem;
}

.admin-faq-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-faq-actions form { margin: 0; }
.admin-faq-actions .btn { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; }

.admin-editor-card {
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(35, 53, 86, 0.055);
  padding: 1.25rem;
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.admin-editor-publish {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.15rem;
}

.admin-editor-publish .form-check-input { flex: 0 0 auto; margin-top: 0.2rem; }
.admin-editor-publish label { display: grid; gap: 0.12rem; color: #334155; }
.admin-editor-publish small { color: #778497; font-size: 0.8rem; }

.rich-text-editor {
  overflow: hidden;
  border: 1px solid #d9e0ea;
  border-radius: 9px;
  background: #ffffff;
}

.rich-text-editor:focus-within {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(53, 102, 255, 0.12);
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  border-bottom: 1px solid #e4e9f0;
  background: #f8fafc;
  padding: 0.45rem;
}

.rich-text-toolbar .form-select {
  width: 145px;
  min-height: 32px;
  border-color: #d9e0ea;
  font-size: 0.78rem;
}

.rich-text-toolbar button {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #4d5b6e;
  padding: 0;
}

.rich-text-toolbar button:hover,
.rich-text-toolbar button:focus-visible {
  border-color: rgba(47, 109, 246, 0.2);
  background: #eef3ff;
  color: var(--ph-primary-dark);
  outline: 0;
}

.rich-text-divider {
  width: 1px;
  height: 20px;
  background: #dce2eb;
  margin: 0 0.08rem;
}

.rich-text-unlink-mark {
  position: absolute;
  color: #d55376;
  font-size: 0.76rem;
}

.rich-text-surface {
  min-height: 300px;
  outline: 0;
  color: #334155;
  line-height: 1.62;
  padding: 1rem;
}

.rich-text-surface:empty::before {
  content: 'Inhalt eingeben ...';
  color: #9aa6b6;
}

.rich-text-surface h2,
.rich-text-surface h3,
.rich-text-surface h4 { color: #263244; font-weight: 780; }
.rich-text-surface h2 { font-size: 1.35rem; }
.rich-text-surface h3 { font-size: 1.14rem; }
.rich-text-surface h4 { font-size: 1rem; }
.rich-text-surface blockquote { border-left: 3px solid #00a6ff; color: #617085; padding-left: 0.8rem; }
.rich-text-surface img { display: block; width: min(100%, 680px); height: auto; margin: 1rem 0; border: 1px solid #e4e9f7; border-radius: 8px; }
.rich-text-source { display: block; width: 100%; min-height: 300px; border: 0; outline: 0; resize: vertical; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.55; padding: 1rem; }
.rich-text-editor.is-source-mode .rich-text-toolbar [data-rich-text-command],
.rich-text-editor.is-source-mode [data-rich-text-block] { opacity: 0.45; pointer-events: none; }
.rich-text-editor.is-source-mode [data-rich-text-source-toggle] { border-color: rgba(47, 109, 246, 0.25); background: #eef3ff; color: var(--ph-primary-dark); }

@media (max-width: 767.98px) {
  .faq-contact-card { align-items: stretch; flex-direction: column; }
  .faq-contact-card .btn { width: 100%; }
  .admin-page-heading { align-items: stretch; flex-direction: column; }
  .admin-page-heading .btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .faq-hero { text-align: left; }
  .faq-category-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.18rem; scrollbar-width: none; }
  .faq-category-filter::-webkit-scrollbar { display: none; }
  .faq-category-filter button { flex: 0 0 auto; }
  .faq-accordion .accordion-button { font-size: 0.93rem; padding: 0.92rem; }
  .faq-accordion .accordion-body { padding: 0.92rem; }
  .admin-faq-item { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .admin-faq-actions { grid-column: 2; }
  .admin-editor-card { padding: 0.9rem; }
  .rich-text-toolbar { gap: 0.2rem; }
  .rich-text-toolbar .form-select { width: 132px; }
  .rich-text-divider { display: none; }
  .rich-text-surface { min-height: 240px; padding: 0.88rem; }
}

/* Keep the dashboard workflow authoritative after legacy responsive rules. */
@media (max-width: 991.98px) {
  .dashboard-pagination {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-pagination-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dashboard-pagination-jump {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767.98px) {
  .dashboard-hub { gap: 1rem; }
  .dashboard-section-nav { margin-inline: -0.15rem; }
  .dashboard-section-nav a { flex: 0 0 auto; min-width: max-content; padding-inline: 0.72rem; }
  .dashboard-hub-heading,
  .dashboard-list-heading { align-items: stretch; flex-direction: column; }
  .dashboard-hub-heading .btn,
  .dashboard-list-heading .btn { width: 100%; }
  .dashboard-continue-card { grid-template-columns: 82px minmax(0, 1fr); gap: 0.75rem; }
  .dashboard-continue-media { width: 82px; }
  .dashboard-continue-copy > p:last-child { display: none; }
  .dashboard-continue-actions { grid-column: 1 / -1; display: flex; min-width: 0; }
  .dashboard-continue-actions .btn { flex: 1; }
  .dashboard-hub-links,
  .dashboard-tried-grid { grid-template-columns: 1fr; }
  .dashboard-prompt-card { grid-template-columns: 86px 48px minmax(0, 1fr); gap: 0.65rem; padding: 0.85rem; }
  .dashboard-prompt-primary-thumb { width: 86px; }
  .dashboard-prompt-reference-thumb { width: 48px; }
  .dashboard-prompt-main { align-self: stretch; }
  .dashboard-prompt-main > p,
  .dashboard-prompt-metrics { display: none; }
  .dashboard-prompt-actions { grid-column: 1 / -1; justify-self: end; align-self: center; }
  .copy-prompt-inline-content { grid-template-columns: 1fr; }
  .copy-prompt-inline-actions { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .dashboard-pagination {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.65rem;
  }

  .dashboard-pagination-summary {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
  }

  .dashboard-pagination-controls {
    grid-column: 1;
    grid-row: 2;
    gap: 0.25rem;
  }

  .dashboard-pagination-jump {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: auto 64px 36px;
    justify-content: center;
  }

  .dashboard-page-number.is-boundary:not(.is-current),
  .dashboard-page-number.is-secondary,
  .dashboard-page-ellipsis {
    display: none;
  }

  .dashboard-page-button {
    width: 35px;
    min-width: 35px;
    height: 35px;
  }
}

@media (max-width: 420px) {
  .dashboard-section-nav a span { display: none; }
  .dashboard-section-nav a { min-width: 52px; }
  .dashboard-continue-actions { display: grid; }
  .dashboard-prompt-card { grid-template-columns: 78px 42px minmax(0, 1fr); }
  .dashboard-prompt-primary-thumb { width: 78px; }
  .dashboard-prompt-reference-thumb { width: 42px; }
  .dashboard-prompt-title { font-size: 0.94rem; }
  .copy-prompt-inline { grid-template-columns: 1fr; justify-items: center; padding: 0.9rem 0; text-align: center; }
  .copy-prompt-inline-content { justify-items: center; width: 100%; }
  .copy-prompt-inline-actions { display: grid; justify-content: stretch; width: 100%; }
  .copy-prompt-inline-actions .btn { width: 100%; }
  .copy-prompt-inline-saved { justify-content: center; }
}

/* Community discovery, collections and automatic achievements */
.discovery-page {
  display: grid;
  gap: 1rem;
}

.discovery-page > .row {
  width: calc(100% + var(--bs-gutter-x));
  min-width: 0;
}

.discovery-page > .row > * {
  min-width: 0;
}

.discovery-tabs,
.dashboard-section-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.3rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  scrollbar-width: none;
}

.discovery-tabs::-webkit-scrollbar,
.dashboard-section-nav::-webkit-scrollbar {
  display: none;
}

.discovery-tabs a,
.dashboard-section-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.56rem 0.86rem;
  border-radius: 6px;
  color: #5f6d83;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.discovery-tabs a:hover,
.dashboard-section-nav a:hover {
  color: var(--ph-primary-dark);
  background: #f2f5ff;
}

.discovery-tabs a.is-active,
.dashboard-section-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent) 64%, var(--ph-pink));
  box-shadow: 0 8px 18px rgba(72, 87, 224, 0.2);
}

.dashboard-section-nav a small {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 0.25rem;
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: #fff;
  font-size: 0.68rem;
}

.discovery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.1rem 0;
}

.community-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.community-result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.community-result-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef1f8;
}

.community-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-result-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  color: #fff;
  background: rgba(12, 20, 38, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 750;
}

.community-result-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.8rem;
}

.community-result-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.community-result-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--ph-ink);
  text-decoration: none;
}

.community-result-author > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.community-result-author strong,
.community-result-author small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-result-author small,
.community-result-author-row time {
  color: var(--ph-muted);
  font-size: 0.72rem;
}

.community-result-note {
  display: -webkit-box;
  min-height: 2.55rem;
  margin: 0;
  overflow: hidden;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-result-note.is-empty {
  color: transparent;
}

.community-result-source {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  min-height: 62px;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(53, 102, 255, 0.14);
  border-radius: 8px;
  color: var(--ph-ink);
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.07), rgba(236, 69, 185, 0.055)),
    #fff;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.community-result-source > span {
  display: grid;
  min-width: 0;
}

.community-result-source-thumb {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent), var(--ph-pink));
  box-shadow: 0 8px 18px rgba(74, 86, 220, 0.14);
}

.community-result-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-result-source > .bi-chevron-right {
  color: #8b95a8;
  font-size: 0.95rem;
}

.community-result-source small {
  color: #6559b6;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.community-result-source strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-result-source em {
  overflow: hidden;
  color: #758198;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-result-source:hover {
  border-color: rgba(53, 102, 255, 0.28);
  color: var(--ph-primary-dark);
  box-shadow: 0 10px 24px rgba(43, 58, 96, 0.08);
  transform: translateY(-1px);
}

.community-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  min-height: 28px;
}

.community-result-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 68%;
  overflow: hidden;
  color: #6150b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-community-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #6f55d8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.community-results-grid.is-prompt-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-results-grid.is-prompt-gallery.has-single {
  grid-template-columns: minmax(0, 270px);
}

.community-results-grid.is-prompt-gallery .community-result-image {
  aspect-ratio: 4 / 5;
}

.community-results-grid.is-prompt-gallery .community-result-body {
  padding: 0.65rem;
}

.comment-result-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 250px);
  align-items: center;
  gap: 0.8rem;
  margin: 0.55rem 0;
  padding: 0.62rem 0.72rem;
  border: 1px solid #dde4f5;
  border-radius: 7px;
  background: #f8f9ff;
}

.comment-result-tool label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  color: #42506a;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-hub {
  display: grid;
  gap: 1.25rem;
}

.dashboard-section-nav {
  margin-bottom: 0.1rem;
}

.dashboard-hub-heading,
.dashboard-list-heading,
.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.creator-impact-strip {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.creator-impact-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.creator-impact-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff);
}

.creator-impact-heading small {
  color: #6f55d8;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-impact-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.creator-impact-metrics > span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-left: 1px solid #e4e8f1;
}

.creator-impact-metrics strong {
  color: #263650;
  font-size: 1.15rem;
}

.creator-impact-metrics small {
  overflow: hidden;
  color: var(--ph-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-impact-metrics .is-highlight strong {
  color: #b42aa0;
}

.dashboard-hub-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-hub-links > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
  padding: 0.8rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  color: var(--ph-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.collection-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  color: var(--ph-ink);
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
  text-decoration: none;
}

.collection-card.is-system {
  border-color: rgba(53, 102, 255, 0.2);
  background: linear-gradient(110deg, #ffffff, #f8f6ff 58%, #fff6fb);
}

.collection-cover {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  color: #7c61dc;
  background: #eef1ff;
  font-size: 1.5rem;
}

.collection-cover > span,
.collection-cover img {
  width: 100%;
  height: 100%;
}

.collection-cover > span {
  display: block;
  min-width: 0;
  min-height: 0;
}

.collection-cover img {
  object-fit: cover;
}

.collection-cover.is-mosaic {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: #dfe5f4;
}

.collection-card-copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  padding: 0.7rem;
}

.collection-card-copy strong,
.collection-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card-copy small {
  color: var(--ph-muted);
  font-size: 0.73rem;
}

.collection-card > i {
  margin-right: 0.75rem;
  color: #8591a5;
}

.collections-toolbar {
  display: grid;
}

.collection-create-compact {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}

.collection-create-compact > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0 0.95rem;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.collection-create-compact > summary::-webkit-details-marker {
  display: none;
}

.collection-create-compact > summary span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.collection-create-inline {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.7fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 0.95rem;
  border-top: 1px solid var(--ph-line);
}

.collection-create-description {
  grid-column: 1 / -1;
}

.collection-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.collection-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid #dce2ef;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.collection-check > span {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.collection-check strong,
.collection-check small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-check small {
  color: var(--ph-muted);
  font-size: 0.7rem;
}

.collection-settings-panel {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.collection-settings-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.collection-settings-panel > summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.collection-settings-body {
  padding: 1rem;
  border-top: 1px solid var(--ph-line);
}

.collection-delete-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf0f5;
}

.collection-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.55rem 0 0.2rem;
}

.collection-count {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border: 1px solid #dce3f4;
  border-radius: 999px;
  color: #667085;
  background: #f8f9fd;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.collection-prompt-shell {
  position: relative;
  height: 100%;
}

.collection-item-remove-form {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 6;
}

.collection-item-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  color: #344054;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 5px 18px rgb(19 32 66 / 16%);
  backdrop-filter: blur(8px);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.collection-item-remove:hover,
.collection-item-remove:focus-visible {
  border-color: #00beff;
  color: #d92d78;
  transform: translateY(-1px);
}

[data-collection-item] {
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-collection-item].is-removing {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.saved-prompt-shell {
  display: grid;
  height: 100%;
}

.saved-prompt-shell.is-removing {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.saved-organize-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  min-height: 38px;
  border: 1px solid #dbe2f0;
  border-radius: 7px;
  color: var(--ph-primary-dark);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.saved-organize-link:hover,
.saved-organize-link:focus-visible {
  border-color: rgba(53, 102, 255, 0.34);
  color: var(--ph-primary-dark);
  background: #f8faff;
  outline: 0;
}

.save-collections-modal .modal-content {
  border-radius: 10px;
  box-shadow: 0 24px 80px rgb(31 42 68 / 24%);
}

.save-collections-modal .modal-header,
.save-collections-modal .modal-footer {
  border-color: var(--ph-line);
}

.save-collections-system-row,
.save-collections-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.7rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.save-collections-system-row {
  margin-bottom: 0.65rem;
  border-color: rgba(53, 102, 255, 0.18);
  background: linear-gradient(105deg, #f8faff, #fff7fc);
}

.save-collections-system-row > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00beff);
}

.save-collections-system-row strong,
.save-collections-option strong,
.save-collections-system-row small,
.save-collections-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-collections-system-row small,
.save-collections-option small {
  color: var(--ph-muted);
  font-size: 0.76rem;
}

.save-collections-list {
  display: grid;
  gap: 0.5rem;
  max-height: 320px;
  overflow: auto;
  padding-right: 0.1rem;
}

.save-collections-option {
  grid-template-columns: auto minmax(0, 1fr) auto;
  cursor: pointer;
}

.save-collections-option > i {
  color: var(--ph-primary);
  opacity: 0;
}

.save-collections-option:has(input:checked) {
  border-color: rgba(53, 102, 255, 0.32);
  background: #f8faff;
}

.save-collections-option:has(input:checked) > i {
  opacity: 1;
}

.save-collections-empty,
.save-collections-loading {
  padding: 0.8rem;
  border: 1px dashed #d6deef;
  border-radius: 8px;
  color: var(--ph-muted);
  background: #fafbff;
  font-size: 0.88rem;
}

.save-collections-new-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  color: var(--ph-primary-dark);
  background: transparent;
  font-weight: 800;
}

.save-collections-new {
  margin-top: 0.75rem;
}

.save-collections-remove {
  text-decoration: none;
}

.save-feedback-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(520px, calc(100vw - 24px));
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(53, 102, 255, 0.18);
  border-radius: 8px;
  color: var(--ph-ink);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 18px 48px rgb(25 38 75 / 18%);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.save-feedback-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.save-feedback-toast > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
}

.save-feedback-toast button {
  border: 0;
  color: var(--ph-primary-dark);
  background: transparent;
  font-weight: 800;
}

.badge-section {
  display: grid;
  gap: 0.7rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.badge-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.badge-card.is-earned {
  border-color: color-mix(in srgb, var(--badge-color) 32%, #dfe4ed);
}

.badge-card.is-locked {
  opacity: 0.72;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: var(--badge-color);
  font-size: 1.2rem;
}

.badge-card.is-locked .badge-icon {
  color: #7b879b;
  background: #edf0f5;
}

.badge-card > div {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.badge-card p {
  min-height: 2.35rem;
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.badge-card small {
  color: #6b7690;
  font-size: 0.7rem;
}

.badge-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9edf4;
}

.badge-progress span {
  display: block;
  height: 100%;
  background: var(--badge-color);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.profile-badges > span,
.profile-badges > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 28px;
  padding: 0.3rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--badge-color, #0077ff) 28%, #dfe4ed);
  border-radius: 6px;
  color: #42506a;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-badges > span i {
  color: var(--badge-color);
}

.profile-collections,
.profile-collection-page {
  display: grid;
  gap: 0.8rem;
}

.profile-collection-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-collection-links > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  color: var(--ph-ink);
  background: #fff;
  text-decoration: none;
}

.profile-collection-links > a > i:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00beff);
}

.profile-collection-links span {
  display: grid;
  min-width: 0;
}

.profile-collection-links strong,
.profile-collection-links small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-collection-links small {
  color: var(--ph-muted);
  font-size: 0.7rem;
}

.profile-collection-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ph-line);
}

.profile-collection-owner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ph-ink);
  text-decoration: none;
}

.profile-collection-owner > span {
  display: grid;
}

.profile-collection-owner small,
.profile-collection-owner span span {
  color: var(--ph-muted);
  font-size: 0.72rem;
}

.profile-collection-heading h1 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
}

.profile-collection-heading p {
  margin: 0;
  color: var(--ph-muted);
}

.onboarding-page {
  max-width: 940px;
}

.onboarding-shell {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ph-shadow-md);
}

.onboarding-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--ph-line);
  background: linear-gradient(105deg, #f5f8ff, #fff6fb);
}

.onboarding-heading h1 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.8rem;
}

.onboarding-heading p,
.onboarding-step-head p {
  margin: 0;
  color: var(--ph-muted);
}

.onboarding-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff);
  font-size: 1.35rem;
}

.onboarding-step {
  padding: 1.2rem;
  border-bottom: 1px solid var(--ph-line);
}

.onboarding-step-head {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.onboarding-step-head > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #0077ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.onboarding-step h2 {
  margin: 0 0 0.18rem;
  font-size: 1.05rem;
}

.onboarding-avatar-picker {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fafbff;
}

.onboarding-avatar-visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin-inline: auto;
}

.onboarding-avatar-preview {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #4762c9;
  background: linear-gradient(135deg, #e8edff, #fff0fa);
  box-shadow: 0 0 0 1px #d9e1f2, 0 10px 24px rgba(46, 66, 130, 0.12);
  font-size: 2rem;
  font-weight: 800;
}

.onboarding-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff);
  box-shadow: 0 5px 14px rgba(72, 76, 170, 0.25);
  cursor: pointer;
  font-size: 0.78rem;
}

.onboarding-avatar-camera:hover,
.onboarding-avatar-camera:focus-visible {
  transform: translateY(-1px);
}

.onboarding-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-avatar-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
  gap: 0.55rem;
}

.onboarding-avatar-copy > span,
.onboarding-avatar-skip,
.onboarding-avatar-file {
  color: var(--ph-muted);
  font-size: 0.8rem;
}

.onboarding-avatar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.onboarding-avatar-actions .btn {
  margin: 0;
  min-width: 150px;
}

.onboarding-avatar-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  color: #66738a;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

.onboarding-avatar-remove:hover,
.onboarding-avatar-remove:focus-visible {
  color: #d33a53;
}

.onboarding-avatar-remove[hidden] {
  display: none;
}

.onboarding-avatar-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.onboarding-avatar-file {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: #287760;
  background: #edf9f5;
  overflow: hidden;
}

.onboarding-avatar-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-avatar-file[hidden] {
  display: none;
}

@media (max-width: 575.98px) {
  .onboarding-avatar-picker {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
    text-align: center;
  }

  .onboarding-avatar-visual {
    width: 92px;
    height: 92px;
  }

  .onboarding-avatar-preview {
    width: 92px;
    height: 92px;
    font-size: 1.65rem;
  }

  .onboarding-avatar-copy {
    align-items: stretch;
  }

  .onboarding-avatar-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }

  .onboarding-avatar-actions .btn {
    width: 100%;
    padding-inline: 0.65rem;
    font-size: 0.82rem;
  }

  .onboarding-avatar-remove {
    justify-content: center;
    min-height: 34px;
  }

  .onboarding-avatar-file {
    align-self: center;
  }
}

.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-chip {
  cursor: pointer;
}

.interest-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 0.68rem;
  border: 1px solid #dbe2ef;
  border-radius: 7px;
  color: #46536a;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 130ms ease, background-color 130ms ease, color 130ms ease;
}

.interest-chip small {
  color: #8b96a8;
  font-size: 0.66rem;
}

.interest-chip input:checked + span {
  border-color: #6b64ee;
  color: #3154ce;
  background: #eef1ff;
}

.interest-chip input:focus-visible + span {
  outline: 3px solid var(--ph-focus);
}

.onboarding-selection-count {
  margin-top: 0.65rem;
  color: var(--ph-muted);
  font-size: 0.75rem;
}

.onboarding-creators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.onboarding-creator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  cursor: pointer;
}

.onboarding-creator input {
  position: absolute;
  opacity: 0;
}

.onboarding-creator:has(input:checked) {
  border-color: #6c62ed;
  background: #f1f2ff;
}

.onboarding-creator > span {
  display: grid;
  min-width: 0;
}

.onboarding-creator strong,
.onboarding-creator small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-creator small {
  color: var(--ph-muted);
  font-size: 0.7rem;
}

.onboarding-creator > i {
  color: #7d66d8;
}

.onboarding-footer,
.interest-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.onboarding-footer > span {
  color: var(--ph-muted);
  font-size: 0.8rem;
}

.interest-form {
  padding: 1rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.interest-form-footer {
  margin-top: 1rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--ph-line);
}

.admin-activation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.admin-activation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  overflow: hidden;
}

.admin-activation-grid.is-detailed {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-activation-grid > div {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  border-right: 1px solid #e5e9f1;
}

.admin-activation-grid > div:last-child {
  border-right: 0;
}

.admin-activation-grid > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff);
}

.admin-activation-grid strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.admin-activation-grid small {
  overflow: hidden;
  color: var(--ph-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activation-grid em {
  position: absolute;
  top: 0.42rem;
  right: 0.48rem;
  color: #7965d3;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .community-results-grid.is-prompt-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .badge-grid,
  .admin-activation-grid.is-detailed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-activation-grid.is-detailed > div:nth-child(3n) {
    border-right: 0;
  }

  .admin-activation-grid.is-detailed > div:nth-child(-n + 3) {
    border-bottom: 1px solid #e5e9f1;
  }
}

@media (max-width: 991.98px) {
  .community-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-impact-strip {
    grid-template-columns: 1fr;
  }

  .collection-create-inline {
    grid-template-columns: 1fr 1fr;
  }

  .collection-create-inline .btn {
    grid-column: 1 / -1;
  }

  .collection-check-grid,
  .profile-collection-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-impact-metrics > span:first-child {
    border-left: 0;
  }
}

@media (max-width: 767.98px) {
  .discovery-page {
    gap: 0.8rem;
  }

  .discovery-tabs,
  .dashboard-section-nav {
    margin-inline: -0.25rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .discovery-tabs a,
  .dashboard-section-nav a {
    min-height: 39px;
    padding: 0.48rem 0.68rem;
    background: #fff;
  }

  .community-results-grid.is-prompt-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .community-results-grid.is-prompt-gallery.has-single {
    grid-template-columns: minmax(0, 280px);
  }

  .community-results-grid.is-prompt-gallery .community-result-body {
    padding: 0.55rem;
  }

  .community-results-grid.is-prompt-gallery .community-result-source small,
  .community-results-grid.is-prompt-gallery .community-result-note {
    display: none;
  }

  .community-results-grid.is-prompt-gallery .community-result-source {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    min-height: 48px;
    padding: 0.48rem;
  }

  .community-results-grid.is-prompt-gallery .community-result-source-thumb {
    width: 32px;
    height: 32px;
  }

  .prompt-community-results-heading {
    align-items: start;
  }

  .prompt-community-results-heading p {
    font-size: 0.8rem;
  }

  .comment-result-tool {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .creator-impact-metrics {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .creator-impact-metrics > span {
    border-left: 0;
    border-right: 1px solid #e4e8f1;
  }

  .collection-grid,
  .badge-grid,
  .onboarding-creators {
    grid-template-columns: 1fr;
  }

  .save-collections-modal .modal-dialog {
    align-items: end;
    min-height: 100%;
    margin: 0;
  }

  .save-collections-modal .modal-content {
    border-radius: 14px 14px 0 0;
  }

  .save-collections-list {
    max-height: min(42vh, 360px);
  }

  .collection-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-collection-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-collection-heading h1 {
    font-size: 1.4rem;
  }

  .onboarding-heading {
    align-items: start;
  }

  .onboarding-heading h1 {
    font-size: 1.45rem;
  }

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

  .onboarding-footer .btn {
    width: 100%;
  }

  .admin-activation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-activation-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .admin-activation-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e9f1;
  }

  .admin-activation-grid.is-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-activation-grid.is-detailed > div:nth-child(3n) {
    border-right: 1px solid #e5e9f1;
  }

  .admin-activation-grid.is-detailed > div:nth-child(2n) {
    border-right: 0;
  }

  .admin-activation-grid.is-detailed > div:nth-child(-n + 4) {
    border-bottom: 1px solid #e5e9f1;
  }
}

@media (max-width: 575.98px) {
  .community-results-grid {
    gap: 0.55rem;
  }

  .community-result-body {
    padding: 0.62rem;
  }

  .community-result-author-row time {
    display: none;
  }

  .community-result-note {
    min-height: 0;
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }

  .community-result-source small {
    display: none;
  }

  .community-result-source {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    min-height: 50px;
    padding: 0.5rem;
  }

  .community-result-source-thumb {
    width: 32px;
    height: 32px;
  }

  .community-result-source strong {
    font-size: 0.75rem;
  }

  .community-result-source em {
    font-size: 0.66rem;
  }

  .community-result-tool {
    max-width: 62%;
  }

  .prompt-community-results {
    margin-inline: -0.2rem;
  }

  .prompt-community-results-heading {
    flex-direction: column;
  }

  .prompt-community-results-heading .btn {
    width: 100%;
  }

  .dashboard-hub-links {
    grid-template-columns: 1fr;
  }

  .collection-create-inline {
    grid-template-columns: 1fr;
  }

  .collection-check-grid,
  .profile-collection-links {
    grid-template-columns: 1fr;
  }

  .collection-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .collection-cover {
    width: 76px;
    height: 76px;
  }

  .badge-card p {
    min-height: 0;
  }

  .onboarding-page {
    padding-inline: 0.65rem;
  }

  .onboarding-heading,
  .onboarding-step {
    padding: 0.9rem;
  }

  .onboarding-mark {
    width: 44px;
    height: 44px;
  }

  .interest-picker {
    gap: 0.4rem;
  }

  .interest-chip span {
    min-height: 36px;
    padding: 0.4rem 0.55rem;
    font-size: 0.77rem;
  }

  .interest-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-form-footer .btn {
    width: 100%;
  }

  .admin-activation-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Newsletter administration */
.settings-newsletter-preference {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 44, 71, 0.09);
}

.settings-newsletter-status {
  justify-self: center;
  color: #0077ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.newsletter-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.newsletter-admin-stats > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 61, 112, 0.05);
}

.newsletter-admin-stats strong { font-size: 1.35rem; line-height: 1; }
.newsletter-admin-stats small { grid-column: 2; color: #718096; font-size: 0.77rem; }
.newsletter-stat-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #f1f4ff; color: #0077ff; }
.newsletter-stat-icon.is-active { color: #0d9473; background: #e9fbf5; }
.newsletter-stat-icon.is-pending { color: #9b50dc; background: #f7edff; }

.newsletter-campaign-list { display: grid; }
.newsletter-campaign-row { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid rgba(31, 44, 71, 0.08); }
.newsletter-campaign-row:last-child { border-bottom: 0; }
.newsletter-campaign-main { min-width: 0; flex: 1; }
.newsletter-campaign-main h2 { margin: 0.35rem 0 0.15rem; color: #172033; font-size: 1rem; font-weight: 800; }
.newsletter-campaign-main p { margin: 0; color: #6a7890; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsletter-campaign-meta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.45rem; color: #718096; font-size: 0.74rem; }
.newsletter-campaign-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.newsletter-campaign-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; flex-wrap: wrap; }
.newsletter-campaign-actions form { margin: 0; }
.newsletter-schedule-card { display: grid; grid-template-columns: minmax(0, 1fr) 240px auto; align-items: end; gap: 0.8rem; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(53, 102, 255, 0.16); border-radius: 8px; background: #f7f9ff; }
.newsletter-schedule-card strong, .newsletter-schedule-card small { display: block; }
.newsletter-schedule-card small { margin-top: 0.2rem; color: #718096; }
.newsletter-preview-frame { overflow: hidden; padding: 0; border: 1px solid rgba(31, 44, 71, 0.09); border-radius: 8px; background: #eef2fb; }
.newsletter-preview-frame iframe { display: block; width: 100%; min-height: 760px; border: 0; background: #f5f7ff; }
.newsletter-subscriber-list { display: grid; }
.newsletter-subscriber-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(31, 44, 71, 0.08); }
.newsletter-subscriber-row:last-child { border-bottom: 0; }
.newsletter-subscriber-row strong, .newsletter-subscriber-row small { display: block; }
.newsletter-subscriber-row small { color: #718096; font-size: 0.76rem; }
.newsletter-subscriber-row .text-end small { margin-top: 0.25rem; }
.newsletter-status-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; font-size: 1.5rem; }
.newsletter-status-icon.is-success { background: #e8fbf4; color: #0d9473; }
.newsletter-status-icon.is-error { background: #fff1f3; color: #d93861; }

@media (max-width: 767.98px) {
  .newsletter-admin-stats { gap: 0.45rem; }
  .newsletter-admin-stats > div { padding: 0.7rem; column-gap: 0.45rem; }
  .newsletter-stat-icon { width: 31px; height: 31px; font-size: 0.8rem; }
  .newsletter-admin-stats strong { font-size: 1.05rem; }
  .newsletter-admin-stats small { font-size: 0.62rem; }
  .newsletter-campaign-row { align-items: stretch; flex-direction: column; padding: 0.9rem; }
  .newsletter-campaign-actions { justify-content: flex-start; }
  .newsletter-campaign-actions .btn span { display: none; }
  .newsletter-schedule-card { grid-template-columns: 1fr; align-items: stretch; }
  .newsletter-schedule-card .btn { width: 100%; }
  .newsletter-subscriber-row { padding: 0.75rem; }
}

/* Native advertisements */
.native-ad-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(43, 61, 112, 0.08);
}

.native-ad-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.12), rgba(236, 69, 185, 0.12));
}

.native-ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-ad-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #0077ff;
  font-size: 2rem;
}

.native-ad-label-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.68rem 0.9rem;
  color: #6d44d8;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(53, 102, 255, 0.1), rgba(236, 69, 185, 0.11));
}

.native-ad-body {
  padding: 0.95rem;
}

.native-ad-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.native-ad-logo,
.native-ad-logo-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(53, 102, 255, 0.16);
  border-radius: 50%;
  background: #f5f7ff;
  color: #0077ff;
  font-size: 1.05rem;
}

.native-ad-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-ad-title {
  margin: 0;
  color: #071126;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.18;
}

.native-ad-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: #6a7890;
  font-size: 0.83rem;
  line-height: 1.2;
}

.native-ad-menu {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #718096;
}

.native-ad-description {
  color: #22304a;
  font-size: 0.95rem;
  line-height: 1.48;
}

.native-ad-description p {
  margin: 0 0 0.75rem;
}

.native-ad-description > *:last-child {
  margin-bottom: 0;
}

.native-ad-description h2,
.native-ad-description h3,
.native-ad-description h4 {
  margin: 0.9rem 0 0.45rem;
  color: #071126;
  font-weight: 850;
  line-height: 1.22;
}

.native-ad-description h2 {
  font-size: 1.08rem;
}

.native-ad-description h3 {
  font-size: 1rem;
}

.native-ad-description h4 {
  font-size: 0.94rem;
}

.native-ad-description strong,
.native-ad-description b {
  color: #071126;
  font-weight: 850;
}

.native-ad-description u {
  text-decoration-color: rgba(236, 69, 185, 0.65);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.native-ad-description ul,
.native-ad-description ol {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
}

.native-ad-description li + li {
  margin-top: 0.25rem;
}

.native-ad-description blockquote {
  margin: 0.85rem 0;
  padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 3px solid #00a6ff;
  color: #52617a;
}

.native-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  background: linear-gradient(90deg, #0077ff, #00beff);
  box-shadow: 0 16px 34px rgba(53, 102, 255, 0.19);
}

.native-ad-cta:hover,
.native-ad-cta:focus {
  color: #fff;
  transform: translateY(-1px);
}

.advertisement-status-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.75rem;
  scrollbar-width: none;
}

.advertisement-status-tabs::-webkit-scrollbar {
  display: none;
}

.advertisement-status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(53, 102, 255, 0.15);
  border-radius: 8px;
  color: #30405d;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
}

.advertisement-status-tabs a span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  color: #52617a;
  font-size: 0.72rem;
  background: #eef2fb;
}

.advertisement-status-tabs a:hover,
.advertisement-status-tabs a.is-active {
  border-color: rgba(53, 102, 255, 0.45);
  color: #fff;
  background: linear-gradient(90deg, #0077ff, #00beff);
  box-shadow: 0 12px 28px rgba(53, 102, 255, 0.16);
}

.advertisement-status-tabs a:hover span,
.advertisement-status-tabs a.is-active span {
  color: #0077ff;
  background: #fff;
}

.advertisement-filter-card,
.advertisement-admin-row,
.advertisement-stats-card {
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(43, 61, 112, 0.06);
}

.advertisement-admin-list {
  display: grid;
  gap: 0.8rem;
}

.advertisement-admin-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
}

.advertisement-admin-thumb {
  width: 98px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f5fb;
}

.advertisement-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advertisement-admin-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8b98ad;
}

.advertisement-admin-main {
  min-width: 0;
}

.advertisement-admin-title,
.advertisement-admin-main h2 {
  display: block;
  overflow: hidden;
  margin: 0.3rem 0 0.18rem;
  color: #071126;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertisement-admin-main p {
  overflow: hidden;
  margin: 0;
  color: #52617a;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertisement-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  color: #718096;
  font-size: 0.78rem;
}

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

.advertisement-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.1rem;
  align-items: start;
}

.advertisement-preview-sticky {
  position: sticky;
  top: 92px;
}

.advertisement-current-media {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: #f8faff;
  color: #52617a;
  font-size: 0.82rem;
}

.advertisement-current-media img {
  width: 78px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.advertisement-current-media.is-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.advertisement-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.advertisement-check-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(31, 44, 71, 0.12);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}

.advertisement-check-grid input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #0077ff;
}

.advertisement-rich-text {
  min-height: 180px;
}

.advertisement-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.advertisement-stats-card {
  padding: 1rem;
}

.advertisement-stats-card small,
.advertisement-stats-card span {
  color: #718096;
}

.advertisement-stats-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #071126;
  font-size: 1.8rem;
  line-height: 1;
}

.advertisement-chart {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 180px;
  padding-top: 1rem;
}

.advertisement-chart-bar {
  flex: 1;
  min-width: 12px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #0077ff, #00beff);
}

.advertisement-chart-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #718096;
  font-size: 0.8rem;
  font-weight: 800;
}

.advertisement-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.advertisement-chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.advertisement-chart-legend .is-views {
  background: #0077ff;
}

.advertisement-chart-legend .is-clicks {
  background: #00beff;
}

.advertisement-chart-bars {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  min-height: 220px;
  padding: 1rem 0 0.4rem;
  overflow-x: auto;
}

.advertisement-chart-day {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: minmax(150px, 1fr) auto;
  align-items: end;
  justify-content: center;
  gap: 0 0.2rem;
  min-width: 28px;
}

.advertisement-chart-column {
  position: relative;
  display: block;
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
}

.advertisement-chart-column.is-views {
  background: linear-gradient(180deg, #0077ff, #7258ff);
}

.advertisement-chart-column.is-clicks {
  background: linear-gradient(180deg, #00beff, #00a6ff);
}

.advertisement-chart-column em {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 4px);
  display: none;
  color: #52617a;
  font-size: 0.62rem;
  font-style: normal;
  transform: translateX(50%);
}

.advertisement-chart-day:hover em {
  display: block;
}

.advertisement-chart-day small {
  grid-column: 1 / -1;
  margin-top: 0.45rem;
  color: #8a96ab;
  font-size: 0.62rem;
  text-align: center;
}

.advertisement-dimension-list {
  display: grid;
  gap: 0.55rem;
}

.advertisement-dimension-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(31, 44, 71, 0.08);
}

.advertisement-dimension-row:last-child {
  border-bottom: 0;
}

.advertisement-dimension-block + .advertisement-dimension-block {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(31, 44, 71, 0.08);
}

.advertisement-dimension-block h3 {
  margin-bottom: 0.55rem;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .advertisement-form-grid {
    grid-template-columns: 1fr;
  }

  .advertisement-preview-sticky {
    position: static;
  }

  .advertisement-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertisement-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .native-ad-media {
    aspect-ratio: 1 / 0.82;
  }

  .native-ad-body {
    padding: 0.78rem;
  }

  .native-ad-head {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 0.55rem;
  }

  .native-ad-logo,
  .native-ad-logo-placeholder {
    width: 38px;
    height: 38px;
  }

  .native-ad-title {
    font-size: 0.98rem;
  }

  .native-ad-description {
    font-size: 0.88rem;
  }

  .advertisement-admin-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .advertisement-admin-thumb {
    width: 76px;
    height: 76px;
  }

  .advertisement-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .advertisement-stats-grid {
    grid-template-columns: 1fr;
  }
}

.brand-logo-stack {
  display: grid;
  align-items: center;
}

.brand-logo-stack .brand-logo {
  grid-area: 1 / 1;
}

.brand-logo-dark {
  display: none;
}

.settings-theme-current {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 999px;
  background: #f3f6ff;
  color: var(--ph-primary-dark);
  font-size: 0.78rem;
  font-weight: 820;
  padding: 0.38rem 0.62rem;
}

.settings-theme-options {
  display: grid;
  gap: 0.7rem;
}

.settings-theme-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fbfcff;
  cursor: pointer;
  padding: 0.86rem;
}

.settings-theme-option:hover,
.settings-theme-option:focus-within {
  border-color: rgba(47, 109, 246, 0.36);
  background: #f7f9ff;
}

.settings-theme-option.is-selected {
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.08);
}

.settings-theme-option .form-check-input {
  margin: 0;
}

.settings-theme-option-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.14), rgba(236, 69, 185, 0.14));
  color: var(--ph-primary-dark);
}

.settings-theme-option-copy strong {
  display: block;
  color: #263244;
  font-weight: 820;
}

.settings-theme-option-copy small {
  display: block;
  margin-top: 0.18rem;
  color: var(--ph-muted);
  line-height: 1.45;
}

.settings-theme-preview {
  width: 84px;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 16px 1fr;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 71, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.settings-theme-preview span:nth-child(1) {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #0077ff, #00beff);
}

.settings-theme-preview span:nth-child(2) {
  background: #f4f7ff;
}

.settings-theme-preview span:nth-child(3) {
  background: #ffffff;
}

.settings-theme-preview-dark {
  background: #080b14;
}

.settings-theme-preview-dark span:nth-child(2) {
  background: #111827;
}

.settings-theme-preview-dark span:nth-child(3) {
  background: #1a2335;
}

.settings-theme-preview-system span:nth-child(2) {
  background: #f4f7ff;
}

.settings-theme-preview-system span:nth-child(3) {
  background: #111827;
}

@media (max-width: 575.98px) {
  .settings-theme-option {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .settings-theme-preview {
    grid-column: 2 / -1;
    width: 100%;
  }
}

[data-theme="dark"] {
  --bs-body-bg: #080b14;
  --bs-body-color: #eef4ff;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #aab7ca;
  --bs-tertiary-color: #8290a6;
  --bs-tertiary-bg: #111827;
  --bs-border-color: #253149;
  --bs-link-color: #8da8ff;
  --bs-link-hover-color: #f37ac6;
  --ph-bg: #080b14;
  --ph-surface: #101827;
  --ph-surface-soft: #141f32;
  --ph-ink: #eef4ff;
  --ph-muted: #aab7ca;
  --ph-primary: #6f8cff;
  --ph-primary-dark: #9eb2ff;
  --ph-accent: #a66bff;
  --ph-pink: #00beff;
  --ph-soft-border: rgba(157, 178, 255, 0.18);
  --ph-line: rgba(219, 228, 255, 0.12);
  --ph-focus: rgba(236, 69, 185, 0.24);
  --ph-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --ph-shadow-md: 0 18px 52px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] html,
[data-theme="dark"] body {
  background: var(--ph-bg);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 109, 246, 0.16), transparent 360px),
    radial-gradient(circle at 88% 2%, rgba(236, 69, 185, 0.14), transparent 360px),
    linear-gradient(180deg, #0d1220 0%, #080b14 440px, #080b14 100%);
  color: var(--ph-ink);
}

[data-theme="dark"] .app-nav {
  background: rgba(10, 14, 24, 0.88) !important;
  border-color: rgba(219, 228, 255, 0.1) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
  height: 35px;
  max-width: 198px;
}

[data-theme="dark"] .navbar .nav-link,
[data-theme="dark"] .mobile-header-icon,
[data-theme="dark"] .navbar-toggler {
  color: #dbe6ff;
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link:focus-visible,
[data-theme="dark"] .navbar .nav-link.is-active {
  color: #ffffff;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .offcanvas,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .toast,
[data-theme="dark"] .prompt-card,
[data-theme="dark"] .prompt-detail-card,
[data-theme="dark"] .dashboard-hero,
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .dashboard-table-card,
[data-theme="dark"] .dashboard-prompt-card,
[data-theme="dark"] .settings-nav,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .settings-overview-card,
[data-theme="dark"] .settings-link-card,
[data-theme="dark"] .community-result-card,
[data-theme="dark"] .native-ad-card,
[data-theme="dark"] .cookie-notice,
[data-theme="dark"] .search-hero,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .admin-sidebar,
[data-theme="dark"] .admin-page .card,
[data-theme="dark"] .analytics-live-dashboard-card {
  background-color: rgba(16, 24, 39, 0.96) !important;
  color: var(--ph-ink) !important;
  border-color: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .hero-panel,
[data-theme="dark"] .dashboard-hero,
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .settings-account-intro,
[data-theme="dark"] .native-ad-shell,
[data-theme="dark"] .admin-newsletter-setting {
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 109, 246, 0.18), transparent 260px),
    radial-gradient(circle at 90% 8%, rgba(236, 69, 185, 0.15), transparent 260px),
    rgba(16, 24, 39, 0.96) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .display-6,
[data-theme="dark"] .settings-heading h1,
[data-theme="dark"] .settings-card-header h2,
[data-theme="dark"] .settings-overview-card strong,
[data-theme="dark"] .settings-link-card strong,
[data-theme="dark"] .settings-choice strong,
[data-theme="dark"] .settings-theme-option-copy strong,
[data-theme="dark"] .notification-preference-row strong,
[data-theme="dark"] .comment-item strong,
[data-theme="dark"] .prompt-card h2,
[data-theme="dark"] .native-ad-title,
[data-theme="dark"] .community-result-title,
[data-theme="dark"] .admin-page h1,
[data-theme="dark"] .admin-page h2 {
  color: #f7faff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .lead,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .form-text,
[data-theme="dark"] small,
[data-theme="dark"] .settings-heading p,
[data-theme="dark"] .settings-card-header p,
[data-theme="dark"] .settings-overview-card small,
[data-theme="dark"] .settings-link-card small,
[data-theme="dark"] .settings-choice small,
[data-theme="dark"] .settings-theme-option-copy small,
[data-theme="dark"] .prompt-card-date,
[data-theme="dark"] .native-ad-description,
[data-theme="dark"] .footer-note,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .comment-meta,
[data-theme="dark"] .analytics-live-table code {
  color: var(--ph-muted) !important;
}

[data-theme="dark"] a {
  color: #9eb2ff;
}

[data-theme="dark"] a:hover,
[data-theme="dark"] a:focus-visible {
  color: #f37ac6;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] .rich-text-surface {
  background-color: #0d1423 !important;
  color: #f4f7ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .rich-text-surface:focus {
  border-color: rgba(157, 178, 255, 0.7) !important;
  box-shadow: 0 0 0 0.22rem rgba(111, 140, 255, 0.18) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #77859b !important;
}

[data-theme="dark"] .form-control::file-selector-button {
  background: #172137;
  color: #dbe6ff;
  border-color: rgba(219, 228, 255, 0.12);
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-light {
  background: rgba(16, 24, 39, 0.82);
  color: #dbe6ff;
  border-color: rgba(157, 178, 255, 0.28);
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus-visible,
[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus-visible,
[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light:focus-visible {
  background: rgba(47, 109, 246, 0.18);
  color: #ffffff;
  border-color: rgba(157, 178, 255, 0.48);
}

[data-theme="dark"] .dropdown-item {
  color: #dbe6ff;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: rgba(111, 140, 255, 0.14);
  color: #ffffff;
}

[data-theme="dark"] .dropdown-divider,
[data-theme="dark"] hr,
[data-theme="dark"] .settings-card-footer,
[data-theme="dark"] .notification-preference-list,
[data-theme="dark"] .notification-preference-row,
[data-theme="dark"] .settings-session-list,
[data-theme="dark"] .settings-session-row,
[data-theme="dark"] .settings-blocked-list,
[data-theme="dark"] .settings-blocked-row,
[data-theme="dark"] .footer-top,
[data-theme="dark"] .footer-navigation,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .offcanvas-header {
  border-color: rgba(219, 228, 255, 0.11) !important;
}

[data-theme="dark"] .settings-nav a {
  color: #aab7ca;
}

[data-theme="dark"] .settings-nav a:hover,
[data-theme="dark"] .settings-nav a:focus-visible,
[data-theme="dark"] .settings-choice:hover,
[data-theme="dark"] .settings-theme-option:hover,
[data-theme="dark"] .settings-theme-option:focus-within {
  background: rgba(111, 140, 255, 0.12);
  color: #ffffff;
}

[data-theme="dark"] .settings-choice,
[data-theme="dark"] .settings-theme-option,
[data-theme="dark"] .settings-account-email,
[data-theme="dark"] .settings-pending-email,
[data-theme="dark"] .settings-ready-export,
[data-theme="dark"] .comment-permission-note,
[data-theme="dark"] .settings-theme-current {
  background: rgba(13, 20, 35, 0.88) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .settings-choice:has(input:checked),
[data-theme="dark"] .settings-theme-option.is-selected {
  background: rgba(111, 140, 255, 0.13) !important;
  border-color: rgba(157, 178, 255, 0.46) !important;
}

[data-theme="dark"] .settings-card-icon,
[data-theme="dark"] .settings-theme-option-icon {
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.22), rgba(241, 93, 184, 0.18));
  color: #dbe6ff;
}

[data-theme="dark"] .table,
[data-theme="dark"] .analytics-live-table,
[data-theme="dark"] .analytics-mini-table {
  --bs-table-bg: transparent;
  --bs-table-color: #eaf0ff;
  --bs-table-border-color: rgba(219, 228, 255, 0.11);
  color: #eaf0ff;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .analytics-live-table thead th,
[data-theme="dark"] .analytics-mini-table > div:first-child {
  background: rgba(13, 20, 35, 0.9) !important;
  color: #c9d5ea !important;
  border-color: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] .analytics-live-table tbody td,
[data-theme="dark"] .analytics-mini-table > div {
  border-color: rgba(219, 228, 255, 0.1) !important;
}

[data-theme="dark"] .table tbody tr:hover {
  background: rgba(111, 140, 255, 0.08) !important;
}

[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.text-bg-light,
[data-theme="dark"] .tag-pill,
[data-theme="dark"] .ai-badge,
[data-theme="dark"] .prompt-card-action,
[data-theme="dark"] .prompt-detail-actions .btn {
  background: rgba(13, 20, 35, 0.92) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .prompt-card-action:hover,
[data-theme="dark"] .prompt-card-action:focus-visible {
  background: rgba(111, 140, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .comment-body,
[data-theme="dark"] .comment-input-shell,
[data-theme="dark"] .comment-form,
[data-theme="dark"] .notification-item,
[data-theme="dark"] .notification-system-body,
[data-theme="dark"] .save-collections-modal .modal-content,
[data-theme="dark"] .report-modal .modal-content {
  background: rgba(16, 24, 39, 0.97) !important;
  color: var(--ph-ink) !important;
  border-color: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .mobile-bottom-nav,
[data-theme="dark"] .mobile-account-sheet,
[data-theme="dark"] .mobile-admin-menu {
  background: rgba(10, 14, 24, 0.94) !important;
  border-color: rgba(219, 228, 255, 0.12) !important;
  color: #dbe6ff;
}

[data-theme="dark"] .mobile-bottom-nav a,
[data-theme="dark"] .mobile-bottom-nav button {
  color: #aab7ca;
}

[data-theme="dark"] .mobile-bottom-nav a.is-active,
[data-theme="dark"] .mobile-bottom-nav button.is-active {
  color: #ffffff;
}

[data-theme="dark"] .app-footer {
  background: rgba(8, 11, 20, 0.98);
  border-color: rgba(219, 228, 255, 0.1);
  color: var(--ph-muted);
}

[data-theme="dark"] .footer-brand-mark,
[data-theme="dark"] .footer-links,
[data-theme="dark"] .footer-social-link {
  color: #dbe6ff;
}

[data-theme="dark"] .footer-social-link,
[data-theme="dark"] .footer-cookie-link {
  background: rgba(16, 24, 39, 0.94);
  border-color: rgba(219, 228, 255, 0.14);
}

[data-theme="dark"] .cookie-notice {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .alert-info,
[data-theme="dark"] .alert-primary {
  background: rgba(47, 109, 246, 0.16);
  color: #dbe6ff;
  border-color: rgba(157, 178, 255, 0.28);
}

[data-theme="dark"] .alert-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #ffe0a6;
  border-color: rgba(255, 193, 7, 0.24);
}

[data-theme="dark"] .alert-danger {
  background: rgba(220, 53, 69, 0.14);
  color: #ffc2cb;
  border-color: rgba(220, 53, 69, 0.28);
}

[data-theme="dark"] .alert-success {
  background: rgba(25, 135, 84, 0.16);
  color: #bff2d8;
  border-color: rgba(25, 135, 84, 0.28);
}

[data-theme="dark"] .progress,
[data-theme="dark"] .settings-theme-preview,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .settings-empty-state {
  background-color: rgba(13, 20, 35, 0.95) !important;
}

/* Darkmode polish: high-contrast controls across public, auth and help pages. */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus-visible,
[data-theme="dark"] .btn-primary:active,
[data-theme="dark"] .nav-create-btn,
[data-theme="dark"] .native-ad-cta,
[data-theme="dark"] .is-primary-action {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .btn-primary i,
[data-theme="dark"] .btn-primary span,
[data-theme="dark"] .nav-create-btn i,
[data-theme="dark"] .nav-create-btn span {
  color: inherit !important;
}

[data-theme="dark"] .btn-outline-primary {
  background: rgba(13, 20, 35, 0.92) !important;
  color: #cdd8ff !important;
  border-color: rgba(111, 140, 255, 0.52) !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus-visible {
  background-image: linear-gradient(135deg, rgba(47, 109, 246, 0.96), rgba(155, 77, 255, 0.96), rgba(255, 79, 172, 0.96));
  color: #ffffff !important;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] label,
[data-theme="dark"] .form-check-label,
[data-theme="dark"] .form-check-label strong,
[data-theme="dark"] .login-remember-check .form-check-label {
  color: #eaf0ff !important;
}

[data-theme="dark"] .login-remember-check,
[data-theme="dark"] .form-check:not(.form-switch),
[data-theme="dark"] .auth-option,
[data-theme="dark"] .newsletter-status-card {
  background: rgba(13, 20, 35, 0.92) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #eaf0ff !important;
}

[data-theme="dark"] .login-remember-check .form-check-label span,
[data-theme="dark"] .form-check-label.small,
[data-theme="dark"] .form-check-label .small {
  color: #aab7ca !important;
}

[data-theme="dark"] .form-check-input {
  background-color: #0b1220 !important;
  border-color: rgba(219, 228, 255, 0.34) !important;
}

[data-theme="dark"] .form-check-input:checked {
  background-color: #6f8cff !important;
  border-color: #9eb2ff !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
  border-color: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .text-primary,
[data-theme="dark"] .settings-eyebrow,
[data-theme="dark"] .faq-eyebrow,
[data-theme="dark"] .admin-eyebrow {
  color: #8fa8ff !important;
}

[data-theme="dark"] .hero-panel .lead,
[data-theme="dark"] .hero-panel .text-muted,
[data-theme="dark"] .discovery-heading .text-muted,
[data-theme="dark"] .faq-hero p,
[data-theme="dark"] .search-hero .text-muted {
  color: #c1cce0 !important;
}

[data-theme="dark"] .discovery-tabs,
[data-theme="dark"] .dashboard-section-nav,
[data-theme="dark"] .dashboard-status-tabs,
[data-theme="dark"] .advertisement-status-tabs,
[data-theme="dark"] .facebook-status-tabs,
[data-theme="dark"] .faq-category-filter {
  background: rgba(13, 20, 35, 0.88) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .discovery-tabs a,
[data-theme="dark"] .dashboard-section-nav a,
[data-theme="dark"] .dashboard-status-tabs a,
[data-theme="dark"] .advertisement-status-tabs a,
[data-theme="dark"] .facebook-status-tabs a {
  color: #cbd7ea !important;
}

[data-theme="dark"] .discovery-tabs a:hover,
[data-theme="dark"] .discovery-tabs a:focus-visible,
[data-theme="dark"] .dashboard-section-nav a:hover,
[data-theme="dark"] .dashboard-section-nav a:focus-visible,
[data-theme="dark"] .dashboard-status-tabs a:hover,
[data-theme="dark"] .dashboard-status-tabs a:focus-visible,
[data-theme="dark"] .advertisement-status-tabs a:hover,
[data-theme="dark"] .advertisement-status-tabs a:focus-visible,
[data-theme="dark"] .facebook-status-tabs a:hover,
[data-theme="dark"] .facebook-status-tabs a:focus-visible {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .discovery-tabs a.is-active,
[data-theme="dark"] .dashboard-section-nav a.is-active,
[data-theme="dark"] .dashboard-status-tabs a.is-active,
[data-theme="dark"] .advertisement-status-tabs a.is-active,
[data-theme="dark"] .facebook-status-tabs a.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff 62%, #00beff) !important;
  box-shadow: 0 10px 24px rgba(53, 102, 255, 0.28);
}

[data-theme="dark"] .dashboard-section-nav a small,
[data-theme="dark"] .dashboard-status-tabs a span,
[data-theme="dark"] .advertisement-status-tabs a span,
[data-theme="dark"] .facebook-status-tabs a span {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .scroll-nav-shell::before,
[data-theme="dark"] .scroll-nav-shell::after {
  background: linear-gradient(90deg, rgba(8, 11, 20, 0.96), rgba(8, 11, 20, 0)) !important;
}

[data-theme="dark"] .scroll-nav-shell::after {
  background: linear-gradient(270deg, rgba(8, 11, 20, 0.96), rgba(8, 11, 20, 0)) !important;
}

[data-theme="dark"] .scroll-nav-arrow {
  background: rgba(16, 24, 39, 0.96) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .search-panel,
[data-theme="dark"] .search-hero {
  background:
    radial-gradient(circle at 92% 0%, rgba(236, 69, 185, 0.16), transparent 280px),
    linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(12, 18, 31, 0.98)) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .explore-search-form,
[data-theme="dark"] .faq-search {
  background: rgba(8, 11, 20, 0.82) !important;
  border-color: rgba(219, 228, 255, 0.18) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .explore-search-icon,
[data-theme="dark"] .faq-search i {
  color: #8fa8ff !important;
}

[data-theme="dark"] .explore-search-form .form-control,
[data-theme="dark"] .faq-search input {
  background: transparent !important;
  color: #f4f7ff !important;
}

[data-theme="dark"] .explore-search-form .form-control::placeholder,
[data-theme="dark"] .faq-search input::placeholder {
  color: #8795ad !important;
}

[data-theme="dark"] .search-filter-chip,
[data-theme="dark"] .badge.rounded-pill.text-bg-light,
[data-theme="dark"] .text-bg-light {
  background: rgba(16, 24, 39, 0.92) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .user-result-card,
[data-theme="dark"] .faq-contact-card,
[data-theme="dark"] .faq-empty,
[data-theme="dark"] .admin-empty-state {
  background: rgba(16, 24, 39, 0.96) !important;
  color: #eaf0ff !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  box-shadow: var(--ph-shadow-sm);
}

[data-theme="dark"] .user-result-card:hover,
[data-theme="dark"] .user-result-card:focus-visible {
  color: #ffffff !important;
  border-color: rgba(157, 178, 255, 0.42) !important;
}

[data-theme="dark"] .faq-hero h1,
[data-theme="dark"] .faq-category h2 {
  color: #f7faff !important;
}

[data-theme="dark"] .faq-category-filter button {
  background: rgba(16, 24, 39, 0.94) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .faq-category-filter button:hover,
[data-theme="dark"] .faq-category-filter button:focus-visible,
[data-theme="dark"] .faq-category-filter button.is-active {
  background: linear-gradient(90deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-accordion {
  background: rgba(10, 15, 26, 0.98) !important;
  border-color: rgba(219, 228, 255, 0.18) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .faq-accordion .accordion-item {
  background: transparent !important;
  border-color: rgba(219, 228, 255, 0.13) !important;
}

[data-theme="dark"] .faq-accordion .accordion-button,
[data-theme="dark"] .accordion-button {
  background: rgba(10, 15, 26, 0.98) !important;
  color: #dbe6ff !important;
  box-shadow: none !important;
}

[data-theme="dark"] .faq-accordion .accordion-button:hover,
[data-theme="dark"] .faq-accordion .accordion-button:focus-visible,
[data-theme="dark"] .accordion-button:hover,
[data-theme="dark"] .accordion-button:focus-visible {
  background: rgba(111, 140, 255, 0.11) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-accordion .accordion-button:not(.collapsed),
[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: rgba(111, 140, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-accordion .accordion-body,
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .rich-text-content,
[data-theme="dark"] .legal-content {
  color: #c8d3e8 !important;
}

[data-theme="dark"] .rich-text-content h2,
[data-theme="dark"] .rich-text-content h3,
[data-theme="dark"] .rich-text-content h4,
[data-theme="dark"] .faq-contact-card strong,
[data-theme="dark"] .faq-empty strong,
[data-theme="dark"] .admin-empty-state strong {
  color: #f7faff !important;
}

[data-theme="dark"] .rich-text-content blockquote {
  color: #bdc8dc !important;
  border-left-color: #00a6ff !important;
}

[data-theme="dark"] .faq-answer-link {
  color: #9eb2ff !important;
}

[data-theme="dark"] .faq-answer-link:hover,
[data-theme="dark"] .faq-answer-link:focus-visible {
  color: #f37ac6 !important;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: 0.82;
}

[data-theme="dark"] .prompt-card,
[data-theme="dark"] .community-result-card,
[data-theme="dark"] .native-ad-card,
[data-theme="dark"] .dashboard-prompt-card {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .prompt-card-author-wrap > a,
[data-theme="dark"] .prompt-author-link,
[data-theme="dark"] .comment-author,
[data-theme="dark"] .community-result-author,
[data-theme="dark"] .social-hub-card-author a {
  color: #eaf0ff !important;
}

[data-theme="dark"] .prompt-card-author-wrap > a:hover,
[data-theme="dark"] .prompt-author-link:hover,
[data-theme="dark"] .comment-author:hover,
[data-theme="dark"] .community-result-author:hover,
[data-theme="dark"] .social-hub-card-author a:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .prompt-card-follow-btn {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #dbe6ff !important;
  border-color: rgba(157, 178, 255, 0.34) !important;
}

[data-theme="dark"] .prompt-card-follow-btn:hover,
[data-theme="dark"] .prompt-card-follow-btn:focus-visible {
  background: linear-gradient(135deg, #0077ff, #00beff) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dropdown-menu .btn,
[data-theme="dark"] .dropdown-menu button,
[data-theme="dark"] .dropdown-menu a {
  color: #dbe6ff;
}

[data-theme="dark"] .admin-filter-card,
[data-theme="dark"] .admin-members-filter,
[data-theme="dark"] .advertisement-filter-card {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

/* Darkmode completion pass: make Bootstrap utilities and shared UI surfaces readable everywhere. */
[data-theme="dark"] .text-dark,
[data-theme="dark"] .link-dark,
[data-theme="dark"] .fw-semibold,
[data-theme="dark"] .fw-bold,
[data-theme="dark"] strong {
  color: #eef4ff !important;
}

[data-theme="dark"] .text-body,
[data-theme="dark"] .text-body-secondary {
  color: #c1cce0 !important;
}

[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .small.text-muted,
[data-theme="dark"] .form-text,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .auth-help-text {
  color: #aab7ca !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:focus-visible,
[data-theme="dark"] .btn-primary:active,
[data-theme="dark"] .btn-primary:disabled,
[data-theme="dark"] .btn-primary.disabled,
[data-theme="dark"] .nav-create-btn,
[data-theme="dark"] .is-primary-action {
  color: #ffffff !important;
  border-color: transparent !important;
}

[data-theme="dark"] .btn-primary i,
[data-theme="dark"] .btn-primary span,
[data-theme="dark"] .nav-create-btn i,
[data-theme="dark"] .nav-create-btn span {
  color: inherit !important;
}

[data-theme="dark"] .btn-primary:disabled,
[data-theme="dark"] .btn-primary.disabled {
  opacity: 0.72;
}

[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-dark,
[data-theme="dark"] .btn-outline-light {
  background: rgba(13, 20, 35, 0.78) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.18) !important;
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-light:hover,
[data-theme="dark"] .btn-outline-secondary:focus-visible,
[data-theme="dark"] .btn-outline-dark:focus-visible,
[data-theme="dark"] .btn-outline-light:focus-visible {
  background: rgba(111, 140, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(157, 178, 255, 0.42) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .list-group,
[data-theme="dark"] .list-group-item {
  background-color: rgba(16, 24, 39, 0.96) !important;
  color: #eef4ff !important;
  border-color: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  background-color: rgba(13, 20, 35, 0.92) !important;
}

[data-theme="dark"] .bg-body,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-body-tertiary,
[data-theme="dark"] .shadow-sm.bg-white,
[data-theme="dark"] .shadow.bg-white {
  background-color: rgba(16, 24, 39, 0.96) !important;
  color: #eef4ff !important;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] .col-form-label,
[data-theme="dark"] legend,
[data-theme="dark"] .form-check-label,
[data-theme="dark"] .form-check-label a {
  color: #eaf0ff !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .input-group-text {
  background-color: #0a1120 !important;
  color: #f7faff !important;
  border-color: rgba(219, 228, 255, 0.2) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #8290a6 !important;
  opacity: 1;
}

[data-theme="dark"] .form-select {
  color: #f7faff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dbe6ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .login-remember-check,
[data-theme="dark"] .form-check:not(.form-switch):not(.dropdown-item) {
  background: rgba(8, 11, 20, 0.42) !important;
  color: #eaf0ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .login-remember-check .form-check-label,
[data-theme="dark"] .login-remember-check .form-check-label span {
  color: #eaf0ff !important;
}

[data-theme="dark"] .login-remember-check .form-check-label span {
  color: #aab7ca !important;
}

[data-theme="dark"] .discovery-tabs,
[data-theme="dark"] .dashboard-section-nav,
[data-theme="dark"] .faq-category-filter {
  background: rgba(16, 24, 39, 0.92) !important;
  border: 1px solid rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .discovery-tabs a,
[data-theme="dark"] .dashboard-section-nav a,
[data-theme="dark"] .faq-category-filter button {
  color: #ccd8ea !important;
  background: transparent !important;
}

[data-theme="dark"] .discovery-tabs a:hover,
[data-theme="dark"] .dashboard-section-nav a:hover,
[data-theme="dark"] .faq-category-filter button:hover {
  color: #ffffff !important;
  background: rgba(111, 140, 255, 0.14) !important;
}

[data-theme="dark"] .discovery-tabs a.is-active,
[data-theme="dark"] .dashboard-section-nav a.is-active,
[data-theme="dark"] .faq-category-filter button.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
}

[data-theme="dark"] .search-hero,
[data-theme="dark"] .faq-hero {
  background:
    radial-gradient(circle at 90% 4%, rgba(236, 69, 185, 0.16), transparent 260px),
    linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(10, 15, 26, 0.98)) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .explore-search-form,
[data-theme="dark"] .faq-search {
  background: rgba(8, 11, 20, 0.78) !important;
  border: 1px solid rgba(219, 228, 255, 0.18) !important;
}

[data-theme="dark"] .explore-search-form .form-control,
[data-theme="dark"] .faq-search input {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .faq-page,
[data-theme="dark"] .faq-content,
[data-theme="dark"] .faq-category {
  color: #eef4ff !important;
}

[data-theme="dark"] .faq-accordion,
[data-theme="dark"] .faq-accordion .accordion-item {
  background: rgba(10, 15, 26, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .faq-accordion .accordion-button {
  background: rgba(10, 15, 26, 0.96) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(111, 140, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-accordion .accordion-body,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .rich-text-content,
[data-theme="dark"] .rich-text-content p,
[data-theme="dark"] .rich-text-content li {
  color: #c8d3e8 !important;
}

[data-theme="dark"] .faq-answer-link,
[data-theme="dark"] .rich-text-content a {
  color: #9eb2ff !important;
}

[data-theme="dark"] .faq-answer-link:hover,
[data-theme="dark"] .rich-text-content a:hover {
  color: #f37ac6 !important;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(1.7);
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .offcanvas,
[data-theme="dark"] .modal-content {
  background-color: #101827 !important;
  color: #eef4ff !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .dropdown-item {
  color: #dbe6ff !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .table {
  --bs-table-color: #eaf0ff;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(219, 228, 255, 0.11);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-bg: rgba(111, 140, 255, 0.08);
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .table thead,
[data-theme="dark"] .table thead th {
  --bs-table-bg: rgba(13, 20, 35, 0.92);
  --bs-table-color: #cbd7ea;
  background-color: rgba(13, 20, 35, 0.92) !important;
  color: #cbd7ea !important;
}

[data-theme="dark"] .badge.text-bg-secondary,
[data-theme="dark"] .badge.bg-secondary {
  background-color: rgba(148, 163, 184, 0.18) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .badge.text-bg-light,
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .search-filter-chip {
  background-color: rgba(13, 20, 35, 0.88) !important;
  color: #dbe6ff !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
}

[data-theme="dark"] .mobile-account-link,
[data-theme="dark"] .mobile-admin-link,
[data-theme="dark"] .mobile-sheet-link {
  color: #dbe6ff !important;
}

[data-theme="dark"] .mobile-account-link:hover,
[data-theme="dark"] .mobile-admin-link:hover,
[data-theme="dark"] .mobile-sheet-link:hover {
  background: rgba(111, 140, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Darkmode refinement for dashboard, collections, badges and comments. */
[data-theme="dark"] .dashboard-page,
[data-theme="dark"] .dashboard-hub,
[data-theme="dark"] .dashboard-content-overview,
[data-theme="dark"] .badge-section,
[data-theme="dark"] .comments-card {
  color: #eef4ff !important;
}

[data-theme="dark"] .dashboard-hub-heading h1,
[data-theme="dark"] .dashboard-list-heading h1,
[data-theme="dark"] .dashboard-section-heading h2,
[data-theme="dark"] .badge-section h2,
[data-theme="dark"] .comments-heading h2 {
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-hub-heading p,
[data-theme="dark"] .dashboard-list-heading p,
[data-theme="dark"] .dashboard-section-heading p,
[data-theme="dark"] .comments-summary,
[data-theme="dark"] .comments-summary strong {
  color: #c4d0e5 !important;
}

[data-theme="dark"] .profile-completion-card,
[data-theme="dark"] .dashboard-continue-card,
[data-theme="dark"] .creator-impact-strip {
  background:
    radial-gradient(circle at 96% 0%, rgba(236, 69, 185, 0.16), transparent 280px),
    linear-gradient(135deg, rgba(16, 24, 39, 0.98), rgba(11, 17, 29, 0.98)) !important;
  border-color: rgba(157, 178, 255, 0.2) !important;
  color: #eef4ff !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .profile-completion-heading p,
[data-theme="dark"] .profile-completion-progress,
[data-theme="dark"] .profile-completion-progress span,
[data-theme="dark"] .dashboard-continue-copy > p:last-child {
  color: #b9c6dc !important;
}

[data-theme="dark"] .profile-completion-progress strong,
[data-theme="dark"] .dashboard-continue-copy h2,
[data-theme="dark"] .dashboard-continue-copy h2 a {
  color: #ffffff !important;
}

[data-theme="dark"] .profile-completion-progressbar {
  background: rgba(219, 228, 255, 0.12) !important;
}

[data-theme="dark"] .profile-completion-step,
[data-theme="dark"] .profile-completion-step-button,
[data-theme="dark"] .profile-completion-step-hitarea {
  color: #e8efff !important;
}

[data-theme="dark"] .profile-completion-step {
  background: rgba(10, 16, 28, 0.9) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .profile-completion-step:hover,
[data-theme="dark"] .profile-completion-step:focus-visible {
  background: rgba(111, 140, 255, 0.13) !important;
  border-color: rgba(157, 178, 255, 0.42) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .profile-completion-step.is-complete {
  background: rgba(27, 158, 119, 0.13) !important;
  border-color: rgba(51, 211, 156, 0.26) !important;
}

[data-theme="dark"] .profile-completion-step-copy strong {
  color: #f7faff !important;
}

[data-theme="dark"] .profile-completion-step-copy small {
  color: #b5c1d7 !important;
}

[data-theme="dark"] .profile-completion-step-icon,
[data-theme="dark"] .profile-completion-step-action,
[data-theme="dark"] .dashboard-continue-media {
  background: rgba(111, 140, 255, 0.16) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .profile-completion-step.is-complete .profile-completion-step-icon {
  background: rgba(51, 211, 156, 0.18) !important;
  color: #83ffd1 !important;
}

[data-theme="dark"] .dashboard-hub-links > a,
[data-theme="dark"] .dashboard-tried-card,
[data-theme="dark"] .dashboard-pagination,
[data-theme="dark"] .dashboard-table-card,
[data-theme="dark"] .dashboard-prompt-card,
[data-theme="dark"] .dashboard-result-picker {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #eef4ff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26) !important;
}

[data-theme="dark"] .dashboard-hub-links > a:hover,
[data-theme="dark"] .dashboard-hub-links > a:focus-visible,
[data-theme="dark"] .dashboard-tried-card:hover {
  background: rgba(20, 31, 50, 0.98) !important;
  border-color: rgba(157, 178, 255, 0.36) !important;
}

[data-theme="dark"] .dashboard-hub-links strong,
[data-theme="dark"] .dashboard-tried-card h2 a,
[data-theme="dark"] .dashboard-result-picker > span strong,
[data-theme="dark"] .dashboard-pagination-summary strong {
  color: #f7faff !important;
}

[data-theme="dark"] .dashboard-hub-links small,
[data-theme="dark"] .dashboard-tried-author,
[data-theme="dark"] .dashboard-tried-meta,
[data-theme="dark"] .dashboard-result-picker,
[data-theme="dark"] .dashboard-result-picker > span small,
[data-theme="dark"] .dashboard-pagination-summary,
[data-theme="dark"] .dashboard-pagination-jump label {
  color: #aab7ca !important;
}

[data-theme="dark"] .dashboard-tried-image,
[data-theme="dark"] .dashboard-prompt-primary-thumb,
[data-theme="dark"] .dashboard-prompt-reference-thumb {
  background: #0a1120 !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #8fa8ff !important;
}

[data-theme="dark"] .dashboard-status-tabs {
  background: transparent !important;
}

[data-theme="dark"] .dashboard-status-tabs a {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .dashboard-status-tabs a:hover,
[data-theme="dark"] .dashboard-status-tabs a:focus-visible {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-status-tabs a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-status-tabs small,
[data-theme="dark"] .dashboard-section-nav a small {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-page-button {
  background: rgba(13, 20, 35, 0.94) !important;
  border-color: rgba(219, 228, 255, 0.15) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .dashboard-page-button:hover,
[data-theme="dark"] .dashboard-page-button:focus-visible {
  background: rgba(111, 140, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-page-button.is-current {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-page-button.is-disabled {
  background: rgba(13, 20, 35, 0.45) !important;
  color: #65738b !important;
  border-color: rgba(219, 228, 255, 0.08) !important;
}

[data-theme="dark"] .empty-state,
[data-theme="dark"] .dashboard-tried-empty {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #eaf0ff !important;
}

[data-theme="dark"] .empty-state i,
[data-theme="dark"] .dashboard-tried-empty i {
  color: #dbe6ff !important;
}

[data-theme="dark"] .collection-card,
[data-theme="dark"] .collection-card.is-system,
[data-theme="dark"] .collection-create-compact,
[data-theme="dark"] .collection-check,
[data-theme="dark"] .collection-settings-panel,
[data-theme="dark"] .saved-organize-link,
[data-theme="dark"] .save-collections-system-row,
[data-theme="dark"] .save-collections-option,
[data-theme="dark"] .save-feedback-toast,
[data-theme="dark"] .profile-collection-links > a,
[data-theme="dark"] .interest-form,
[data-theme="dark"] .onboarding-shell {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #eef4ff !important;
}

[data-theme="dark"] .collection-card:hover,
[data-theme="dark"] .collection-card:focus-visible,
[data-theme="dark"] .profile-collection-links > a:hover,
[data-theme="dark"] .profile-collection-links > a:focus-visible,
[data-theme="dark"] .saved-organize-link:hover,
[data-theme="dark"] .saved-organize-link:focus-visible {
  background: rgba(20, 31, 50, 0.98) !important;
  border-color: rgba(157, 178, 255, 0.36) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .collection-cover,
[data-theme="dark"] .collection-cover.is-mosaic,
[data-theme="dark"] .save-collections-empty,
[data-theme="dark"] .save-collections-loading {
  background: #0a1120 !important;
  color: #9eb2ff !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .collection-card-copy strong,
[data-theme="dark"] .collection-check strong,
[data-theme="dark"] .save-collections-system-row strong,
[data-theme="dark"] .save-collections-option strong,
[data-theme="dark"] .profile-collection-links strong {
  color: #f7faff !important;
}

[data-theme="dark"] .collection-card-copy small,
[data-theme="dark"] .collection-check small,
[data-theme="dark"] .save-collections-system-row small,
[data-theme="dark"] .save-collections-option small,
[data-theme="dark"] .profile-collection-links small,
[data-theme="dark"] .collection-count {
  color: #aab7ca !important;
}

[data-theme="dark"] .collection-count {
  background: rgba(13, 20, 35, 0.88) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .collection-item-remove {
  background: rgba(10, 15, 26, 0.88) !important;
  border-color: rgba(219, 228, 255, 0.2) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .collection-item-remove:hover,
[data-theme="dark"] .collection-item-remove:focus-visible {
  border-color: rgba(241, 93, 184, 0.72) !important;
  color: #ff9bd1 !important;
}

[data-theme="dark"] .save-collections-option:has(input:checked) {
  background: rgba(111, 140, 255, 0.14) !important;
  border-color: rgba(157, 178, 255, 0.42) !important;
}

[data-theme="dark"] .save-collections-new-toggle,
[data-theme="dark"] .saved-organize-link {
  color: #9eb2ff !important;
}

[data-theme="dark"] .badge-card,
[data-theme="dark"] .badge-card.is-earned,
[data-theme="dark"] .profile-badges > span,
[data-theme="dark"] .profile-badges > a {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: color-mix(in srgb, var(--badge-color, #6f8cff) 38%, rgba(219, 228, 255, 0.16)) !important;
  color: #eef4ff !important;
}

[data-theme="dark"] .badge-card.is-locked {
  opacity: 1;
  background: rgba(13, 20, 35, 0.72) !important;
  border-color: rgba(219, 228, 255, 0.1) !important;
}

[data-theme="dark"] .badge-card p,
[data-theme="dark"] .badge-card small {
  color: #aab7ca !important;
}

[data-theme="dark"] .badge-card.is-locked .badge-icon {
  background: rgba(219, 228, 255, 0.08) !important;
  color: #8390a8 !important;
}

[data-theme="dark"] .badge-progress {
  background: rgba(219, 228, 255, 0.1) !important;
}

[data-theme="dark"] .comments-card,
[data-theme="dark"] .comment-form {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
}

[data-theme="dark"] .comment-body,
[data-theme="dark"] .comment-author,
[data-theme="dark"] .comment-shared-prompt-content strong,
[data-theme="dark"] .comment-reply-preview {
  color: #eef4ff !important;
}

[data-theme="dark"] .comment-author small,
[data-theme="dark"] .comment-shared-prompt-content > span,
[data-theme="dark"] .comment-replies-toggle,
[data-theme="dark"] .comment-toolbar,
[data-theme="dark"] .comment-action {
  color: #aab7ca !important;
}

[data-theme="dark"] .comment-action:hover,
[data-theme="dark"] .comment-action:focus-visible,
[data-theme="dark"] .comment-more-button.show,
[data-theme="dark"] .comment-more-button[aria-expanded="true"] {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .comment-action.is-liked {
  color: #ff4f82 !important;
}

[data-theme="dark"] .comment-replies-collapsed {
  border-left-color: rgba(157, 178, 255, 0.2) !important;
}

[data-theme="dark"] .comment-item.is-targeted .comment-body {
  background: linear-gradient(90deg, rgba(53, 102, 255, 0.18), rgba(236, 69, 185, 0.16)) !important;
}

[data-theme="dark"] .comment-shared-prompt,
[data-theme="dark"] .comment-image-callout,
[data-theme="dark"] .comment-reply-preview,
[data-theme="dark"] .comment-image-preview,
[data-theme="dark"] .emoji-panel,
[data-theme="dark"] .mention-suggestions {
  background: rgba(10, 16, 28, 0.94) !important;
  border-color: rgba(219, 228, 255, 0.16) !important;
  color: #eef4ff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .comment-image-callout strong,
[data-theme="dark"] .comment-image-callout-copy strong {
  color: #f7faff !important;
}

[data-theme="dark"] .comment-image-callout span,
[data-theme="dark"] .comment-image-callout-copy span,
[data-theme="dark"] .comment-image-callout-copy > span:last-child span {
  color: #b9c6dc !important;
}

[data-theme="dark"] .comment-image-callout-icon {
  background: rgba(111, 140, 255, 0.16) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .comment-input-shell {
  background: #0a1120 !important;
  border-color: rgba(157, 178, 255, 0.22) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .comment-input-shell textarea.form-control {
  color: #f7faff !important;
}

[data-theme="dark"] .comment-input-shell textarea.form-control::placeholder {
  color: #8b9ab2 !important;
}

[data-theme="dark"] .comment-input-icon {
  color: #9eb2ff !important;
}

[data-theme="dark"] .comment-image,
[data-theme="dark"] .comment-image-preview {
  background: #0a1120 !important;
}

[data-theme="dark"] .comment-image span,
[data-theme="dark"] .comment-image-preview button,
[data-theme="dark"] .comment-reply-preview button,
[data-theme="dark"] .emoji-panel button,
[data-theme="dark"] .mention-suggestion {
  background: rgba(16, 24, 39, 0.94) !important;
  border-color: rgba(219, 228, 255, 0.14) !important;
  color: #dbe6ff !important;
}

[data-theme="dark"] .emoji-panel button:hover,
[data-theme="dark"] .emoji-panel button:focus-visible,
[data-theme="dark"] .mention-suggestion:hover,
[data-theme="dark"] .mention-suggestion:focus-visible {
  background: rgba(111, 140, 255, 0.14) !important;
  color: #ffffff !important;
}

/* Darkmode final pass: tried tabs, cookie banner and community result cards. */
[data-theme="dark"] .dashboard-status-tabs {
  align-items: center;
  gap: 0.5rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .dashboard-status-tabs a {
  min-height: 38px;
  padding: 0.48rem 0.68rem !important;
  gap: 0.38rem;
  border-radius: 9px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(157, 178, 255, 0.22) !important;
  color: #dce6f8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[data-theme="dark"] .dashboard-status-tabs a > i {
  color: #a9bbff !important;
}

[data-theme="dark"] .dashboard-status-tabs a > span {
  background: transparent !important;
  color: inherit !important;
  line-height: 1;
}

[data-theme="dark"] .dashboard-status-tabs a > small {
  min-width: 22px;
  height: 22px;
  padding: 0 0.38rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 0.68rem;
  line-height: 1;
}

[data-theme="dark"] .dashboard-status-tabs a:hover,
[data-theme="dark"] .dashboard-status-tabs a:focus-visible {
  background: rgba(30, 43, 70, 0.92) !important;
  border-color: rgba(157, 178, 255, 0.38) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-status-tabs a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(78, 102, 255, 0.28);
}

[data-theme="dark"] .dashboard-status-tabs a.is-active > i {
  color: #ffffff !important;
}

[data-theme="dark"] .dashboard-status-tabs a.is-active > small {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cookie-notice {
  background:
    radial-gradient(circle at 96% 0%, rgba(236, 69, 185, 0.18), transparent 230px),
    linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(10, 15, 26, 0.98)) !important;
  border-color: rgba(157, 178, 255, 0.22) !important;
  color: #eaf0ff !important;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.48) !important;
}

[data-theme="dark"] .cookie-notice-content strong {
  color: #ffffff !important;
}

[data-theme="dark"] .cookie-notice-content p {
  color: #b8c6dd !important;
}

[data-theme="dark"] .cookie-notice-content a {
  color: #aebeff !important;
}

[data-theme="dark"] .footer-cookie-link {
  color: #aebeff !important;
  background: transparent !important;
  border: 0 !important;
}

[data-theme="dark"] .footer-cookie-link:hover,
[data-theme="dark"] .footer-cookie-link:focus-visible {
  color: #ffffff !important;
}

[data-theme="dark"] .community-result-card {
  background: rgba(16, 24, 39, 0.96) !important;
  border-color: rgba(219, 228, 255, 0.13) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .community-result-image {
  background: #0a1120 !important;
}

[data-theme="dark"] .community-result-body {
  background: rgba(16, 24, 39, 0.96) !important;
}

[data-theme="dark"] .community-result-author,
[data-theme="dark"] .community-result-source,
[data-theme="dark"] .community-result-source strong {
  color: #f4f7ff !important;
}

[data-theme="dark"] .community-result-author small,
[data-theme="dark"] .community-result-author-row time,
[data-theme="dark"] .community-result-source em,
[data-theme="dark"] .community-result-note {
  color: #aebbd2 !important;
}

[data-theme="dark"] .community-result-source {
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.16), rgba(236, 69, 185, 0.11)),
    rgba(10, 15, 26, 0.9) !important;
  border-color: rgba(157, 178, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[data-theme="dark"] .community-result-source:hover,
[data-theme="dark"] .community-result-source:focus-visible {
  border-color: rgba(157, 178, 255, 0.42) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .community-result-source-thumb {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff, #00beff) !important;
}

[data-theme="dark"] .community-result-source small,
[data-theme="dark"] .community-result-tool {
  color: #b8c5ff !important;
}

[data-theme="dark"] .community-result-source > .bi-chevron-right {
  color: #8fa8ff !important;
}

[data-theme="dark"] .community-result-actions .comment-action {
  color: #d7e2f6 !important;
}

[data-theme="dark"] .community-result-actions .comment-action:hover,
[data-theme="dark"] .community-result-actions .comment-action:focus-visible,
[data-theme="dark"] .community-result-actions .comment-action.is-liked {
  color: #ff6fbf !important;
}

/* Darkmode final pass: settings navigation contrast. */
[data-theme="dark"] .settings-nav {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(157, 178, 255, 0.18) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="dark"] .settings-nav a {
  color: #d6e1f5 !important;
  background: transparent !important;
  border: 1px solid transparent;
}

[data-theme="dark"] .settings-nav a i {
  color: #9eb2ff !important;
}

[data-theme="dark"] .settings-nav a span {
  color: inherit !important;
}

[data-theme="dark"] .settings-nav a:hover,
[data-theme="dark"] .settings-nav a:focus-visible {
  background: rgba(111, 140, 255, 0.13) !important;
  border-color: rgba(157, 178, 255, 0.18);
  color: #ffffff !important;
}

[data-theme="dark"] .settings-nav a:hover i,
[data-theme="dark"] .settings-nav a:focus-visible i {
  color: #ffffff !important;
}

[data-theme="dark"] .settings-nav a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(78, 102, 255, 0.28);
}

[data-theme="dark"] .settings-nav a.is-active i,
[data-theme="dark"] .settings-nav a.is-active span {
  color: #ffffff !important;
}

/* Darkmode system refresh: neutral gray palette inspired by modern social apps. */
[data-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #18191a;
  --bs-body-color: #e4e6eb;
  --bs-emphasis-color: #f2f3f5;
  --bs-secondary-color: #b0b3b8;
  --bs-tertiary-color: #8a8d91;
  --bs-tertiary-bg: #242526;
  --bs-border-color: #3a3b3c;
  --bs-link-color: #b8a6ff;
  --bs-link-hover-color: #ff7ac8;
  --ph-bg: #18191a;
  --ph-surface: #242526;
  --ph-surface-soft: #2f3033;
  --ph-ink: #e4e6eb;
  --ph-muted: #b0b3b8;
  --ph-primary: #6b7cff;
  --ph-primary-dark: #b8a6ff;
  --ph-accent: #00a6ff;
  --ph-pink: #00beff;
  --ph-soft-border: rgba(255, 255, 255, 0.12);
  --ph-line: rgba(255, 255, 255, 0.1);
  --ph-focus: rgba(236, 69, 185, 0.24);
  --ph-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --ph-shadow-md: 0 18px 52px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] html,
[data-theme="dark"] body {
  background: #18191a !important;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 94% 0%, rgba(236, 69, 185, 0.08), transparent 360px),
    linear-gradient(180deg, #1c1d1f 0%, #18191a 420px, #18191a 100%) !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .app-nav,
[data-theme="dark"] .app-footer,
[data-theme="dark"] .mobile-bottom-nav,
[data-theme="dark"] .mobile-account-sheet,
[data-theme="dark"] .mobile-admin-menu,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .offcanvas,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .toast {
  background: rgba(36, 37, 38, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e4e6eb !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .app-nav {
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .navbar .nav-link,
[data-theme="dark"] .mobile-header-icon,
[data-theme="dark"] .navbar-toggler,
[data-theme="dark"] .mobile-bottom-nav a,
[data-theme="dark"] .mobile-bottom-nav button,
[data-theme="dark"] .dropdown-item {
  color: #d7dade !important;
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link:focus-visible,
[data-theme="dark"] .navbar .nav-link.is-active,
[data-theme="dark"] .mobile-header-icon:hover,
[data-theme="dark"] .mobile-header-icon:focus-visible,
[data-theme="dark"] .mobile-bottom-nav a.is-active,
[data-theme="dark"] .mobile-bottom-nav button.is-active,
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: #3a3b3c !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .card,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .prompt-card,
[data-theme="dark"] .prompt-detail-card,
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .dashboard-hero,
[data-theme="dark"] .dashboard-table-card,
[data-theme="dark"] .dashboard-prompt-card,
[data-theme="dark"] .dashboard-tried-card,
[data-theme="dark"] .dashboard-pagination,
[data-theme="dark"] .dashboard-continue-card,
[data-theme="dark"] .profile-completion-card,
[data-theme="dark"] .settings-nav,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .settings-overview-card,
[data-theme="dark"] .settings-link-card,
[data-theme="dark"] .settings-choice,
[data-theme="dark"] .settings-theme-option,
[data-theme="dark"] .settings-account-email,
[data-theme="dark"] .settings-pending-email,
[data-theme="dark"] .settings-ready-export,
[data-theme="dark"] .settings-theme-current,
[data-theme="dark"] .notification-preference-row,
[data-theme="dark"] .notification-item,
[data-theme="dark"] .notification-system-body,
[data-theme="dark"] .comment-body,
[data-theme="dark"] .comment-form,
[data-theme="dark"] .comment-shared-prompt,
[data-theme="dark"] .comment-image-callout,
[data-theme="dark"] .comment-reply-preview,
[data-theme="dark"] .comment-image-preview,
[data-theme="dark"] .emoji-panel,
[data-theme="dark"] .mention-suggestions,
[data-theme="dark"] .community-result-card,
[data-theme="dark"] .community-result-body,
[data-theme="dark"] .community-result-source,
[data-theme="dark"] .native-ad-card,
[data-theme="dark"] .native-ad-shell,
[data-theme="dark"] .collection-card,
[data-theme="dark"] .collection-card.is-system,
[data-theme="dark"] .collection-create-compact,
[data-theme="dark"] .collection-check,
[data-theme="dark"] .collection-settings-panel,
[data-theme="dark"] .save-collections-modal .modal-content,
[data-theme="dark"] .save-collections-system-row,
[data-theme="dark"] .save-collections-option,
[data-theme="dark"] .profile-collection-links > a,
[data-theme="dark"] .badge-card,
[data-theme="dark"] .search-hero,
[data-theme="dark"] .search-panel,
[data-theme="dark"] .faq-page,
[data-theme="dark"] .faq-content,
[data-theme="dark"] .faq-category,
[data-theme="dark"] .faq-accordion,
[data-theme="dark"] .faq-contact-card,
[data-theme="dark"] .faq-empty,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .admin-sidebar,
[data-theme="dark"] .admin-filter-card,
[data-theme="dark"] .admin-members-filter,
[data-theme="dark"] .admin-page .card,
[data-theme="dark"] .admin-empty-state,
[data-theme="dark"] .analytics-live-dashboard-card,
[data-theme="dark"] .admin-newsletter-setting,
[data-theme="dark"] .newsletter-status-card,
[data-theme="dark"] .onboarding-shell {
  background-color: #242526 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e4e6eb !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
}

[data-theme="dark"] .hero-panel,
[data-theme="dark"] .dashboard-hero,
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .settings-account-intro,
[data-theme="dark"] .native-ad-shell,
[data-theme="dark"] .profile-completion-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.09), transparent 280px),
    linear-gradient(180deg, #242526, #242526) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .display-6,
[data-theme="dark"] strong,
[data-theme="dark"] .settings-overview-card strong,
[data-theme="dark"] .settings-link-card strong,
[data-theme="dark"] .settings-choice strong,
[data-theme="dark"] .settings-theme-option-copy strong,
[data-theme="dark"] .notification-preference-row strong,
[data-theme="dark"] .comment-item strong,
[data-theme="dark"] .prompt-card h2,
[data-theme="dark"] .dashboard-hub-links strong,
[data-theme="dark"] .dashboard-tried-card h2 a,
[data-theme="dark"] .dashboard-prompt-title,
[data-theme="dark"] .native-ad-title,
[data-theme="dark"] .community-result-source strong,
[data-theme="dark"] .collection-card-copy strong,
[data-theme="dark"] .badge-card strong,
[data-theme="dark"] .faq-hero h1,
[data-theme="dark"] .faq-category h2,
[data-theme="dark"] .admin-page h1,
[data-theme="dark"] .admin-page h2 {
  color: #f2f3f5 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .lead,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .form-text,
[data-theme="dark"] small,
[data-theme="dark"] .prompt-card-date,
[data-theme="dark"] .dashboard-hub-links small,
[data-theme="dark"] .dashboard-tried-author,
[data-theme="dark"] .dashboard-tried-meta,
[data-theme="dark"] .settings-heading p,
[data-theme="dark"] .settings-card-header p,
[data-theme="dark"] .settings-overview-card small,
[data-theme="dark"] .settings-link-card small,
[data-theme="dark"] .settings-choice small,
[data-theme="dark"] .settings-theme-option-copy small,
[data-theme="dark"] .native-ad-description,
[data-theme="dark"] .comment-meta,
[data-theme="dark"] .comment-author small,
[data-theme="dark"] .comment-action,
[data-theme="dark"] .comment-toolbar,
[data-theme="dark"] .comment-replies-toggle,
[data-theme="dark"] .community-result-note,
[data-theme="dark"] .community-result-author small,
[data-theme="dark"] .community-result-author-row time,
[data-theme="dark"] .community-result-source em,
[data-theme="dark"] .collection-card-copy small,
[data-theme="dark"] .collection-count,
[data-theme="dark"] .footer-note,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .analytics-live-table code {
  color: #b0b3b8 !important;
}

[data-theme="dark"] a {
  color: #b8a6ff;
}

[data-theme="dark"] a:hover,
[data-theme="dark"] a:focus-visible {
  color: #ff7ac8;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] .rich-text-surface,
[data-theme="dark"] .explore-search-form,
[data-theme="dark"] .faq-search,
[data-theme="dark"] .comment-input-shell {
  background: #18191a !important;
  color: #e4e6eb !important;
  border-color: #3a3b3c !important;
  box-shadow: none !important;
}

[data-theme="dark"] .explore-search-form .form-control,
[data-theme="dark"] .faq-search input,
[data-theme="dark"] .comment-input-shell textarea.form-control {
  background: transparent !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .rich-text-surface:focus,
[data-theme="dark"] .comment-input-shell:focus-within {
  border-color: rgba(236, 69, 185, 0.52) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.14) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .explore-search-form .form-control::placeholder,
[data-theme="dark"] .faq-search input::placeholder,
[data-theme="dark"] .comment-input-shell textarea.form-control::placeholder {
  color: #8a8d91 !important;
}

[data-theme="dark"] .form-control::file-selector-button {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] label,
[data-theme="dark"] .form-check-label,
[data-theme="dark"] .form-check-label strong,
[data-theme="dark"] .login-remember-check .form-check-label {
  color: #e4e6eb !important;
}

[data-theme="dark"] .form-check:not(.form-switch),
[data-theme="dark"] .login-remember-check,
[data-theme="dark"] .auth-option {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .form-check-input {
  background-color: #18191a !important;
  border-color: #5b5c5f !important;
}

[data-theme="dark"] .form-check-input:checked {
  background-color: #00a6ff !important;
  border-color: #00beff !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .nav-create-btn,
[data-theme="dark"] .native-ad-cta,
[data-theme="dark"] .is-primary-action {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.22) !important;
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-outline-light,
[data-theme="dark"] .dashboard-page-button,
[data-theme="dark"] .dashboard-icon-action,
[data-theme="dark"] .notification-action-btn,
[data-theme="dark"] .comment-more-button,
[data-theme="dark"] .scroll-nav-arrow,
[data-theme="dark"] .search-filter-chip,
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.text-bg-light,
[data-theme="dark"] .text-bg-light,
[data-theme="dark"] .tag-pill,
[data-theme="dark"] .ai-badge,
[data-theme="dark"] .prompt-card-action,
[data-theme="dark"] .prompt-detail-actions .btn,
[data-theme="dark"] .comment-image span,
[data-theme="dark"] .comment-image-preview button,
[data-theme="dark"] .comment-reply-preview button,
[data-theme="dark"] .emoji-panel button,
[data-theme="dark"] .mention-suggestion {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus-visible,
[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus-visible,
[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light:focus-visible,
[data-theme="dark"] .dashboard-page-button:hover,
[data-theme="dark"] .dashboard-page-button:focus-visible,
[data-theme="dark"] .dashboard-icon-action:hover,
[data-theme="dark"] .dashboard-icon-action:focus-visible,
[data-theme="dark"] .notification-action-btn:hover,
[data-theme="dark"] .notification-action-btn:focus-visible,
[data-theme="dark"] .comment-more-button:hover,
[data-theme="dark"] .comment-more-button:focus-visible,
[data-theme="dark"] .prompt-card-action:hover,
[data-theme="dark"] .prompt-card-action:focus-visible,
[data-theme="dark"] .emoji-panel button:hover,
[data-theme="dark"] .emoji-panel button:focus-visible,
[data-theme="dark"] .mention-suggestion:hover,
[data-theme="dark"] .mention-suggestion:focus-visible {
  background: #4e4f50 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .discovery-tabs,
[data-theme="dark"] .dashboard-section-nav,
[data-theme="dark"] .dashboard-status-tabs,
[data-theme="dark"] .advertisement-status-tabs,
[data-theme="dark"] .facebook-status-tabs,
[data-theme="dark"] .faq-category-filter {
  background: #242526 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="dark"] .discovery-tabs a,
[data-theme="dark"] .dashboard-section-nav a,
[data-theme="dark"] .dashboard-status-tabs a,
[data-theme="dark"] .advertisement-status-tabs a,
[data-theme="dark"] .facebook-status-tabs a,
[data-theme="dark"] .faq-category-filter button {
  background: transparent !important;
  color: #d7dade !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .dashboard-status-tabs a {
  background: #3a3b3c !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .discovery-tabs a:hover,
[data-theme="dark"] .discovery-tabs a:focus-visible,
[data-theme="dark"] .dashboard-section-nav a:hover,
[data-theme="dark"] .dashboard-section-nav a:focus-visible,
[data-theme="dark"] .dashboard-status-tabs a:hover,
[data-theme="dark"] .dashboard-status-tabs a:focus-visible,
[data-theme="dark"] .advertisement-status-tabs a:hover,
[data-theme="dark"] .advertisement-status-tabs a:focus-visible,
[data-theme="dark"] .facebook-status-tabs a:hover,
[data-theme="dark"] .facebook-status-tabs a:focus-visible,
[data-theme="dark"] .faq-category-filter button:hover,
[data-theme="dark"] .faq-category-filter button:focus-visible {
  background: #4e4f50 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .discovery-tabs a.is-active,
[data-theme="dark"] .dashboard-section-nav a.is-active,
[data-theme="dark"] .dashboard-status-tabs a.is-active,
[data-theme="dark"] .advertisement-status-tabs a.is-active,
[data-theme="dark"] .facebook-status-tabs a.is-active,
[data-theme="dark"] .faq-category-filter button.is-active,
[data-theme="dark"] .dashboard-page-button.is-current {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.24) !important;
}

[data-theme="dark"] .dashboard-section-nav a small,
[data-theme="dark"] .dashboard-status-tabs a > small,
[data-theme="dark"] .advertisement-status-tabs a span,
[data-theme="dark"] .facebook-status-tabs a span,
[data-theme="dark"] .collection-count {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .settings-nav {
  background: #242526 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24) !important;
}

[data-theme="dark"] .settings-nav a {
  color: #d7dade !important;
  background: transparent !important;
  border-color: transparent !important;
}

[data-theme="dark"] .settings-nav a i,
[data-theme="dark"] .settings-eyebrow,
[data-theme="dark"] .faq-eyebrow,
[data-theme="dark"] .admin-eyebrow,
[data-theme="dark"] .text-primary,
[data-theme="dark"] .community-result-source small,
[data-theme="dark"] .community-result-tool,
[data-theme="dark"] .dashboard-tried-meta span,
[data-theme="dark"] .dashboard-continue-eyebrow,
[data-theme="dark"] .comment-input-icon {
  color: #8fe4ff !important;
}

[data-theme="dark"] .settings-nav a:hover,
[data-theme="dark"] .settings-nav a:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .settings-nav a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

[data-theme="dark"] .settings-nav a.is-active i,
[data-theme="dark"] .settings-nav a.is-active span {
  color: #ffffff !important;
}

[data-theme="dark"] .profile-completion-step,
[data-theme="dark"] .dashboard-hub-links > a,
[data-theme="dark"] .dashboard-result-picker,
[data-theme="dark"] .dashboard-tried-image,
[data-theme="dark"] .dashboard-prompt-primary-thumb,
[data-theme="dark"] .dashboard-prompt-reference-thumb,
[data-theme="dark"] .community-result-image,
[data-theme="dark"] .community-result-source-thumb,
[data-theme="dark"] .comment-image,
[data-theme="dark"] .comment-image-preview,
[data-theme="dark"] .collection-cover,
[data-theme="dark"] .collection-cover.is-mosaic,
[data-theme="dark"] .save-collections-empty,
[data-theme="dark"] .save-collections-loading,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .settings-empty-state,
[data-theme="dark"] .progress,
[data-theme="dark"] .settings-theme-preview {
  background: #18191a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #b0b3b8 !important;
}

[data-theme="dark"] .profile-completion-step:hover,
[data-theme="dark"] .profile-completion-step:focus-visible,
[data-theme="dark"] .dashboard-hub-links > a:hover,
[data-theme="dark"] .dashboard-hub-links > a:focus-visible,
[data-theme="dark"] .dashboard-tried-card:hover,
[data-theme="dark"] .collection-card:hover,
[data-theme="dark"] .collection-card:focus-visible,
[data-theme="dark"] .community-result-source:hover,
[data-theme="dark"] .community-result-source:focus-visible,
[data-theme="dark"] .user-result-card:hover,
[data-theme="dark"] .user-result-card:focus-visible {
  background: #2f3033 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .comment-item.is-targeted .comment-body,
[data-theme="dark"] .settings-choice:has(input:checked),
[data-theme="dark"] .settings-theme-option.is-selected,
[data-theme="dark"] .save-collections-option:has(input:checked) {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 69, 185, 0.12)) !important;
  border-color: rgba(236, 69, 185, 0.28) !important;
}

[data-theme="dark"] .table,
[data-theme="dark"] .analytics-live-table,
[data-theme="dark"] .analytics-mini-table {
  --bs-table-bg: transparent;
  --bs-table-color: #e4e6eb;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  color: #e4e6eb !important;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .analytics-live-table thead th,
[data-theme="dark"] .analytics-mini-table > div:first-child {
  background: #2f3033 !important;
  color: #d7dade !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] .analytics-live-table tbody td,
[data-theme="dark"] .analytics-mini-table > div,
[data-theme="dark"] .dropdown-divider,
[data-theme="dark"] hr,
[data-theme="dark"] .settings-card-footer,
[data-theme="dark"] .notification-preference-list,
[data-theme="dark"] .settings-session-list,
[data-theme="dark"] .settings-session-row,
[data-theme="dark"] .settings-blocked-list,
[data-theme="dark"] .settings-blocked-row,
[data-theme="dark"] .footer-top,
[data-theme="dark"] .footer-navigation,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .offcanvas-header {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .table tbody tr:hover {
  background: #2f3033 !important;
}

[data-theme="dark"] .faq-accordion .accordion-item,
[data-theme="dark"] .faq-accordion .accordion-button,
[data-theme="dark"] .accordion-button {
  background: #242526 !important;
  color: #e4e6eb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .faq-accordion .accordion-button:hover,
[data-theme="dark"] .faq-accordion .accordion-button:focus-visible,
[data-theme="dark"] .accordion-button:hover,
[data-theme="dark"] .accordion-button:focus-visible,
[data-theme="dark"] .faq-accordion .accordion-button:not(.collapsed),
[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-accordion .accordion-body,
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .rich-text-content,
[data-theme="dark"] .legal-content {
  color: #d7dade !important;
}

[data-theme="dark"] .cookie-notice {
  background: #242526 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e4e6eb !important;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.44) !important;
}

[data-theme="dark"] .cookie-notice-content strong {
  color: #f2f3f5 !important;
}

[data-theme="dark"] .cookie-notice-content p,
[data-theme="dark"] .cookie-notice-content a {
  color: #d7dade !important;
}

[data-theme="dark"] .footer-social-link,
[data-theme="dark"] .footer-cookie-link {
  background: #3a3b3c !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .footer-cookie-link {
  background: transparent !important;
  border: 0 !important;
  color: #b0b3b8 !important;
}

[data-theme="dark"] .scroll-nav-shell::before {
  background: linear-gradient(90deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

[data-theme="dark"] .scroll-nav-shell::after {
  background: linear-gradient(270deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

[data-theme="dark"] .alert-info,
[data-theme="dark"] .alert-primary {
  background: rgba(168, 85, 247, 0.14) !important;
  color: #efe8ff !important;
  border-color: rgba(168, 85, 247, 0.26) !important;
}

[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.13) !important;
  color: #ffe0a6 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.13) !important;
  color: #ffc2cb !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

[data-theme="dark"] .alert-success {
  background: rgba(35, 134, 85, 0.16) !important;
  color: #bff2d8 !important;
  border-color: rgba(35, 134, 85, 0.25) !important;
}

/* Darkmode blue cleanup: override remaining old navy Bootstrap surfaces. */
[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .list-group,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .bg-body,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-body-tertiary,
[data-theme="dark"] .shadow-sm.bg-white,
[data-theme="dark"] .shadow.bg-white,
[data-theme="dark"] .prompt-card,
[data-theme="dark"] .prompt-card > .card-body,
[data-theme="dark"] .prompt-card .card-body,
[data-theme="dark"] .prompt-detail-card,
[data-theme="dark"] .prompt-community-results,
[data-theme="dark"] .comments-card,
[data-theme="dark"] .dashboard-table-card,
[data-theme="dark"] .dashboard-prompt-card,
[data-theme="dark"] .dashboard-tried-card,
[data-theme="dark"] .dashboard-hub-links > a,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .settings-overview-card,
[data-theme="dark"] .settings-link-card,
[data-theme="dark"] .notification-card,
[data-theme="dark"] .notification-item,
[data-theme="dark"] .community-result-card,
[data-theme="dark"] .community-result-body,
[data-theme="dark"] .native-ad-card,
[data-theme="dark"] .advertisement-admin-row,
[data-theme="dark"] .admin-page .card,
[data-theme="dark"] .admin-page .card-body,
[data-theme="dark"] .admin-filter-card,
[data-theme="dark"] .admin-members-filter,
[data-theme="dark"] .analytics-kpi-card,
[data-theme="dark"] .analytics-live-card,
[data-theme="dark"] .analytics-online-users-card,
[data-theme="dark"] .newsletter-status-card {
  background-color: #242526 !important;
  background-image: none !important;
  color: #e4e6eb !important;
  border-color: #3a3b3c !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .offcanvas-header,
[data-theme="dark"] .table thead th,
[data-theme="dark"] .analytics-live-table thead th,
[data-theme="dark"] .analytics-mini-table > div:first-child {
  background-color: #2f3033 !important;
  background-image: none !important;
  color: #d7dade !important;
  border-color: #3a3b3c !important;
}

[data-theme="dark"] .prompt-card {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] .prompt-card:hover,
[data-theme="dark"] .prompt-card:focus-within {
  border-color: #4e4f50 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .prompt-image-button,
[data-theme="dark"] .prompt-image-placeholder,
[data-theme="dark"] .prompt-card .prompt-image-placeholder {
  background: #18191a !important;
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-title-link,
[data-theme="dark"] .prompt-card-author-wrap > a,
[data-theme="dark"] .prompt-author-link {
  color: #f2f3f5 !important;
}

[data-theme="dark"] .prompt-title-link:hover,
[data-theme="dark"] .prompt-title-link:focus-visible,
[data-theme="dark"] .prompt-card-author-wrap > a:hover,
[data-theme="dark"] .prompt-card-author-wrap > a:focus-visible {
  color: #ff7ac8 !important;
}

[data-theme="dark"] .prompt-card p,
[data-theme="dark"] .prompt-card .text-muted,
[data-theme="dark"] .prompt-card-date,
[data-theme="dark"] .prompt-time-meta,
[data-theme="dark"] .prompt-card-action,
[data-theme="dark"] .prompt-more-button {
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-card-follow-btn {
  background: #3a3b3c !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-card-follow-btn:hover,
[data-theme="dark"] .prompt-card-follow-btn:focus-visible {
  background: #4e4f50 !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .prompt-more-button:hover,
[data-theme="dark"] .prompt-more-button:focus-visible,
[data-theme="dark"] .prompt-more-button.show,
[data-theme="dark"] .prompt-card-action:hover,
[data-theme="dark"] .prompt-card-action:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .prompt-more-menu {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36) !important;
}

[data-theme="dark"] .prompt-more-menu .dropdown-item {
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-more-menu .dropdown-item i {
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-more-menu .dropdown-item:hover,
[data-theme="dark"] .prompt-more-menu .dropdown-item:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .tag-link,
[data-theme="dark"] .prompt-card .tag-link,
[data-theme="dark"] .badge.rounded-pill.text-bg-light,
[data-theme="dark"] .prompt-card .badge.text-bg-light,
[data-theme="dark"] .ai-tool-badge {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #4e4f50 !important;
}

[data-theme="dark"] .tag-link:hover,
[data-theme="dark"] .tag-link:focus-visible,
[data-theme="dark"] .ai-tool-badge:hover,
[data-theme="dark"] .ai-tool-badge:focus-visible {
  background: #4e4f50 !important;
  color: #ffffff !important;
  border-color: #6b6d70 !important;
}

[data-theme="dark"] .prompt-card-action.is-liked,
[data-theme="dark"] .prompt-card-action.is-liked:hover,
[data-theme="dark"] .prompt-card-action.is-liked:focus-visible {
  color: #ff5f73 !important;
}

[data-theme="dark"] .prompt-card-action.is-favorited,
[data-theme="dark"] .prompt-card-action.is-favorited:hover,
[data-theme="dark"] .prompt-card-action.is-favorited:focus-visible,
[data-theme="dark"] .prompt-card-action.is-saved,
[data-theme="dark"] .prompt-card-action.is-saved:hover,
[data-theme="dark"] .prompt-card-action.is-saved:focus-visible,
[data-theme="dark"] .prompt-card-action.is-result {
  color: #8fe4ff !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="time"] {
  background-color: #18191a !important;
  color: #e4e6eb !important;
  border-color: #3a3b3c !important;
}

[data-theme="dark"] .form-select {
  color: #e4e6eb !important;
  background-color: #18191a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0b3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .login-remember-check,
[data-theme="dark"] .form-check:not(.form-switch):not(.dropdown-item) {
  background: #242526 !important;
  color: #e4e6eb !important;
  border-color: #3a3b3c !important;
}

/* Darkmode create prompt form and compact status navigation polish. */
[data-theme="dark"] .prompt-form-page .form-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.08), transparent 280px),
    #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] .prompt-form-page .form-section-header {
  border-bottom-color: #3a3b3c !important;
}

[data-theme="dark"] .prompt-form-page .form-section-header h1,
[data-theme="dark"] .prompt-form-page .form-block h2,
[data-theme="dark"] .prompt-form-page .upload-section-heading h2,
[data-theme="dark"] .prompt-form-page .original-upload-label,
[data-theme="dark"] .prompt-form-page .form-label,
[data-theme="dark"] .prompt-form-page .upload-picker-title {
  color: #f2f3f5 !important;
}

[data-theme="dark"] .prompt-form-page .form-section-header p,
[data-theme="dark"] .prompt-form-page .upload-section-heading p,
[data-theme="dark"] .prompt-form-page .upload-picker-description,
[data-theme="dark"] .prompt-form-page .original-upload-label small,
[data-theme="dark"] .prompt-form-page .form-text,
[data-theme="dark"] .prompt-form-page .tag-composer-meta {
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-form-page .form-block,
[data-theme="dark"] .prompt-form-page .upload-flow {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.05), transparent 220px),
    #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker-surface,
[data-theme="dark"] .prompt-form-page .dashboard-result-picker {
  background: #18191a !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker-surface:hover,
[data-theme="dark"] .prompt-form-page .upload-picker-surface:focus-within {
  border-color: rgba(236, 69, 185, 0.52) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .prompt-form-page .upload-picker-empty {
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker-empty i {
  background: #3a3b3c !important;
  color: #8fe4ff !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker-action {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker.has-image .upload-picker-action {
  background: rgba(36, 37, 38, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .prompt-form-page .upload-picker-clear,
[data-theme="dark"] .prompt-form-page .add-original-button {
  background: #3a3b3c !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .upload-picker-clear:hover,
[data-theme="dark"] .prompt-form-page .upload-picker-clear:focus-visible,
[data-theme="dark"] .prompt-form-page .add-original-button:hover,
[data-theme="dark"] .prompt-form-page .add-original-button:focus-visible {
  background: #4e4f50 !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .prompt-form-page .upload-remove-check,
[data-theme="dark"] .prompt-form-page .facebook-share-consent {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .facebook-share-consent .form-check-label {
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .social-share-info {
  background: transparent !important;
  border-color: transparent !important;
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-form-page .social-share-info:hover,
[data-theme="dark"] .prompt-form-page .social-share-info:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .prompt-form-page .tag-composer-control,
[data-theme="dark"] .prompt-form-page .tag-suggestions {
  background: #18191a !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

[data-theme="dark"] .prompt-form-page .tag-composer:focus-within .tag-composer-control {
  border-color: rgba(236, 69, 185, 0.52) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12) !important;
}

[data-theme="dark"] .prompt-form-page .tag-composer-input {
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .tag-composer-input::placeholder {
  color: #8a8d91 !important;
}

[data-theme="dark"] .prompt-form-page .tag-chip,
[data-theme="dark"] .prompt-form-page .tag-suggestion-pill {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

[data-theme="dark"] .prompt-form-page .tag-chip button,
[data-theme="dark"] .prompt-form-page .tag-chip small {
  background: #4e4f50 !important;
  color: #f2f3f5 !important;
}

[data-theme="dark"] .prompt-form-page .tag-suggestion {
  color: #e4e6eb !important;
  border-bottom-color: #3a3b3c !important;
}

[data-theme="dark"] .prompt-form-page .tag-suggestion:hover,
[data-theme="dark"] .prompt-form-page .tag-suggestion:focus-visible {
  background: #2f3033 !important;
}

[data-theme="dark"] .prompt-form-page .tag-suggestion-name,
[data-theme="dark"] .prompt-form-page .tag-composer-meta strong {
  color: #8fe4ff !important;
}

[data-theme="dark"] .prompt-form-page .tag-suggestion-count {
  color: #b0b3b8 !important;
}

[data-theme="dark"] .prompt-form-page .badge.text-bg-light,
[data-theme="dark"] .prompt-form-page .badge.text-bg-primary {
  background: #3a3b3c !important;
  color: #f2f3f5 !important;
  border-color: #4e4f50 !important;
}

[data-theme="dark"] .dashboard-status-tabs {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

[data-theme="dark"] .dashboard-status-tabs a {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
}

[data-theme="dark"] .dashboard-status-tabs a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
}

/* Social action icons: clean, borderless interaction in light and dark mode. */
.prompt-card-actions {
  gap: 0.95rem !important;
}

.prompt-card-action,
.comment-action,
.community-result-actions .comment-action {
  min-width: auto;
  min-height: 30px;
  padding: 0.12rem 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.prompt-card-action i,
.comment-action i,
.community-result-actions .comment-action i {
  font-size: 1.12rem;
  line-height: 1;
}

.prompt-card-action:hover,
.prompt-card-action:focus-visible,
.comment-action:hover,
.comment-action:focus-visible,
.community-result-actions .comment-action:hover,
.community-result-actions .comment-action:focus-visible {
  background: transparent !important;
  color: #475569;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.prompt-card-action:focus-visible,
.comment-action:focus-visible,
.community-result-actions .comment-action:focus-visible {
  outline: 2px solid rgba(155, 77, 255, 0.25);
  outline-offset: 3px;
  border-radius: 7px;
}

.prompt-card-action.is-liked,
.prompt-card-action.is-liked:hover,
.prompt-card-action.is-liked:focus-visible,
.comment-action.is-liked,
.comment-action.is-liked:hover,
.comment-action.is-liked:focus-visible,
.community-result-actions .comment-action.is-liked,
.community-result-actions .comment-action.is-liked:hover,
.community-result-actions .comment-action.is-liked:focus-visible {
  color: #e91e63 !important;
}

.prompt-card-action.is-favorited,
.prompt-card-action.is-favorited:hover,
.prompt-card-action.is-favorited:focus-visible,
.prompt-card-action.is-saved,
.prompt-card-action.is-saved:hover,
.prompt-card-action.is-saved:focus-visible,
.prompt-card-action.is-result,
.prompt-card-action.is-result:hover,
.prompt-card-action.is-result:focus-visible {
  color: #0077ff !important;
}

[data-theme="dark"] .prompt-card-action,
[data-theme="dark"] .comment-action,
[data-theme="dark"] .community-result-actions .comment-action {
  background: transparent !important;
  border: 0 !important;
  color: #b0b3b8 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .prompt-card-action:hover,
[data-theme="dark"] .prompt-card-action:focus-visible,
[data-theme="dark"] .comment-action:hover,
[data-theme="dark"] .comment-action:focus-visible,
[data-theme="dark"] .community-result-actions .comment-action:hover,
[data-theme="dark"] .community-result-actions .comment-action:focus-visible {
  background: transparent !important;
  color: #f2f3f5 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .prompt-card-action:focus-visible,
[data-theme="dark"] .comment-action:focus-visible,
[data-theme="dark"] .community-result-actions .comment-action:focus-visible {
  outline-color: rgba(236, 69, 185, 0.34);
}

[data-theme="dark"] .prompt-card-action.is-liked,
[data-theme="dark"] .prompt-card-action.is-liked:hover,
[data-theme="dark"] .prompt-card-action.is-liked:focus-visible,
[data-theme="dark"] .comment-action.is-liked,
[data-theme="dark"] .comment-action.is-liked:hover,
[data-theme="dark"] .comment-action.is-liked:focus-visible,
[data-theme="dark"] .community-result-actions .comment-action.is-liked,
[data-theme="dark"] .community-result-actions .comment-action.is-liked:hover,
[data-theme="dark"] .community-result-actions .comment-action.is-liked:focus-visible {
  color: #ff5f73 !important;
}

[data-theme="dark"] .prompt-card-action.is-favorited,
[data-theme="dark"] .prompt-card-action.is-favorited:hover,
[data-theme="dark"] .prompt-card-action.is-favorited:focus-visible,
[data-theme="dark"] .prompt-card-action.is-saved,
[data-theme="dark"] .prompt-card-action.is-saved:hover,
[data-theme="dark"] .prompt-card-action.is-saved:focus-visible,
[data-theme="dark"] .prompt-card-action.is-result,
[data-theme="dark"] .prompt-card-action.is-result:hover,
[data-theme="dark"] .prompt-card-action.is-result:focus-visible {
  color: #8fe4ff !important;
}

/* Darkmode final component lock: prompt creation and tried filter bar. */
html[data-theme="dark"] body .prompt-form-page .form-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.08), transparent 280px),
    #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .form-section-header {
  border-bottom-color: #3a3b3c !important;
}

html[data-theme="dark"] body .prompt-form-page .form-section-header h1,
html[data-theme="dark"] body .prompt-form-page .form-block h2,
html[data-theme="dark"] body .prompt-form-page .upload-section-heading h2,
html[data-theme="dark"] body .prompt-form-page .original-upload-label,
html[data-theme="dark"] body .prompt-form-page .form-label,
html[data-theme="dark"] body .prompt-form-page .upload-picker-title,
html[data-theme="dark"] body .prompt-form-page .form-check-label {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .prompt-form-page .form-section-header p,
html[data-theme="dark"] body .prompt-form-page .upload-section-heading p,
html[data-theme="dark"] body .prompt-form-page .upload-picker-description,
html[data-theme="dark"] body .prompt-form-page .original-upload-label small,
html[data-theme="dark"] body .prompt-form-page .form-text,
html[data-theme="dark"] body .prompt-form-page .tag-composer-meta {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .prompt-form-page .form-block,
html[data-theme="dark"] body .prompt-form-page .upload-flow {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.05), transparent 220px),
    #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-surface,
html[data-theme="dark"] body .prompt-form-page .dashboard-result-picker {
  background: #18191a !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-surface:hover,
html[data-theme="dark"] body .prompt-form-page .upload-picker-surface:focus-within {
  border-color: rgba(236, 69, 185, 0.52) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12) !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-empty {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-empty i {
  background: #3a3b3c !important;
  color: #8fe4ff !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-action {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-clear,
html[data-theme="dark"] body .prompt-form-page .add-original-button {
  background: #3a3b3c !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-picker-clear:hover,
html[data-theme="dark"] body .prompt-form-page .upload-picker-clear:focus-visible,
html[data-theme="dark"] body .prompt-form-page .add-original-button:hover,
html[data-theme="dark"] body .prompt-form-page .add-original-button:focus-visible {
  background: #4e4f50 !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .prompt-form-page .upload-remove-check,
html[data-theme="dark"] body .prompt-form-page .facebook-share-consent {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .social-share-info {
  background: transparent !important;
  border-color: transparent !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-composer-control,
html[data-theme="dark"] body .prompt-form-page .tag-suggestions {
  background: #18191a !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-composer-input {
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-composer-input::placeholder {
  color: #8a8d91 !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-chip,
html[data-theme="dark"] body .prompt-form-page .tag-suggestion-pill {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-suggestion {
  background: #18191a !important;
  color: #e4e6eb !important;
  border-bottom-color: #3a3b3c !important;
}

html[data-theme="dark"] body .prompt-form-page .tag-suggestion:hover,
html[data-theme="dark"] body .prompt-form-page .tag-suggestion:focus-visible {
  background: #2f3033 !important;
}

html[data-theme="dark"] body .prompt-form-page .badge.text-bg-light,
html[data-theme="dark"] body .prompt-form-page .badge.text-bg-primary {
  background: #3a3b3c !important;
  color: #f2f3f5 !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 1.25rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs a {
  min-height: 38px !important;
  padding: 0.48rem 0.72rem !important;
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs a:hover,
html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs a:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs a.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .dashboard-hub .dashboard-status-tabs a > small {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Admin darkmode system pass: all backend surfaces, lists, forms and controls. */
html[data-theme="dark"] body .admin-page {
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page h1,
html[data-theme="dark"] body .admin-page h2,
html[data-theme="dark"] body .admin-page h3,
html[data-theme="dark"] body .admin-page h4,
html[data-theme="dark"] body .admin-page h5,
html[data-theme="dark"] body .admin-page h6,
html[data-theme="dark"] body .admin-page .admin-page-heading,
html[data-theme="dark"] body .admin-page .admin-content-header strong,
html[data-theme="dark"] body .admin-page .card-title,
html[data-theme="dark"] body .admin-page label,
html[data-theme="dark"] body .admin-page .form-label {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .admin-page p,
html[data-theme="dark"] body .admin-page small,
html[data-theme="dark"] body .admin-page .text-muted,
html[data-theme="dark"] body .admin-page .form-text,
html[data-theme="dark"] body .admin-page .admin-pagination,
html[data-theme="dark"] body .admin-page .admin-pagination-summary,
html[data-theme="dark"] body .admin-page .admin-content-header p,
html[data-theme="dark"] body .admin-page .admin-eyebrow,
html[data-theme="dark"] body .admin-page .admin-task-message,
html[data-theme="dark"] body .admin-page .newsletter-campaign-meta,
html[data-theme="dark"] body .admin-page .facebook-publication-meta,
html[data-theme="dark"] body .admin-page .social-hub-admin-meta,
html[data-theme="dark"] body .admin-page .advertisement-admin-meta {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-sidebar,
html[data-theme="dark"] body .admin-page .card,
html[data-theme="dark"] body .admin-page .dashboard-table-card,
html[data-theme="dark"] body .admin-page .admin-filter-card,
html[data-theme="dark"] body .admin-page .admin-report-card,
html[data-theme="dark"] body .admin-page .admin-user-card,
html[data-theme="dark"] body .admin-page .admin-user-center-card,
html[data-theme="dark"] body .admin-page .admin-editor-card,
html[data-theme="dark"] body .admin-page .admin-content-card,
html[data-theme="dark"] body .admin-page .admin-members-summary,
html[data-theme="dark"] body .admin-page .admin-members-filter,
html[data-theme="dark"] body .admin-page .admin-member-list,
html[data-theme="dark"] body .admin-page .admin-member-bulk,
html[data-theme="dark"] body .admin-page .admin-member-bulk-options,
html[data-theme="dark"] body .admin-page .admin-settings-section,
html[data-theme="dark"] body .admin-page .admin-newsletter-setting,
html[data-theme="dark"] body .admin-page .admin-settings-upload,
html[data-theme="dark"] body .admin-page .admin-system-image-note,
html[data-theme="dark"] body .admin-page .facebook-admin-status,
html[data-theme="dark"] body .admin-page .facebook-publication-row,
html[data-theme="dark"] body .admin-page .facebook-review-preview,
html[data-theme="dark"] body .admin-page .facebook-review-controls,
html[data-theme="dark"] body .admin-page .social-settings-overview-item,
html[data-theme="dark"] body .admin-page .social-platform-settings,
html[data-theme="dark"] body .admin-page .social-review-platform,
html[data-theme="dark"] body .admin-page .social-connection-control,
html[data-theme="dark"] body .admin-page .advertisement-filter-card,
html[data-theme="dark"] body .admin-page .advertisement-admin-row,
html[data-theme="dark"] body .admin-page .advertisement-stats-card,
html[data-theme="dark"] body .admin-page .advertisement-current-media,
html[data-theme="dark"] body .admin-page .native-ad-card,
html[data-theme="dark"] body .admin-page .newsletter-admin-stats > div,
html[data-theme="dark"] body .admin-page .newsletter-campaign-row,
html[data-theme="dark"] body .admin-page .newsletter-schedule-card,
html[data-theme="dark"] body .admin-page .newsletter-subscriber-row,
html[data-theme="dark"] body .admin-page .admin-empty-state {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] body .admin-page .card-body {
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-sidebar .list-group-item,
html[data-theme="dark"] body .mobile-admin-menu .admin-sidebar .list-group-item,
html[data-theme="dark"] body .admin-page .admin-content-tabs a,
html[data-theme="dark"] body .admin-page .admin-member-views a,
html[data-theme="dark"] body .admin-page .advertisement-status-tabs a,
html[data-theme="dark"] body .admin-page .facebook-status-tabs a,
html[data-theme="dark"] body .admin-page .admin-pagination .page-link {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-sidebar .list-group-item:hover,
html[data-theme="dark"] body .admin-sidebar .list-group-item:focus-visible,
html[data-theme="dark"] body .mobile-admin-menu .admin-sidebar .list-group-item:hover,
html[data-theme="dark"] body .mobile-admin-menu .admin-sidebar .list-group-item:focus-visible,
html[data-theme="dark"] body .admin-page .admin-content-tabs a:hover,
html[data-theme="dark"] body .admin-page .admin-content-tabs a:focus-visible,
html[data-theme="dark"] body .admin-page .admin-member-views a:hover,
html[data-theme="dark"] body .admin-page .admin-member-views a:focus-visible,
html[data-theme="dark"] body .admin-page .advertisement-status-tabs a:hover,
html[data-theme="dark"] body .admin-page .facebook-status-tabs a:hover,
html[data-theme="dark"] body .admin-page .admin-pagination .page-link:hover,
html[data-theme="dark"] body .admin-page .admin-pagination .page-link:focus {
  background: #3a3b3c !important;
  border-color: #5b5c5f !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-sidebar .list-group-item.active,
html[data-theme="dark"] body .mobile-admin-menu .admin-sidebar .list-group-item.active,
html[data-theme="dark"] body .admin-page .admin-content-tabs a.is-active,
html[data-theme="dark"] body .admin-page .admin-member-views a.is-active,
html[data-theme="dark"] body .admin-page .advertisement-status-tabs a.is-active,
html[data-theme="dark"] body .admin-page .facebook-status-tabs a.is-active,
html[data-theme="dark"] body .admin-page .admin-pagination .active .page-link {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.22) !important;
}

html[data-theme="dark"] body .admin-page .advertisement-status-tabs a span,
html[data-theme="dark"] body .admin-page .facebook-status-tabs a span,
html[data-theme="dark"] body .admin-page .admin-content-tabs a span,
html[data-theme="dark"] body .admin-sidebar .admin-nav-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .form-control,
html[data-theme="dark"] body .admin-page .form-select,
html[data-theme="dark"] body .admin-page .input-group-text,
html[data-theme="dark"] body .admin-page input[type="text"],
html[data-theme="dark"] body .admin-page input[type="email"],
html[data-theme="dark"] body .admin-page input[type="password"],
html[data-theme="dark"] body .admin-page input[type="search"],
html[data-theme="dark"] body .admin-page input[type="url"],
html[data-theme="dark"] body .admin-page input[type="number"],
html[data-theme="dark"] body .admin-page input[type="datetime-local"],
html[data-theme="dark"] body .admin-page input[type="time"],
html[data-theme="dark"] body .admin-page textarea {
  background-color: #18191a !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0b3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] body .admin-page .form-control::placeholder,
html[data-theme="dark"] body .admin-page textarea::placeholder {
  color: #8a8d91 !important;
}

html[data-theme="dark"] body .admin-page .form-control:hover,
html[data-theme="dark"] body .admin-page .form-select:hover,
html[data-theme="dark"] body .admin-page .form-control:focus,
html[data-theme="dark"] body .admin-page .form-select:focus,
html[data-theme="dark"] body .admin-page textarea:focus {
  background-color: #18191a !important;
  border-color: rgba(236, 69, 185, 0.56) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12) !important;
}

html[data-theme="dark"] body .admin-page input[type="file"]::file-selector-button {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page input[type="file"]:hover::file-selector-button {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .admin-search-control,
html[data-theme="dark"] body .admin-page .admin-username-control {
  background: #18191a !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .admin-search-control:focus-within,
html[data-theme="dark"] body .admin-page .admin-username-control:focus-within {
  background: #18191a !important;
  border-color: rgba(236, 69, 185, 0.56) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12) !important;
}

html[data-theme="dark"] body .admin-page .admin-search-control > i,
html[data-theme="dark"] body .admin-page .admin-username-control > span {
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .table {
  --bs-table-bg: #242526;
  --bs-table-color: #e4e6eb;
  --bs-table-border-color: #3a3b3c;
  --bs-table-hover-bg: #2f3033;
  --bs-table-hover-color: #ffffff;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .table thead th,
html[data-theme="dark"] body .admin-page .admin-member-list-head {
  background: #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .table tbody td,
html[data-theme="dark"] body .admin-page .table tbody th,
html[data-theme="dark"] body .admin-page .admin-member-row {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .table tbody tr:hover td,
html[data-theme="dark"] body .admin-page .admin-member-row:hover {
  background: #2f3033 !important;
}

html[data-theme="dark"] body .admin-page .admin-user-panel,
html[data-theme="dark"] body .admin-page .admin-user-metrics span,
html[data-theme="dark"] body .admin-page .admin-user-metrics a,
html[data-theme="dark"] body .admin-page .admin-user-overview-stat,
html[data-theme="dark"] body .admin-page .admin-note-list article,
html[data-theme="dark"] body .admin-page .admin-report-review,
html[data-theme="dark"] body .admin-page .admin-report-message,
html[data-theme="dark"] body .admin-page .admin-task-status-item,
html[data-theme="dark"] body .admin-page .admin-migration-item,
html[data-theme="dark"] body .admin-page .admin-profile-preview,
html[data-theme="dark"] body .admin-page .admin-profile-social-box,
html[data-theme="dark"] body .admin-page .admin-content-thumb,
html[data-theme="dark"] body .admin-page .facebook-current-schedule,
html[data-theme="dark"] body .admin-page .facebook-callback-url,
html[data-theme="dark"] body .admin-page .facebook-page-choice button,
html[data-theme="dark"] body .admin-page .facebook-schedule-options label,
html[data-theme="dark"] body .admin-page .social-review-platform > header,
html[data-theme="dark"] body .admin-page .social-review-current-slot,
html[data-theme="dark"] body .admin-page .social-channel-status,
html[data-theme="dark"] body .admin-page .advertisement-check-grid label,
html[data-theme="dark"] body .admin-page .newsletter-preview-frame,
html[data-theme="dark"] body .admin-page .admin-system-command {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .admin-user-name,
html[data-theme="dark"] body .admin-page .admin-member-name,
html[data-theme="dark"] body .admin-page .admin-user-overview-stat strong,
html[data-theme="dark"] body .admin-page .admin-user-timeline strong,
html[data-theme="dark"] body .admin-page .admin-user-facts dd,
html[data-theme="dark"] body .admin-page .admin-task-status-main h3,
html[data-theme="dark"] body .admin-page .admin-task-status-meta dd,
html[data-theme="dark"] body .admin-page .admin-migration-item strong,
html[data-theme="dark"] body .admin-page .admin-empty-state strong,
html[data-theme="dark"] body .admin-page .newsletter-campaign-main h2,
html[data-theme="dark"] body .admin-page .newsletter-admin-stats strong,
html[data-theme="dark"] body .admin-page .admin-newsletter-setting-head h2,
html[data-theme="dark"] body .admin-page .admin-newsletter-capacity strong,
html[data-theme="dark"] body .admin-page .admin-profile-social-head span,
html[data-theme="dark"] body .admin-page .facebook-review-preview-heading strong,
html[data-theme="dark"] body .admin-page .facebook-publication-copy h2,
html[data-theme="dark"] body .admin-page .social-platform-settings-header h2,
html[data-theme="dark"] body .admin-page .social-settings-section-title > span,
html[data-theme="dark"] body .admin-page .social-channel-status strong,
html[data-theme="dark"] body .admin-page .advertisement-admin-title,
html[data-theme="dark"] body .admin-page .advertisement-admin-main h2,
html[data-theme="dark"] body .admin-page .advertisement-stats-card strong,
html[data-theme="dark"] body .admin-page .advertisement-dimension-block h3,
html[data-theme="dark"] body .admin-page .native-ad-title,
html[data-theme="dark"] body .admin-page .native-ad-description h2,
html[data-theme="dark"] body .admin-page .native-ad-description h3,
html[data-theme="dark"] body .admin-page .native-ad-description h4,
html[data-theme="dark"] body .admin-page .native-ad-description strong,
html[data-theme="dark"] body .admin-page .rich-text-surface h2,
html[data-theme="dark"] body .admin-page .rich-text-surface h3,
html[data-theme="dark"] body .admin-page .rich-text-surface h4 {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .admin-page .admin-user-registered,
html[data-theme="dark"] body .admin-page .admin-member-content-stats > *,
html[data-theme="dark"] body .admin-page .admin-member-activity strong,
html[data-theme="dark"] body .admin-page .admin-user-facts dt,
html[data-theme="dark"] body .admin-page .admin-task-status-meta dt,
html[data-theme="dark"] body .admin-page .admin-migration-item small,
html[data-theme="dark"] body .admin-page .admin-migration-item > span:last-child,
html[data-theme="dark"] body .admin-page .admin-note-list footer,
html[data-theme="dark"] body .admin-page .admin-note-list article p,
html[data-theme="dark"] body .admin-page .newsletter-campaign-main p,
html[data-theme="dark"] body .admin-page .newsletter-schedule-card small,
html[data-theme="dark"] body .admin-page .newsletter-subscriber-row small,
html[data-theme="dark"] body .admin-page .admin-profile-social-head small,
html[data-theme="dark"] body .admin-page .facebook-current-schedule small,
html[data-theme="dark"] body .admin-page .facebook-page-choice button small,
html[data-theme="dark"] body .admin-page .social-settings-overview-item small,
html[data-theme="dark"] body .admin-page .social-platform-settings-header p,
html[data-theme="dark"] body .admin-page .social-settings-section-title > small,
html[data-theme="dark"] body .admin-page .social-connection-control small,
html[data-theme="dark"] body .admin-page .social-review-platform-toggle small,
html[data-theme="dark"] body .admin-page .social-review-current-slot,
html[data-theme="dark"] body .admin-page .advertisement-admin-main p,
html[data-theme="dark"] body .admin-page .advertisement-stats-card small,
html[data-theme="dark"] body .admin-page .advertisement-stats-card span,
html[data-theme="dark"] body .admin-page .advertisement-chart-legend,
html[data-theme="dark"] body .admin-page .advertisement-chart-day small,
html[data-theme="dark"] body .admin-page .advertisement-dimension-row,
html[data-theme="dark"] body .admin-page .native-ad-subtitle,
html[data-theme="dark"] body .admin-page .native-ad-description,
html[data-theme="dark"] body .admin-page .native-ad-description blockquote {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .admin-user-head,
html[data-theme="dark"] body .admin-page .admin-user-center-card-head,
html[data-theme="dark"] body .admin-page .admin-members-filter-grid,
html[data-theme="dark"] body .admin-page .admin-members-summary > div,
html[data-theme="dark"] body .admin-page .admin-member-row,
html[data-theme="dark"] body .admin-page .admin-user-facts > div,
html[data-theme="dark"] body .admin-page .admin-preference-list > div,
html[data-theme="dark"] body .admin-page .admin-notification-audit > div,
html[data-theme="dark"] body .admin-page .admin-session-list > div,
html[data-theme="dark"] body .admin-page .admin-case-list > div,
html[data-theme="dark"] body .admin-page .newsletter-campaign-row,
html[data-theme="dark"] body .admin-page .newsletter-subscriber-row,
html[data-theme="dark"] body .admin-page .social-settings-section,
html[data-theme="dark"] body .admin-page .social-review-platform > header,
html[data-theme="dark"] body .admin-page .advertisement-dimension-row,
html[data-theme="dark"] body .admin-page .advertisement-dimension-block + .advertisement-dimension-block {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-primary,
html[data-theme="dark"] body .admin-page .btn-outline-secondary {
  background: transparent !important;
  border-color: #5b5c5f !important;
  color: #d7dcff !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-primary:hover,
html[data-theme="dark"] body .admin-page .btn-outline-primary:focus-visible,
html[data-theme="dark"] body .admin-page .btn-outline-secondary:hover,
html[data-theme="dark"] body .admin-page .btn-outline-secondary:focus-visible {
  background: #3a3b3c !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .btn-link {
  color: #8fe4ff !important;
}

html[data-theme="dark"] body .admin-page .badge.text-bg-light,
html[data-theme="dark"] body .admin-page .badge.bg-light {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .badge.text-bg-secondary {
  background: #4e4f50 !important;
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .admin-page .badge.text-bg-warning {
  background: #6c4f12 !important;
  color: #ffe8a3 !important;
}

html[data-theme="dark"] body .admin-page .badge.text-bg-success {
  background: #1f7a5c !important;
  color: #dffbef !important;
}

html[data-theme="dark"] body .admin-page .badge.text-bg-danger,
html[data-theme="dark"] body .admin-page .badge.bg-danger {
  background: #8f2a36 !important;
  color: #ffe3e8 !important;
}

html[data-theme="dark"] body .admin-page .admin-role-badge,
html[data-theme="dark"] body .admin-page .report-reason-badge,
html[data-theme="dark"] body .admin-page .admin-user-prompt-badge {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(199, 184, 255, 0.24) !important;
  color: #d8ccff !important;
}

html[data-theme="dark"] body .admin-page .admin-user-reason,
html[data-theme="dark"] body .admin-page .admin-danger-zone,
html[data-theme="dark"] body .admin-page .admin-profile-remove-avatar,
html[data-theme="dark"] body .admin-page .admin-settings-remove-check {
  background: rgba(220, 53, 69, 0.11) !important;
  border-color: rgba(255, 95, 115, 0.3) !important;
  color: #ffb8c2 !important;
}

html[data-theme="dark"] body .admin-page .admin-system-summary.has-issues,
html[data-theme="dark"] body .admin-page .admin-system-summary.has-issues .admin-system-summary-icon {
  border-color: rgba(255, 193, 7, 0.28) !important;
}

html[data-theme="dark"] body .admin-page .admin-system-summary-icon,
html[data-theme="dark"] body .admin-page .admin-system-kpi-icon,
html[data-theme="dark"] body .admin-page .admin-migration-state,
html[data-theme="dark"] body .admin-page .newsletter-stat-icon,
html[data-theme="dark"] body .admin-page .admin-settings-image-preview,
html[data-theme="dark"] body .admin-page .admin-system-image-avatar,
html[data-theme="dark"] body .admin-page .native-ad-logo,
html[data-theme="dark"] body .admin-page .native-ad-logo-placeholder {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #8fe4ff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .admin-system-kpi-icon.is-success,
html[data-theme="dark"] body .admin-page .admin-migration-state.is-applied,
html[data-theme="dark"] body .admin-page .newsletter-stat-icon.is-active {
  background: rgba(31, 122, 92, 0.18) !important;
  color: #9ff0ce !important;
}

html[data-theme="dark"] body .admin-page .admin-system-kpi-icon.is-warning,
html[data-theme="dark"] body .admin-page .newsletter-stat-icon.is-pending {
  background: rgba(166, 117, 10, 0.18) !important;
  color: #ffe8a3 !important;
}

html[data-theme="dark"] body .admin-page .admin-system-kpi-icon.is-danger {
  background: rgba(220, 53, 69, 0.16) !important;
  color: #ffb8c2 !important;
}

html[data-theme="dark"] body .admin-page .admin-empty-state {
  border-style: dashed !important;
}

html[data-theme="dark"] body .admin-page .rich-text-editor {
  background: #18191a !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .rich-text-toolbar {
  background: #2f3033 !important;
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] body .admin-page .rich-text-toolbar button,
html[data-theme="dark"] body .admin-page .rich-text-toolbar .form-select {
  background: #242526 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .rich-text-toolbar button:hover,
html[data-theme="dark"] body .admin-page .rich-text-toolbar button:focus-visible,
html[data-theme="dark"] body .admin-page .rich-text-editor.is-source-mode [data-rich-text-source-toggle] {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .rich-text-surface,
html[data-theme="dark"] body .admin-page .rich-text-source {
  background: #18191a !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .rich-text-surface:empty::before {
  color: #8a8d91 !important;
}

html[data-theme="dark"] body .admin-page .rich-text-surface img {
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] body .admin-page .newsletter-preview-frame iframe {
  background: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .admin-newsletter-preset-group {
  background: #18191a !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] body .admin-page .admin-newsletter-preset {
  background: transparent !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .admin-newsletter-preset:hover {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .admin-newsletter-preset.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .analytics-route-row,
html[data-theme="dark"] body .admin-page .analytics-ranked-item,
html[data-theme="dark"] body .admin-page .analytics-online-user,
html[data-theme="dark"] body .admin-page .analytics-mini-table,
html[data-theme="dark"] body .admin-page .analytics-single-summary {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .analytics-series-label,
html[data-theme="dark"] body .admin-page .analytics-hour-cell small,
html[data-theme="dark"] body .admin-page .analytics-online-user-meta,
html[data-theme="dark"] body .admin-page .analytics-ranked-item small {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .analytics-progress {
  background: #3a3b3c !important;
}

html[data-theme="dark"] body .admin-page .facebook-review-preview-heading,
html[data-theme="dark"] body .admin-page .native-ad-label-bar {
  background: linear-gradient(90deg, rgba(53, 102, 255, 0.16), rgba(236, 69, 185, 0.14)) !important;
  border-color: #3a3b3c !important;
  color: #d8ccff !important;
}

html[data-theme="dark"] body .admin-page .facebook-review-no-image,
html[data-theme="dark"] body .admin-page .advertisement-admin-thumb,
html[data-theme="dark"] body .admin-page .advertisement-admin-placeholder,
html[data-theme="dark"] body .admin-page .native-ad-media,
html[data-theme="dark"] body .admin-page .native-ad-placeholder {
  background: #18191a !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .social-channel-status.is-tiktok i,
html[data-theme="dark"] body .admin-page .social-settings-platform-icon.is-tiktok {
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .admin-settings-domain-badges span {
  background: rgba(31, 122, 92, 0.18) !important;
  border-color: rgba(159, 240, 206, 0.24) !important;
  color: #9ff0ce !important;
}

html[data-theme="dark"] body .admin-page .modal-content,
html[data-theme="dark"] body .admin-page .dropdown-menu,
html[data-theme="dark"] body .admin-page .list-group-item {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

/* Admin darkmode final pass: Bootstrap helpers and module-specific leftovers. */
html[data-theme="dark"] body .admin-page .card-header,
html[data-theme="dark"] body .admin-page .card-footer,
html[data-theme="dark"] body .admin-page .accordion,
html[data-theme="dark"] body .admin-page .accordion-item,
html[data-theme="dark"] body .admin-page .accordion-button,
html[data-theme="dark"] body .admin-page .admin-faq-item,
html[data-theme="dark"] body .admin-page .admin-activation-card,
html[data-theme="dark"] body .admin-page .admin-activation-grid > div,
html[data-theme="dark"] body .admin-page .analytics-kpi-card,
html[data-theme="dark"] body .admin-page .analytics-live-table-wrap,
html[data-theme="dark"] body .admin-page .analytics-live-table,
html[data-theme="dark"] body .admin-page .analytics-hour-cell,
html[data-theme="dark"] body .admin-page .analytics-chart,
html[data-theme="dark"] body .admin-page .analytics-chart-item,
html[data-theme="dark"] body .admin-page .analytics-compact-row,
html[data-theme="dark"] body .admin-page .analytics-live-empty,
html[data-theme="dark"] body .admin-page .advertisement-stats-chart,
html[data-theme="dark"] body .admin-page .advertisement-chart-day,
html[data-theme="dark"] body .admin-page .advertisement-editor-form,
html[data-theme="dark"] body .admin-page .advertisement-preview-sticky,
html[data-theme="dark"] body .admin-page .facebook-connected-page,
html[data-theme="dark"] body .admin-page .facebook-setup-steps,
html[data-theme="dark"] body .admin-page .facebook-reject-form,
html[data-theme="dark"] body .admin-page .newsletter-campaign-list,
html[data-theme="dark"] body .admin-page .newsletter-subscriber-list,
html[data-theme="dark"] body .admin-page .social-settings-overview,
html[data-theme="dark"] body .admin-page .admin-user-list,
html[data-theme="dark"] body .admin-page .admin-user-collapse,
html[data-theme="dark"] body .admin-page .admin-content-list,
html[data-theme="dark"] body .admin-page .admin-report-list,
html[data-theme="dark"] body .admin-page .admin-case-summary,
html[data-theme="dark"] body .admin-page .admin-inline-manage,
html[data-theme="dark"] body .admin-page .bg-light,
html[data-theme="dark"] body .admin-page .text-bg-light {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .accordion-button:not(.collapsed),
html[data-theme="dark"] body .admin-page .accordion-button:hover,
html[data-theme="dark"] body .admin-page .accordion-button:focus-visible {
  background: #2f3033 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(1.7);
}

html[data-theme="dark"] body .admin-page .accordion-body,
html[data-theme="dark"] body .admin-page .dropdown-item,
html[data-theme="dark"] body .admin-page .dropdown-header,
html[data-theme="dark"] body .admin-page .dropdown-divider,
html[data-theme="dark"] body .admin-page .modal-header,
html[data-theme="dark"] body .admin-page .modal-body,
html[data-theme="dark"] body .admin-page .modal-footer {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .dropdown-item:hover,
html[data-theme="dark"] body .admin-page .dropdown-item:focus,
html[data-theme="dark"] body .admin-page .dropdown-item:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .dropdown-item.text-danger,
html[data-theme="dark"] body .admin-page .btn-link.text-danger {
  color: #ff8fa0 !important;
}

html[data-theme="dark"] body .admin-page .dropdown-item.text-danger:hover,
html[data-theme="dark"] body .admin-page .dropdown-item.text-danger:focus-visible {
  background: rgba(220, 53, 69, 0.16) !important;
  color: #ffd7dd !important;
}

html[data-theme="dark"] body .admin-page .alert,
html[data-theme="dark"] body .admin-page .alert-light {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .alert-primary,
html[data-theme="dark"] body .admin-page .alert-info {
  background: rgba(53, 102, 255, 0.16) !important;
  border-color: rgba(125, 154, 255, 0.28) !important;
  color: #d7dcff !important;
}

html[data-theme="dark"] body .admin-page .alert-warning {
  background: rgba(166, 117, 10, 0.18) !important;
  border-color: rgba(255, 213, 128, 0.28) !important;
  color: #ffe8a3 !important;
}

html[data-theme="dark"] body .admin-page .alert-danger,
html[data-theme="dark"] body .admin-page .card.border-danger {
  background: rgba(220, 53, 69, 0.13) !important;
  border-color: rgba(255, 95, 115, 0.32) !important;
  color: #ffd7dd !important;
}

html[data-theme="dark"] body .admin-page .alert-success {
  background: rgba(31, 122, 92, 0.18) !important;
  border-color: rgba(159, 240, 206, 0.24) !important;
  color: #dffbef !important;
}

html[data-theme="dark"] body .admin-page .alert a,
html[data-theme="dark"] body .admin-page .card.border-danger a {
  color: #d8ccff !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-dark,
html[data-theme="dark"] body .admin-page .btn-outline-light {
  background: transparent !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-dark:hover,
html[data-theme="dark"] body .admin-page .btn-outline-dark:focus-visible,
html[data-theme="dark"] body .admin-page .btn-outline-light:hover,
html[data-theme="dark"] body .admin-page .btn-outline-light:focus-visible {
  background: #3a3b3c !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-danger {
  background: transparent !important;
  border-color: rgba(255, 95, 115, 0.42) !important;
  color: #ff9aaa !important;
}

html[data-theme="dark"] body .admin-page .btn-outline-danger:hover,
html[data-theme="dark"] body .admin-page .btn-outline-danger:focus-visible {
  background: rgba(220, 53, 69, 0.16) !important;
  border-color: rgba(255, 95, 115, 0.58) !important;
  color: #ffd7dd !important;
}

html[data-theme="dark"] body .admin-page .btn:disabled,
html[data-theme="dark"] body .admin-page .btn.disabled,
html[data-theme="dark"] body .admin-page fieldset:disabled .btn {
  background-color: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #8a8d91 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body .admin-page .admin-pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .admin-page .admin-pagination .page-link.disabled {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #777a7f !important;
}

html[data-theme="dark"] body .admin-page .table-responsive,
html[data-theme="dark"] body .admin-page .table-light,
html[data-theme="dark"] body .admin-page .table-light th,
html[data-theme="dark"] body .admin-page .table-light td {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .form-check,
html[data-theme="dark"] body .admin-page .form-switch,
html[data-theme="dark"] body .admin-page .form-check-label,
html[data-theme="dark"] body .admin-page .form-check-label strong {
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .admin-page .form-check-input {
  background-color: #18191a !important;
  border-color: #5b5c5f !important;
}

html[data-theme="dark"] body .admin-page .form-check-input:checked {
  background-color: #00a6ff !important;
  border-color: #00a6ff !important;
}

html[data-theme="dark"] body .admin-page code,
html[data-theme="dark"] body .admin-page pre,
html[data-theme="dark"] body .admin-page kbd {
  background: #18191a !important;
  border-color: #3a3b3c !important;
  color: #d8ccff !important;
}

html[data-theme="dark"] body .admin-page hr,
html[data-theme="dark"] body .admin-page .border,
html[data-theme="dark"] body .admin-page .border-top,
html[data-theme="dark"] body .admin-page .border-bottom,
html[data-theme="dark"] body .admin-page .border-start,
html[data-theme="dark"] body .admin-page .border-end {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] body .admin-page .text-dark,
html[data-theme="dark"] body .admin-page .text-body,
html[data-theme="dark"] body .admin-page .text-body-emphasis,
html[data-theme="dark"] body .admin-page .link-dark {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .admin-page .text-secondary,
html[data-theme="dark"] body .admin-page .text-body-secondary {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .text-primary,
html[data-theme="dark"] body .admin-page a:not(.btn):not(.dropdown-item):not(.page-link):not(.list-group-item):not(.active):not(.is-active) {
  color: #8fe4ff !important;
}

html[data-theme="dark"] body .admin-page .text-success {
  color: #9ff0ce !important;
}

html[data-theme="dark"] body .admin-page .text-warning {
  color: #ffe8a3 !important;
}

html[data-theme="dark"] body .admin-page .text-danger {
  color: #ff9aaa !important;
}

html[data-theme="dark"] body .admin-page .admin-user-card.is-muted,
html[data-theme="dark"] body .admin-page .admin-member-row.is-muted,
html[data-theme="dark"] body .admin-page .social-review-platform.is-disabled {
  opacity: 0.72 !important;
}

html[data-theme="dark"] body .admin-page .analytics-live-table thead th,
html[data-theme="dark"] body .admin-page .analytics-mini-table > div:first-child,
html[data-theme="dark"] body .admin-page .admin-faq-order,
html[data-theme="dark"] body .admin-page .analytics-rank {
  background: #3a3b3c !important;
  border-color: #4e4f50 !important;
  color: #d8ccff !important;
}

html[data-theme="dark"] body .admin-page .analytics-live-table tbody td,
html[data-theme="dark"] body .admin-page .analytics-mini-table > div,
html[data-theme="dark"] body .admin-page .admin-activation-grid > div + div {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] body .admin-page .analytics-kpi-icon,
html[data-theme="dark"] body .admin-page .analytics-live-heading-icon,
html[data-theme="dark"] body .admin-page .facebook-admin-status-icon,
html[data-theme="dark"] body .admin-page .social-settings-platform-icon,
html[data-theme="dark"] body .admin-page .admin-newsletter-setting-icon {
  box-shadow: none !important;
}

html[data-theme="dark"] body .admin-page .facebook-review-preview-heading a,
html[data-theme="dark"] body .admin-page .native-ad-cta,
html[data-theme="dark"] body .admin-page .facebook-publication-action.is-active,
html[data-theme="dark"] body .admin-page .social-hub-admin-actions .facebook-publication-action.is-active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .admin-page .native-ad-description ul,
html[data-theme="dark"] body .admin-page .native-ad-description ol,
html[data-theme="dark"] body .admin-page .rich-text-surface ul,
html[data-theme="dark"] body .admin-page .rich-text-surface ol {
  color: #e4e6eb !important;
}

/* Keep native select arrows from tiling after darkmode background shorthand resets. */
.form-select,
[data-theme="dark"] .form-select,
html[data-theme="dark"] body .admin-page .form-select {
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.75rem !important;
}

/* Darkmode global normalization: neutral, readable surfaces across frontend and backend. */
html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #1c1d1f 0%, #18191a 420px, #18191a 100%) !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .form-shell,
html[data-theme="dark"] .prompt-form-page .form-shell,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .settings-sidebar,
html[data-theme="dark"] .settings-nav,
html[data-theme="dark"] .settings-overview-card,
html[data-theme="dark"] .settings-link-card,
html[data-theme="dark"] .dashboard-hub-card,
html[data-theme="dark"] .dashboard-table-card,
html[data-theme="dark"] .dashboard-prompt-card,
html[data-theme="dark"] .dashboard-tried-card,
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .collection-settings-panel,
html[data-theme="dark"] .comments-card,
html[data-theme="dark"] .comment-item,
html[data-theme="dark"] .comment-shared-prompt,
html[data-theme="dark"] .comment-image-callout,
html[data-theme="dark"] .comment-reply-preview,
html[data-theme="dark"] .prompt-card,
html[data-theme="dark"] .prompt-detail-card,
html[data-theme="dark"] .community-result-card,
html[data-theme="dark"] .native-ad-card,
html[data-theme="dark"] .native-ad-shell,
html[data-theme="dark"] .faq-accordion,
html[data-theme="dark"] .faq-accordion .accordion-item,
html[data-theme="dark"] .faq-contact-card,
html[data-theme="dark"] .faq-empty,
html[data-theme="dark"] .search-hero,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .cookie-notice,
html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-page .card,
html[data-theme="dark"] .admin-page .admin-filter-card,
html[data-theme="dark"] .admin-page .admin-content-card,
html[data-theme="dark"] .admin-page .admin-editor-card,
html[data-theme="dark"] .admin-page .admin-user-center-card,
html[data-theme="dark"] .admin-page .admin-report-card,
html[data-theme="dark"] .admin-page .admin-members-filter,
html[data-theme="dark"] .admin-page .admin-member-list,
html[data-theme="dark"] .admin-page .newsletter-campaign-row,
html[data-theme="dark"] .admin-page .facebook-publication-row,
html[data-theme="dark"] .admin-page .social-platform-settings,
html[data-theme="dark"] .admin-page .advertisement-admin-row {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .prompt-form-page .form-block:not(.upload-flow),
html[data-theme="dark"] .prompt-form-page .row > [class*="col-"] > .form-block,
html[data-theme="dark"] .settings-card-header,
html[data-theme="dark"] .settings-card-footer,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .tag-composer-meta,
html[data-theme="dark"] .upload-section-heading,
html[data-theme="dark"] .original-upload-label,
html[data-theme="dark"] .comment-toolbar,
html[data-theme="dark"] .newsletter-campaign-meta,
html[data-theme="dark"] .facebook-publication-meta,
html[data-theme="dark"] .admin-page .card-header,
html[data-theme="dark"] .admin-page .card-footer {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .prompt-form-page .upload-flow,
html[data-theme="dark"] .upload-picker-surface,
html[data-theme="dark"] .dashboard-result-picker,
html[data-theme="dark"] .tag-composer-control,
html[data-theme="dark"] .tag-suggestions,
html[data-theme="dark"] .comment-input-shell,
html[data-theme="dark"] .comment-image-preview,
html[data-theme="dark"] .rich-text-editor,
html[data-theme="dark"] .rich-text-toolbar,
html[data-theme="dark"] .rich-text-surface,
html[data-theme="dark"] .rich-text-source,
html[data-theme="dark"] .faq-search,
html[data-theme="dark"] .explore-search-form,
html[data-theme="dark"] .admin-search-control,
html[data-theme="dark"] .admin-username-control,
html[data-theme="dark"] .admin-page .rich-text-editor,
html[data-theme="dark"] .admin-page .rich-text-toolbar,
html[data-theme="dark"] .admin-page .rich-text-surface,
html[data-theme="dark"] .admin-page .rich-text-source {
  background: #18191a !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] .admin-page .form-control,
html[data-theme="dark"] .admin-page .form-select,
html[data-theme="dark"] .admin-page .input-group-text,
html[data-theme="dark"] .admin-page textarea {
  background-color: #18191a !important;
  border-color: #4e4f50 !important;
  color: #f2f3f5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .form-control:not(.form-select),
html[data-theme="dark"] textarea,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not(.form-select) {
  background-image: none !important;
}

html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-select:hover,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .tag-composer:focus-within .tag-composer-control,
html[data-theme="dark"] .comment-input-shell:focus-within,
html[data-theme="dark"] .faq-search:focus-within,
html[data-theme="dark"] .explore-search-form:focus-within {
  background-color: #18191a !important;
  border-color: rgba(236, 69, 185, 0.52) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(236, 69, 185, 0.11) !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] .tag-composer-input::placeholder,
html[data-theme="dark"] .comment-input-shell textarea.form-control::placeholder {
  color: #8a8d91 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .form-select,
html[data-theme="dark"] .admin-page .form-select {
  background-color: #18191a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0b3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.75rem !important;
}

html[data-theme="dark"] select option {
  background: #242526 !important;
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .form-check:not(.form-switch):not(.dropdown-item),
html[data-theme="dark"] .facebook-share-consent,
html[data-theme="dark"] .upload-remove-check,
html[data-theme="dark"] .settings-choice,
html[data-theme="dark"] .notification-preference-row {
  background: #2f3033 !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .form-check-input {
  background-color: #18191a !important;
  border-color: #6b6d70 !important;
}

html[data-theme="dark"] .form-check-input:checked {
  background-color: #00a6ff !important;
  border-color: #00a6ff !important;
}

html[data-theme="dark"] .table,
html[data-theme="dark"] .admin-page .table {
  --bs-table-bg: #242526;
  --bs-table-color: #e4e6eb;
  --bs-table-border-color: #3a3b3c;
  --bs-table-hover-bg: #2f3033;
  --bs-table-hover-color: #ffffff;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .admin-page .table thead th {
  background: #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .faq-accordion .accordion-button,
html[data-theme="dark"] .settings-nav a,
html[data-theme="dark"] .dashboard-status-tabs a,
html[data-theme="dark"] .admin-sidebar .list-group-item {
  background: transparent !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus,
html[data-theme="dark"] .accordion-button:hover,
html[data-theme="dark"] .accordion-button:focus-visible,
html[data-theme="dark"] .settings-nav a:hover,
html[data-theme="dark"] .settings-nav a:focus-visible,
html[data-theme="dark"] .dashboard-status-tabs a:hover,
html[data-theme="dark"] .dashboard-status-tabs a:focus-visible,
html[data-theme="dark"] .admin-sidebar .list-group-item:hover,
html[data-theme="dark"] .admin-sidebar .list-group-item:focus-visible {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .accordion-button:not(.collapsed),
html[data-theme="dark"] .settings-nav a.is-active,
html[data-theme="dark"] .dashboard-status-tabs a.is-active,
html[data-theme="dark"] .admin-sidebar .list-group-item.active {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] label,
html[data-theme="dark"] strong,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .prompt-card-title,
html[data-theme="dark"] .community-result-title,
html[data-theme="dark"] .settings-link-card strong,
html[data-theme="dark"] .settings-overview-card strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .text-body-secondary,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .comment-meta,
html[data-theme="dark"] .tag-composer-meta,
html[data-theme="dark"] .prompt-card-excerpt {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary,
html[data-theme="dark"] .btn-light {
  background: transparent !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus-visible,
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus-visible,
html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .btn-light:focus-visible {
  background: #3a3b3c !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body-tertiary,
html[data-theme="dark"] .text-bg-light {
  background: #242526 !important;
  background-image: none !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-lg {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26) !important;
}

/* Darkmode audit pass: one neutral grey system for frontend and backend. */
html[data-theme="dark"] {
  --ph-bg: #18191a;
  --ph-surface: #242526;
  --ph-surface-soft: #2f3033;
  --ph-ink: #e4e6eb;
  --ph-muted: #b0b3b8;
  --ph-line: #3a3b3c;
  --ph-soft-border: #3a3b3c;
  --bs-body-bg: #18191a;
  --bs-body-color: #e4e6eb;
  --bs-border-color: #3a3b3c;
  --bs-tertiary-bg: #2f3033;
  color-scheme: dark;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .admin-page {
  background: #18191a !important;
  background-image: none !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after,
html[data-theme="dark"] .app-main::before,
html[data-theme="dark"] .app-main::after {
  background: none !important;
  background-image: none !important;
}

html[data-theme="dark"] .app-header,
html[data-theme="dark"] .app-footer,
html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-menu-sheet,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .card,
html[data-theme="dark"] .list-group,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .search-hero,
html[data-theme="dark"] .prompt-detail-card,
html[data-theme="dark"] .comments-card,
html[data-theme="dark"] .comment-item,
html[data-theme="dark"] .comment-shared-prompt,
html[data-theme="dark"] .comment-image-callout,
html[data-theme="dark"] .comment-reply-preview,
html[data-theme="dark"] .comment-result-tool,
html[data-theme="dark"] .comment-image-preview,
html[data-theme="dark"] .emoji-panel,
html[data-theme="dark"] .mention-suggestions,
html[data-theme="dark"] .prompt-card,
html[data-theme="dark"] .community-result-card,
html[data-theme="dark"] .community-result-body,
html[data-theme="dark"] .community-result-source,
html[data-theme="dark"] .native-ad-card,
html[data-theme="dark"] .native-ad-shell,
html[data-theme="dark"] .native-ad-body,
html[data-theme="dark"] .native-ad-label-bar,
html[data-theme="dark"] .dashboard-hub-card,
html[data-theme="dark"] .dashboard-table-card,
html[data-theme="dark"] .dashboard-prompt-card,
html[data-theme="dark"] .dashboard-tried-card,
html[data-theme="dark"] .dashboard-continue-card,
html[data-theme="dark"] .dashboard-hub-links > a,
html[data-theme="dark"] .profile-completion-card,
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .collection-settings-panel,
html[data-theme="dark"] .achievement-card,
html[data-theme="dark"] .settings-sidebar,
html[data-theme="dark"] .settings-nav,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .settings-overview-card,
html[data-theme="dark"] .settings-link-card,
html[data-theme="dark"] .settings-choice,
html[data-theme="dark"] .settings-theme-option,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .faq-accordion,
html[data-theme="dark"] .faq-contact-card,
html[data-theme="dark"] .faq-empty,
html[data-theme="dark"] .cookie-notice,
html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-page .card,
html[data-theme="dark"] .admin-page .admin-filter-card,
html[data-theme="dark"] .admin-page .admin-editor-card,
html[data-theme="dark"] .admin-page .admin-user-center-card,
html[data-theme="dark"] .admin-page .admin-report-card,
html[data-theme="dark"] .admin-page .admin-content-card,
html[data-theme="dark"] .admin-page .admin-members-filter,
html[data-theme="dark"] .admin-page .admin-member-list,
html[data-theme="dark"] .admin-page .admin-member-row,
html[data-theme="dark"] .admin-page .admin-user-collapse,
html[data-theme="dark"] .admin-page .admin-content-list,
html[data-theme="dark"] .admin-page .admin-report-list,
html[data-theme="dark"] .admin-page .admin-case-summary,
html[data-theme="dark"] .admin-page .admin-inline-manage,
html[data-theme="dark"] .admin-page .admin-empty-state,
html[data-theme="dark"] .admin-page .admin-newsletter-setting,
html[data-theme="dark"] .admin-page .newsletter-campaign-list,
html[data-theme="dark"] .admin-page .newsletter-campaign-row,
html[data-theme="dark"] .admin-page .newsletter-subscriber-list,
html[data-theme="dark"] .admin-page .newsletter-subscriber-row,
html[data-theme="dark"] .admin-page .newsletter-schedule-card,
html[data-theme="dark"] .admin-page .social-settings-overview,
html[data-theme="dark"] .admin-page .social-platform-settings,
html[data-theme="dark"] .admin-page .social-settings-section,
html[data-theme="dark"] .admin-page .social-review-platform,
html[data-theme="dark"] .admin-page .social-review-platform > header,
html[data-theme="dark"] .admin-page .facebook-admin-status,
html[data-theme="dark"] .admin-page .facebook-connected-page,
html[data-theme="dark"] .admin-page .facebook-setup-steps,
html[data-theme="dark"] .admin-page .facebook-reject-form,
html[data-theme="dark"] .admin-page .facebook-review-preview-heading,
html[data-theme="dark"] .admin-page .facebook-publication-row,
html[data-theme="dark"] .admin-page .advertisement-admin-row,
html[data-theme="dark"] .admin-page .advertisement-editor-form,
html[data-theme="dark"] .admin-page .advertisement-preview-sticky,
html[data-theme="dark"] .admin-page .advertisement-stats-chart,
html[data-theme="dark"] .admin-page .advertisement-chart-day,
html[data-theme="dark"] .admin-page .advertisement-dimension-block,
html[data-theme="dark"] .admin-page .advertisement-dimension-row,
html[data-theme="dark"] .admin-page .analytics-kpi-card,
html[data-theme="dark"] .admin-page .analytics-live-table-wrap,
html[data-theme="dark"] .admin-page .analytics-live-table,
html[data-theme="dark"] .admin-page .analytics-hour-cell,
html[data-theme="dark"] .admin-page .analytics-chart,
html[data-theme="dark"] .admin-page .analytics-chart-item,
html[data-theme="dark"] .admin-page .analytics-compact-row,
html[data-theme="dark"] .admin-page .analytics-live-empty,
html[data-theme="dark"] .admin-page .analytics-route-row,
html[data-theme="dark"] .admin-page .analytics-ranked-item,
html[data-theme="dark"] .admin-page .analytics-online-user {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .prompt-form-page .form-shell,
html[data-theme="dark"] body .prompt-form-page .form-shell,
html[data-theme="dark"] .form-shell {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .prompt-form-page .form-block,
html[data-theme="dark"] body .prompt-form-page .form-block,
html[data-theme="dark"] .prompt-form-page .row > [class*="col-"] > .form-block {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .prompt-form-page .upload-flow,
html[data-theme="dark"] body .prompt-form-page .upload-flow {
  background: #2f3033 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .upload-picker-surface,
html[data-theme="dark"] .dashboard-result-picker,
html[data-theme="dark"] .tag-composer-control,
html[data-theme="dark"] .tag-suggestions,
html[data-theme="dark"] .comment-result-tool,
html[data-theme="dark"] .rich-text-editor,
html[data-theme="dark"] .rich-text-toolbar,
html[data-theme="dark"] .rich-text-surface,
html[data-theme="dark"] .rich-text-source,
html[data-theme="dark"] .faq-search,
html[data-theme="dark"] .explore-search-form,
html[data-theme="dark"] .admin-search-control,
html[data-theme="dark"] .admin-username-control,
html[data-theme="dark"] .input-group,
html[data-theme="dark"] .input-group-text {
  background: #18191a !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .admin-page .form-control,
html[data-theme="dark"] .admin-page .form-select,
html[data-theme="dark"] .admin-page textarea,
html[data-theme="dark"] .admin-page input:not([type="checkbox"]):not([type="radio"]) {
  background-color: #18191a !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #f2f3f5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] .tag-composer:focus-within .tag-composer-control,
html[data-theme="dark"] .comment-input-shell:focus-within,
html[data-theme="dark"] .faq-search:focus-within,
html[data-theme="dark"] .explore-search-form:focus-within,
html[data-theme="dark"] .admin-search-control:focus-within,
html[data-theme="dark"] .admin-username-control:focus-within {
  background-color: #18191a !important;
  border-color: rgba(236, 69, 185, 0.56) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.18rem rgba(236, 69, 185, 0.12) !important;
}

html[data-theme="dark"] .form-select,
html[data-theme="dark"] .admin-page .form-select {
  background-color: #18191a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0b3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px 12px !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] .tag-composer-input::placeholder,
html[data-theme="dark"] .comment-input-shell textarea.form-control::placeholder {
  color: #8a8d91 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .prompt-card-title,
html[data-theme="dark"] .community-result-title,
html[data-theme="dark"] .native-ad-title,
html[data-theme="dark"] .dashboard-prompt-title,
html[data-theme="dark"] .dashboard-hub-links strong,
html[data-theme="dark"] .settings-link-card strong,
html[data-theme="dark"] .settings-overview-card strong,
html[data-theme="dark"] .comment-author-name,
html[data-theme="dark"] .faq-accordion .accordion-button,
html[data-theme="dark"] .admin-page h1,
html[data-theme="dark"] .admin-page h2,
html[data-theme="dark"] .admin-page h3,
html[data-theme="dark"] .admin-page h4,
html[data-theme="dark"] .admin-page h5,
html[data-theme="dark"] .admin-page h6,
html[data-theme="dark"] .admin-page strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .small,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-body-secondary,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .upload-picker-description,
html[data-theme="dark"] .tag-composer-meta,
html[data-theme="dark"] .prompt-card-excerpt,
html[data-theme="dark"] .comment-meta,
html[data-theme="dark"] .dashboard-hub-links small,
html[data-theme="dark"] .settings-link-card small,
html[data-theme="dark"] .settings-overview-card small,
html[data-theme="dark"] .admin-page p,
html[data-theme="dark"] .admin-page small,
html[data-theme="dark"] .admin-page .text-muted,
html[data-theme="dark"] .admin-page .text-body-secondary {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-body,
html[data-theme="dark"] .text-body-emphasis,
html[data-theme="dark"] .link-dark {
  color: #e4e6eb !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body-tertiary,
html[data-theme="dark"] .text-bg-light,
html[data-theme="dark"] .table-light,
html[data-theme="dark"] .admin-page .bg-white,
html[data-theme="dark"] .admin-page .bg-light,
html[data-theme="dark"] .admin-page .text-bg-light {
  background: #2f3033 !important;
  background-image: none !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .discovery-tabs,
html[data-theme="dark"] .dashboard-section-nav,
html[data-theme="dark"] .dashboard-status-tabs,
html[data-theme="dark"] .advertisement-status-tabs,
html[data-theme="dark"] .facebook-status-tabs,
html[data-theme="dark"] .faq-category-filter,
html[data-theme="dark"] .admin-page .nav,
html[data-theme="dark"] .admin-page .pagination {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .discovery-tabs a,
html[data-theme="dark"] .dashboard-section-nav a,
html[data-theme="dark"] .dashboard-status-tabs a,
html[data-theme="dark"] .advertisement-status-tabs a,
html[data-theme="dark"] .facebook-status-tabs a,
html[data-theme="dark"] .faq-category-filter button,
html[data-theme="dark"] .settings-nav a,
html[data-theme="dark"] .admin-sidebar .list-group-item,
html[data-theme="dark"] .page-link,
html[data-theme="dark"] .dropdown-item {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  color: #d3d6da !important;
}

html[data-theme="dark"] .dashboard-status-tabs a {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] .discovery-tabs a:hover,
html[data-theme="dark"] .dashboard-section-nav a:hover,
html[data-theme="dark"] .dashboard-status-tabs a:hover,
html[data-theme="dark"] .advertisement-status-tabs a:hover,
html[data-theme="dark"] .facebook-status-tabs a:hover,
html[data-theme="dark"] .faq-category-filter button:hover,
html[data-theme="dark"] .settings-nav a:hover,
html[data-theme="dark"] .admin-sidebar .list-group-item:hover,
html[data-theme="dark"] .page-link:hover,
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background: #3a3b3c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .discovery-tabs a.is-active,
html[data-theme="dark"] .dashboard-section-nav a.is-active,
html[data-theme="dark"] .dashboard-status-tabs a.is-active,
html[data-theme="dark"] .advertisement-status-tabs a.is-active,
html[data-theme="dark"] .facebook-status-tabs a.is-active,
html[data-theme="dark"] .faq-category-filter button.is-active,
html[data-theme="dark"] .settings-nav a.is-active,
html[data-theme="dark"] .admin-sidebar .list-group-item.active,
html[data-theme="dark"] .page-item.active .page-link {
  background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-status-tabs a small,
html[data-theme="dark"] .dashboard-section-nav a small,
html[data-theme="dark"] .advertisement-status-tabs a span,
html[data-theme="dark"] .facebook-status-tabs a span,
html[data-theme="dark"] .badge.text-bg-light,
html[data-theme="dark"] .badge.bg-light {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] .prompt-card-action,
html[data-theme="dark"] .comment-action,
html[data-theme="dark"] .comment-more-button,
html[data-theme="dark"] .prompt-more-button,
html[data-theme="dark"] .dashboard-icon-action,
html[data-theme="dark"] .btn-icon,
html[data-theme="dark"] .icon-button {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  color: #b0b3b8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .prompt-card-action:hover,
html[data-theme="dark"] .prompt-card-action:focus-visible,
html[data-theme="dark"] .comment-action:hover,
html[data-theme="dark"] .comment-action:focus-visible,
html[data-theme="dark"] .comment-more-button:hover,
html[data-theme="dark"] .comment-more-button:focus-visible,
html[data-theme="dark"] .prompt-more-button:hover,
html[data-theme="dark"] .prompt-more-button:focus-visible,
html[data-theme="dark"] .dashboard-icon-action:hover,
html[data-theme="dark"] .dashboard-icon-action:focus-visible,
html[data-theme="dark"] .btn-icon:hover,
html[data-theme="dark"] .btn-icon:focus-visible,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .prompt-card-action.is-liked,
html[data-theme="dark"] .comment-action.is-liked,
html[data-theme="dark"] .text-danger {
  color: #ff5c7a !important;
}

html[data-theme="dark"] .prompt-card-action.is-saved,
html[data-theme="dark"] .prompt-card-action.is-favorited {
  color: #8fe4ff !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary,
html[data-theme="dark"] .btn-outline-dark,
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .admin-page .btn-outline-secondary,
html[data-theme="dark"] .admin-page .btn-outline-primary,
html[data-theme="dark"] .admin-page .btn-outline-dark,
html[data-theme="dark"] .admin-page .btn-light {
  background: transparent !important;
  background-image: none !important;
  border-color: #5b5c5f !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-dark:hover,
html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .admin-page .btn-outline-secondary:hover,
html[data-theme="dark"] .admin-page .btn-outline-primary:hover,
html[data-theme="dark"] .admin-page .btn-outline-dark:hover,
html[data-theme="dark"] .admin-page .btn-light:hover {
  background: #3a3b3c !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .table,
html[data-theme="dark"] .admin-page .table {
  --bs-table-bg: #242526;
  --bs-table-color: #e4e6eb;
  --bs-table-border-color: #3a3b3c;
  --bs-table-hover-bg: #2f3033;
  --bs-table-hover-color: #ffffff;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .admin-page .table thead th,
html[data-theme="dark"] .analytics-live-table thead th {
  background: #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .alert,
html[data-theme="dark"] .alert-light {
  background: #2f3033 !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .alert-primary,
html[data-theme="dark"] .alert-info {
  background: rgba(53, 102, 255, 0.14) !important;
  border-color: rgba(53, 102, 255, 0.34) !important;
  color: #dbe6ff !important;
}

html[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
  color: #ffe3a3 !important;
}

html[data-theme="dark"] .alert-danger,
html[data-theme="dark"] .card.border-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.36) !important;
  color: #ffc4c4 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end,
html[data-theme="dark"] hr,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .accordion-body {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .scroll-nav-shell.has-overflow::before {
  background: linear-gradient(90deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

html[data-theme="dark"] .scroll-nav-shell.has-overflow::after {
  background: linear-gradient(270deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

/* Promptalo Sky Theme final guard */
html body .btn-primary,
html body .btn-gradient,
html body .btn-create,
html body .nav-create-link,
html body .mobile-bottom-nav .create-link,
html body .hero-panel .btn-primary,
html body .prompt-copy-button,
html body .native-ad-cta,
html body .admin-page .btn-primary,
html[data-theme="dark"] body .btn-primary,
html[data-theme="dark"] body .btn-gradient,
html[data-theme="dark"] body .btn-create,
html[data-theme="dark"] body .nav-create-link,
html[data-theme="dark"] body .mobile-bottom-nav .create-link,
html[data-theme="dark"] body .hero-panel .btn-primary,
html[data-theme="dark"] body .prompt-copy-button,
html[data-theme="dark"] body .native-ad-cta,
html[data-theme="dark"] body .admin-page .btn-primary,
html body .discovery-tabs > a.is-active,
html body .dashboard-section-nav > a.is-active,
html body .nav-pills .nav-link.active,
html body .feed-tabs .nav-link.active,
html body .feed-tabs .nav-link.is-active,
html body .dashboard-nav .nav-link.active,
html body .dashboard-nav .nav-link.is-active,
html body .settings-nav a.active,
html body .settings-nav a.is-active,
html body .tab-filter.is-active,
html body .advertisement-status-tabs a.is-active,
html[data-theme="dark"] body .discovery-tabs > a.is-active,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active,
html[data-theme="dark"] body .nav-pills .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.is-active,
html[data-theme="dark"] body .dashboard-nav .nav-link.active,
html[data-theme="dark"] body .dashboard-nav .nav-link.is-active,
html[data-theme="dark"] body .settings-nav a.active,
html[data-theme="dark"] body .settings-nav a.is-active,
html[data-theme="dark"] body .tab-filter.is-active,
html[data-theme="dark"] body .advertisement-status-tabs a.is-active {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html body .discovery-tabs > a.is-active *,
html body .dashboard-section-nav > a.is-active *,
html[data-theme="dark"] body .discovery-tabs > a.is-active *,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active * {
  color: #ffffff !important;
}

html body .gradient-text,
html body .hero-panel .gradient-text,
html body .faq-hero .gradient-text,
html body .social-hero .gradient-text {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-theme="dark"] body .form-control:focus,
html[data-theme="dark"] body .form-select:focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] body .search-hero .form-control:focus,
html[data-theme="dark"] body .search-hero .form-select:focus {
  border-color: rgba(0, 190, 255, 0.62) !important;
  box-shadow: 0 0 0 0.22rem rgba(0, 190, 255, 0.16) !important;
}

html[data-theme="dark"] body .brand-wordmark-text {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .brand-wordmark-text span {
  color: #0077ff !important;
}

/* Final neutral text guard: sky blue is for CTAs/highlights, not core text links. */
html body .navbar .nav-link,
html body .app-nav .nav-link,
html body .footer-links a,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link),
html body .prompt-title-link,
html body .prompt-card h2,
html body .prompt-card h2 a,
html body .prompt-card-author-wrap > a,
html body .tag-link,
html body .prompt-card .tag-link,
html body .explore-tile-tags span,
html body .dashboard-prompt-title {
  color: #344156 !important;
}

html body .navbar .nav-link:hover,
html body .navbar .nav-link:focus-visible,
html body .app-nav .nav-link:hover,
html body .app-nav .nav-link:focus-visible,
html body .footer-links a:hover,
html body .footer-links a:focus-visible,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):hover,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):focus-visible,
html body .prompt-title-link:hover,
html body .prompt-title-link:focus-visible,
html body .prompt-card h2 a:hover,
html body .prompt-card h2 a:focus-visible,
html body .dashboard-prompt-title:hover,
html body .dashboard-prompt-title:focus-visible {
  color: #111827 !important;
}

html body .tag-link,
html body .prompt-card .tag-link,
html body .ai-tool-badge {
  background: #f6f8fb !important;
  border-color: #dfe5ee !important;
  color: #344156 !important;
}

html body .ai-tool-badge i {
  color: #008fca !important;
}

html body .tag-link:hover,
html body .tag-link:focus-visible,
html body .prompt-card .tag-link:hover,
html body .prompt-card .tag-link:focus-visible,
html body .ai-tool-badge:hover,
html body .ai-tool-badge:focus-visible {
  background: #eef2f6 !important;
  border-color: #cfd7e3 !important;
  color: #111827 !important;
}

html[data-theme="dark"] body .navbar .nav-link,
html[data-theme="dark"] body .app-nav .nav-link,
html[data-theme="dark"] body .footer-links a,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link),
html[data-theme="dark"] body .prompt-title-link,
html[data-theme="dark"] body .prompt-card h2,
html[data-theme="dark"] body .prompt-card h2 a,
html[data-theme="dark"] body .prompt-card-author-wrap > a,
html[data-theme="dark"] body .tag-link,
html[data-theme="dark"] body .prompt-card .tag-link,
html[data-theme="dark"] body .explore-tile-tags span,
html[data-theme="dark"] body .dashboard-prompt-title {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .navbar .nav-link:hover,
html[data-theme="dark"] body .navbar .nav-link:focus-visible,
html[data-theme="dark"] body .app-nav .nav-link:hover,
html[data-theme="dark"] body .app-nav .nav-link:focus-visible,
html[data-theme="dark"] body .footer-links a:hover,
html[data-theme="dark"] body .footer-links a:focus-visible,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):hover,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):focus-visible,
html[data-theme="dark"] body .prompt-title-link:hover,
html[data-theme="dark"] body .prompt-title-link:focus-visible,
html[data-theme="dark"] body .prompt-card h2 a:hover,
html[data-theme="dark"] body .prompt-card h2 a:focus-visible,
html[data-theme="dark"] body .dashboard-prompt-title:hover,
html[data-theme="dark"] body .dashboard-prompt-title:focus-visible {
  color: #ffffff !important;
}

html[data-theme="dark"] body .tag-link,
html[data-theme="dark"] body .prompt-card .tag-link,
html[data-theme="dark"] body .ai-tool-badge {
  background: #303134 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] body .ai-tool-badge i {
  color: #00beff !important;
}

html[data-theme="dark"] body .tag-link:hover,
html[data-theme="dark"] body .tag-link:focus-visible,
html[data-theme="dark"] body .prompt-card .tag-link:hover,
html[data-theme="dark"] body .prompt-card .tag-link:focus-visible,
html[data-theme="dark"] body .ai-tool-badge:hover,
html[data-theme="dark"] body .ai-tool-badge:focus-visible {
  background: #3a3b3c !important;
  border-color: #5a5c60 !important;
  color: #ffffff !important;
}

/* Final counter badge color */
html body .nav-notification-badge,
html body .nav-admin-badge,
html body .mobile-notification-badge,
html body .mobile-admin-badge,
html body .admin-nav-badge,
html body [data-notification-badge],
html body [data-admin-task-badge],
html[data-theme="dark"] body .nav-notification-badge,
html[data-theme="dark"] body .nav-admin-badge,
html[data-theme="dark"] body .mobile-notification-badge,
html[data-theme="dark"] body .mobile-admin-badge,
html[data-theme="dark"] body .admin-nav-badge,
html[data-theme="dark"] body [data-notification-badge],
html[data-theme="dark"] body [data-admin-task-badge] {
  background: #dc3545 !important;
  background-image: none !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

html body .discovery-tabs > a.is-active:not(.btn):not(.dropdown-item):not(.page-link):not(.list-group-item),
html body .dashboard-section-nav > a.is-active:not(.btn):not(.dropdown-item):not(.page-link):not(.list-group-item),
html[data-theme="dark"] body .discovery-tabs > a.is-active:not(.btn):not(.dropdown-item):not(.page-link):not(.list-group-item),
html[data-theme="dark"] body .dashboard-section-nav > a.is-active:not(.btn):not(.dropdown-item):not(.page-link):not(.list-group-item) {
  color: #ffffff !important;
}

html body .nav-notification-badge,
html body .nav-admin-badge,
html body .mobile-notification-badge,
html body .mobile-admin-badge,
html body .admin-nav-badge,
html body [data-notification-badge],
html body [data-admin-task-badge],
html[data-theme="dark"] body .nav-notification-badge,
html[data-theme="dark"] body .nav-admin-badge,
html[data-theme="dark"] body .mobile-notification-badge,
html[data-theme="dark"] body .mobile-admin-badge,
html[data-theme="dark"] body .admin-nav-badge,
html[data-theme="dark"] body [data-notification-badge],
html[data-theme="dark"] body [data-admin-task-badge] {
  background: #dc3545 !important;
  background-image: none !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

/* Promptalo Sky Theme final guard */
html body .btn-primary,
html body .btn-gradient,
html body .btn-create,
html body .nav-create-link,
html body .mobile-bottom-nav .create-link,
html body .hero-panel .btn-primary,
html body .prompt-copy-button,
html body .native-ad-cta,
html body .admin-page .btn-primary,
html[data-theme="dark"] body .btn-primary,
html[data-theme="dark"] body .btn-gradient,
html[data-theme="dark"] body .btn-create,
html[data-theme="dark"] body .nav-create-link,
html[data-theme="dark"] body .mobile-bottom-nav .create-link,
html[data-theme="dark"] body .hero-panel .btn-primary,
html[data-theme="dark"] body .prompt-copy-button,
html[data-theme="dark"] body .native-ad-cta,
html[data-theme="dark"] body .admin-page .btn-primary,
html body .discovery-tabs > a.is-active,
html body .dashboard-section-nav > a.is-active,
html body .nav-pills .nav-link.active,
html body .feed-tabs .nav-link.active,
html body .feed-tabs .nav-link.is-active,
html body .dashboard-nav .nav-link.active,
html body .dashboard-nav .nav-link.is-active,
html body .settings-nav a.active,
html body .settings-nav a.is-active,
html body .tab-filter.is-active,
html body .advertisement-status-tabs a.is-active,
html[data-theme="dark"] body .discovery-tabs > a.is-active,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active,
html[data-theme="dark"] body .nav-pills .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.is-active,
html[data-theme="dark"] body .dashboard-nav .nav-link.active,
html[data-theme="dark"] body .dashboard-nav .nav-link.is-active,
html[data-theme="dark"] body .settings-nav a.active,
html[data-theme="dark"] body .settings-nav a.is-active,
html[data-theme="dark"] body .tab-filter.is-active,
html[data-theme="dark"] body .advertisement-status-tabs a.is-active {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html body .discovery-tabs > a.is-active *,
html body .dashboard-section-nav > a.is-active *,
html[data-theme="dark"] body .discovery-tabs > a.is-active *,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active * {
  color: #ffffff !important;
}

html body .gradient-text,
html body .hero-panel .gradient-text,
html body .faq-hero .gradient-text,
html body .social-hero .gradient-text {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-theme="dark"] body .form-control:focus,
html[data-theme="dark"] body .form-select:focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] body .search-hero .form-control:focus,
html[data-theme="dark"] body .search-hero .form-select:focus {
  border-color: rgba(0, 190, 255, 0.62) !important;
  box-shadow: 0 0 0 0.22rem rgba(0, 190, 255, 0.16) !important;
}

html[data-theme="dark"] body .brand-wordmark-text {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .brand-wordmark-text span {
  color: #0077ff !important;
}

html body .btn-primary,
html body .btn-gradient,
html body .btn-create,
html body .nav-create-link,
html body .mobile-bottom-nav .create-link,
html body .hero-panel .btn-primary,
html body .prompt-copy-button,
html body .native-ad-cta,
html body .admin-page .btn-primary,
html[data-theme="dark"] body .btn-primary,
html[data-theme="dark"] body .btn-gradient,
html[data-theme="dark"] body .btn-create,
html[data-theme="dark"] body .nav-create-link,
html[data-theme="dark"] body .mobile-bottom-nav .create-link,
html[data-theme="dark"] body .hero-panel .btn-primary,
html[data-theme="dark"] body .prompt-copy-button,
html[data-theme="dark"] body .native-ad-cta,
html[data-theme="dark"] body .admin-page .btn-primary {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 151, 255, 0.22) !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus-visible,
html body .btn-gradient:hover,
html body .btn-gradient:focus-visible,
html body .nav-create-link:hover,
html body .nav-create-link:focus-visible,
html body .native-ad-cta:hover,
html body .native-ad-cta:focus-visible,
html[data-theme="dark"] body .btn-primary:hover,
html[data-theme="dark"] body .btn-primary:focus-visible,
html[data-theme="dark"] body .btn-gradient:hover,
html[data-theme="dark"] body .btn-gradient:focus-visible,
html[data-theme="dark"] body .nav-create-link:hover,
html[data-theme="dark"] body .nav-create-link:focus-visible,
html[data-theme="dark"] body .native-ad-cta:hover,
html[data-theme="dark"] body .native-ad-cta:focus-visible {
  background: linear-gradient(90deg, #006ce6, #00aeea) !important;
  color: #ffffff !important;
}

html body .nav-pills .nav-link.active,
html body .nav-pills .show > .nav-link,
html body .discovery-tabs a.is-active,
html body .feed-tabs .nav-link.active,
html body .feed-tabs .nav-link.is-active,
html body .dashboard-nav .nav-link.active,
html body .dashboard-nav .nav-link.is-active,
html body .settings-nav a.active,
html body .settings-nav a.is-active,
html body .tab-filter.is-active,
html body .advertisement-status-tabs a.is-active,
html[data-theme="dark"] body .nav-pills .nav-link.active,
html[data-theme="dark"] body .nav-pills .show > .nav-link,
html[data-theme="dark"] body .discovery-tabs a.is-active,
html[data-theme="dark"] body .feed-tabs .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.is-active,
html[data-theme="dark"] body .dashboard-nav .nav-link.active,
html[data-theme="dark"] body .dashboard-nav .nav-link.is-active,
html[data-theme="dark"] body .settings-nav a.active,
html[data-theme="dark"] body .settings-nav a.is-active,
html[data-theme="dark"] body .tab-filter.is-active,
html[data-theme="dark"] body .advertisement-status-tabs a.is-active {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .form-control,
html[data-theme="dark"] body .form-select,
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body .search-hero .form-control,
html[data-theme="dark"] body .search-hero .form-select,
html[data-theme="dark"] body .admin-page .form-control,
html[data-theme="dark"] body .admin-page .form-select {
  background-color: #18191a !important;
  border-color: #3a3b3c !important;
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .form-control:focus,
html[data-theme="dark"] body .form-select:focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] body .search-hero .form-control:focus,
html[data-theme="dark"] body .search-hero .form-select:focus {
  border-color: rgba(0, 190, 255, 0.62) !important;
  box-shadow: 0 0 0 0.22rem rgba(0, 190, 255, 0.16) !important;
}

html body .badge.text-bg-primary,
html body .badge.bg-primary,
html body .profile-completion-icon,
html body .profile-completion-step-icon,
html body .dashboard-hub-link-icon,
html body .admin-stat-icon,
html body .admin-newsletter-setting-icon,
html[data-theme="dark"] body .badge.text-bg-primary,
html[data-theme="dark"] body .badge.bg-primary,
html[data-theme="dark"] body .profile-completion-icon,
html[data-theme="dark"] body .profile-completion-step-icon,
html[data-theme="dark"] body .dashboard-hub-link-icon,
html[data-theme="dark"] body .admin-stat-icon,
html[data-theme="dark"] body .admin-newsletter-setting-icon {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .brand-wordmark-text {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .brand-wordmark-text span {
  color: #0077ff !important;
}

html body .discovery-tabs > a.is-active,
html body .dashboard-section-nav > a.is-active,
html body .discovery-tabs > a.is-active *,
html body .dashboard-section-nav > a.is-active *,
html[data-theme="dark"] body .discovery-tabs > a.is-active,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active,
html[data-theme="dark"] body .discovery-tabs > a.is-active *,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active * {
  color: #ffffff !important;
}

@media (max-width: 575.98px) {
  .brand-wordmark-icon {
    width: 31px;
    height: 31px;
  }

  .brand-wordmark-text {
    font-size: 1.18rem;
  }
}

/* Darkmode native control polish: keep browser-default controls readable. */
html[data-theme="dark"] .form-control::file-selector-button,
html[data-theme="dark"] .admin-page .form-control::file-selector-button {
  background: #2f3033 !important;
  color: #e4e6eb !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] .form-control:hover::file-selector-button,
html[data-theme="dark"] .admin-page .form-control:hover::file-selector-button {
  background: #3a3b3c !important;
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] .admin-page .form-control:disabled,
html[data-theme="dark"] .admin-page .form-select:disabled {
  background-color: #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #8f9297 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
  opacity: .78;
}

html[data-theme="dark"] .btn-close:hover {
  opacity: 1;
}

html[data-theme="dark"] .accordion-button::after,
html[data-theme="dark"] .dropdown-toggle::after {
  filter: invert(1) grayscale(100%) brightness(160%);
}

html[data-theme="dark"] .dropdown-divider,
html[data-theme="dark"] .admin-page .dropdown-divider {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .progress,
html[data-theme="dark"] .admin-page .progress {
  background-color: #3a3b3c !important;
}

html[data-theme="dark"] .invalid-feedback,
html[data-theme="dark"] .text-danger {
  color: #ff8a8a !important;
}

html[data-theme="dark"] .valid-feedback,
html[data-theme="dark"] .text-success {
  color: #7bd8aa !important;
}

/* Prompt form UX polish: compact tag helper and drag/drop upload states. */
.prompt-form-page .tag-composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding: 0.56rem 0.68rem;
  border: 1px solid rgba(53, 102, 255, 0.12);
  border-radius: 8px;
  background: rgba(53, 102, 255, 0.045);
  color: #667387;
  font-size: 0.84rem;
  line-height: 1.35;
}

.prompt-form-page .tag-composer-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.12rem;
  color: #566275;
  font-weight: 700;
  white-space: nowrap;
}

.prompt-form-page .tag-composer-count strong {
  color: var(--ph-primary-dark);
}

.prompt-form-page .tag-composer-hint {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.prompt-form-page .tag-composer-hint i {
  color: var(--ph-primary);
  font-size: 0.92rem;
}

.upload-picker-drop-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(53, 102, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #667387;
  font-size: 0.82rem;
  font-weight: 700;
}

.upload-picker-drop-hint i {
  width: auto;
  height: auto;
  display: inline-flex;
  place-items: normal;
  border-radius: 0;
  background: transparent;
  color: var(--ph-primary);
  font-size: 0.92rem;
}

.upload-picker.is-dragging .upload-picker-surface {
  border-color: rgba(236, 69, 185, 0.72);
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.1), rgba(236, 69, 185, 0.1)),
    #ffffff;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.12), 0 18px 38px rgba(53, 102, 255, 0.16);
  transform: translateY(-1px);
}

.upload-picker.is-dragging .upload-picker-empty i {
  background: linear-gradient(135deg, rgba(53, 102, 255, 0.16), rgba(236, 69, 185, 0.16));
  color: var(--ph-accent);
}

html[data-theme="dark"] .prompt-form-page .tag-composer-meta {
  background: #2f3033 !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .prompt-form-page .tag-composer-count {
  color: #d3d6da !important;
}

html[data-theme="dark"] .prompt-form-page .tag-composer-count strong,
html[data-theme="dark"] .prompt-form-page .tag-composer-hint i {
  color: #9bb6ff !important;
}

html[data-theme="dark"] .upload-picker-drop-hint {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .upload-picker.is-dragging .upload-picker-surface {
  background: #2f3033 !important;
  border-color: rgba(236, 69, 185, 0.72) !important;
  box-shadow: 0 0 0 0.22rem rgba(236, 69, 185, 0.16), 0 18px 38px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 767.98px) {
  .prompt-form-page .tag-composer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.58rem 0.64rem;
  }

  .prompt-form-page .tag-composer-hint {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (hover: none) and (pointer: coarse) {
  .upload-picker-drop-hint {
    display: none;
  }
}

/* Mobile darkmode: final pass for header actions, tabbar and account sheets. */
@media (max-width: 991.98px) {
  html[data-theme="dark"] .app-nav {
    background: rgba(36, 37, 38, 0.96) !important;
    background-image: none !important;
    border-bottom-color: #3a3b3c !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(16px);
  }

  html[data-theme="dark"] .mobile-header-actions {
    gap: 0.48rem;
  }

  html[data-theme="dark"] .mobile-header-icon,
  html[data-theme="dark"] .mobile-admin-icon {
    background: #2f3033 !important;
    background-image: none !important;
    border-color: #3a3b3c !important;
    color: #d3d6da !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .mobile-header-icon i,
  html[data-theme="dark"] .mobile-admin-icon span[aria-hidden="true"] {
    color: #d3d6da !important;
  }

  html[data-theme="dark"] .mobile-header-icon:hover,
  html[data-theme="dark"] .mobile-header-icon:focus-visible,
  html[data-theme="dark"] .mobile-header-icon[aria-expanded="true"],
  html[data-theme="dark"] .mobile-admin-icon:hover,
  html[data-theme="dark"] .mobile-admin-icon:focus-visible,
  html[data-theme="dark"] .mobile-admin-icon[aria-expanded="true"] {
    background: #3a3b3c !important;
    border-color: #4e4f50 !important;
    color: #ffffff !important;
    transform: none !important;
  }

  html[data-theme="dark"] .mobile-notification-badge,
  html[data-theme="dark"] .mobile-admin-badge {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0077ff, #00beff) !important;
    box-shadow: 0 4px 12px rgba(236, 69, 185, 0.32) !important;
  }

  html[data-theme="dark"] .mobile-tabbar {
    background: rgba(36, 37, 38, 0.96) !important;
    background-image: none !important;
    border-top-color: #3a3b3c !important;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(18px);
  }

  html[data-theme="dark"] .mobile-tabbar-item {
    color: #b0b3b8 !important;
    background: transparent !important;
  }

  html[data-theme="dark"] .mobile-tabbar-item > i {
    color: currentColor !important;
  }

  html[data-theme="dark"] .mobile-tabbar-item:hover,
  html[data-theme="dark"] .mobile-tabbar-item:focus-visible,
  html[data-theme="dark"] .mobile-tabbar-item.is-active {
    color: #ffffff !important;
    background: #3a3b3c !important;
  }

  html[data-theme="dark"] .mobile-tabbar-create,
  html[data-theme="dark"] .mobile-tabbar-create:hover,
  html[data-theme="dark"] .mobile-tabbar-create:focus-visible,
  html[data-theme="dark"] .mobile-tabbar-create.is-active {
    background: transparent !important;
    color: #d3d6da !important;
  }

  html[data-theme="dark"] .mobile-create-icon {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.26) !important;
  }

  html[data-theme="dark"] .mobile-tabbar-avatar .avatar {
    box-shadow: 0 0 0 2px #3a3b3c !important;
  }

  html[data-theme="dark"] .profile-mobile-actions,
  html[data-theme="dark"] .mobile-account-menu,
  html[data-theme="dark"] .mobile-admin-menu {
    background: #242526 !important;
    background-image: none !important;
    border: 1px solid #3a3b3c !important;
    border-bottom: 0 !important;
    box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.52) !important;
    color: #e4e6eb !important;
  }

  html[data-theme="dark"] .profile-mobile-actions .offcanvas-header,
  html[data-theme="dark"] .mobile-account-menu .offcanvas-header,
  html[data-theme="dark"] .mobile-admin-menu .offcanvas-header {
    background: #242526 !important;
    background-image: none !important;
    border-bottom-color: #3a3b3c !important;
    color: #e4e6eb !important;
  }

  html[data-theme="dark"] .profile-mobile-actions .offcanvas-body,
  html[data-theme="dark"] .mobile-account-menu .offcanvas-body,
  html[data-theme="dark"] .mobile-admin-menu .offcanvas-body {
    background: #242526 !important;
    background-image: none !important;
    color: #e4e6eb !important;
  }

  html[data-theme="dark"] .profile-mobile-actions h1,
  html[data-theme="dark"] .profile-mobile-actions h2,
  html[data-theme="dark"] .profile-mobile-actions h3,
  html[data-theme="dark"] .mobile-account-menu h1,
  html[data-theme="dark"] .mobile-account-menu h2,
  html[data-theme="dark"] .mobile-account-menu h3,
  html[data-theme="dark"] .mobile-admin-menu h1,
  html[data-theme="dark"] .mobile-admin-menu h2,
  html[data-theme="dark"] .mobile-admin-menu h3 {
    color: #f2f3f5 !important;
  }

  html[data-theme="dark"] .profile-mobile-actions .text-muted,
  html[data-theme="dark"] .mobile-account-menu .text-muted,
  html[data-theme="dark"] .mobile-admin-menu .text-muted {
    color: #b0b3b8 !important;
  }

  html[data-theme="dark"] .profile-action-sheet {
    gap: 0.55rem !important;
  }

  html[data-theme="dark"] .profile-action-sheet a,
  html[data-theme="dark"] .profile-action-sheet button {
    background: #2f3033 !important;
    background-image: none !important;
    border-color: #3a3b3c !important;
    color: #e4e6eb !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .profile-action-sheet a:hover,
  html[data-theme="dark"] .profile-action-sheet a:focus-visible,
  html[data-theme="dark"] .profile-action-sheet button:hover,
  html[data-theme="dark"] .profile-action-sheet button:focus-visible {
    background: #3a3b3c !important;
    border-color: #4e4f50 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .profile-action-sheet i,
  html[data-theme="dark"] .guest-menu-icon,
  html[data-theme="dark"] .mobile-admin-menu-mark {
    background: #3a3b3c !important;
    background-image: none !important;
    color: #dbe6ff !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .profile-action-sheet .is-primary-action,
  html[data-theme="dark"] .profile-action-sheet .is-primary-action:hover,
  html[data-theme="dark"] .profile-action-sheet .is-primary-action:focus-visible {
    background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.26) !important;
  }

  html[data-theme="dark"] .profile-action-sheet .is-primary-action i {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar,
  html[data-theme="dark"] .mobile-admin-menu .list-group,
  html[data-theme="dark"] .mobile-admin-menu .list-group-item {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #d3d6da !important;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item {
    border: 1px solid #3a3b3c !important;
    background: #2f3033 !important;
    color: #e4e6eb !important;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item:hover,
  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item:focus-visible {
    background: #3a3b3c !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item.active {
    background: linear-gradient(135deg, #0077ff, #00a6ff 58%, #00beff) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .offcanvas-backdrop.show {
    opacity: .72;
  }
}

/* Feed/social action icons stay flat: no hover tiles in light or dark mode. */
.prompt-card-action,
.comment-action,
.community-result-actions .comment-action,
html[data-theme="dark"] .prompt-card-action,
html[data-theme="dark"] .comment-action,
html[data-theme="dark"] .community-result-actions .comment-action {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.prompt-card-action:hover,
.prompt-card-action:focus-visible,
.prompt-card-action:active,
.comment-action:hover,
.comment-action:focus-visible,
.comment-action:active,
.community-result-actions .comment-action:hover,
.community-result-actions .comment-action:focus-visible,
.community-result-actions .comment-action:active,
html[data-theme="dark"] .prompt-card-action:hover,
html[data-theme="dark"] .prompt-card-action:focus-visible,
html[data-theme="dark"] .prompt-card-action:active,
html[data-theme="dark"] .comment-action:hover,
html[data-theme="dark"] .comment-action:focus-visible,
html[data-theme="dark"] .comment-action:active,
html[data-theme="dark"] .community-result-actions .comment-action:hover,
html[data-theme="dark"] .community-result-actions .comment-action:focus-visible,
html[data-theme="dark"] .community-result-actions .comment-action:active {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.prompt-card-action:hover,
.prompt-card-action:focus-visible,
.comment-action:hover,
.comment-action:focus-visible,
.community-result-actions .comment-action:hover,
.community-result-actions .comment-action:focus-visible {
  color: #263244 !important;
}

html[data-theme="dark"] .prompt-card-action:hover,
html[data-theme="dark"] .prompt-card-action:focus-visible,
html[data-theme="dark"] .comment-action:hover,
html[data-theme="dark"] .comment-action:focus-visible,
html[data-theme="dark"] .community-result-actions .comment-action:hover,
html[data-theme="dark"] .community-result-actions .comment-action:focus-visible {
  color: #f2f3f5 !important;
}

.prompt-card-action.is-liked,
.prompt-card-action.is-liked:hover,
.prompt-card-action.is-liked:focus-visible,
.comment-action.is-liked,
.comment-action.is-liked:hover,
.comment-action.is-liked:focus-visible,
.community-result-actions .comment-action.is-liked,
.community-result-actions .comment-action.is-liked:hover,
.community-result-actions .comment-action.is-liked:focus-visible,
html[data-theme="dark"] .prompt-card-action.is-liked,
html[data-theme="dark"] .prompt-card-action.is-liked:hover,
html[data-theme="dark"] .prompt-card-action.is-liked:focus-visible,
html[data-theme="dark"] .comment-action.is-liked,
html[data-theme="dark"] .comment-action.is-liked:hover,
html[data-theme="dark"] .comment-action.is-liked:focus-visible,
html[data-theme="dark"] .community-result-actions .comment-action.is-liked,
html[data-theme="dark"] .community-result-actions .comment-action.is-liked:hover,
html[data-theme="dark"] .community-result-actions .comment-action.is-liked:focus-visible {
  color: #e91e63 !important;
}

.prompt-card-action.is-favorited,
.prompt-card-action.is-favorited:hover,
.prompt-card-action.is-favorited:focus-visible,
.prompt-card-action.is-saved,
.prompt-card-action.is-saved:hover,
.prompt-card-action.is-saved:focus-visible,
.prompt-card-action.is-result,
.prompt-card-action.is-result:hover,
.prompt-card-action.is-result:focus-visible {
  color: #0077ff !important;
}

html[data-theme="dark"] .prompt-card-action.is-favorited,
html[data-theme="dark"] .prompt-card-action.is-favorited:hover,
html[data-theme="dark"] .prompt-card-action.is-favorited:focus-visible,
html[data-theme="dark"] .prompt-card-action.is-saved,
html[data-theme="dark"] .prompt-card-action.is-saved:hover,
html[data-theme="dark"] .prompt-card-action.is-saved:focus-visible,
html[data-theme="dark"] .prompt-card-action.is-result,
html[data-theme="dark"] .prompt-card-action.is-result:hover,
html[data-theme="dark"] .prompt-card-action.is-result:focus-visible {
  color: #8fe4ff !important;
}

.prompt-card-action:focus-visible,
.comment-action:focus-visible,
.community-result-actions .comment-action:focus-visible {
  outline: 2px solid rgba(155, 77, 255, 0.28) !important;
  outline-offset: 3px !important;
}

.prompt-card-views {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  min-width: max-content;
  color: #687386;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.prompt-card-views i {
  font-size: 1.02rem;
}

html[data-theme="dark"] .prompt-card-views {
  color: #b0b3b8;
}

html[data-theme="dark"] .comment-result-tool {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .comment-result-tool label,
html[data-theme="dark"] .comment-result-tool label i {
  color: #d5d8dc !important;
}

html[data-theme="dark"] .comment-image-callout {
  background:
    linear-gradient(135deg, rgba(53, 102, 255, 0.12), rgba(236, 69, 185, 0.1)),
    #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .comment-image-callout strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .comment-image-callout span {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .comment-image-callout-icon {
  background: #303134 !important;
  color: #8fe4ff !important;
}

html[data-theme="dark"] .comment-image-callout.has-image .comment-image-callout-icon {
  background: rgba(45, 164, 118, 0.16) !important;
  color: #6ee7b7 !important;
}

html[data-theme="dark"] .comment-image-callout-action.btn-outline-primary {
  background: #303134 !important;
  border-color: #4e4f50 !important;
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .comment-image-callout-action.btn-outline-primary:hover,
html[data-theme="dark"] .comment-image-callout-action.btn-outline-primary:focus-visible {
  background: #3a3b3c !important;
  border-color: rgba(236, 69, 185, 0.42) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .comment-input-icon {
  color: #8fe4ff !important;
}

html[data-theme="dark"] .comment-input-icon:hover,
html[data-theme="dark"] .comment-input-icon:focus-visible {
  background: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .native-ad-label-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(236, 69, 185, 0.18)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e4ddff !important;
}

html[data-theme="dark"] .native-ad-label-bar.is-unpaid {
  background: linear-gradient(90deg, rgba(53, 102, 255, 0.16), rgba(148, 163, 184, 0.14)) !important;
  color: #dbe7ff !important;
}

html[data-theme="dark"] .settings-reactivate-card,
html[data-theme="dark"] .settings-deletion-feedback {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 69, 185, 0.08), transparent 220px),
    #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .settings-reactivate-card h1,
html[data-theme="dark"] .settings-deletion-feedback-head span {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .settings-reactivate-card p,
html[data-theme="dark"] .settings-deletion-feedback p {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .settings-reactivate-card .btn-link {
  color: #8fe4ff !important;
}

html[data-theme="dark"] .settings-deletion-feedback-head small {
  background: #303134 !important;
  border-color: #4e4f50 !important;
  color: #b0b3b8 !important;
}

.admin-deletion-reason-text {
  max-width: 520px;
  white-space: normal;
}

.admin-deletion-reason-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.admin-deletion-reason-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(31, 44, 71, 0.09);
  border-radius: 8px;
  background: #f8faff;
  padding: 0.75rem 0.85rem;
}

.admin-deletion-reason-breakdown span {
  color: #475569;
  font-weight: 700;
}

.admin-deletion-reason-breakdown strong {
  color: #17212b;
}

html[data-theme="dark"] body .admin-page .admin-deletion-reason-breakdown > div {
  background: #2f3033 !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] body .admin-page .admin-deletion-reason-breakdown span {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .admin-page .admin-deletion-reason-breakdown strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .image-lightbox .modal-content,
html[data-theme="dark"] .image-lightbox .modal-body,
html[data-theme="dark"] .image-lightbox .lightbox-stage {
  background: #000000 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.image-lightbox.modal.show .modal-dialog {
  transform: none;
}

@media (hover: none) and (pointer: coarse) {
  .prompt-card-action,
  .comment-action,
  .community-result-actions .comment-action {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Promptalo Sky Theme */
:root {
  --ph-bg: #f6fbff;
  --ph-surface: #ffffff;
  --ph-surface-soft: #eaf8ff;
  --ph-ink: #061426;
  --ph-muted: #607084;
  --ph-primary: #00beff;
  --ph-primary-dark: #0077ff;
  --ph-accent: #00a6ff;
  --ph-pink: #00beff;
  --ph-warm: #00beff;
  --ph-soft-border: rgba(0, 148, 255, 0.14);
  --ph-line: rgba(31, 44, 71, 0.12);
  --ph-focus: rgba(0, 190, 255, 0.26);
  --ph-shadow-sm: 0 8px 24px rgba(0, 119, 255, 0.07);
  --ph-shadow-md: 0 18px 46px rgba(0, 119, 255, 0.11);
  --ph-gradient: linear-gradient(90deg, #0077ff, #00beff);
  --ph-gradient-soft: linear-gradient(135deg, rgba(0, 119, 255, 0.08), rgba(0, 190, 255, 0.1));
}

html[data-theme="dark"] {
  --bs-body-bg: #18191a;
  --bs-body-color: #e4e6eb;
  --bs-emphasis-color: #f2f3f5;
  --bs-secondary-color: #b0b3b8;
  --bs-tertiary-color: #8a8d91;
  --bs-tertiary-bg: #242526;
  --bs-border-color: #3a3b3c;
  --bs-link-color: #0077ff;
  --bs-link-hover-color: #8fe4ff;
  --ph-bg: #18191a;
  --ph-surface: #242526;
  --ph-surface-soft: #303134;
  --ph-ink: #f2f3f5;
  --ph-muted: #b0b3b8;
  --ph-primary: #00beff;
  --ph-primary-dark: #0077ff;
  --ph-accent: #009df5;
  --ph-pink: #00beff;
  --ph-warm: #00beff;
  --ph-soft-border: rgba(255, 255, 255, 0.12);
  --ph-line: rgba(255, 255, 255, 0.1);
  --ph-focus: rgba(0, 190, 255, 0.28);
  --ph-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --ph-shadow-md: 0 18px 52px rgba(0, 0, 0, 0.38);
  --ph-gradient: linear-gradient(90deg, #0077ff, #00beff);
  --ph-gradient-soft: linear-gradient(135deg, rgba(0, 119, 255, 0.16), rgba(0, 190, 255, 0.12));
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 190, 255, 0.1), transparent 340px),
    radial-gradient(circle at 88% 8%, rgba(0, 119, 255, 0.08), transparent 360px),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 390px, var(--ph-bg) 780px) !important;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 190, 255, 0.08), transparent 360px),
    linear-gradient(180deg, #1c1d1f 0%, #18191a 420px, #18191a 100%) !important;
  color: var(--ph-ink) !important;
}

.text-primary,
.hero-panel .text-primary {
  color: var(--ph-primary-dark) !important;
}

html[data-theme="dark"] .text-primary,
html[data-theme="dark"] .hero-panel .text-primary {
  color: #0077ff !important;
}

.gradient-text,
.hero-panel .gradient-text,
.faq-hero .gradient-text,
.social-hero .gradient-text {
  background: var(--ph-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.btn-primary,
.btn-gradient,
.btn-create,
.hero-panel .btn-primary,
.mobile-bottom-nav .create-link,
.nav-create-link,
.form-actions .btn-primary,
.prompt-copy-button,
.native-ad-cta,
.newsletter-publish-button,
.admin-page .btn-primary,
.admin-sidebar .list-group-item.active,
.advertisement-status-tabs a.is-active,
.dashboard-nav .nav-link.active,
.dashboard-nav .nav-link.is-active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.feed-tabs .nav-link.active,
.feed-tabs .nav-link.is-active,
.tab-filter.is-active,
.profile-completion-step-icon,
.profile-completion-icon,
.dashboard-hub-link-icon,
.admin-stat-icon,
.admin-newsletter-setting-icon,
.settings-link-icon,
.settings-overview-icon,
.settings-current-badge,
.badge.text-bg-primary,
.badge.bg-primary {
  background: var(--ph-gradient) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 151, 255, 0.22) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-gradient:hover,
.btn-gradient:focus-visible,
.btn-create:hover,
.btn-create:focus-visible,
.hero-panel .btn-primary:hover,
.hero-panel .btn-primary:focus-visible,
.native-ad-cta:hover,
.native-ad-cta:focus-visible,
.admin-page .btn-primary:hover,
.admin-page .btn-primary:focus-visible {
  background: linear-gradient(90deg, #006ce6, #00aeea) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(0, 151, 255, 0.28) !important;
}

.btn-outline-primary,
.hero-panel .btn-outline-primary,
.admin-page .btn-outline-primary,
.prompt-card .btn-outline-primary,
.profile-social-links a,
.comment-image-callout-action.btn-outline-primary {
  border-color: rgba(0, 148, 255, 0.34) !important;
  color: var(--ph-primary-dark) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.hero-panel .btn-outline-primary:hover,
.hero-panel .btn-outline-primary:focus-visible,
.admin-page .btn-outline-primary:hover,
.admin-page .btn-outline-primary:focus-visible {
  border-color: rgba(0, 190, 255, 0.58) !important;
  color: #005fd1 !important;
  background: #eaf8ff !important;
  box-shadow: 0 10px 24px rgba(0, 151, 255, 0.14) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.admin-page .form-control:focus,
.admin-page .form-select:focus,
.rich-text-surface:focus,
.tag-input-control:focus-within,
.admin-search-control:focus-within,
.admin-username-control:focus-within {
  border-color: rgba(0, 190, 255, 0.62) !important;
  box-shadow: 0 0 0 0.22rem rgba(0, 190, 255, 0.16) !important;
}

.form-check-input:checked,
.admin-page .form-check-input:checked {
  background-color: var(--ph-primary) !important;
  border-color: var(--ph-primary) !important;
}

.hero-panel,
.search-hero,
.social-hero,
.faq-hero,
.dashboard-hero,
.profile-hero,
.profile-completion-card,
.upload-section,
.native-ad-shell,
.admin-newsletter-setting,
.settings-account-intro {
  background:
    radial-gradient(circle at 88% 20%, rgba(0, 190, 255, 0.13), transparent 260px),
    radial-gradient(circle at 64% 100%, rgba(0, 119, 255, 0.07), transparent 260px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.96)) !important;
  border-color: rgba(0, 148, 255, 0.16) !important;
}

.prompt-card,
.community-result-card,
.collection-card,
.collection-settings-panel,
.dashboard-prompt-card,
.dashboard-tried-card,
.dashboard-continue-card,
.settings-card,
.settings-overview-card,
.settings-link-card,
.comments-card,
.prompt-detail-card,
.native-ad-card,
.cookie-notice,
.admin-page .card,
.admin-page .admin-filter-card,
.admin-page .admin-editor-card,
.admin-page .admin-content-card,
.admin-page .admin-user-center-card,
.admin-page .admin-report-card,
.admin-page .admin-members-filter,
.admin-page .admin-member-list,
.admin-page .newsletter-campaign-row,
.admin-page .social-platform-settings,
.admin-page .advertisement-admin-row {
  border-color: rgba(0, 148, 255, 0.13) !important;
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.07) !important;
}

.prompt-card:hover,
.community-result-card:hover,
.collection-card:hover,
.settings-link-card:hover,
.dashboard-prompt-card:hover,
.native-ad-card:hover {
  border-color: rgba(0, 190, 255, 0.28) !important;
  box-shadow: 0 14px 34px rgba(0, 119, 255, 0.12) !important;
}

.ai-tool-badge,
.tag-badge,
.prompt-tag,
.badge-soft-primary,
.report-reason-badge,
.native-ad-label-bar,
.shared-prompt-label,
.social-hub-admin-meta .is-pinned {
  background: rgba(0, 190, 255, 0.1) !important;
  border-color: rgba(0, 190, 255, 0.2) !important;
  color: var(--ph-primary-dark) !important;
}

.native-ad-label-bar,
.native-ad-label-bar.is-unpaid {
  background: linear-gradient(90deg, rgba(0, 190, 255, 0.12), rgba(0, 119, 255, 0.08)) !important;
  color: var(--ph-primary-dark) !important;
}

.prompt-card-action.is-liked,
.prompt-card-action.is-liked:hover,
.prompt-card-action.is-liked:focus-visible {
  color: #e11d48 !important;
}

.prompt-card-action.is-saved,
.prompt-card-action.is-favorited,
.prompt-card-action.is-result,
.prompt-card-action.is-saved:hover,
.prompt-card-action.is-favorited:hover,
.prompt-card-action.is-result:hover {
  color: var(--ph-primary-dark) !important;
}

.scroll-nav-arrow,
.mobile-header-icon,
.navbar-toggler,
.mobile-admin-icon,
.mobile-bottom-nav a.is-active,
.mobile-bottom-nav button.is-active {
  color: var(--ph-primary-dark) !important;
}

html[data-theme="dark"] .app-nav,
html[data-theme="dark"] .app-footer,
html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-account-sheet,
html[data-theme="dark"] .mobile-admin-menu,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .toast {
  background: rgba(36, 37, 38, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .search-hero,
html[data-theme="dark"] .social-hero,
html[data-theme="dark"] .faq-hero,
html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .profile-hero,
html[data-theme="dark"] .profile-completion-card,
html[data-theme="dark"] .upload-section,
html[data-theme="dark"] .native-ad-shell,
html[data-theme="dark"] .admin-newsletter-setting,
html[data-theme="dark"] .settings-account-intro {
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 190, 255, 0.12), transparent 280px),
    linear-gradient(180deg, #242526, #242526) !important;
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .prompt-card,
html[data-theme="dark"] .community-result-card,
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .collection-settings-panel,
html[data-theme="dark"] .dashboard-prompt-card,
html[data-theme="dark"] .dashboard-tried-card,
html[data-theme="dark"] .dashboard-continue-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .settings-overview-card,
html[data-theme="dark"] .settings-link-card,
html[data-theme="dark"] .comments-card,
html[data-theme="dark"] .prompt-detail-card,
html[data-theme="dark"] .native-ad-card,
html[data-theme="dark"] .cookie-notice,
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .comment-form,
html[data-theme="dark"] .comment-image-callout,
html[data-theme="dark"] .comment-shared-prompt,
html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-page .card,
html[data-theme="dark"] .admin-page .admin-filter-card,
html[data-theme="dark"] .admin-page .admin-editor-card,
html[data-theme="dark"] .admin-page .admin-content-card,
html[data-theme="dark"] .admin-page .admin-user-center-card,
html[data-theme="dark"] .admin-page .admin-report-card,
html[data-theme="dark"] .admin-page .admin-members-filter,
html[data-theme="dark"] .admin-page .admin-member-list,
html[data-theme="dark"] .admin-page .newsletter-campaign-row,
html[data-theme="dark"] .admin-page .social-platform-settings,
html[data-theme="dark"] .admin-page .advertisement-admin-row {
  background: #242526 !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .prompt-card:hover,
html[data-theme="dark"] .community-result-card:hover,
html[data-theme="dark"] .collection-card:hover,
html[data-theme="dark"] .settings-link-card:hover,
html[data-theme="dark"] .dashboard-prompt-card:hover,
html[data-theme="dark"] .native-ad-card:hover {
  border-color: rgba(0, 190, 255, 0.34) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .tag-input-control,
html[data-theme="dark"] .rich-text-surface,
html[data-theme="dark"] .admin-page .form-control,
html[data-theme="dark"] .admin-page .form-select,
html[data-theme="dark"] .admin-search-control,
html[data-theme="dark"] .admin-username-control {
  background-color: #18191a !important;
  border-color: #3a3b3c !important;
  color: #f2f3f5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder {
  color: #8a8d91 !important;
}

html[data-theme="dark"] .form-text,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] small,
html[data-theme="dark"] p,
html[data-theme="dark"] .prompt-card-date,
html[data-theme="dark"] .native-ad-description,
html[data-theme="dark"] .comment-meta {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] .navbar .nav-link,
html[data-theme="dark"] .dashboard-nav .nav-link,
html[data-theme="dark"] .settings-nav a,
html[data-theme="dark"] .admin-page h1,
html[data-theme="dark"] .admin-page h2,
html[data-theme="dark"] .admin-page h3,
html[data-theme="dark"] .admin-page strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .btn-outline-primary,
html[data-theme="dark"] .hero-panel .btn-outline-primary,
html[data-theme="dark"] .admin-page .btn-outline-primary,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .settings-nav a,
html[data-theme="dark"] .dashboard-nav .nav-link,
html[data-theme="dark"] .tab-filter,
html[data-theme="dark"] .feed-tabs .nav-link {
  background: #303134 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
}

html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus-visible,
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus-visible,
html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .btn-light:focus-visible,
html[data-theme="dark"] .settings-nav a:hover,
html[data-theme="dark"] .settings-nav a:focus-visible,
html[data-theme="dark"] .dashboard-nav .nav-link:hover,
html[data-theme="dark"] .feed-tabs .nav-link:hover,
html[data-theme="dark"] .tab-filter:hover {
  background: #3a3b3c !important;
  border-color: rgba(0, 190, 255, 0.34) !important;
  color: #0077ff !important;
}

html[data-theme="dark"] .dashboard-nav .nav-link.active,
html[data-theme="dark"] .dashboard-nav .nav-link.is-active,
html[data-theme="dark"] .settings-nav a.active,
html[data-theme="dark"] .settings-nav a.is-active,
html[data-theme="dark"] .tab-filter.is-active,
html[data-theme="dark"] .feed-tabs .nav-link.active,
html[data-theme="dark"] .feed-tabs .nav-link.is-active,
html[data-theme="dark"] .nav-pills .nav-link.active,
html[data-theme="dark"] .nav-pills .show > .nav-link,
html[data-theme="dark"] .admin-sidebar .list-group-item.active,
html[data-theme="dark"] .advertisement-status-tabs a.is-active {
  background: var(--ph-gradient) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .ai-tool-badge,
html[data-theme="dark"] .tag-badge,
html[data-theme="dark"] .prompt-tag,
html[data-theme="dark"] .badge-soft-primary,
html[data-theme="dark"] .report-reason-badge,
html[data-theme="dark"] .native-ad-label-bar,
html[data-theme="dark"] .shared-prompt-label {
  background: rgba(0, 190, 255, 0.12) !important;
  border-color: rgba(0, 190, 255, 0.22) !important;
  color: #0077ff !important;
}

html[data-theme="dark"] .mobile-header-icon,
html[data-theme="dark"] .navbar-toggler,
html[data-theme="dark"] .mobile-admin-icon,
html[data-theme="dark"] .scroll-nav-arrow {
  background: #303134 !important;
  border-color: #4e4f50 !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .mobile-header-icon:hover,
html[data-theme="dark"] .navbar-toggler:hover,
html[data-theme="dark"] .mobile-admin-icon:hover,
html[data-theme="dark"] .scroll-nav-arrow:hover {
  color: #0077ff !important;
  border-color: rgba(0, 190, 255, 0.34) !important;
}

html[data-theme="dark"] .mobile-notification-badge,
html[data-theme="dark"] .mobile-admin-badge,
html[data-theme="dark"] .nav-notification-badge,
html[data-theme="dark"] .nav-admin-badge,
html[data-theme="dark"] .admin-nav-badge,
html[data-theme="dark"] [data-notification-badge],
html[data-theme="dark"] [data-admin-task-badge] {
  background: #dc3545 !important;
  background-image: none !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .native-ad-label-bar,
html[data-theme="dark"] .native-ad-label-bar.is-unpaid {
  background: linear-gradient(90deg, rgba(0, 190, 255, 0.16), rgba(0, 119, 255, 0.1)) !important;
  color: #8fe4ff !important;
}

html[data-theme="dark"] .scroll-nav-shell.has-overflow::before {
  background: linear-gradient(90deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

html[data-theme="dark"] .scroll-nav-shell.has-overflow::after {
  background: linear-gradient(270deg, #18191a 25%, rgba(24, 25, 26, 0)) !important;
}

/* Promptalo Sky Theme final guard */
html body .btn-primary,
html body .btn-gradient,
html body .btn-create,
html body .nav-create-link,
html body .mobile-bottom-nav .create-link,
html body .hero-panel .btn-primary,
html body .prompt-copy-button,
html body .native-ad-cta,
html body .admin-page .btn-primary,
html[data-theme="dark"] body .btn-primary,
html[data-theme="dark"] body .btn-gradient,
html[data-theme="dark"] body .btn-create,
html[data-theme="dark"] body .nav-create-link,
html[data-theme="dark"] body .mobile-bottom-nav .create-link,
html[data-theme="dark"] body .hero-panel .btn-primary,
html[data-theme="dark"] body .prompt-copy-button,
html[data-theme="dark"] body .native-ad-cta,
html[data-theme="dark"] body .admin-page .btn-primary,
html body .discovery-tabs > a.is-active,
html body .dashboard-section-nav > a.is-active,
html body .nav-pills .nav-link.active,
html body .feed-tabs .nav-link.active,
html body .feed-tabs .nav-link.is-active,
html body .dashboard-nav .nav-link.active,
html body .dashboard-nav .nav-link.is-active,
html body .settings-nav a.active,
html body .settings-nav a.is-active,
html body .tab-filter.is-active,
html body .advertisement-status-tabs a.is-active,
html[data-theme="dark"] body .discovery-tabs > a.is-active,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active,
html[data-theme="dark"] body .nav-pills .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.active,
html[data-theme="dark"] body .feed-tabs .nav-link.is-active,
html[data-theme="dark"] body .dashboard-nav .nav-link.active,
html[data-theme="dark"] body .dashboard-nav .nav-link.is-active,
html[data-theme="dark"] body .settings-nav a.active,
html[data-theme="dark"] body .settings-nav a.is-active,
html[data-theme="dark"] body .tab-filter.is-active,
html[data-theme="dark"] body .advertisement-status-tabs a.is-active {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

html body .discovery-tabs > a.is-active *,
html body .dashboard-section-nav > a.is-active *,
html[data-theme="dark"] body .discovery-tabs > a.is-active *,
html[data-theme="dark"] body .dashboard-section-nav > a.is-active * {
  color: #ffffff !important;
}

html body .gradient-text,
html body .hero-panel .gradient-text,
html body .faq-hero .gradient-text,
html body .social-hero .gradient-text {
  background: linear-gradient(90deg, #0077ff, #00beff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-theme="dark"] body .form-control:focus,
html[data-theme="dark"] body .form-select:focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] body .search-hero .form-control:focus,
html[data-theme="dark"] body .search-hero .form-select:focus {
  border-color: rgba(0, 190, 255, 0.62) !important;
  box-shadow: 0 0 0 0.22rem rgba(0, 190, 255, 0.16) !important;
}

html[data-theme="dark"] body .brand-wordmark-text {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .brand-wordmark-text span {
  color: #0077ff !important;
}

/* Neutral content contract: sky blue is reserved for CTAs and active states. */
html body .navbar .nav-link,
html body .app-nav .nav-link,
html body .footer-links a,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link),
html body .prompt-title-link,
html body .prompt-card h2,
html body .prompt-card h2 a,
html body .prompt-card-author-wrap > a,
html body .community-result-title,
html body .native-ad-title,
html body .tag-link,
html body .prompt-card .tag-link,
html body .explore-tile-tags span,
html body .dashboard-prompt-title {
  color: #344156 !important;
}

html body .navbar .nav-link:hover,
html body .navbar .nav-link:focus-visible,
html body .app-nav .nav-link:hover,
html body .app-nav .nav-link:focus-visible,
html body .footer-links a:hover,
html body .footer-links a:focus-visible,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):hover,
html body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):focus-visible,
html body .prompt-title-link:hover,
html body .prompt-title-link:focus-visible,
html body .prompt-card h2 a:hover,
html body .prompt-card h2 a:focus-visible,
html body .community-result-title:hover,
html body .community-result-title:focus-visible,
html body .dashboard-prompt-title:hover,
html body .dashboard-prompt-title:focus-visible {
  color: #111827 !important;
}

html body .discovery-tabs > a:not(.is-active),
html body .feed-tabs .nav-link:not(.active):not(.is-active),
html body .dashboard-section-nav > a:not(.is-active),
html body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result),
html body .prompt-card-views {
  color: #5f6c7d !important;
}

html body .discovery-tabs > a:not(.is-active):hover,
html body .discovery-tabs > a:not(.is-active):focus-visible,
html body .feed-tabs .nav-link:not(.active):not(.is-active):hover,
html body .feed-tabs .nav-link:not(.active):not(.is-active):focus-visible,
html body .dashboard-section-nav > a:not(.is-active):hover,
html body .dashboard-section-nav > a:not(.is-active):focus-visible,
html body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result):hover,
html body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result):focus-visible {
  color: #1f2937 !important;
}

html body .tag-link,
html body .prompt-card .tag-link {
  background: #f6f8fb !important;
  border-color: #dfe5ee !important;
}

html body .tag-link:hover,
html body .tag-link:focus-visible,
html body .prompt-card .tag-link:hover,
html body .prompt-card .tag-link:focus-visible {
  background: #eef2f6 !important;
  border-color: #cfd7e3 !important;
  color: #111827 !important;
}

html[data-theme="dark"] body .navbar .nav-link,
html[data-theme="dark"] body .app-nav .nav-link,
html[data-theme="dark"] body .footer-links a,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link),
html[data-theme="dark"] body .prompt-title-link,
html[data-theme="dark"] body .prompt-card h2,
html[data-theme="dark"] body .prompt-card h2 a,
html[data-theme="dark"] body .prompt-card-author-wrap > a,
html[data-theme="dark"] body .community-result-title,
html[data-theme="dark"] body .native-ad-title,
html[data-theme="dark"] body .tag-link,
html[data-theme="dark"] body .prompt-card .tag-link,
html[data-theme="dark"] body .explore-tile-tags span,
html[data-theme="dark"] body .dashboard-prompt-title {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .navbar .nav-link:hover,
html[data-theme="dark"] body .navbar .nav-link:focus-visible,
html[data-theme="dark"] body .app-nav .nav-link:hover,
html[data-theme="dark"] body .app-nav .nav-link:focus-visible,
html[data-theme="dark"] body .footer-links a:hover,
html[data-theme="dark"] body .footer-links a:focus-visible,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):hover,
html[data-theme="dark"] body .app-footer a:not(.footer-social-link):not(.footer-cookie-link):focus-visible,
html[data-theme="dark"] body .prompt-title-link:hover,
html[data-theme="dark"] body .prompt-title-link:focus-visible,
html[data-theme="dark"] body .prompt-card h2 a:hover,
html[data-theme="dark"] body .prompt-card h2 a:focus-visible,
html[data-theme="dark"] body .community-result-title:hover,
html[data-theme="dark"] body .community-result-title:focus-visible,
html[data-theme="dark"] body .dashboard-prompt-title:hover,
html[data-theme="dark"] body .dashboard-prompt-title:focus-visible {
  color: #ffffff !important;
}

html[data-theme="dark"] body .discovery-tabs > a:not(.is-active),
html[data-theme="dark"] body .feed-tabs .nav-link:not(.active):not(.is-active),
html[data-theme="dark"] body .dashboard-section-nav > a:not(.is-active),
html[data-theme="dark"] body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result),
html[data-theme="dark"] body .prompt-card-views {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] body .discovery-tabs > a:not(.is-active):hover,
html[data-theme="dark"] body .discovery-tabs > a:not(.is-active):focus-visible,
html[data-theme="dark"] body .feed-tabs .nav-link:not(.active):not(.is-active):hover,
html[data-theme="dark"] body .feed-tabs .nav-link:not(.active):not(.is-active):focus-visible,
html[data-theme="dark"] body .dashboard-section-nav > a:not(.is-active):hover,
html[data-theme="dark"] body .dashboard-section-nav > a:not(.is-active):focus-visible,
html[data-theme="dark"] body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result):hover,
html[data-theme="dark"] body .prompt-card-action:not(.is-liked):not(.is-saved):not(.is-favorited):not(.is-result):focus-visible {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] body .tag-link,
html[data-theme="dark"] body .prompt-card .tag-link {
  background: #303134 !important;
  border-color: #4e4f50 !important;
}

html[data-theme="dark"] body .tag-link:hover,
html[data-theme="dark"] body .tag-link:focus-visible,
html[data-theme="dark"] body .prompt-card .tag-link:hover,
html[data-theme="dark"] body .prompt-card .tag-link:focus-visible {
  background: #3a3b3c !important;
  border-color: #5a5c60 !important;
  color: #ffffff !important;
}

/* Notification inbox */
.notifications-page {
  max-width: 1140px;
}

.notification-card {
  overflow: clip;
}

.notification-card .notification-item,
.notification-card .notification-main {
  max-width: 100%;
}

.notification-card .notification-main,
.notification-card .notification-main:visited {
  color: var(--ph-ink) !important;
}

.notification-card .notification-item-with-actions:not(.notification-item-system) {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar main controls"
    ". quick controls";
  align-items: center;
  gap: 0.18rem 0.7rem;
  min-width: 0;
  padding: 0.68rem 0.85rem;
}

.notification-card .notification-item-with-actions:not(.notification-item-system) > .notification-avatar-link,
.notification-card .notification-item-with-actions:not(.notification-item-system) > .avatar,
.notification-card .notification-item-with-actions:not(.notification-item-system) > .notification-actor-stack {
  grid-area: avatar;
  align-self: center;
  justify-self: start;
  margin-left: 0;
}

.notification-card .notification-item-with-actions:not(.notification-item-system) > .notification-main {
  grid-area: main;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0;
}

.notification-card .notification-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.34;
}

.notification-card .notification-actor-summary {
  font-weight: 800;
}

.notification-card .notification-main:hover,
.notification-card .notification-main:focus-visible,
.notification-card .notification-item:hover,
.notification-card .notification-item:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.notification-card .notification-main:hover .notification-actor-summary,
.notification-card .notification-main:focus-visible .notification-actor-summary {
  color: #0077ff;
}

.notification-card .notification-actor-stack {
  position: relative;
  display: flex;
  align-items: center;
  width: 46px;
  min-width: 46px;
  padding-left: 1px;
}

.notification-card .notification-stack-avatar-link {
  position: relative;
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: -14px;
  border-radius: 50%;
}

.notification-card .notification-stack-avatar-link:first-child {
  margin-left: 0;
}

.notification-card .notification-stack-avatar-link:hover,
.notification-card .notification-stack-avatar-link:focus-visible {
  z-index: 3;
  outline: 2px solid rgba(0, 119, 255, 0.42);
  outline-offset: 2px;
}

.notification-card .notification-actor-stack .avatar {
  width: 32px;
  height: 32px;
  margin: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.14);
}

.notification-card .notification-actor-more {
  position: absolute;
  right: -2px;
  bottom: -7px;
  z-index: 4;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #ffffff;
  font-size: 0.62rem;
}

.notification-card .notification-preview-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(31, 44, 71, 0.08);
  border-radius: 8px;
}

.notification-card .notification-meta-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.35rem;
  margin-top: 0.06rem;
}

.notification-card .notification-meta-line .notification-context-title {
  min-width: 0;
  max-width: 34rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-card .notification-created-at {
  flex: 0 0 auto;
  white-space: nowrap;
}

.notification-card .notification-context-title + .notification-created-at::before {
  content: "\00b7";
  margin-right: 0.35rem;
  color: var(--ph-muted);
}

.notification-card .notification-comment-preview {
  display: -webkit-box !important;
  margin-top: 0.08rem;
  overflow: hidden;
  color: var(--ph-muted);
  font-size: 0.9rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.notification-card .notification-comment-preview::before {
  content: "\201e";
}

.notification-card .notification-comment-preview::after {
  content: "\201c";
}

.notification-card .notification-inline-actions {
  grid-area: quick;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.65rem;
  min-width: 0;
  margin-top: 0.08rem;
}

.notification-card .notification-inline-actions form {
  margin: 0;
}

.notification-card .notification-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 28px;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ph-muted);
  font-size: 0.8rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}

.notification-card .notification-inline-action:hover,
.notification-card .notification-inline-action:focus-visible {
  color: #0077ff;
}

.notification-card .notification-inline-action.is-liked {
  color: #e52345;
}

.notification-card .notification-inline-count::before {
  content: "\00b7";
  margin-right: 0.28rem;
}

.notification-card .notification-inline-count.is-empty {
  display: none;
}

.notification-card .notification-actions {
  grid-area: controls;
  align-self: center;
  display: flex;
  gap: 0.2rem;
  padding: 0;
}

.notification-card .notification-action-btn {
  width: 32px;
  height: 32px;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.notification-card .notification-action-btn:hover,
.notification-card .notification-action-btn:focus-visible {
  background: rgba(0, 119, 255, 0.08) !important;
  border-color: transparent !important;
  color: #0077ff !important;
  transform: none;
}

.notification-card .notification-action-btn.is-danger:hover,
.notification-card .notification-action-btn.is-danger:focus-visible {
  background: rgba(220, 53, 69, 0.08) !important;
  color: #b42335 !important;
}

html[data-theme="dark"] .notification-card .notification-actor-stack .avatar,
html[data-theme="dark"] .notification-card .notification-actor-more {
  border-color: #242526;
}

html[data-theme="dark"] .notification-card .notification-action-btn {
  color: #dfe3ea !important;
}

html[data-theme="dark"] .notification-card .notification-main,
html[data-theme="dark"] .notification-card .notification-main:visited {
  color: #e4e6eb !important;
}

html[data-theme="dark"] .notification-card .notification-comment-preview,
html[data-theme="dark"] .notification-card .notification-inline-action {
  color: #b0b3b8;
}

html[data-theme="dark"] .notification-card .notification-inline-action:hover,
html[data-theme="dark"] .notification-card .notification-inline-action:focus-visible {
  color: #67b3ff;
}

html[data-theme="dark"] .notification-card .notification-inline-action.is-liked {
  color: #ff6b81;
}

html[data-theme="dark"] .notification-card .notification-action-btn:hover,
html[data-theme="dark"] .notification-card .notification-action-btn:focus-visible {
  background: rgba(0, 119, 255, 0.14) !important;
  color: #67b3ff !important;
}

html[data-theme="dark"] .notification-card .notification-action-btn.is-danger:hover,
html[data-theme="dark"] .notification-card .notification-action-btn.is-danger:focus-visible {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ffb4be !important;
}

@media (max-width: 575.98px) {
  .notifications-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .notification-card {
    border-radius: 12px;
  }

  .notification-card .notification-item-with-actions:not(.notification-item-system) {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    grid-template-areas:
      "avatar main controls"
      ". quick controls";
    align-items: start;
    gap: 0.18rem 0.55rem;
    overflow: hidden;
    padding: 0.68rem 0.7rem;
  }

  .notification-card .notification-avatar-link,
  .notification-card .notification-item-with-actions > .avatar,
  .notification-card .notification-actor-stack {
    width: 44px;
    min-width: 44px;
  }

  .notification-card .notification-main {
    overflow: hidden;
    gap: 0.5rem;
  }

  .notification-card .notification-copy {
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .notification-card .notification-copy strong,
  .notification-card .notification-system-body {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .notification-card .notification-context-title {
    max-width: 100%;
  }

  .notification-card .notification-meta-line {
    gap: 0.28rem;
  }

  .notification-card .notification-meta-line .notification-context-title {
    max-width: min(50vw, 14rem);
  }

  .notification-card .notification-comment-preview {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .notification-card .notification-inline-actions {
    gap: 0.1rem 0.8rem;
    margin-top: 0.12rem;
  }

  .notification-card .notification-inline-action {
    min-height: 32px;
    font-size: 0.79rem;
  }

  .notification-card .notification-preview-thumb {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .notification-card .notification-actions {
    align-self: start;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: -0.1rem;
  }

  .notification-card .notification-action-btn {
    width: 30px;
    height: 30px;
  }

  .notification-card .notification-item-system.notification-item-with-actions {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    grid-template-areas:
      "avatar main controls"
      ". poll ."
      ". actions .";
    gap: 0.55rem 0.65rem;
    padding: 0.85rem 0.75rem;
  }

  .notification-card .notification-item-system.notification-item-with-actions > .notification-actions {
    align-self: start;
    justify-content: flex-start;
  }
}

/* Settings darkmode: notifications and interests */
html[data-theme="dark"] .settings-notifications-page .settings-card,
html[data-theme="dark"] .settings-interests-page .interest-form {
  background: #242526 !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] .settings-notifications-page .settings-card-header,
html[data-theme="dark"] .settings-notifications-page .settings-card-footer,
html[data-theme="dark"] .settings-interests-page .interest-form-footer {
  background: transparent !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .settings-notifications-page .notification-preference-list {
  background: transparent !important;
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .settings-notifications-page .notification-preference-row {
  background: transparent !important;
  background-image: none !important;
  border-color: #3a3b3c !important;
  color: #e4e6eb !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .settings-notifications-page .notification-preference-row:hover {
  background: #2a2b2d !important;
}

html[data-theme="dark"] .settings-notifications-page .notification-preference-row strong {
  color: #f2f3f5 !important;
}

html[data-theme="dark"] .settings-notifications-page .notification-preference-row small,
html[data-theme="dark"] .settings-notifications-page .settings-card-header p,
html[data-theme="dark"] .settings-interests-page .interest-form-footer,
html[data-theme="dark"] .settings-interests-page .interest-chip small {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .settings-notifications-page .settings-channel-labels {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .settings-notifications-page .settings-newsletter-preference {
  background: transparent !important;
  border-top-color: #4e4f50 !important;
}

html[data-theme="dark"] .settings-notifications-page .settings-newsletter-status {
  color: #8fe4ff !important;
}

html[data-theme="dark"] .settings-notifications-page .form-check-input {
  background-color: #18191a !important;
  border-color: #6b6d70 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .settings-notifications-page .form-check-input:checked {
  background-color: #00a6ff !important;
  border-color: #00a6ff !important;
}

html[data-theme="dark"] .settings-notifications-page .form-check-input:focus-visible {
  border-color: #00beff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 190, 255, 0.16) !important;
}

html[data-theme="dark"] .settings-notifications-page .form-check-input:disabled {
  background-color: #303134 !important;
  border-color: #4e4f50 !important;
  opacity: 0.56;
}

html[data-theme="dark"] .settings-interests-page .interest-picker {
  background: transparent !important;
}

html[data-theme="dark"] .settings-interests-page .interest-chip span {
  background: #2f3033 !important;
  background-image: none !important;
  border-color: #4e4f50 !important;
  color: #d7dade !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .settings-interests-page .interest-chip:hover span {
  background: #363739 !important;
  border-color: #6b6d70 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .settings-interests-page .interest-chip input:checked + span {
  background: rgba(0, 166, 255, 0.14) !important;
  background-image: none !important;
  border-color: #00a6ff !important;
  color: #8fe4ff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 190, 255, 0.08) !important;
}

html[data-theme="dark"] .settings-interests-page .interest-chip input:checked + span small {
  color: #bfefff !important;
}

html[data-theme="dark"] .settings-interests-page .interest-chip input:focus-visible + span {
  outline: 0 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 190, 255, 0.16) !important;
}

@media (max-width: 575.98px) {
  html[data-theme="dark"] .settings-notifications-page .notification-preference-row {
    border-radius: 0 !important;
  }

  html[data-theme="dark"] .settings-interests-page .interest-chip span {
    min-height: 40px;
  }
}

/* Admin content moderation */
.admin-content-moderation {
  --admin-content-border: #dce4ed;
  --admin-content-surface: #ffffff;
  --admin-content-soft: #f6f8fb;
  --admin-content-muted: #687589;
}

.admin-content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.admin-content-heading h1 {
  margin: 0.15rem 0 0.25rem;
  color: #111827;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.admin-content-heading p {
  margin: 0;
  color: var(--admin-content-muted);
}

.admin-page-eyebrow {
  color: #0077ff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-content-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-content-kpi {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  box-shadow: 0 8px 24px rgba(28, 44, 70, 0.05);
}

.admin-content-kpi span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--admin-content-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-content-kpi span i {
  color: #0077ff;
}

.admin-content-kpi strong {
  display: block;
  margin-top: 0.25rem;
  color: #172033;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-content-kpi.is-alert span i,
.admin-content-kpi.is-alert strong {
  color: #d83343;
}

.admin-content-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  overflow-x: auto;
  border: 1px solid var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  scrollbar-width: none;
}

.admin-content-tabs::-webkit-scrollbar {
  display: none;
}

.admin-content-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.48rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #405068;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.admin-content-tabs a:hover,
.admin-content-tabs a:focus-visible {
  border-color: #cdd8e6;
  background: #f4f7fa;
  color: #172033;
}

.admin-content-tabs a.active {
  border-color: rgba(0, 119, 255, 0.3);
  background: rgba(0, 119, 255, 0.09);
  color: #0067df;
}

.admin-content-tabs small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e9eef5;
  color: #5f6d80;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-content-tabs a.active small {
  background: #0077ff;
  color: #ffffff;
}

.admin-content-filter {
  margin-bottom: 1rem;
}

.admin-content-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 0.8fr)) auto;
  gap: 0.8rem;
  align-items: end;
}

.admin-content-filter-grid.is-results {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(160px, 0.8fr)) auto;
}

.admin-content-filter .form-label {
  margin-bottom: 0.35rem;
  color: #344157;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-content-filter-submit {
  min-width: 108px;
}

.admin-content-filter-submit i {
  margin-right: 0.35rem;
}

.admin-content-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: #617086;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-content-filter-reset:hover {
  color: #0077ff;
}

.admin-content-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.65rem;
  color: var(--admin-content-muted);
  font-size: 0.78rem;
}

.admin-content-list-header strong {
  color: #273348;
  font-size: 0.9rem;
}

.admin-content-list-header div span {
  margin-left: 0.25rem;
}

.admin-content-moderation .admin-content-list {
  gap: 0.8rem;
}

.admin-content-moderation .admin-content-card {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  border-color: var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  box-shadow: 0 8px 26px rgba(29, 46, 73, 0.05);
}

.admin-content-card.is-removed,
.admin-result-card.is-removed {
  border-left: 3px solid #d83343;
}

.admin-content-moderation .admin-content-media {
  gap: 0.45rem;
}

.admin-content-moderation .admin-content-thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: #edf2f7;
  color: #8090a5;
  text-align: left;
  cursor: zoom-in;
}

.admin-content-moderation .admin-content-thumb:disabled {
  cursor: default;
}

.admin-content-moderation .admin-content-thumb:not(:disabled):hover,
.admin-content-moderation .admin-content-thumb:not(:disabled):focus-visible {
  border-color: #8ebfff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.admin-content-card-topline,
.admin-content-title-row,
.admin-content-author,
.admin-content-author > a,
.admin-content-badges,
.admin-content-actions,
.admin-content-stats,
.admin-result-danger-actions {
  display: flex;
  align-items: center;
}

.admin-content-card-topline {
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.admin-content-author {
  min-width: 0;
  gap: 0.65rem;
}

.admin-content-author > a {
  min-width: 0;
  gap: 0.5rem;
  color: #152033;
  text-decoration: none;
}

.admin-content-author > a:hover strong {
  color: #0077ff;
}

.admin-content-author > a > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.admin-content-author strong,
.admin-content-author small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content-author strong {
  font-size: 0.84rem;
}

.admin-content-author small,
.admin-content-author time {
  color: var(--admin-content-muted);
  font-size: 0.72rem;
}

.admin-content-badges {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-content-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
}

.admin-content-title-row {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-content-title-row h2 {
  margin: 0;
  color: #172033;
  font-size: 1.03rem;
  line-height: 1.3;
}

.admin-content-excerpt {
  display: -webkit-box;
  margin: 0.45rem 0 0.65rem;
  overflow: hidden;
  color: #556378;
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-content-tags,
.admin-content-stats,
.admin-content-actions,
.admin-result-danger-actions {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-content-tags {
  display: flex;
  margin-bottom: 0.65rem;
}

.admin-content-moderation .tag-pill {
  font-size: 0.68rem;
}

.admin-content-stats {
  margin-top: 0.5rem;
  color: var(--admin-content-muted);
  font-size: 0.74rem;
}

.admin-content-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-content-actions {
  margin-top: 0.75rem;
}

.admin-content-actions .btn,
.admin-result-danger-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-content-moderation-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(120px, 0.55fr) minmax(230px, 2fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: var(--admin-content-soft);
}

.admin-content-moderation-form.is-result-form {
  grid-template-columns: minmax(150px, 0.65fr) minmax(240px, 2fr) auto;
}

.admin-content-moderation-form .form-label {
  margin-bottom: 0.25rem;
  color: #4a586d;
  font-size: 0.7rem;
  font-weight: 750;
}

.admin-content-moderation-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
}

.admin-result-list {
  display: grid;
  gap: 0.8rem;
}

.admin-result-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 8px;
  background: var(--admin-content-surface);
  box-shadow: 0 8px 26px rgba(29, 46, 73, 0.05);
}

.admin-result-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #edf2f7;
  cursor: zoom-in;
}

.admin-result-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-result-image > span {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.72);
  color: #ffffff;
}

.admin-result-main {
  min-width: 0;
}

.admin-result-copy {
  max-width: 900px;
  margin: 0.35rem 0 0.7rem;
  color: #344157;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-line;
}

.admin-result-copy.is-empty {
  color: var(--admin-content-muted);
  font-style: italic;
}

.admin-result-source {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  max-width: 650px;
  padding: 0.5rem;
  border: 1px solid var(--admin-content-border);
  border-radius: 7px;
  background: var(--admin-content-soft);
  color: #1b2739;
  text-decoration: none;
}

.admin-result-source:hover,
.admin-result-source:focus-visible {
  border-color: #8ebfff;
  color: #0077ff;
}

.admin-result-source-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: #e7edf5;
  color: #8391a5;
}

.admin-result-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-result-source > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.admin-result-source small,
.admin-result-source strong,
.admin-result-source em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-result-source small {
  color: #0077ff;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-result-source strong {
  font-size: 0.8rem;
}

.admin-result-source em {
  color: var(--admin-content-muted);
  font-size: 0.7rem;
  font-style: normal;
}

.admin-result-danger-actions {
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.admin-content-empty {
  min-height: 160px;
  border: 1px dashed var(--admin-content-border);
  background: var(--admin-content-surface);
}

html[data-theme="dark"] .admin-content-moderation {
  --admin-content-border: #444548;
  --admin-content-surface: #242526;
  --admin-content-soft: #2c2d2f;
  --admin-content-muted: #aeb3bb;
}

html[data-theme="dark"] .admin-content-heading h1,
html[data-theme="dark"] .admin-content-kpi strong,
html[data-theme="dark"] .admin-content-list-header strong,
html[data-theme="dark"] .admin-content-title-row h2,
html[data-theme="dark"] .admin-content-author > a,
html[data-theme="dark"] .admin-result-copy,
html[data-theme="dark"] .admin-result-source {
  color: #f4f5f6;
}

html[data-theme="dark"] .admin-content-heading p,
html[data-theme="dark"] .admin-content-list-header,
html[data-theme="dark"] .admin-content-excerpt,
html[data-theme="dark"] .admin-content-author small,
html[data-theme="dark"] .admin-content-author time,
html[data-theme="dark"] .admin-content-stats,
html[data-theme="dark"] .admin-result-source em,
html[data-theme="dark"] .admin-result-copy.is-empty {
  color: #b2b6bd;
}

html[data-theme="dark"] .admin-content-kpi,
html[data-theme="dark"] .admin-content-tabs,
html[data-theme="dark"] .admin-content-moderation .admin-content-card,
html[data-theme="dark"] .admin-result-card,
html[data-theme="dark"] .admin-content-empty {
  background: var(--admin-content-surface) !important;
  border-color: var(--admin-content-border) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .admin-content-kpi span,
html[data-theme="dark"] .admin-content-filter .form-label,
html[data-theme="dark"] .admin-content-moderation-form .form-label {
  color: #b9bdc4;
}

html[data-theme="dark"] .admin-content-tabs a {
  color: #c8ccd2;
}

html[data-theme="dark"] .admin-content-tabs a:hover,
html[data-theme="dark"] .admin-content-tabs a:focus-visible {
  border-color: #57595d;
  background: #303133;
  color: #ffffff;
}

html[data-theme="dark"] .admin-content-tabs a.active {
  border-color: rgba(0, 190, 255, 0.5);
  background: rgba(0, 190, 255, 0.12);
  color: #65d7ff;
}

html[data-theme="dark"] .admin-content-tabs small {
  background: #3a3b3e;
  color: #d8dadd;
}

html[data-theme="dark"] .admin-content-tabs a.active small {
  background: #00a6e8;
  color: #071014;
}

html[data-theme="dark"] .admin-content-moderation-form,
html[data-theme="dark"] .admin-result-source {
  border-color: var(--admin-content-border);
  background: var(--admin-content-soft);
}

html[data-theme="dark"] .admin-content-moderation .admin-content-thumb,
html[data-theme="dark"] .admin-result-image,
html[data-theme="dark"] .admin-result-source-thumb {
  border-color: #494b4e;
  background: #1b1c1d;
}

html[data-theme="dark"] .admin-content-moderation .tag-pill {
  border-color: #4a4c50;
  background: #303133;
  color: #e4e6e9;
}

html[data-theme="dark"] .admin-content-moderation .tag-pill:hover {
  border-color: #00beff;
  color: #73ddff;
}

html[data-theme="dark"] .admin-content-moderation .badge.text-bg-light {
  background: #3a3b3e !important;
  color: #e6e8ea !important;
}

@media (max-width: 1199.98px) {
  .admin-content-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-content-filter-grid,
  .admin-content-filter-grid.is-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content-filter-search {
    grid-column: 1 / -1;
  }

  .admin-content-filter-submit {
    min-height: 42px;
  }

  .admin-content-moderation-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content-reason {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .admin-content-heading {
    margin-bottom: 0.85rem;
  }

  .admin-content-heading p {
    font-size: 0.86rem;
  }

  .admin-content-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-content-kpi {
    padding: 0.7rem 0.75rem;
  }

  .admin-content-kpi:last-child {
    grid-column: 1 / -1;
  }

  .admin-content-tabs a {
    flex: 1 0 auto;
    justify-content: center;
  }

  .admin-content-filter-grid,
  .admin-content-filter-grid.is-results {
    grid-template-columns: 1fr;
  }

  .admin-content-filter-search {
    grid-column: auto;
  }

  .admin-content-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .admin-content-moderation .admin-content-card {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .admin-content-moderation .admin-content-media {
    max-width: 300px;
  }

  .admin-content-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-content-moderation-form,
  .admin-content-moderation-form.is-result-form {
    grid-template-columns: 1fr;
  }

  .admin-content-reason {
    grid-column: auto;
  }

  .admin-result-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .admin-result-image {
    align-self: start;
  }

  .admin-result-source {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .admin-result-source-thumb {
    width: 40px;
    height: 40px;
  }

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

@media (max-width: 575.98px) {
  .admin-content-kpi span {
    white-space: normal;
  }

  .admin-content-author {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .admin-content-author > a {
    flex: 1;
  }

  .admin-content-author time {
    white-space: nowrap;
  }

  .admin-content-actions .btn,
  .admin-result-danger-actions form,
  .admin-result-danger-actions .btn {
    width: 100%;
  }

  .admin-content-actions .btn,
  .admin-result-danger-actions .btn {
    justify-content: center;
  }

  .admin-result-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .admin-result-image {
    width: 120px;
  }

  .admin-result-card .admin-content-card-topline {
    margin-bottom: 0.4rem;
  }

  .admin-result-card .admin-content-author {
    display: grid;
    gap: 0.25rem;
  }

  .admin-result-card .admin-content-badges {
    gap: 0.25rem;
  }

  .admin-result-copy {
    font-size: 0.8rem;
  }

  .admin-result-source {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-result-source-thumb {
    display: none;
  }

}

/* Onboarding: coherent neutral dark theme */
html[data-theme="dark"] .onboarding-page {
  color: #e4e6eb;
}

html[data-theme="dark"] .onboarding-shell {
  border-color: #3e4042 !important;
  background: #242526 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .onboarding-heading {
  border-bottom-color: #3e4042;
  background: #2b2c2f;
}

html[data-theme="dark"] .onboarding-heading .text-primary {
  color: #00beff !important;
}

html[data-theme="dark"] .onboarding-heading h1,
html[data-theme="dark"] .onboarding-step h2,
html[data-theme="dark"] .onboarding-creator strong {
  color: #f5f6f7 !important;
}

html[data-theme="dark"] .onboarding-heading p,
html[data-theme="dark"] .onboarding-step-head p,
html[data-theme="dark"] .onboarding-avatar-skip,
html[data-theme="dark"] .onboarding-selection-count,
html[data-theme="dark"] .onboarding-footer > span,
html[data-theme="dark"] .onboarding-creator small {
  color: #b0b3b8 !important;
}

html[data-theme="dark"] .onboarding-mark {
  color: #fff;
  background: #0077ff;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.22);
}

html[data-theme="dark"] .onboarding-step {
  border-bottom-color: #3e4042;
  background: #242526;
}

html[data-theme="dark"] .onboarding-step-head > span {
  color: #fff;
  background: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 190, 255, 0.12);
}

html[data-theme="dark"] .onboarding-avatar-picker {
  border-color: #4b4c4f;
  background: #2f3033;
}

html[data-theme="dark"] .onboarding-avatar-preview {
  border-color: #3a3b3e;
  color: #8edfff;
  background: #202122;
  box-shadow: 0 0 0 1px #535457, 0 10px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .onboarding-avatar-camera {
  border-color: #2f3033;
  color: #fff;
  background: #0077ff;
  box-shadow: 0 5px 14px rgba(0, 119, 255, 0.28);
}

html[data-theme="dark"] .onboarding-avatar-actions .btn-primary {
  border-color: #0077ff;
  color: #fff;
  background: #0077ff;
}

html[data-theme="dark"] .onboarding-avatar-actions .btn-primary:hover,
html[data-theme="dark"] .onboarding-avatar-actions .btn-primary:focus-visible {
  border-color: #00a6ff;
  background: #00a6ff;
}

html[data-theme="dark"] .onboarding-avatar-remove {
  color: #b0b3b8;
}

html[data-theme="dark"] .onboarding-avatar-remove:hover,
html[data-theme="dark"] .onboarding-avatar-remove:focus-visible {
  color: #ff6b7c;
}

html[data-theme="dark"] .onboarding-avatar-file {
  color: #8ee0c2;
  background: rgba(46, 164, 125, 0.14);
}

html[data-theme="dark"] .onboarding-page .interest-chip span {
  border-color: #4b4c4f;
  color: #e4e6eb;
  background: #303133;
}

html[data-theme="dark"] .onboarding-page .interest-chip small {
  color: #9da1a8;
}

html[data-theme="dark"] .onboarding-page .interest-chip:hover span {
  border-color: #6a6b6e;
  color: #fff;
  background: #38393c;
}

html[data-theme="dark"] .onboarding-page .interest-chip input:checked + span {
  border-color: #00beff;
  color: #8edfff;
  background: rgba(0, 190, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 190, 255, 0.08);
}

html[data-theme="dark"] .onboarding-page .interest-chip input:checked + span small {
  color: #8edfff;
}

html[data-theme="dark"] .onboarding-page .interest-chip input:focus-visible + span {
  outline: 3px solid rgba(0, 190, 255, 0.28);
  outline-offset: 2px;
}

html[data-theme="dark"] .onboarding-creator {
  border-color: #4b4c4f;
  color: #e4e6eb;
  background: #2f3033;
  transition: border-color 130ms ease, background-color 130ms ease;
}

html[data-theme="dark"] .onboarding-creator:hover {
  border-color: #6a6b6e;
  background: #38393c;
}

html[data-theme="dark"] .onboarding-creator:has(input:checked) {
  border-color: #00beff;
  color: #fff;
  background: rgba(0, 190, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 190, 255, 0.08);
}

html[data-theme="dark"] .onboarding-creator:has(input:focus-visible) {
  outline: 3px solid rgba(0, 190, 255, 0.28);
  outline-offset: 2px;
}

html[data-theme="dark"] .onboarding-creator > i {
  color: #00beff;
}

html[data-theme="dark"] .onboarding-creator:has(input:checked) > i::before {
  content: "\f26a";
}

html[data-theme="dark"] .onboarding-footer {
  border-top: 0;
  background: #242526;
}

html[data-theme="dark"] .onboarding-footer .btn-primary {
  border-color: #0077ff;
  color: #fff;
  background: #0077ff;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.2);
}

html[data-theme="dark"] .onboarding-footer .btn-primary:hover,
html[data-theme="dark"] .onboarding-footer .btn-primary:focus-visible {
  border-color: #00a6ff;
  background: #00a6ff;
}

/* Dashboard result dialog: visible feedback while an image is dragged in. */
.dashboard-result-picker {
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.dashboard-result-picker > span i {
  transition: color 150ms ease, transform 150ms ease;
}

.dashboard-result-picker.is-dragging {
  border-color: #00a8e8 !important;
  background: #eefaff !important;
  box-shadow: 0 0 0 4px rgba(0, 190, 255, 0.14) !important;
  cursor: copy;
}

.dashboard-result-picker.is-dragging > span i {
  color: #0077ff !important;
  transform: translateY(-3px) scale(1.08);
}

html[data-theme="dark"] .dashboard-result-picker.is-dragging {
  border-color: #00beff !important;
  background: #202d33 !important;
  box-shadow: 0 0 0 4px rgba(0, 190, 255, 0.16) !important;
}

html[data-theme="dark"] .dashboard-result-picker.is-dragging > span i {
  color: #8fe4ff !important;
}

@media (max-width: 575.98px) {
  html[data-theme="dark"] .onboarding-shell {
    box-shadow: none !important;
  }

  html[data-theme="dark"] .onboarding-heading {
    gap: 0.75rem;
  }

  html[data-theme="dark"] .onboarding-avatar-picker {
    background: #2b2c2f;
  }

  html[data-theme="dark"] .onboarding-creator {
    min-height: 64px;
  }
}

/* Private messaging */
.messages-page {
  max-width: 1440px;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: clamp(620px, calc(100dvh - 118px), 860px);
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow-sm);
}

.messages-sidebar,
.messages-chat {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}

.messages-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ph-line);
  background: var(--ph-surface);
}

.messages-sidebar-header,
.messages-chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.messages-sidebar-header {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.1rem 0.85rem;
}

.messages-sidebar-header span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ph-primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.messages-sidebar-header h1 {
  margin: 0;
  color: var(--ph-ink);
  font-size: 1.45rem;
  font-weight: 760;
}

.messages-compose-button,
.messages-chat-menu,
.messages-mobile-back,
.message-composer-icon,
.message-emoji-button,
.message-send-button,
.message-item-actions > button,
.message-item-actions .dropdown > button,
.message-item-actions .message-reaction-popover > button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  color: var(--ph-muted);
  background: transparent;
}

.messages-compose-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: var(--ph-surface-soft);
  font-size: 1.05rem;
}

.messages-compose-button:hover,
.messages-compose-button:focus-visible,
.messages-chat-menu:hover,
.messages-chat-menu:focus-visible,
.messages-mobile-back:hover,
.messages-mobile-back:focus-visible,
.message-composer-icon:hover,
.message-composer-icon:focus-within,
.message-emoji-button:hover,
.message-emoji-button:focus-visible,
.message-item-actions button:hover,
.message-item-actions button:focus-visible {
  color: var(--ph-primary-dark);
  outline: 0;
}

.messages-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0 1rem 0.75rem;
  padding: 0.25rem;
  border-radius: 7px;
  background: var(--ph-surface-soft);
}

.messages-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  overflow: hidden;
  padding: 0.55rem 0.35rem;
  border-radius: 5px;
  color: var(--ph-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-tabs a:hover,
.messages-tabs a:focus-visible {
  color: var(--ph-ink);
  outline: 0;
}

.messages-tabs a.is-active {
  color: #fff;
  background: var(--ph-primary-dark);
}

.messages-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.messages-search,
.messages-user-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--ph-line);
  border-radius: 7px;
  background: var(--ph-bg);
}

.messages-search {
  margin: 0 1rem 0.9rem;
  padding: 0 0.8rem;
}

.messages-search i,
.messages-user-search i {
  color: var(--ph-muted);
}

.messages-search input,
.messages-user-search input {
  min-width: 0;
  width: 100%;
  padding: 0.72rem 0;
  border: 0;
  color: var(--ph-ink);
  background: transparent;
  outline: 0;
}

.messages-search:focus-within,
.messages-user-search:focus-within {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px var(--ph-focus);
}

.conversation-list {
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.45rem 0.75rem;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.conversation-list::-webkit-scrollbar,
.message-stream::-webkit-scrollbar,
.message-text-wrap textarea::-webkit-scrollbar,
.messages-user-results::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.conversation-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 72px;
  padding: 0.65rem;
  border-radius: 7px;
  color: var(--ph-ink);
  text-decoration: none;
}

.conversation-list-entry {
  position: relative;
}

.conversation-list-entry.is-archived .conversation-list-item {
  padding-right: 3.1rem;
}

.conversation-restore-form {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  z-index: 2;
  transform: translateY(-50%);
}

.conversation-restore-form button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: transparent;
}

.conversation-restore-form button:hover,
.conversation-restore-form button:focus-visible {
  color: #0077ff;
  background: rgba(0, 190, 255, 0.1);
  outline: 0;
}

.conversation-list-item:hover,
.conversation-list-item:focus-visible {
  color: var(--ph-ink);
  background: var(--ph-surface-soft);
  outline: 0;
}

.conversation-list-item.is-active {
  background: rgba(0, 190, 255, 0.12);
}

.conversation-list-item.is-unavailable .avatar,
.conversation-list-item.is-unavailable .conversation-list-copy {
  opacity: 0.72;
}

.conversation-list-item.is-unavailable .conversation-list-copy small,
.conversation-list-item.is-unavailable .conversation-list-status > i {
  color: var(--ph-muted);
}

.conversation-list-item .avatar {
  width: 48px;
  height: 48px;
}

.conversation-list-copy,
.conversation-list-meta {
  min-width: 0;
}

.conversation-list-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.conversation-list-copy strong,
.conversation-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-list-copy strong {
  color: var(--ph-ink);
  font-size: 0.9rem;
}

.conversation-list-copy small,
.conversation-list-meta time {
  color: var(--ph-muted);
  font-size: 0.74rem;
}

.conversation-list-item.is-unread .conversation-list-copy small,
.conversation-list-item.is-unread .conversation-list-copy strong {
  color: var(--ph-ink);
  font-weight: 750;
}

.conversation-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.conversation-list-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  min-height: 20px;
}

.conversation-list-status > i {
  color: var(--ph-muted);
  font-size: 0.72rem;
}

.conversation-list-meta b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.3rem;
  border-radius: 10px;
  color: #fff;
  background: #dc3545;
  font-size: 0.67rem;
}

.conversation-list-item.is-muted .conversation-list-meta b {
  color: var(--ph-muted);
  background: var(--ph-surface-soft);
  box-shadow: inset 0 0 0 1px var(--ph-line);
}

.messages-list-empty,
.messages-chat-empty {
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--ph-muted);
  text-align: center;
}

.messages-list-empty {
  min-height: 240px;
  padding: 2rem 1.25rem;
}

.messages-list-empty i {
  margin-bottom: 0.65rem;
  color: var(--ph-primary);
  font-size: 1.5rem;
}

.messages-list-empty strong,
.messages-chat-empty h2 {
  color: var(--ph-ink);
}

.messages-list-empty p,
.messages-chat-empty p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}

.messages-chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  contain: inline-size;
  background: var(--ph-bg);
}

.messages-chat-empty {
  flex: 1;
  padding: 2rem;
}

.messages-chat-empty > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border: 1px solid var(--ph-soft-border);
  border-radius: 50%;
  color: var(--ph-primary-dark);
  background: var(--ph-surface);
  font-size: 1.8rem;
}

.messages-chat-empty h2 {
  margin: 0;
  font-size: 1.35rem;
}

.messages-chat-empty .btn {
  margin-top: 1.15rem;
}

.messages-chat-header {
  z-index: 2;
  gap: 0.65rem;
  min-height: 70px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ph-line);
  background: var(--ph-surface);
}

.messages-mobile-back {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
}

.messages-chat-header .avatar {
  width: 42px;
  height: 42px;
}

.messages-chat-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--ph-ink);
  text-decoration: none;
}

.messages-chat-person:hover {
  color: var(--ph-ink);
}

.messages-chat-person strong,
.messages-chat-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-chat-person small {
  color: var(--ph-muted);
  font-size: 0.75rem;
}

.messages-chat-person.is-unavailable {
  cursor: default;
}

.messages-chat-menu {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.message-request-banner {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--ph-soft-border);
  background: var(--ph-surface-soft);
}

.message-request-banner strong {
  color: var(--ph-ink);
}

.message-request-banner p {
  margin: 0.1rem 0 0;
  color: var(--ph-muted);
  font-size: 0.8rem;
}

.message-request-banner > div:last-child {
  display: flex;
  gap: 0.5rem;
}

.message-request-banner.is-outgoing {
  justify-content: center;
  color: var(--ph-muted);
  font-size: 0.82rem;
  text-align: center;
}

.message-stream {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem clamp(0.8rem, 2.5vw, 2rem);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.message-stream-start {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 1.4rem;
}

.message-stream-start span {
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  color: var(--ph-muted);
  background: var(--ph-surface);
  font-size: 0.68rem;
}

.message-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
  max-width: min(76%, 680px);
  margin: 0 0 0.35rem;
}

.message-bubble-row.is-own {
  flex-direction: row-reverse;
  margin-left: auto;
}

.message-bubble {
  position: relative;
  min-width: 74px;
  max-width: 100%;
  overflow: visible;
  padding: 0.58rem 0.72rem 0.36rem;
  border: 1px solid var(--ph-line);
  border-radius: 16px 16px 16px 4px;
  color: var(--ph-ink);
  background: var(--ph-surface);
}

.message-bubble-row.is-own .message-bubble {
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
  background: var(--ph-primary-dark);
}

.message-body {
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-body a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.message-reply-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: -0.18rem -0.18rem 0.5rem;
  padding: 0.4rem 0.52rem;
  border-left: 3px solid var(--ph-primary);
  border-radius: 4px;
  color: var(--ph-muted);
  background: var(--ph-bg);
  font-size: 0.73rem;
}

.message-reply-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-bubble-row.is-own .message-reply-preview {
  border-left-color: rgba(255, 255, 255, 0.9);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.16);
}

.message-retracted {
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.message-image-button {
  display: block;
  overflow: hidden;
  width: min(420px, 100%);
  max-width: 100%;
  max-height: 520px;
  margin: -0.35rem -0.48rem 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.message-image-button img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.message-prompt-preview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: min(320px, 52vw);
  margin-top: 0.55rem;
  padding: 0.45rem;
  border: 1px solid var(--ph-line);
  border-radius: 7px;
  color: var(--ph-ink);
  background: var(--ph-bg);
  text-decoration: none;
}

.message-prompt-preview:hover {
  color: var(--ph-ink);
  border-color: var(--ph-primary);
}

.message-prompt-preview img {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
}

.message-prompt-preview span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.message-prompt-preview small {
  color: var(--ph-primary-dark);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-prompt-preview strong,
.message-prompt-preview em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-prompt-preview strong {
  font-size: 0.8rem;
}

.message-prompt-preview em {
  color: var(--ph-muted);
  font-size: 0.68rem;
  font-style: normal;
}

.message-bubble-row.is-own .message-prompt-preview {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.message-bubble-row.is-own .message-prompt-preview small,
.message-bubble-row.is-own .message-prompt-preview em {
  color: rgba(255, 255, 255, 0.78);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.28rem;
  color: var(--ph-muted);
  font-size: 0.61rem;
}

.message-bubble-row.is-own .message-meta {
  color: rgba(255, 255, 255, 0.72);
}

.message-reaction-summary {
  position: absolute;
  right: 7px;
  bottom: -13px;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.12rem 0.34rem;
  border: 1px solid var(--ph-line);
  border-radius: 10px;
  background: var(--ph-surface);
  box-shadow: 0 2px 8px rgba(6, 20, 38, 0.1);
  font-size: 0.69rem;
  line-height: 1.25;
  white-space: nowrap;
  z-index: 4;
}

.message-bubble-row.is-own .message-reaction-summary {
  right: auto;
  left: 7px;
}

.message-bubble-row:has(.message-reaction-summary) {
  margin-bottom: 1rem;
}

.message-blocked-banner {
  justify-content: flex-start;
}

.message-blocked-banner > i {
  flex: 0 0 auto;
  color: var(--ph-primary-dark);
  font-size: 1.2rem;
}

.message-blocked-banner > div {
  min-width: 0;
  flex: 1 1 auto;
}

.message-blocked-banner > form {
  flex: 0 0 auto;
}

.message-unavailable-banner {
  justify-content: flex-start;
  border-bottom-color: var(--ph-line);
  background: var(--ph-surface-soft);
}

.message-unavailable-banner > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ph-muted);
  background: var(--ph-surface);
  box-shadow: inset 0 0 0 1px var(--ph-line);
  font-size: 1rem;
}

.message-unavailable-banner > div {
  min-width: 0;
}

[data-messaging-app][data-recipient-available="0"] [data-message-reply],
[data-messaging-app][data-recipient-available="0"] [data-message-reaction-toggle],
[data-messaging-app][data-recipient-available="0"] [data-message-reaction-menu] {
  display: none !important;
}

.settings-message-block-link {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin-top: 1rem;
}

.settings-link-meta {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 14px;
  color: var(--ph-primary-dark);
  background: rgba(0, 190, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
}

html[data-theme="dark"] .conversation-restore-form button:hover,
html[data-theme="dark"] .conversation-restore-form button:focus-visible,
html[data-theme="dark"] .settings-link-meta {
  color: #68d7ff;
  background: rgba(0, 190, 255, 0.14);
}

.message-item-actions {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  opacity: 0;
  transition: opacity 120ms ease;
}

.message-bubble-row:hover .message-item-actions,
.message-bubble-row:focus-within .message-item-actions {
  opacity: 1;
}

.message-item-actions > button,
.message-item-actions .dropdown > button,
.message-item-actions .message-reaction-popover > button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.83rem;
}

.message-reaction-menu {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 7px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-width: 238px;
  padding: 0.35rem;
  border: 1px solid var(--ph-line);
  border-radius: 7px;
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow-md);
}

.message-reaction-popover {
  position: relative;
}

.message-reaction-menu[hidden] {
  display: none !important;
}

.message-reaction-menu button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.12rem;
}

.message-reaction-menu button:hover,
.message-reaction-menu button:focus-visible {
  background: var(--ph-surface-soft);
  transform: scale(1.08);
  outline: 0;
}

.message-typing {
  flex: 0 0 auto;
  padding: 0.15rem 1.5rem 0.3rem;
  color: var(--ph-muted);
  font-size: 0.7rem;
}

.message-typing span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--ph-muted);
  animation: messageTyping 1.1s infinite ease-in-out;
}

.message-typing span:nth-child(2) { animation-delay: 0.15s; }
.message-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes messageTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.message-composer {
  position: relative;
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem 0.65rem;
  border-top: 1px solid var(--ph-line);
  background: var(--ph-surface);
}

.message-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  background: var(--ph-bg);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.message-composer-row:focus-within {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px var(--ph-focus);
}

.message-composer-row.is-dragover {
  border-color: var(--ph-primary-dark);
  background: var(--ph-surface-soft);
}

.message-composer-icon,
.message-emoji-button,
.message-send-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.message-composer-icon {
  margin: 0;
  font-size: 1rem;
}

.message-composer-icon input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.message-text-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}

.message-text-wrap textarea {
  display: block;
  width: 100%;
  min-height: 36px;
  max-height: 132px;
  resize: none;
  padding: 0.48rem 2.5rem 0.42rem 0.2rem;
  overflow-y: auto;
  border: 0;
  color: var(--ph-ink);
  background: transparent;
  line-height: 1.35;
  outline: 0;
  scrollbar-width: none;
}

.message-emoji-button {
  position: absolute;
  right: 0;
  bottom: 0;
}

.message-send-button {
  color: #fff;
  background: var(--ph-primary-dark);
}

.message-send-button:hover,
.message-send-button:focus-visible {
  color: #fff;
  background: var(--ph-primary);
}

.message-emoji-picker {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(6, 38px);
  gap: 0.15rem;
  padding: 0.45rem;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow-md);
}

.message-emoji-picker[hidden] {
  display: none;
}

.message-emoji-picker button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.18rem;
}

.message-emoji-picker button:hover,
.message-emoji-picker button:focus-visible {
  background: var(--ph-surface-soft);
  outline: 0;
}

.message-drop-hint {
  margin: 0.3rem 0 0;
  color: var(--ph-muted);
  font-size: 0.64rem;
  text-align: center;
}

.message-reply-composer,
.message-attachment-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.4rem 0.5rem;
  padding: 0.45rem 0.6rem;
  border-left: 3px solid var(--ph-primary);
  border-radius: 4px;
  background: var(--ph-surface-soft);
}

.message-reply-composer[hidden],
.message-attachment-preview[hidden] {
  display: none;
}

.message-reply-composer > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.message-reply-composer small {
  overflow: hidden;
  color: var(--ph-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-reply-composer button,
.message-attachment-preview button {
  margin-left: auto;
  border: 0;
  color: var(--ph-muted);
  background: transparent;
}

.message-attachment-preview img {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.message-attachment-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--ph-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-new-modal {
  border: 1px solid var(--ph-line);
  border-radius: 8px;
}

.messages-new-modal .modal-header small {
  color: var(--ph-primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.messages-user-search {
  padding: 0 0.75rem;
}

.messages-user-results {
  max-height: 340px;
  overflow-y: auto;
  margin-top: 0.75rem;
  scrollbar-width: none;
}

.messages-user-results > p {
  margin: 1.4rem 0;
  color: var(--ph-muted);
  font-size: 0.82rem;
  text-align: center;
}

.message-user-result {
  margin: 0;
}

.message-user-result > button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem;
  border: 0;
  border-radius: 6px;
  color: var(--ph-ink);
  background: transparent;
  text-align: left;
}

.message-user-result > button:hover,
.message-user-result > button:focus-visible {
  color: var(--ph-ink);
  background: var(--ph-surface-soft);
  outline: 0;
}

.message-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.message-user-result > button > span:not(.message-user-avatar) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.message-user-result small {
  color: var(--ph-muted);
}

.admin-report-attachment img {
  display: block;
  width: 112px;
  height: 112px;
  border: 1px solid var(--ph-line);
  border-radius: 6px;
  object-fit: cover;
}

.settings-choice-list,
.settings-toggle-list {
  display: grid;
  gap: 0.6rem;
}

.settings-divider {
  height: 1px;
  margin: 1.1rem 0;
  background: var(--ph-line);
}

.settings-choice,
.settings-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--ph-line);
  border-radius: 7px;
  color: var(--ph-ink);
  background: var(--ph-bg);
  cursor: pointer;
}

.settings-choice:hover,
.settings-choice:has(input:checked) {
  border-color: var(--ph-primary);
  background: var(--ph-surface-soft);
}

.settings-choice span,
.settings-toggle-row > span {
  display: flex;
  flex-direction: column;
}

.settings-choice small,
.settings-toggle-row small {
  margin-top: 0.15rem;
  color: var(--ph-muted);
  font-size: 0.76rem;
}

.settings-toggle-row {
  align-items: center;
  justify-content: space-between;
  cursor: default;
}

.settings-toggle-row .form-check {
  margin: 0;
}

html[data-theme="dark"] .messages-shell,
html[data-theme="dark"] .messages-sidebar,
html[data-theme="dark"] .messages-chat-header,
html[data-theme="dark"] .message-composer,
html[data-theme="dark"] .messages-new-modal,
html[data-theme="dark"] .message-emoji-picker,
html[data-theme="dark"] .message-reaction-summary {
  background: #242526;
}

html[data-theme="dark"] .messages-chat,
html[data-theme="dark"] .messages-search,
html[data-theme="dark"] .messages-user-search,
html[data-theme="dark"] .message-stream {
  background: #18191a;
}

html[data-theme="dark"] .messages-tabs,
html[data-theme="dark"] .conversation-list-item:hover,
html[data-theme="dark"] .conversation-list-item:focus-visible,
html[data-theme="dark"] .message-request-banner,
html[data-theme="dark"] .message-composer-row.is-dragover,
html[data-theme="dark"] .message-reply-composer,
html[data-theme="dark"] .message-attachment-preview,
html[data-theme="dark"] .message-user-result:hover,
html[data-theme="dark"] .message-user-result:focus-visible,
html[data-theme="dark"] .settings-choice:hover,
html[data-theme="dark"] .settings-choice:has(input:checked) {
  background: #303134;
}

html[data-theme="dark"] .conversation-list-item.is-active {
  background: rgba(0, 190, 255, 0.13);
}

html[data-theme="dark"] .message-unavailable-banner > i {
  background: #242526;
}

html[data-theme="dark"] .message-bubble,
html[data-theme="dark"] .message-stream-start span,
html[data-theme="dark"] .messages-chat-empty > span,
html[data-theme="dark"] .settings-choice,
html[data-theme="dark"] .settings-toggle-row {
  background: #2d2e30;
}

html[data-theme="dark"] .message-bubble-row.is-own .message-bubble {
  background: #0077ff;
}

html[data-theme="dark"] .message-reply-preview,
html[data-theme="dark"] .message-prompt-preview,
html[data-theme="dark"] .message-composer-row {
  background: #202122;
}

html[data-theme="dark"] .message-bubble-row.is-own .message-reply-preview,
html[data-theme="dark"] .message-bubble-row.is-own .message-prompt-preview {
  background: rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .messages-tabs a.is-active,
html[data-theme="dark"] .message-send-button {
  color: #fff;
  background: #0077ff;
}

html[data-theme="dark"] .messages-compose-button {
  color: #8fe4ff;
  background: #303134;
}

html[data-theme="dark"] .message-text-wrap textarea,
html[data-theme="dark"] .messages-search input,
html[data-theme="dark"] .messages-user-search input {
  color: #f2f3f5;
}

html[data-theme="dark"] .message-text-wrap textarea::placeholder,
html[data-theme="dark"] .messages-search input::placeholder,
html[data-theme="dark"] .messages-user-search input::placeholder {
  color: #8a8d91;
}

@media (max-width: 991.98px) {
  body:has(.messages-page.has-active-chat) {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  body:has(.messages-page.has-active-chat) > .app-nav {
    flex: 0 0 auto;
  }

  body:has(.messages-page.has-active-chat) > main {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body:has(.messages-page.has-active-chat) .app-footer,
  body:has(.messages-page.has-active-chat) .mobile-tabbar {
    display: none !important;
  }

  .messages-page {
    max-width: none;
    padding: 0;
  }

  .messages-page.has-active-chat {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .messages-shell {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .messages-page.has-active-chat .messages-sidebar,
  .messages-page:not(.has-active-chat) .messages-chat {
    display: none;
  }

  .messages-sidebar,
  .messages-chat {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-right: 0;
  }

  .messages-sidebar-header {
    padding-top: 1rem;
  }

  .messages-mobile-back {
    display: inline-grid;
  }

  .messages-chat-header {
    min-height: 62px;
    padding: 0.55rem 0.7rem;
  }

  .message-stream {
    overflow-x: hidden;
    padding: 0.85rem 0.72rem 1rem;
  }

  .message-bubble-row {
    max-width: 86%;
  }

  .message-item-actions {
    opacity: 1;
  }

  .message-image-button {
    max-width: min(320px, 68vw);
  }

  .message-prompt-preview {
    min-width: min(300px, 68vw);
  }

  .message-composer {
    padding: 0.45rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .message-drop-hint {
    display: none;
  }

}

@media (max-width: 575.98px) {
  .messages-sidebar-header h1 {
    font-size: 1.25rem;
  }

  .conversation-list-item {
    min-height: 68px;
  }

  .conversation-list-item .avatar {
    width: 44px;
    height: 44px;
  }

  .messages-chat-person {
    max-width: calc(100vw - 156px);
  }

  .message-request-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .message-request-banner > div:last-child {
    width: 100%;
  }

  .message-request-banner:not(.message-blocked-banner) form,
  .message-request-banner:not(.message-blocked-banner) button {
    flex: 1;
  }

  .message-blocked-banner > form,
  .message-blocked-banner > form button {
    width: 100%;
  }

  .message-unavailable-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .message-bubble-row {
    max-width: 91%;
  }

  .message-image-button {
    max-width: min(290px, 72vw);
    max-height: 440px;
  }

  .message-image-button img {
    max-height: 440px;
  }

  .message-prompt-preview {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-width: min(280px, 72vw);
  }

  .message-prompt-preview img {
    width: 46px;
    height: 46px;
  }

  .message-item-actions > button,
  .message-item-actions .dropdown > button,
  .message-item-actions .message-reaction-popover > button {
    width: 26px;
    height: 26px;
  }

  .message-reaction-menu {
    min-width: 218px;
    grid-template-columns: repeat(6, 1fr);
  }

  .message-bubble-row.is-own .message-reaction-menu {
    right: 0;
    left: auto;
  }

  .message-reaction-menu button {
    width: 33px;
    height: 33px;
  }

  .message-emoji-picker {
    position: fixed;
    right: 0.75rem;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 0.75rem;
    grid-template-columns: repeat(6, 1fr);
  }

  .message-emoji-picker button {
    width: 100%;
  }
}

/* Navigation architecture: focused primary routes, compact utilities and account areas. */
.app-nav {
  min-height: 72px;
}

.app-nav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.app-nav-container .navbar-brand {
  flex: 0 0 auto;
  margin-right: 0;
}

.app-nav-container .brand-wordmark-text {
  letter-spacing: 0;
}

#mainNav {
  min-width: 0;
}

.app-nav-groups {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.app-primary-nav,
.app-utility-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.08rem;
  min-width: 0;
}

.app-primary-nav {
  margin-left: auto;
}

.app-utility-nav {
  margin-left: 0.15rem;
}

.navbar .app-nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 7px;
  padding: 0.6rem 0.66rem !important;
  color: #344156 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.navbar .app-nav-link::after {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #0077ff;
  content: "";
  transform: translateX(-50%);
  transition: width 150ms ease;
}

.navbar .app-nav-link:hover,
.navbar .app-nav-link:focus-visible,
.navbar .app-nav-link.is-active {
  color: #111827 !important;
  background: transparent !important;
}

.navbar .app-nav-link:hover::after,
.navbar .app-nav-link:focus-visible::after,
.navbar .app-nav-link.is-active::after {
  width: 20px;
}

.navbar .app-nav-link.is-active {
  font-weight: 760;
}

.navbar .app-nav-link.is-active i {
  color: #0077ff;
}

.app-utility-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #344156;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.app-utility-icon i {
  font-size: 1.08rem;
  line-height: 1;
}

.app-utility-icon:hover,
.app-utility-icon:focus-visible,
.app-utility-icon.is-active {
  color: #0077ff;
  background: #f1f7ff;
  outline: 0;
}

.app-admin-trigger {
  border: 1px solid #ffd8dd;
  color: #c6283b;
  background: #fff5f6;
}

.app-admin-trigger:hover,
.app-admin-trigger:focus-visible,
.app-admin-trigger.is-active,
.app-admin-trigger.show {
  border-color: #ffc3ca;
  color: #a81528;
  background: #ffecef;
}

.app-admin-letter {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.nav-notification-badge,
.nav-admin-badge,
.mobile-notification-badge,
.mobile-admin-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  z-index: 2;
  min-width: 1.12rem;
  height: 1.12rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 0.22rem;
  color: #ffffff !important;
  background: #dc3545 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.63rem;
  font-weight: 850;
  line-height: 1;
}

.nav-create-btn,
.nav-register-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin-left: 0.15rem;
  border-radius: 7px;
  padding-inline: 0.9rem;
  white-space: nowrap;
}

.profile-nav-item {
  margin-left: 0.08rem;
}

.nav-avatar-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid #dce4ee;
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

.nav-avatar-toggle:hover,
.nav-avatar-toggle:focus-visible,
.nav-avatar-toggle.show {
  border-color: #9edfff;
  background: #f4fbff;
  box-shadow: 0 0 0 3px rgba(0, 190, 255, 0.12);
  transform: none;
}

.profile-menu {
  width: 284px;
  min-width: 284px;
  max-height: min(78vh, 660px);
  overflow-y: auto;
  padding: 0.48rem;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #ffffff;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.65rem 0.7rem 0.82rem;
}

.profile-menu-header .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.profile-menu-header > span {
  min-width: 0;
}

.profile-menu-header strong,
.profile-menu-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-header strong {
  color: #111827;
  font-size: 0.95rem;
}

.profile-menu-header small {
  margin-top: 0.08rem;
  color: #788395;
  font-size: 0.78rem;
}

.profile-menu-section-label {
  display: block;
  padding: 0.4rem 0.72rem 0.18rem;
  color: #8a94a4;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-menu .dropdown-item {
  min-height: 42px;
  gap: 0.65rem;
  border-radius: 7px;
  padding: 0.48rem 0.62rem;
  color: #344156;
}

.profile-menu .dropdown-item i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 7px;
  color: #526178;
  background: #f2f5f8;
}

.profile-menu .dropdown-item:hover,
.profile-menu .dropdown-item:focus-visible {
  color: #111827;
  background: #f3f8fd;
}

.profile-menu .dropdown-item:hover i,
.profile-menu .dropdown-item:focus-visible i {
  color: #0077ff;
  background: #e8f5ff;
}

.profile-menu .dropdown-divider {
  margin: 0.38rem 0;
  border-color: #edf0f4;
}

.desktop-admin-menu {
  width: min(330px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #ffffff;
}

.desktop-admin-menu-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem;
  border-bottom: 1px solid #edf0f4;
}

.desktop-admin-menu-header .mobile-admin-menu-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #dc3545;
  background-image: none;
  box-shadow: none;
}

.desktop-admin-menu-header strong,
.desktop-admin-menu-header small {
  display: block;
}

.desktop-admin-menu-header strong {
  color: #111827;
}

.desktop-admin-menu-header small {
  color: #788395;
  font-size: 0.76rem;
}

.desktop-admin-menu-body {
  max-height: min(68vh, 590px);
  overflow-y: auto;
  padding: 0.4rem;
}

.desktop-admin-menu .admin-sidebar {
  position: static;
  display: grid;
  gap: 0.12rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-admin-menu .admin-sidebar .list-group-item {
  min-height: 41px;
  border: 0;
  border-radius: 7px !important;
  padding: 0.48rem 0.62rem;
  background: transparent;
  box-shadow: none;
}

.desktop-admin-menu .admin-sidebar .list-group-item:hover,
.desktop-admin-menu .admin-sidebar .list-group-item:focus-visible {
  color: #111827;
  background: #f5f7fa;
}

.desktop-admin-menu .admin-sidebar .list-group-item.active {
  color: #9e1526;
  background: #fff0f2;
  box-shadow: none;
}

.desktop-admin-menu .admin-sidebar .admin-nav-badge,
.mobile-admin-menu .admin-sidebar .admin-nav-badge {
  color: #ffffff !important;
  background: #dc3545 !important;
  background-image: none !important;
  box-shadow: none;
}

.profile-action-section + .profile-action-section {
  margin-top: 0.78rem;
  padding-top: 0.78rem;
  border-top: 1px solid #edf0f4;
}

.profile-action-section h3 {
  margin: 0 0 0.42rem;
  padding: 0 0.18rem;
  color: #7b8798;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-action-section-links {
  display: grid;
  gap: 0.42rem;
}

.profile-action-section-links form {
  margin: 0;
}

.profile-action-sheet .profile-action-section-links a,
.profile-action-sheet .profile-action-section-links button {
  min-height: 46px;
  border-color: #e2e7ed;
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  color: #344156;
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

.profile-action-sheet .profile-action-section-links i {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  color: #0077ff;
  background: #eaf6ff;
  background-image: none;
}

.profile-action-sheet .profile-action-section-links a:hover,
.profile-action-sheet .profile-action-section-links a:focus-visible,
.profile-action-sheet .profile-action-section-links button:hover,
.profile-action-sheet .profile-action-section-links button:focus-visible {
  border-color: #b8ddf4;
  color: #111827;
  background: #f5fbff;
  box-shadow: none;
}

html[data-theme="dark"] .navbar .app-nav-link {
  color: #c9ccd1 !important;
}

html[data-theme="dark"] .navbar .app-nav-link:hover,
html[data-theme="dark"] .navbar .app-nav-link:focus-visible,
html[data-theme="dark"] .navbar .app-nav-link.is-active {
  color: #ffffff !important;
}

html[data-theme="dark"] .app-utility-icon {
  color: #c9ccd1;
  background: transparent;
}

html[data-theme="dark"] .app-utility-icon:hover,
html[data-theme="dark"] .app-utility-icon:focus-visible,
html[data-theme="dark"] .app-utility-icon.is-active {
  color: #8fe4ff;
  background: #303134;
}

html[data-theme="dark"] .app-admin-trigger {
  border-color: #583139;
  color: #ff8c99;
  background: #35272a;
}

html[data-theme="dark"] .app-admin-trigger:hover,
html[data-theme="dark"] .app-admin-trigger:focus-visible,
html[data-theme="dark"] .app-admin-trigger.is-active,
html[data-theme="dark"] .app-admin-trigger.show {
  border-color: #70404a;
  color: #ffb1ba;
  background: #432d32;
}

html[data-theme="dark"] .nav-notification-badge,
html[data-theme="dark"] .nav-admin-badge,
html[data-theme="dark"] .mobile-notification-badge,
html[data-theme="dark"] .mobile-admin-badge {
  border-color: #242526;
  background: #dc3545 !important;
  background-image: none !important;
}

html[data-theme="dark"] .nav-avatar-toggle {
  border-color: #4a4b4e;
  background: #2d2e30;
}

html[data-theme="dark"] .nav-avatar-toggle:hover,
html[data-theme="dark"] .nav-avatar-toggle:focus-visible,
html[data-theme="dark"] .nav-avatar-toggle.show {
  border-color: #5d7784;
  background: #30383c;
  box-shadow: 0 0 0 3px rgba(0, 190, 255, 0.1);
}

html[data-theme="dark"] .profile-menu,
html[data-theme="dark"] .desktop-admin-menu {
  border-color: #3a3b3c;
  background: #242526;
}

html[data-theme="dark"] .profile-menu-header strong,
html[data-theme="dark"] .desktop-admin-menu-header strong {
  color: #f2f3f5;
}

html[data-theme="dark"] .profile-menu-header small,
html[data-theme="dark"] .desktop-admin-menu-header small,
html[data-theme="dark"] .profile-menu-section-label {
  color: #a9adb3;
}

html[data-theme="dark"] .profile-menu .dropdown-divider,
html[data-theme="dark"] .desktop-admin-menu-header,
html[data-theme="dark"] .profile-action-section + .profile-action-section {
  border-color: #3a3b3c;
}

html[data-theme="dark"] .profile-menu .dropdown-item {
  color: #d9dce1;
}

html[data-theme="dark"] .profile-menu .dropdown-item i {
  color: #bec3ca;
  background: #303134;
}

html[data-theme="dark"] .profile-menu .dropdown-item:hover,
html[data-theme="dark"] .profile-menu .dropdown-item:focus-visible,
html[data-theme="dark"] .desktop-admin-menu .admin-sidebar .list-group-item:hover,
html[data-theme="dark"] .desktop-admin-menu .admin-sidebar .list-group-item:focus-visible {
  color: #ffffff;
  background: #303134;
}

html[data-theme="dark"] .profile-menu .dropdown-item:hover i,
html[data-theme="dark"] .profile-menu .dropdown-item:focus-visible i {
  color: #8fe4ff;
  background: #343c40;
}

html[data-theme="dark"] .desktop-admin-menu .admin-sidebar .list-group-item {
  color: #d4d7dc;
}

html[data-theme="dark"] .desktop-admin-menu .admin-sidebar .list-group-item.active {
  color: #ff9aa5;
  background: #3a292d;
}

html[data-theme="dark"] .profile-action-section h3 {
  color: #a9adb3;
}

html[data-theme="dark"] .profile-action-sheet .profile-action-section-links a,
html[data-theme="dark"] .profile-action-sheet .profile-action-section-links button {
  border-color: #3a3b3c;
  color: #e4e6eb;
  background: #2d2e30;
}

html[data-theme="dark"] .profile-action-sheet .profile-action-section-links i {
  color: #8fe4ff;
  background: #30383b;
}

html[data-theme="dark"] .profile-action-sheet .profile-action-section-links a:hover,
html[data-theme="dark"] .profile-action-sheet .profile-action-section-links a:focus-visible,
html[data-theme="dark"] .profile-action-sheet .profile-action-section-links button:hover,
html[data-theme="dark"] .profile-action-sheet .profile-action-section-links button:focus-visible {
  border-color: #4a4b4e;
  color: #ffffff;
  background: #333436;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .app-nav-container {
    gap: 0.62rem;
  }

  .app-nav-container .brand-wordmark-text {
    font-size: 1.22rem;
  }

  .app-nav-groups {
    gap: 0.48rem;
  }

  .app-primary-nav .app-nav-link {
    width: 42px;
    padding-inline: 0 !important;
  }

  .app-primary-nav .nav-label {
    display: none;
  }

  .app-primary-nav .app-nav-link i {
    font-size: 1.08rem;
  }

  .app-utility-nav {
    gap: 0;
  }

  .nav-create-btn,
  .nav-register-btn {
    padding-inline: 0.72rem;
  }
}

@media (max-width: 991.98px) {
  .app-nav {
    min-height: 64px;
  }

  .app-nav-container {
    min-height: 64px !important;
    gap: 0.5rem;
  }

  .mobile-header-actions {
    gap: 0.36rem;
  }

  .mobile-header-icon,
  .mobile-admin-icon {
    width: 40px;
    height: 40px;
    border-color: #e1e7ee;
    background: #ffffff;
    box-shadow: none;
  }

  .mobile-header-icon:hover,
  .mobile-header-icon:focus-visible,
  .mobile-header-icon[aria-expanded="true"] {
    border-color: #b8ddf4;
    color: #0077ff !important;
    background: #f2faff;
  }

  .mobile-admin-icon {
    border-color: #ffd8dd;
    color: #c6283b !important;
    background: #fff5f6;
  }

  .mobile-admin-icon:hover,
  .mobile-admin-icon:focus-visible,
  .mobile-admin-icon[aria-expanded="true"] {
    border-color: #ffc3ca;
    color: #a81528 !important;
    background: #ffecef;
  }

  .mobile-admin-menu-mark {
    border-radius: 8px;
    background: #dc3545;
    background-image: none;
    box-shadow: none;
  }

  .mobile-admin-menu .admin-sidebar {
    gap: 0.35rem;
  }

  .mobile-admin-menu .admin-sidebar .list-group-item {
    min-height: 46px;
    border-color: #e2e7ed;
    border-radius: 8px !important;
    background: #ffffff;
    background-image: none;
  }

  .mobile-admin-menu .admin-sidebar .list-group-item.active {
    color: #9e1526;
    border-color: #ffd0d6;
    background: #fff0f2;
    background-image: none;
    box-shadow: none;
  }

  html[data-theme="dark"] .mobile-header-icon,
  html[data-theme="dark"] .mobile-admin-icon {
    border-color: #3a3b3c !important;
    color: #d4d7dc !important;
    background: #2d2e30 !important;
  }

  html[data-theme="dark"] .mobile-header-icon:hover,
  html[data-theme="dark"] .mobile-header-icon:focus-visible,
  html[data-theme="dark"] .mobile-header-icon[aria-expanded="true"] {
    border-color: #4a4b4e !important;
    color: #8fe4ff !important;
    background: #333436 !important;
  }

  html[data-theme="dark"] .mobile-admin-icon,
  html[data-theme="dark"] .mobile-admin-icon span[aria-hidden="true"] {
    color: #ff8c99 !important;
  }

  html[data-theme="dark"] .mobile-admin-icon:hover,
  html[data-theme="dark"] .mobile-admin-icon:focus-visible,
  html[data-theme="dark"] .mobile-admin-icon[aria-expanded="true"] {
    border-color: #70404a !important;
    color: #ffb1ba !important;
    background: #432d32 !important;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item {
    border-color: #3a3b3c;
    color: #e4e6eb;
    background: #2d2e30;
  }

  html[data-theme="dark"] .mobile-admin-menu .admin-sidebar .list-group-item.active {
    border-color: #70404a;
    color: #ff9aa5;
    background: #3a292d;
  }
}

@media (max-width: 575.98px) {
  .app-nav-container .brand-wordmark {
    gap: 0.32rem;
  }

  .app-nav-container .brand-wordmark-icon {
    width: 31px;
    height: 31px;
  }

  .app-nav-container .brand-wordmark-text {
    font-size: 1.12rem;
  }

  .mobile-header-actions {
    gap: 0.28rem;
  }

  .mobile-header-icon,
  .mobile-admin-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 389.98px) {
  .app-nav-container {
    gap: 0.34rem;
  }

  .app-nav-container .brand-wordmark-text {
    font-size: 1.02rem;
  }

  .mobile-header-actions {
    gap: 0.2rem;
  }

  .mobile-header-icon,
  .mobile-admin-icon {
    width: 36px;
    height: 36px;
  }
}

/* Compact identity marker for administrator accounts. */
.user-name-with-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
  max-width: 100%;
}

.user-name-with-badge > .user-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  border: 1px solid #fecdd3;
  border-radius: 50%;
  color: #c81e36;
  background: #fff1f2;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
}

html[data-theme="dark"] .user-admin-badge {
  border-color: rgba(255, 107, 122, 0.5);
  color: #ff8794;
  background: rgba(200, 30, 54, 0.18);
}

/* Social publication lifecycle and external removal queue. */
.admin-filter-panel {
  padding: 1rem;
  border: 1px solid var(--ph-border, #dce5ef);
  border-radius: 8px;
  background: var(--ph-surface, #fff);
}

.admin-status-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.admin-status-tabs::-webkit-scrollbar { display: none; }

.admin-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--ph-border, #dce5ef);
  border-radius: 7px;
  color: var(--ph-text-muted, #5d697b);
  background: var(--ph-surface, #fff);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-status-tab span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 0.3rem;
  border-radius: 999px;
  color: inherit;
  background: var(--ph-surface-soft, #edf3f8);
  font-size: 0.7rem;
}

.admin-status-tab:hover,
.admin-status-tab:focus-visible,
.admin-status-tab.is-active {
  border-color: rgba(0, 119, 255, 0.42);
  color: #006fe8;
  background: rgba(0, 190, 255, 0.08);
}

.social-retraction-list {
  display: grid;
  gap: 0.75rem;
}

.social-retraction-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid var(--ph-border, #dce5ef);
  border-radius: 8px;
  background: var(--ph-surface, #fff);
}

.social-retraction-platform {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #48566d;
  font-size: 1.15rem;
}

.social-retraction-platform.is-facebook { background: #1877f2; }
.social-retraction-platform.is-instagram { background: #c13584; }
.social-retraction-platform.is-tiktok { background: #202329; }

.social-retraction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  max-width: 360px;
}

.social-retraction-actions form { margin: 0; }

html[data-theme="dark"] .admin-filter-panel,
html[data-theme="dark"] .admin-status-tab,
html[data-theme="dark"] .social-retraction-item {
  border-color: #3a3b3d;
  color: #f0f2f5;
  background: #242526;
}

html[data-theme="dark"] .admin-status-tab span { background: #3a3b3c; }

html[data-theme="dark"] .admin-status-tab:hover,
html[data-theme="dark"] .admin-status-tab:focus-visible,
html[data-theme="dark"] .admin-status-tab.is-active {
  border-color: rgba(0, 190, 255, 0.55);
  color: #42cbff;
  background: rgba(0, 190, 255, 0.12);
}

@media (max-width: 767.98px) {
  .social-retraction-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .social-retraction-platform {
    width: 38px;
    height: 38px;
  }

  .social-retraction-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
    padding-left: 0;
  }

  .social-retraction-actions .btn { min-height: 38px; }
}

/* Native Android shell: avoid browser-style glass layers around fixed navigation. */
html.is-native-app .cookie-notice,
html.is-native-app .footer-cookie-link {
  display: none !important;
}

@media (max-width: 991.98px) {
  html.is-native-app .app-nav {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 1px 0 rgba(31, 44, 71, 0.1) !important;
    backdrop-filter: none !important;
  }

  html.is-native-app body > main.py-4 {
    padding-top: 0.5rem !important;
  }

  html.is-native-app .mobile-tabbar {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 -1px 0 rgba(31, 44, 71, 0.1) !important;
    backdrop-filter: none !important;
  }

  html.is-native-app[data-theme="dark"] .app-nav,
  html.is-native-app[data-theme="dark"] .mobile-tabbar {
    background: #242526 !important;
    border-color: #3a3b3c !important;
    box-shadow: none !important;
  }
}

/* Notification preferences: each switch keeps its channel label visible. */
.notification-settings-card {
  padding: 0;
}

.notification-settings-header {
  align-items: center;
  margin: 0;
  padding: 1.15rem 1.2rem;
}

.notification-app-context {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border: 1px solid #ccecff;
  border-radius: 6px;
  background: #f1faff;
  color: #006fa8;
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.45rem 0.62rem;
}

.settings-notifications-page .notification-preference-list {
  display: grid;
  border-top: 1px solid #e5eaf1;
}

.notification-preference-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e5eaf1;
  padding: 1rem 1.2rem;
}

.notification-preference-info {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.notification-preference-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #eef9ff;
  color: #0077b9;
  font-size: 1rem;
}

.notification-preference-info strong,
.notification-channel-copy strong {
  display: block;
  color: #17212b;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.3;
}

.notification-preference-info small,
.notification-channel-copy small {
  display: block;
  margin-top: 0.16rem;
  color: #718096;
  font-size: 0.74rem;
  line-height: 1.35;
}

.notification-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.notification-channel-grid.has-app-channel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notification-channel-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 58px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  background: #fbfcfe;
  cursor: pointer;
  padding: 0.58rem 0.65rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.notification-channel-control:hover {
  border-color: #a9dcf4;
  background: #f6fbfe;
}

.notification-channel-control.is-push {
  border-color: #c8eaff;
  background: #f2faff;
}

.notification-channel-control.is-unavailable {
  cursor: default;
  opacity: 0.58;
}

.notification-channel-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.notification-channel-copy > i {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.9rem;
}

.notification-channel-control .form-switch {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.notification-channel-control .form-check-input {
  width: 2.15rem;
  height: 1.15rem;
  margin: 0;
}

.settings-newsletter-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(220px, 0.59fr);
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #dbe4ee;
  background: #f8fafc;
  padding: 1rem 1.2rem;
}

.newsletter-channel-control {
  width: 100%;
}

.notification-settings-card .settings-card-footer {
  margin: 0;
  padding: 1rem 1.2rem;
}

html[data-theme="dark"] .notification-settings-header,
html[data-theme="dark"] .notification-preference-item,
html[data-theme="dark"] .settings-newsletter-card,
html[data-theme="dark"] .notification-settings-card .settings-card-footer {
  border-color: #3a3b3c !important;
}

html[data-theme="dark"] .notification-preference-icon {
  background: #303234;
  color: #65d4ff;
}

html[data-theme="dark"] .notification-preference-info strong,
html[data-theme="dark"] .notification-channel-copy strong {
  color: #f2f3f5;
}

html[data-theme="dark"] .notification-preference-info small,
html[data-theme="dark"] .notification-channel-copy small {
  color: #b0b3b8;
}

html[data-theme="dark"] .notification-channel-control,
html[data-theme="dark"] .settings-newsletter-card {
  border-color: #4a4b4d;
  background: #2b2c2e;
}

html[data-theme="dark"] .notification-channel-control:hover {
  border-color: #5f6265;
  background: #303133;
}

html[data-theme="dark"] .notification-channel-control.is-push {
  border-color: #315b6b;
  background: #263237;
}

html[data-theme="dark"] .notification-channel-copy > i {
  color: #b8bec7;
}

html[data-theme="dark"] .notification-app-context {
  border-color: #315b6b;
  background: #263237;
  color: #8fe4ff;
}

@media (max-width: 1199.98px) {
  .notification-preference-item {
    grid-template-columns: 1fr;
  }

  .notification-channel-grid.has-app-channel {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .notification-channel-grid.has-app-channel::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .notification-settings-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-preference-item,
  .settings-newsletter-card {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .notification-channel-grid,
  .notification-channel-grid.has-app-channel {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .notification-channel-control {
    min-height: 54px;
  }

  .notification-settings-card .settings-card-footer {
    padding: 0.9rem;
  }

  .notification-settings-card .settings-card-footer .btn {
    width: 100%;
  }
}

/* Prompt form: keep account suggestions inside the document flow. */
.prompt-form-page .prompt-note-composer {
  position: relative;
  overflow: visible;
}

.prompt-form-page .prompt-note-suggestions {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-height: min(280px, 42vh);
  margin-top: 0.5rem;
  padding: 0.4rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #cfeeff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 48, 72, 0.12);
}

.prompt-form-page .prompt-note-suggestions[hidden] {
  display: none !important;
}

.prompt-form-page .prompt-note-suggestions:not([hidden]) {
  display: grid;
}

.prompt-form-page .prompt-note-suggestions .mention-suggestion {
  min-height: 52px;
  flex: 0 0 auto;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 7px;
}

.prompt-form-page .prompt-note-suggestions .mention-suggestion:hover,
.prompt-form-page .prompt-note-suggestions .mention-suggestion:focus-visible,
.prompt-form-page .prompt-note-suggestions .mention-suggestion.is-active {
  background: #eefaff;
}

.prompt-form-page .prompt-note-suggestions .mention-suggestion-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.prompt-form-page .prompt-note-suggestions .mention-suggestion-copy {
  gap: 0.15rem;
  overflow: hidden;
}

.prompt-form-page .prompt-note-suggestions .mention-suggestion-copy strong,
.prompt-form-page .prompt-note-suggestions .mention-suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions {
  border-color: #45474a;
  background: #242526;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions .mention-suggestion {
  color: #f2f3f5;
}

html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions .mention-suggestion:hover,
html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions .mention-suggestion:focus-visible,
html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions .mention-suggestion.is-active {
  background: #333536;
}

html[data-theme="dark"] .prompt-form-page .prompt-note-suggestions .mention-suggestion-copy small {
  color: #b0b3b8;
}

@media (max-width: 767.98px) {
  .prompt-form-page .prompt-note-suggestions {
    max-height: min(240px, 36vh);
  }
}

/* Comment editing */
.comment-edited-label {
  margin-left: 0.35rem;
  color: #758196;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.comment-edit-modal .modal-dialog {
  width: min(640px, calc(100% - 1.5rem));
  max-width: 640px;
}

.comment-edit-modal .modal-content {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 42, 72, 0.18);
}

.comment-edit-composer {
  position: relative;
}

.comment-edit-composer textarea {
  min-height: 132px;
  resize: vertical;
}

.comment-edit-composer .mention-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 1080;
  max-height: 220px;
  overflow-y: auto;
}

.comment-edit-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  color: #6d7889;
  font-size: 0.78rem;
}

.comment-edit-image-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f8fbfe;
}

.comment-edit-image-panel[hidden],
.comment-edit-current[hidden],
.comment-edit-replacement[hidden] {
  display: none !important;
}

.comment-edit-current {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.comment-edit-current img,
.comment-edit-replacement img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}

.comment-edit-current > div {
  display: grid;
  min-width: 0;
}

.comment-edit-current span,
.comment-edit-replacement span {
  color: #6d7889;
  font-size: 0.8rem;
}

.comment-edit-current .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-edit-current .btn.is-selected {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
}

.comment-edit-upload {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed #9fdfff;
  border-radius: 8px;
  color: #27364b;
  background: #fff;
  cursor: pointer;
}

.comment-edit-upload > i {
  color: #0094ff;
  font-size: 1.15rem;
}

.comment-edit-upload span {
  display: grid;
}

.comment-edit-upload small {
  color: #758196;
}

.comment-edit-replacement {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-comment-time {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  color: #6d7889;
  font-size: 0.78rem;
}

.admin-comment-time small {
  font-size: 0.7rem;
}

.admin-comment-revision-badge {
  color: #31506c;
  background: #e8f7ff;
  border: 1px solid #bdeaff;
}

.admin-comment-history {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f8fbfe;
}

.admin-comment-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  list-style: none;
  cursor: pointer;
}

.admin-comment-history summary::-webkit-details-marker {
  display: none;
}

.admin-comment-history summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.admin-comment-history summary small {
  color: #6d7889;
}

.admin-comment-history-list {
  display: grid;
  gap: 0.55rem;
  padding: 0 0.75rem 0.75rem;
}

.admin-comment-history-list article {
  padding: 0.7rem;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  background: #fff;
}

.admin-comment-history-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-comment-history-list p {
  margin: 0;
  color: #405069;
  font-size: 0.86rem;
}

.admin-comment-history-list article > small {
  display: block;
  margin-top: 0.4rem;
  color: #6d7889;
}

html[data-theme="dark"] .comment-edit-modal .modal-content,
html[data-theme="dark"] .comment-edit-image-panel,
html[data-theme="dark"] .admin-comment-history {
  color: #f2f3f5;
  border-color: #45474a;
  background: #242526;
}

html[data-theme="dark"] .comment-edit-upload,
html[data-theme="dark"] .admin-comment-history-list article {
  color: #f2f3f5;
  border-color: #45474a;
  background: #18191a;
}

html[data-theme="dark"] .comment-edit-current span,
html[data-theme="dark"] .comment-edit-replacement span,
html[data-theme="dark"] .comment-edit-upload small,
html[data-theme="dark"] .comment-edit-meta,
html[data-theme="dark"] .comment-edited-label,
html[data-theme="dark"] .admin-comment-time,
html[data-theme="dark"] .admin-comment-history summary small,
html[data-theme="dark"] .admin-comment-history-list p,
html[data-theme="dark"] .admin-comment-history-list article > small {
  color: #b0b3b8;
}

html[data-theme="dark"] .admin-comment-revision-badge {
  color: #8fe4ff;
  background: rgba(0, 190, 255, 0.12);
  border-color: rgba(0, 190, 255, 0.28);
}

@media (max-width: 575.98px) {
  .comment-edit-modal .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem;
  }

  .comment-edit-current {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .comment-edit-current img,
  .comment-edit-replacement img {
    width: 50px;
    height: 50px;
  }

  .comment-edit-current .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .admin-comment-time {
    justify-items: start;
  }
}

/* Compact creator suggestions on prompt detail pages. */
.author-prompt-section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(33, 56, 86, 0.12);
}

.author-prompt-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-prompt-section-heading h2 {
  color: var(--ph-ink);
}

.author-prompt-section-heading p {
  font-size: 0.9rem;
}

.author-prompt-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--ph-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.author-prompt-section-link:hover,
.author-prompt-section-link:focus-visible {
  color: var(--ph-primary);
  text-decoration: underline;
}

.author-prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.author-prompt-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(33, 56, 86, 0.12);
  border-radius: var(--ph-card-radius);
  background: var(--ph-card-bg, #fff);
  box-shadow: var(--ph-shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.author-prompt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow-md, 0 8px 24px rgba(17, 35, 61, 0.12));
}

.author-prompt-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf4fb;
}

.author-prompt-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.author-prompt-card-image:hover img,
.author-prompt-card-image:focus-visible img {
  transform: scale(1.03);
}

.author-prompt-card-image.is-empty {
  display: grid;
  place-items: center;
  color: var(--ph-muted);
  font-size: 1.5rem;
}

.author-prompt-card-body {
  min-width: 0;
  padding: 0.8rem 0.85rem 0.85rem;
}

.author-prompt-card-tool {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
  overflow: hidden;
  color: var(--ph-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-prompt-card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ph-ink);
  font-size: 1rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.author-prompt-card-title a {
  color: inherit;
  text-decoration: none;
}

.author-prompt-card-title a:hover,
.author-prompt-card-title a:focus-visible {
  color: var(--ph-primary-dark);
}

.author-prompt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
  color: var(--ph-muted);
  font-size: 0.75rem;
}

.author-prompt-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 1199.98px) {
  .author-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .author-prompt-section-heading {
    align-items: flex-start;
  }

  .author-prompt-section-heading p {
    font-size: 0.82rem;
  }

  .author-prompt-section-link {
    font-size: 0.8rem;
  }

  .author-prompt-grid {
    gap: 0.65rem;
  }

  .author-prompt-card-body {
    padding: 0.65rem;
  }

  .author-prompt-card-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 359.98px) {
  .author-prompt-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .author-prompt-section {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .author-prompt-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1f2329;
  box-shadow: none;
}

html[data-theme="dark"] .author-prompt-card-image {
  background: #2a3038;
}

html[data-theme="dark"] .author-prompt-card-title,
html[data-theme="dark"] .author-prompt-section-heading h2 {
  color: #f3f6fb;
}

html[data-theme="dark"] .author-prompt-section-heading p,
html[data-theme="dark"] .author-prompt-card-meta {
  color: #aeb9c7;
}

/* Image-first prompt cards: preserve the complete source inside stable frames. */
.prompt-image-button,
.prompt-image-placeholder {
  aspect-ratio: 4 / 5;
  background: #eef2f5;
}

.prompt-image-button::after {
  display: none;
}

.prompt-image-button img,
.explore-tile img,
.author-prompt-card-image img {
  object-fit: cover;
  object-position: center center;
}

.community-result-image img,
.notification-preview-thumb img,
.dashboard-continue-media img,
.collection-cover img,
.social-hub-card-media img,
.admin-result-image img,
.dashboard-prompt-primary-thumb img,
.dashboard-prompt-reference-thumb img {
  object-fit: contain;
}

.prompt-image-button:hover img,
.prompt-image-button:focus-visible img,
.explore-tile:hover img,
.explore-tile:focus-visible img,
.author-prompt-card-image:hover img,
.author-prompt-card-image:focus-visible img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.prompt-card .prompt-card-actions {
  margin-top: 0 !important;
  padding-top: 0.28rem;
  border-top: 0;
}

.prompt-card-tags {
  max-height: 1.7rem;
  margin-bottom: 0.45rem !important;
  overflow: hidden;
  align-content: flex-start;
}

.prompt-card .card-body {
  padding: 0.7rem 0.85rem 0.7rem;
}

.prompt-card .card-body > .d-flex:first-child {
  position: relative;
  z-index: 2;
  width: calc(100% - 0.8rem);
  margin: -3.05rem 0.4rem 0.65rem !important;
  padding: 0.42rem 0.5rem 0.42rem 0.32rem;
  border: 1px solid rgba(33, 56, 86, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(17, 35, 61, 0.14);
  backdrop-filter: blur(9px);
}

.prompt-card .card-body > .mb-2 {
  margin-bottom: 0.35rem !important;
}

.prompt-card .card-body > h2 {
  margin-bottom: 0.35rem !important;
}

html[data-theme="dark"] .prompt-image-button,
html[data-theme="dark"] .prompt-image-placeholder,
html[data-theme="dark"] .explore-tile,
html[data-theme="dark"] .detail-image-button,
html[data-theme="dark"] .community-result-image,
html[data-theme="dark"] .notification-preview-thumb,
html[data-theme="dark"] .dashboard-continue-media,
html[data-theme="dark"] .collection-cover,
html[data-theme="dark"] .social-hub-card-media,
html[data-theme="dark"] .admin-result-image,
html[data-theme="dark"] .dashboard-prompt-primary-thumb,
html[data-theme="dark"] .dashboard-prompt-reference-thumb {
  background: #18191a !important;
}

html[data-theme="dark"] .prompt-card .card-body > .d-flex:first-child {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(31, 35, 41, 0.94);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .prompt-card .prompt-card-actions {
  border-top: 0;
}

/* Image-first prompt cards: keep the artwork dominant and the metadata readable. */
.prompt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prompt-card-media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  min-width: 0;
  background: #eef2f5;
}

.prompt-card-media .prompt-image-button,
.prompt-card-media .prompt-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

.prompt-card-media .prompt-image-button::after {
  display: none;
}

.prompt-card-media .prompt-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.prompt-card-media:hover .prompt-image-button img,
.prompt-card-media:focus-within .prompt-image-button img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.prompt-card-topbar {
  position: absolute;
  inset: 0.65rem 0.65rem auto;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.prompt-card-topbar > * {
  pointer-events: auto;
}

.prompt-card-media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.prompt-card-media-badges .badge {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #17212b !important;
  box-shadow: 0 3px 12px rgba(4, 10, 18, 0.14), inset 2px 0 0 rgba(0, 119, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.36rem 0.48rem;
}

.prompt-card-topbar .prompt-more-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #17212b;
  box-shadow: 0 3px 12px rgba(4, 10, 18, 0.14);
  backdrop-filter: blur(8px);
}

.prompt-card-topbar .prompt-more-button:hover,
.prompt-card-topbar .prompt-more-button:focus-visible,
.prompt-card-topbar .prompt-more-button.show {
  background: rgba(255, 255, 255, 0.98);
  color: #17212b;
}

.prompt-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.48rem;
  padding: 4.2rem 0.72rem 0.72rem;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.3) 0%, rgba(4, 10, 18, 0) 27%, rgba(4, 10, 18, 0.08) 47%, rgba(4, 10, 18, 0.92) 100%);
}

.prompt-card-overlay > * {
  pointer-events: auto;
}

.prompt-card-overlay-author {
  width: 100%;
  min-width: 0;
}

.prompt-card-overlay-author > .d-flex:first-child {
  min-width: 0;
}

.prompt-card-overlay .avatar-sm {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.2);
}

.prompt-card-overlay .prompt-card-author-wrap {
  gap: 0.3rem;
  min-width: 0;
  color: #fff;
  font-size: 0.8rem;
}

.prompt-card-overlay .prompt-card-author-wrap > a {
  overflow: hidden;
  color: #fff !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.prompt-card-overlay .prompt-card-follow-btn {
  min-height: 22px;
  border: 0;
  background: #0077ff;
  color: #fff;
  font-size: 0.68rem;
  padding: 0.2rem 0.42rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.prompt-card-overlay .prompt-card-follow-btn:hover,
.prompt-card-overlay .prompt-card-follow-btn:focus-visible {
  border-color: transparent;
  background: #1686ff;
  color: #fff;
}

.prompt-card-overlay .prompt-card-date {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.67rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.prompt-card-overlay-content {
  min-width: 0;
}

.prompt-card-overlay h2 {
  min-height: 0;
  margin: 0 !important;
  font-size: 1rem;
  line-height: 1.18;
}

.prompt-card-overlay h2 .prompt-title-link {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.prompt-card-overlay h2 .prompt-title-link:hover,
.prompt-card-overlay h2 .prompt-title-link:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prompt-card-overlay .prompt-card-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem !important;
  min-height: 0;
  max-height: 1.55rem;
  margin: 0.42rem 0 0 !important;
  overflow: hidden;
}

.prompt-card-overlay .prompt-card-tags .tag-link {
  flex: 0 0 auto;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.66rem;
  line-height: 1;
  padding: 0.12rem 0;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
}

.prompt-card-overlay .prompt-card-tags .tag-link:hover,
.prompt-card-overlay .prompt-card-tags .tag-link:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  color: #9ed6ff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prompt-card-actions {
  flex: 0 0 auto;
  align-items: center;
  min-height: 42px;
  gap: 0.68rem !important;
  margin: 0 !important;
  padding: 0.28rem 0.65rem;
  border-top: 0;
  background: rgba(255, 255, 255, 0.98);
}

.prompt-card-actions form {
  margin: 0;
  line-height: 1;
}

.prompt-card-actions .prompt-card-action {
  min-width: 25px;
  min-height: 27px;
  gap: 0.2rem;
  padding: 0.16rem 0.04rem;
  font-size: 0.75rem;
}

.prompt-card-actions .prompt-card-action i {
  font-size: 0.96rem;
}

.prompt-card-actions .prompt-card-views {
  font-size: 0.76rem;
}

.prompt-card-actions .prompt-card-views i {
  font-size: 0.92rem;
}

html[data-theme="dark"] .prompt-card-media {
  background: #18191a !important;
}

html[data-theme="dark"] .prompt-card-actions {
  border-top: 0;
  background: rgba(24, 25, 26, 0.98);
}

html[data-theme="dark"] .prompt-card-media-badges .badge,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link {
  background: rgba(15, 20, 27, 0.86) !important;
  color: #f5f7fb !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .prompt-card-topbar .prompt-more-button,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn {
  background: rgba(15, 20, 27, 0.86);
  color: #f5f7fb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .prompt-card-topbar .prompt-more-button:hover,
html[data-theme="dark"] .prompt-card-topbar .prompt-more-button:focus-visible,
html[data-theme="dark"] .prompt-card-topbar .prompt-more-button.show,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn:hover,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn:focus-visible,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link:hover,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link:focus-visible {
  background: rgba(31, 39, 50, 0.96) !important;
  color: #fff !important;
}

html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn {
  background: #0077ff;
  color: #fff;
}

html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn:hover,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-follow-btn:focus-visible {
  background: #1686ff !important;
  color: #fff !important;
}

html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link:hover,
html[data-theme="dark"] .prompt-card-overlay .prompt-card-tags .tag-link:focus-visible {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
}

@media (max-width: 575.98px) {
  .prompt-card-overlay {
    padding-inline: 0.6rem;
  }

  .prompt-card-overlay .prompt-card-author-wrap {
    font-size: 0.76rem;
  }

  .prompt-card-overlay .prompt-card-date {
    font-size: 0.62rem;
  }

  .prompt-card-actions {
    gap: 0.48rem !important;
    padding-inline: 0.52rem;
  }
}

/* Ads can contain more content than a prompt. Keep their feed columns from stretching sibling cards. */
.prompt-feed-grid {
  align-items: flex-start;
}

.prompt-feed-grid > [class*="col-"] {
  align-self: flex-start;
}

.prompt-feed-grid .prompt-card,
.prompt-feed-grid .native-ad-card {
  width: 100%;
}

/* Native ads use the same image-first footprint as prompt cards while keeping their creative intact in an overlay. */
.native-ad-feed-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto !important;
  border: 0 !important;
}

.native-ad-feed-card .native-ad-media {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
}

.native-ad-feed-card .native-ad-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.native-ad-feed-card .native-ad-media > img,
.native-ad-feed-card .native-ad-media > .native-ad-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.native-ad-feed-card .native-ad-media > img {
  object-fit: cover;
  object-position: center;
}

.native-ad-feed-card .native-ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.72rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.25) 0%, rgba(4, 10, 18, 0) 34%, rgba(4, 10, 18, 0.94) 100%);
}

.native-ad-feed-card .native-ad-label-bar {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  min-height: 26px;
  margin: 0;
  padding: 0.32rem 0.5rem;
  border: 0 !important;
  border-radius: 999px;
  color: #17212b !important;
  font-size: 0.66rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 3px 12px rgba(4, 10, 18, 0.14);
  backdrop-filter: blur(8px);
}

.native-ad-feed-card .native-ad-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  width: 100%;
  padding: 0;
  background: transparent;
}

.native-ad-feed-card .native-ad-head {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.42rem;
}

.native-ad-feed-card .native-ad-logo,
.native-ad-feed-card .native-ad-logo-placeholder {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.2);
}

.native-ad-feed-card .native-ad-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  font-size: 0.9rem;
  line-height: 1.18;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.native-ad-feed-card .native-ad-subtitle {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.7rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.native-ad-feed-card .native-ad-description {
  display: -webkit-box;
  max-height: 2.65rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.native-ad-feed-card .native-ad-description p,
.native-ad-feed-card .native-ad-description > *:last-child {
  margin-bottom: 0;
}

.native-ad-feed-card .native-ad-footer {
  display: flex;
  align-items: center;
  flex: 0 0 42px;
  height: 42px;
  min-height: 42px;
  margin-top: 0;
  padding: 0.28rem 0.65rem;
  border-top: 0;
  background: rgba(255, 255, 255, 0.98);
}

.native-ad-feed-card .native-ad-cta {
  min-height: 32px;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.75rem;
}

html[data-theme="dark"] .native-ad-feed-card .native-ad-footer {
  border-top: 0;
  background: rgba(24, 25, 26, 0.98);
}

html[data-theme="dark"] .native-ad-feed-card .native-ad-label-bar {
  color: #f5f7fb !important;
  background: rgba(15, 20, 27, 0.86) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

@media (max-width: 575.98px) {
  .native-ad-feed-card .native-ad-overlay {
    padding-inline: 0.6rem;
  }

  .native-ad-feed-card .native-ad-footer {
    padding-inline: 0.52rem;
  }
}

/* Image-first community results: align result cards with the prompt-card rhythm. */
.community-result-card.is-image-first-result {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.community-result-card.is-image-first-result .community-result-image {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #eef2f5;
}

.community-result-card.is-image-first-result .community-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.community-result-card.is-image-first-result .community-result-image:hover img,
.community-result-card.is-image-first-result .community-result-image:focus-visible img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.community-result-card.is-image-first-result .community-result-label {
  top: 0.65rem;
  right: auto;
  bottom: auto;
  left: 0.65rem;
  z-index: 4;
  min-height: 26px;
  padding: 0.32rem 0.5rem;
  border: 0 !important;
  border-radius: 999px;
  color: #17212b !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 3px 12px rgba(4, 10, 18, 0.14);
  font-size: 0.66rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.community-result-card.is-image-first-result .community-result-body {
  position: absolute;
  inset: 0 0 42px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.48rem;
  min-width: 0;
  padding: 4.15rem 0.72rem 0.72rem;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.3) 0%, rgba(4, 10, 18, 0) 27%, rgba(4, 10, 18, 0.08) 47%, rgba(4, 10, 18, 0.94) 100%);
}

.community-result-card.is-image-first-result .community-result-body > * {
  pointer-events: auto;
}

.community-result-card.is-image-first-result .community-result-author-row,
.community-result-card.is-image-first-result .community-result-profile-meta {
  width: 100%;
  min-width: 0;
}

.community-result-card.is-image-first-result .community-result-author {
  color: #fff !important;
}

.community-result-card.is-image-first-result .community-result-author .avatar-sm {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.2);
}

.community-result-card.is-image-first-result .community-result-author strong,
.community-result-card.is-image-first-result .community-result-author small,
.community-result-card.is-image-first-result .community-result-author-row time,
.community-result-card.is-image-first-result .community-result-profile-meta,
.community-result-card.is-image-first-result .community-result-profile-meta time {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.community-result-card.is-image-first-result .community-result-author strong {
  color: #fff !important;
  font-size: 0.8rem;
}

.community-result-card.is-image-first-result .community-result-author small,
.community-result-card.is-image-first-result .community-result-author-row time,
.community-result-card.is-image-first-result .community-result-profile-meta {
  font-size: 0.67rem;
}

.community-result-card.is-image-first-result .community-result-note {
  display: -webkit-box;
  min-height: 0;
  max-height: 2.55rem;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.74rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-result-card.is-image-first-result .community-result-note.is-empty {
  display: none;
}

.community-result-card.is-image-first-result .community-result-source {
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  min-height: 50px;
  padding: 0.44rem 0.5rem;
  border: 0 !important;
  border-radius: 8px;
  color: #17212b !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 3px 12px rgba(4, 10, 18, 0.14);
  backdrop-filter: blur(8px);
}

.community-result-card.is-image-first-result .community-result-source:hover,
.community-result-card.is-image-first-result .community-result-source:focus-visible {
  color: #17212b !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: transparent !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.community-result-card.is-image-first-result .community-result-source-thumb {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.community-result-card.is-image-first-result .community-result-source small,
.community-result-card.is-image-first-result .community-result-source strong,
.community-result-card.is-image-first-result .community-result-source em,
.community-result-card.is-image-first-result .community-result-source > .bi-chevron-right {
  color: #17212b !important;
  text-shadow: none;
}

.community-result-card.is-image-first-result .community-result-source small {
  color: #0077ff !important;
}

.community-result-card.is-image-first-result .community-result-source em,
.community-result-card.is-image-first-result .community-result-source > .bi-chevron-right {
  color: #64748b !important;
}

.community-result-card.is-image-first-result .community-result-source small {
  font-size: 0.62rem;
}

.community-result-card.is-image-first-result .community-result-source strong {
  font-size: 0.76rem;
}

.community-result-card.is-image-first-result .community-result-source em {
  font-size: 0.65rem;
}

.community-result-card.is-image-first-result .community-result-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0.68rem;
  height: 42px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0.28rem 0.65rem;
  border-top: 1px solid rgba(33, 56, 86, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.community-result-card.is-image-first-result .community-result-actions form {
  margin: 0;
  line-height: 1;
}

.community-result-card.is-image-first-result .community-result-actions .comment-action {
  min-width: 25px;
  min-height: 27px;
  gap: 0.2rem;
  padding: 0.16rem 0.04rem;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.75rem;
}

.community-result-card.is-image-first-result .community-result-actions .comment-action:hover,
.community-result-card.is-image-first-result .community-result-actions .comment-action:focus-visible {
  color: var(--ph-primary-dark);
  background: rgba(47, 109, 246, 0.08);
}

.community-result-card.is-image-first-result .community-result-actions .comment-action.is-liked {
  color: #e11d48;
}

.community-result-card.is-image-first-result .community-result-tool {
  max-width: 62%;
  margin-left: auto;
  color: #6150b8;
  font-size: 0.72rem;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-body {
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.32) 0%, rgba(4, 10, 18, 0) 27%, rgba(4, 10, 18, 0.14) 47%, rgba(4, 10, 18, 0.96) 100%) !important;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-label,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source {
  color: #f5f7fb !important;
  background: rgba(15, 20, 27, 0.86) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source:hover,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source:focus-visible {
  color: #fff !important;
  background: rgba(8, 139, 224, 0.9) !important;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source-thumb {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source small,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source strong,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source em,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source > .bi-chevron-right {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-source small {
  color: #0077ff !important;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-actions {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(24, 25, 26, 0.98) !important;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-actions .comment-action,
html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-tool {
  color: #d7e2f6 !important;
}

html[data-theme="dark"] .community-result-card.is-image-first-result .community-result-actions .comment-action.is-liked {
  color: #ff6fbf !important;
}

@media (max-width: 575.98px) {
  .community-result-card.is-image-first-result .community-result-body {
    padding: 3.85rem 0.6rem 0.6rem;
  }

  .community-result-card.is-image-first-result .community-result-note {
    font-size: 0.68rem;
    -webkit-line-clamp: 1;
  }

  .community-result-card.is-image-first-result .community-result-source {
    grid-template-columns: 30px minmax(0, 1fr) 15px;
    min-height: 46px;
    padding: 0.4rem;
  }

  .community-result-card.is-image-first-result .community-result-source-thumb {
    width: 30px;
    height: 30px;
  }

  .community-result-card.is-image-first-result .community-result-source small {
    display: none;
  }

  .community-result-card.is-image-first-result .community-result-source strong {
    font-size: 0.7rem;
  }

  .community-result-card.is-image-first-result .community-result-source em {
    font-size: 0.62rem;
  }

  .community-result-card.is-image-first-result .community-result-actions {
    padding-inline: 0.52rem;
  }
}
