/* HowToLibrary custom styles */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dark .bg-white { background-color: rgb(30 41 59); }
.dark .bg-slate-50 { background-color: rgb(30 41 59); }
.dark .border-slate-200 { border-color: rgb(51 65 85); }
.dark .border-slate-100 { border-color: rgb(51 65 85); }
.dark .text-slate-900 { color: rgb(241 245 249); }
.dark .text-slate-800 { color: rgb(226 232 240); }
.dark .text-slate-700 { color: rgb(203 213 225); }
.dark .text-slate-600 { color: rgb(203 213 225); }
.dark .text-slate-500 { color: rgb(148 163 184); }
.dark .text-slate-400 { color: rgb(148 163 184); }
.dark .bg-slate-100 { background-color: rgb(51 65 85); }

/* Homepage */
@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}
.home-float { animation: home-float 6s ease-in-out infinite; }
.home-float-delay { animation: home-float 6s ease-in-out 2s infinite; }
.home-fade-up { animation: home-fade-up 0.7s ease-out both; }
.home-fade-up-delay { animation: home-fade-up 0.7s ease-out 0.15s both; }
.home-fade-up-delay-2 { animation: home-fade-up 0.7s ease-out 0.3s both; }
.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
.hero-mosaic img { transition: transform 0.5s ease; }
.hero-mosaic a:hover img { transform: scale(1.04); }
.text-balance { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .home-float, .home-float-delay, .home-fade-up, .home-fade-up-delay, .home-fade-up-delay-2 {
    animation: none;
  }
}

/* Google Ad slots — containers only render when a slot is live */
.ad-slot__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 1rem;
}
.ad-slot--leaderboard {
  background: #fff;
  border-bottom: 1px solid rgb(226 232 240 / 0.8);
}
.ad-slot--leaderboard .ad-slot__inner { min-height: 90px; }
.ad-slot--banner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  background: rgb(248 250 252);
}
.ad-slot--banner .ad-slot__inner { min-height: 90px; }
.ad-slot--home {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border-top: 1px solid rgb(226 232 240 / 0.6);
  border-bottom: 1px solid rgb(226 232 240 / 0.6);
}
.ad-slot--home .ad-slot__inner { min-height: 100px; }
.ad-slot--in-content .ad-slot__inner { min-height: 100px; }
.ad-slot--sidebar .ad-slot__inner { min-height: 250px; }
.ad-slot--affiliate .ad-slot__inner {
  min-height: 120px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  padding: 0.5rem;
}
.dark .ad-slot--affiliate .ad-slot__inner {
  background: rgba(154, 52, 18, 0.15);
  border-color: rgba(251, 146, 60, 0.35);
}
.ad-slot ins.adsbygoogle { display: block; margin: 0 auto; }

/* Paid sponsored placements */
.sponsored-slot__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(100 116 139);
  margin-bottom: 0.5rem;
}
.sponsored-slot__card {
  border-radius: 1rem;
  border: 1px solid rgb(254 215 170);
  background: linear-gradient(135deg, #fff7ed, #fff);
  padding: 1rem 1.125rem;
}
.dark .sponsored-slot__card {
  background: rgba(154, 52, 18, 0.12);
  border-color: rgba(251, 146, 60, 0.35);
}
.sponsored-slot__company {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(51 65 85);
  margin-bottom: 0.35rem;
}
.sponsored-slot__desc {
  font-size: 0.8rem;
  color: rgb(100 116 139);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.sponsored-slot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(234 88 12);
}
.sponsored-slot__link:hover { text-decoration: underline; }
.sponsored-slot--bottom .sponsored-slot__card {
  max-width: 42rem;
}

/* Tools & utilities */
.tool-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #fff;
}
.tool-input:focus {
  outline: none;
  border-color: rgb(37 99 235);
  box-shadow: 0 0 0 2px rgb(37 99 235 / 0.2);
}
.tool-btn {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(to right, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}
.tool-btn:hover { filter: brightness(1.08); }
.tool-btn:disabled { opacity: 0.6; cursor: default; }
.tool-btn-secondary {
  padding: 0.5rem 1rem;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.75rem;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}
.tool-btn-secondary:hover { background: rgb(248 250 252); }
.tool-tab { cursor: pointer; }

/* Header nav: avoid squashed links on narrower desktop widths. */
.header-main-nav {
  justify-content: flex-end;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}
.header-main-nav > * { flex-shrink: 0; }
.header-main-nav a,
.header-main-nav button { white-space: nowrap; }

.header-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-account-menu {
  min-width: 13rem;
}

@media (min-width: 1024px) and (max-width: 1139px) {
  .header-main-nav {
    overflow: visible;
    padding-bottom: 0.125rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .header-main-nav a,
  .header-main-nav button {
    font-size: 0.8125rem;
    padding: 0.45rem 0.6rem;
  }
}

@media print {
  header, footer, .ad-slot, aside { display: none !important; }
  .tool-widget-wrap { border: none !important; box-shadow: none !important; }
}

/* Guide cover images — 16:9, no distortion */
.guide-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.guide-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-cover--compact {
  max-width: 20rem;
}

/* Inner pages — consistent vertical rhythm below header / search / hero */
.page-content {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}
.page-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.page-section-after-hero {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .page-content {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
  .page-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  .page-section-after-hero {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
}
@media (min-width: 1024px) {
  .page-content {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
  .page-section-after-hero {
    padding-top: 4rem;
  }
}

/* Categories mega-menu */
.nav-mega-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 60;
  width: min(17rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.dark .nav-mega-menu {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.nav-mega-menu-header {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgb(241 245 249);
  background: rgb(248 250 252);
}
.dark .nav-mega-menu-header {
  background: rgb(30 41 59);
  border-color: rgb(51 65 85);
}
.nav-mega-menu-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(37 99 235);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
}
.nav-mega-menu-all:hover { background: rgb(239 246 255); }
.nav-mega-menu-all--muted { color: rgb(100 116 139); font-weight: 500; }

.nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: min(28rem, 70vh);
  overflow-y: auto;
}
.nav-mega-item { margin: 0; border-radius: 0.5rem; }
.nav-mega-item-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(51 65 85);
  text-decoration: none;
}
.dark .nav-mega-item-link { color: rgb(226 232 240); }
.nav-mega-item-link:hover,
.nav-mega-item.is-open .nav-mega-item-link,
.nav-mega-item.has-children:hover .nav-mega-item-link {
  background: rgb(239 246 255);
  color: rgb(29 78 216);
}
.dark .nav-mega-item.has-children:hover .nav-mega-item-link {
  background: rgb(30 58 138 / 0.35);
  color: rgb(147 197 253);
}
.nav-mega-item-icon { flex-shrink: 0; width: 1.35rem; text-align: center; }
.nav-mega-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-mega-item-chevron {
  font-size: 0.65rem;
  opacity: 0.45;
  transition: transform 0.15s;
}
.nav-mega-item.has-children:hover .nav-mega-item-chevron,
.nav-mega-item.is-open .nav-mega-item-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Subcategories drop down directly under the parent */
.nav-mega-subs {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.5rem;
  display: none;
  border-left: 2px solid rgb(219 234 254);
  margin-left: 1.65rem;
}
.dark .nav-mega-subs { border-left-color: rgb(30 58 138); }
.nav-mega-item.has-children:hover .nav-mega-subs,
.nav-mega-item.is-open .nav-mega-subs {
  display: block;
}
.nav-mega-sub-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(71 85 105);
  text-decoration: none;
}
.dark .nav-mega-sub-link { color: rgb(203 213 225); }
.nav-mega-sub-link:hover {
  background: rgb(248 250 252);
  color: rgb(37 99 235);
}
.dark .nav-mega-sub-link:hover { background: rgb(30 41 59); }
.nav-mega-sub-icon { width: 1rem; text-align: center; font-size: 0.75rem; }

.nav-mobile-cat > summary { list-style: none; }
.nav-mobile-cat > summary::-webkit-details-marker { display: none; }

/* Public empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 1rem;
  background: rgb(248 250 252);
  border: 1px dashed rgb(203 213 225);
}
.dark .empty-state {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}
.empty-state__icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.7; }
.empty-state__message { font-size: 1.05rem; font-weight: 600; color: rgb(51 65 85); }
.dark .empty-state__message { color: rgb(226 232 240); }
.empty-state__hint { margin-top: 0.5rem; font-size: 0.875rem; color: rgb(100 116 139); max-width: 28rem; margin-left: auto; margin-right: auto; }
.empty-state__action {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.empty-state__action:hover { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35); }

/* Auth forms */
.auth-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgb(226 232 240);
  padding: 2rem;
}
.dark .auth-card {
  background: rgb(30 41 59);
  border-color: rgb(51 65 85);
}
.auth-label { display: block; font-size: 0.875rem; font-weight: 500; color: rgb(51 65 85); margin-bottom: 0.25rem; }
.dark .auth-label { color: rgb(203 213 225); }
.auth-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1rem;
}
.dark .auth-input {
  background: rgb(15 23 42);
  border-color: rgb(71 85 105);
  color: rgb(241 245 249);
}
.auth-input:focus { outline: none; box-shadow: 0 0 0 2px rgb(59 130 246); }

/* Profile */
.profile-section { scroll-margin-top: 6rem; }
.profile-card {
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  padding: 1.75rem;
}
.dark .profile-card {
  background: rgb(30 41 59);
  border-color: rgb(51 65 85);
}
.profile-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.profile-section__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.profile-section__action {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(37 99 235);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.profile-section__action:hover { text-decoration: underline; }
.profile-field-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgb(100 116 139);
}
.profile-sidebar-text {
  font-size: 0.875rem;
  color: rgb(100 116 139);
  margin: 0 0 1rem;
}
.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s, background 0.15s;
}
.profile-btn--block { width: 100%; }
.profile-btn--primary {
  color: #fff;
  background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
}
.profile-btn--primary:hover { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }
.profile-btn--secondary {
  color: rgb(51 65 85);
  background: #fff;
  border: 1px solid rgb(203 213 225);
}
.dark .profile-btn--secondary {
  background: rgb(15 23 42);
  border-color: rgb(71 85 105);
  color: rgb(226 232 240);
}
.profile-btn--secondary:hover { background: rgb(248 250 252); }
.dark .profile-btn--secondary:hover { background: rgb(51 65 85); }
.profile-nav {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgb(226 232 240);
}
.dark .profile-nav { border-color: rgb(51 65 85); }
.profile-nav__scroll {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.profile-nav__scroll::-webkit-scrollbar { display: none; }
.profile-nav__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(100 116 139);
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.profile-nav__link:hover {
  color: rgb(37 99 235);
  background: rgb(239 246 255);
}
.dark .profile-nav__link:hover {
  background: rgb(30 58 138 / 0.35);
  color: rgb(147 197 253);
}
.profile-nav__link--active {
  color: #fff;
  background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
}
.profile-nav__link--active:hover { color: #fff; }
.profile-nav__badge {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: rgb(239 68 68);
  border-radius: 9999px;
}
.profile-nav__link--active .profile-nav__badge {
  background: rgba(255, 255, 255, 0.3);
}
.profile-hero__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .profile-hero__main { flex-direction: row; align-items: flex-start; }
}
.profile-hero__avatar-wrap { text-align: center; flex-shrink: 0; }
.profile-hero__avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid rgb(219 234 254);
  margin: 0 auto 0.75rem;
  display: block;
}
.profile-hero__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom right, rgb(59 130 246), rgb(147 51 234));
}
.profile-hero__avatar-form { margin-top: 0.5rem; }
.profile-hero__upload-label { display: block; cursor: pointer; }
.profile-hero__upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.profile-hero__upload-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(37 99 235);
}
.profile-hero__upload-btn:hover { text-decoration: underline; }
.profile-hero__upload-submit {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgb(59 130 246);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
.profile-hero__remove-form { margin-top: 0.35rem; }
.profile-hero__remove-btn {
  font-size: 0.6875rem;
  color: rgb(220 38 38);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.profile-hero__remove-btn:hover { text-decoration: underline; }
.profile-hero__info { flex: 1; min-width: 0; }
.profile-hero__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.profile-hero__email {
  font-size: 0.875rem;
  color: rgb(100 116 139);
  margin: 0 0 0.5rem;
}
.profile-hero__verify-link {
  margin-left: 0.35rem;
  font-weight: 600;
  color: rgb(37 99 235);
}
.profile-hero__bio {
  font-size: 0.875rem;
  color: rgb(71 85 105);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.dark .profile-hero__bio { color: rgb(203 213 225); }
.profile-hero__meta {
  font-size: 0.75rem;
  color: rgb(148 163 184);
  margin: 0;
}
.profile-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
}
.profile-badge--ok { color: rgb(5 150 105); background: rgb(209 250 229); }
.profile-badge--warn { color: rgb(180 83 9); background: rgb(254 243 199); }
.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(241 245 249);
}
.dark .profile-hero__stats { border-color: rgb(51 65 85); }
@media (min-width: 640px) {
  .profile-hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.profile-stat {
  display: block;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgb(248 250 252);
  text-decoration: none;
  transition: background 0.15s;
}
.dark .profile-stat { background: rgb(15 23 42); }
.profile-stat:hover { background: rgb(239 246 255); }
.dark .profile-stat:hover { background: rgb(30 58 138 / 0.25); }
.profile-stat__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: rgb(37 99 235);
}
.profile-stat__value--emerald { color: rgb(5 150 105); }
.profile-stat__value--purple { color: rgb(147 51 234); }
.profile-stat__value--amber { color: rgb(217 119 6); }
.profile-stat__label {
  display: block;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  margin-top: 0.15rem;
}
.profile-notifications { list-style: none; margin: 0; padding: 0; }
.profile-notifications__item { border-bottom: 1px solid rgb(241 245 249); }
.dark .profile-notifications__item { border-color: rgb(51 65 85); }
.profile-notifications__item:last-child { border-bottom: none; }
.profile-notifications__item--unread {
  background: rgb(239 246 255 / 0.6);
  border-radius: 0.5rem;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}
.dark .profile-notifications__item--unread { background: rgb(30 58 138 / 0.2); }
.profile-notifications__link {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
}
.profile-notifications__link:hover .profile-notifications__title { color: rgb(37 99 235); }
.profile-notifications__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
.profile-notifications__body {
  display: block;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  margin-top: 0.15rem;
}
.profile-notifications__time {
  display: block;
  font-size: 0.6875rem;
  color: rgb(148 163 184);
  margin-top: 0.25rem;
}
.profile-link-list { display: flex; flex-direction: column; gap: 0.5rem; }
.profile-link-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(241 245 249);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.dark .profile-link-list__item { border-color: rgb(51 65 85); }
.profile-link-list__item:hover {
  border-color: rgb(191 219 254);
  background: rgb(239 246 255 / 0.5);
}
.profile-link-list__title { display: block; font-weight: 600; font-size: 0.9375rem; }
.profile-link-list__meta { display: block; font-size: 0.75rem; color: rgb(100 116 139); margin-top: 0.15rem; }
.profile-link-list__arrow { color: rgb(37 99 235); font-size: 0.875rem; flex-shrink: 0; }
.profile-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}
.profile-checkbox input { margin-top: 0.2rem; flex-shrink: 0; }
.profile-quick-links { display: flex; flex-direction: column; gap: 0.35rem; }
.profile-quick-links__item {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(37 99 235);
  text-decoration: none;
}
.profile-quick-links__item:hover { text-decoration: underline; }
.profile-quick-links__item--warn { color: rgb(217 119 6); }

/* Submissions */
.submissions-header { margin-bottom: 1.5rem; }
.submissions-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.submissions-filters { margin-top: 0.75rem; }
.submissions-filters__scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.submissions-filters__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(100 116 139);
  background: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dark .submissions-filters__link {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
  color: rgb(148 163 184);
}
.submissions-filters__link:hover {
  border-color: rgb(191 219 254);
  color: rgb(37 99 235);
  background: rgb(239 246 255);
}
.dark .submissions-filters__link:hover {
  border-color: rgb(59 130 246);
  background: rgb(30 58 138 / 0.25);
  color: rgb(147 197 253);
}
.submissions-filters__link--active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
}
.submissions-filters__link--active:hover { color: #fff; }
.submissions-filters__count {
  min-width: 1.15rem;
  padding: 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
}
.submissions-filters__link--active .submissions-filters__count { background: rgba(255, 255, 255, 0.25); }
.submissions-stats__grid { border-top: none; padding-top: 0; margin: 0; }
.submissions-live-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .submissions-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.submission-list { display: flex; flex-direction: column; gap: 0.75rem; }
.submission-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.85rem;
  background: rgb(248 250 252 / 0.5);
  transition: border-color 0.15s;
}
.dark .submission-card {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}
.submission-card--approved { border-color: rgb(167 243 208); }
.dark .submission-card--approved { border-color: rgb(6 95 70); }
.submission-card--processing { border-color: rgb(233 213 255); }
.dark .submission-card--processing { border-color: rgb(107 33 168); }
.submission-card--live {
  flex-direction: row;
  align-items: stretch;
  background: linear-gradient(to bottom right, rgb(236 253 245 / 0.8), #fff);
  border-color: rgb(167 243 208);
}
.dark .submission-card--live {
  background: linear-gradient(to bottom right, rgb(6 78 59 / 0.35), rgb(15 23 42));
  border-color: rgb(6 95 70);
}
@media (min-width: 640px) {
  .submission-card:not(.submission-card--live) {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.submission-card__main {
  display: flex;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.submission-card__thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
  background: rgb(241 245 249);
}
.dark .submission-card__thumb { border-color: rgb(51 65 85); background: rgb(30 41 59); }
.submission-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.submission-card__thumb--live { width: 6rem; height: 4rem; border-color: rgb(167 243 208); }
.submission-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: rgb(16 185 129);
  text-align: center;
  padding: 0.25rem;
  border-style: dashed;
  border-color: rgb(167 243 208);
  background: rgb(236 253 245 / 0.5);
}
.submission-card__body { flex: 1; min-width: 0; }
.submission-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.submission-card__title-link {
  color: inherit;
  text-decoration: none;
}
.submission-card__title-link:hover { color: rgb(37 99 235); }
.submission-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.submission-card__time {
  font-size: 0.75rem;
  color: rgb(148 163 184);
}
.submission-card__time--approved { color: rgb(5 150 105); font-weight: 500; }
.submission-card__improvement { font-size: 0.75rem; color: rgb(37 99 235); }
.submission-card__live-link {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(5 150 105);
  text-decoration: none;
}
.submission-card__live-link:hover { color: rgb(4 120 87); }
.submission-card__awaiting { margin: 0.35rem 0 0; font-size: 0.75rem; color: rgb(217 119 6); }
.submission-card__alert {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgb(254 202 202);
  background: rgb(254 242 242);
  font-size: 0.875rem;
  color: rgb(153 27 27);
}
.dark .submission-card__alert {
  background: rgb(127 29 29 / 0.2);
  border-color: rgb(185 28 28);
  color: rgb(254 202 202);
}
.submission-card__alert-title { font-weight: 600; margin: 0 0 0.25rem; }
.submission-card__alert-hint { margin: 0.5rem 0 0; font-size: 0.75rem; }
.submission-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.submission-card__btn { font-size: 0.8125rem; padding: 0.5rem 0.85rem; }
.submission-card__btn--danger {
  color: rgb(185 28 28) !important;
  border-color: rgb(254 202 202) !important;
}
.submission-card__btn--danger:hover { background: rgb(254 242 242) !important; }
.dark .submission-card__btn--danger:hover { background: rgb(127 29 29 / 0.25) !important; }
.submission-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1.3;
}
.submission-badge--draft { color: rgb(71 85 105); background: rgb(241 245 249); }
.submission-badge--preview { color: rgb(29 78 216); background: rgb(219 234 254); }
.submission-badge--submitted { color: rgb(180 83 9); background: rgb(254 243 199); }
.submission-badge--processing { color: rgb(107 33 168); background: rgb(243 232 255); }
.submission-badge--approved { color: rgb(4 120 87); background: rgb(209 250 229); }
.submission-badge--live { color: #fff; background: rgb(5 150 105); }
.submission-badge--rejected { color: rgb(185 28 28); background: rgb(254 226 226); }
.submission-badge--ai { color: rgb(29 78 216); background: rgb(219 234 254); }
.submission-badge--flagged { color: rgb(180 83 9); background: rgb(254 243 199); }
.submission-badge--improvement { color: rgb(29 78 216); background: rgb(219 234 254); }
.submission-builder-status { align-self: flex-start; flex-shrink: 0; }
.submission-notice {
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}
.submission-notice--compact { padding: 0.65rem 0.85rem; font-size: 0.8125rem; }
.submission-notice__title { font-weight: 600; margin: 0 0 0.25rem; }
.submission-notice__hint { margin: 0.75rem 0 0; font-size: 0.75rem; opacity: 0.9; }
.submission-notice--warn {
  color: rgb(146 64 14);
  background: rgb(255 251 235);
  border-color: rgb(253 230 138);
}
.dark .submission-notice--warn {
  color: rgb(253 230 138);
  background: rgb(120 53 15 / 0.25);
  border-color: rgb(180 83 9);
}
.submission-notice--info {
  color: rgb(29 78 216);
  background: rgb(239 246 255);
  border-color: rgb(191 219 254);
}
.dark .submission-notice--info {
  color: rgb(191 219 254);
  background: rgb(30 58 138 / 0.25);
  border-color: rgb(59 130 246);
}
.submission-notice--error {
  color: rgb(153 27 27);
  background: rgb(254 242 242);
  border-color: rgb(254 202 202);
}
.dark .submission-notice--error {
  color: rgb(254 202 202);
  background: rgb(127 29 29 / 0.2);
  border-color: rgb(185 28 28);
}
.submission-notice--success {
  color: rgb(4 120 87);
  background: rgb(236 253 245);
  border-color: rgb(167 243 208);
}
.dark .submission-notice--success {
  color: rgb(167 243 208);
  background: rgb(6 78 59 / 0.25);
  border-color: rgb(6 95 70);
}
.submission-progress { margin-top: 0.75rem; }
.submission-progress__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgb(107 33 168);
  margin-bottom: 0.25rem;
}
.dark .submission-progress__head { color: rgb(216 180 254); }
.submission-progress__track {
  height: 0.375rem;
  background: rgb(243 232 255);
  border-radius: 9999px;
  overflow: hidden;
}
.dark .submission-progress__track { background: rgb(88 28 135 / 0.4); }
.submission-progress__bar {
  height: 100%;
  background: rgb(147 51 234);
  border-radius: 9999px;
  transition: width 0.5s ease;
}
.submissions-template-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .submissions-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .submissions-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.submissions-template-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 2px solid rgb(226 232 240);
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dark .submissions-template-card {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}
.submissions-template-card:hover {
  border-color: rgb(59 130 246);
  background: rgb(239 246 255 / 0.5);
}
.dark .submissions-template-card:hover {
  background: rgb(30 58 138 / 0.2);
  border-color: rgb(59 130 246);
}
.submissions-template-card__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
.submissions-template-card__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgb(100 116 139);
}
.submissions-builder-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .submissions-builder-grid { grid-template-columns: 2fr 1fr; }
}
.submissions-block-toolbar { margin-bottom: 0.5rem; }
.submissions-block-toolbar__label { margin-bottom: 0.35rem; }
.submissions-block-toolbar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.submissions-block-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.dark .submissions-block-btn {
  background: rgb(15 23 42);
  border-color: rgb(71 85 105);
  color: rgb(226 232 240);
}
.submissions-block-btn:hover { background: rgb(248 250 252); }
.dark .submissions-block-btn:hover { background: rgb(51 65 85); }
.auth-input--file { padding: 0.5rem; font-size: 0.875rem; }
