:root {
  --wf-blue: #1457ff;
  --wf-blue-strong: #0b46db;
  --wf-blue-soft: #eef4ff;
  --wf-ink: #0f172a;
  --wf-muted: #64748b;
  --wf-line: #e2e8f0;
  --wf-surface: #ffffff;
  --wf-page: #f7f9fc;
  --wf-success: #059669;
  --wf-danger: #dc2626;
  --wf-radius: 16px;
  --wf-shadow: 0 18px 45px rgba(15, 23, 42, .10);
  --wf-container: 1640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wf-body {
  margin: 0;
  min-height: 100vh;
  color: var(--wf-ink);
  background: var(--wf-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.wf-menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.wf-container {
  width: min(calc(100% - 32px), var(--wf-container));
  margin-inline: auto;
}
.wf-page-shell {
  width: min(calc(100% - 32px), var(--wf-container));
  margin: 24px auto 40px;
  min-width: 0;
}
.wf-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.wf-main { min-width: 0; }
.wf-reading-width { max-width: 920px; }

/* Header */
.wf-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--wf-line);
  box-shadow: 0 6px 22px rgba(15, 23, 42, .05);
  backdrop-filter: blur(16px);
}
.wf-header-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(260px, 680px) auto auto;
  align-items: center;
  gap: 22px;
}
.wf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.wf-brand-mark {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
}
.wf-brand-name {
  font-size: 25px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.045em;
  color: #0b0f19;
}
.wf-search {
  min-width: 0;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.wf-search:focus-within {
  background: #fff;
  border-color: #8eb0ff;
  box-shadow: 0 0 0 4px rgba(20, 87, 255, .11);
}
.wf-search svg { flex: 0 0 auto; color: #7c8ba1; }
.wf-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wf-ink);
  font-size: 14px;
}
.wf-search button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--wf-blue);
}
.wf-search button:hover { background: var(--wf-blue-strong); }

.wf-primary-nav {
  height: 68px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.wf-nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #172033;
  font-weight: 720;
  font-size: 14px;
  white-space: nowrap;
}
.wf-nav-trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--wf-blue);
  transform: scaleX(0);
  transition: transform .16s ease;
}
.wf-nav-trigger:hover,
.wf-nav-trigger[aria-expanded="true"],
.wf-nav-trigger.is-current { color: var(--wf-blue); }
.wf-nav-trigger:hover::after,
.wf-nav-trigger[aria-expanded="true"]::after,
.wf-nav-trigger.is-current::after { transform: scaleX(1); }
.wf-nav-chevron { transition: transform .16s ease; }
.wf-nav-trigger[aria-expanded="true"] .wf-nav-chevron { transform: rotate(180deg); }

.wf-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.wf-icon-button {
  position: relative;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #334155;
}
.wf-icon-button:hover { background: #f1f5f9; border-color: #e2e8f0; color: var(--wf-blue); }
.wf-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--wf-danger);
  font-size: 9px;
  font-weight: 800;
}
.wf-primary-cta,
.wf-secondary-cta {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}
.wf-primary-cta { border: 1px solid var(--wf-blue); background: var(--wf-blue); color: #fff; }
.wf-primary-cta:hover { background: var(--wf-blue-strong); }
.wf-secondary-cta { border: 1px solid #d8e0ec; background: #fff; color: #263244; }
.wf-secondary-cta:hover { border-color: #9eb8f9; color: var(--wf-blue); background: var(--wf-blue-soft); }
.wf-user-button {
  height: 41px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 4px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fff;
  color: #263244;
  font-weight: 720;
}
.wf-user-avatar,
.wf-avatar-fallback {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  object-fit: cover;
}
.wf-avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1457ff, #7c3aed);
  font-weight: 850;
}
.wf-popover-wrap { position: relative; }
.wf-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: min(520px, calc(100vh - 100px));
  overflow: auto;
  display: none;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--wf-shadow);
}
.wf-popover.is-open { display: block; }
.wf-popover-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid #edf1f6;
  background: rgba(255,255,255,.98);
  font-size: 13px;
  font-weight: 800;
}
.wf-account-summary { padding: 15px; background: linear-gradient(135deg, #f5f8ff, #fff); border-bottom: 1px solid #edf1f6; }
.wf-account-balance { font-size: 20px; font-weight: 850; color: var(--wf-blue); }
.wf-account-credit { margin-top: 4px; color: #7c3aed; font-weight: 750; }
.wf-popover-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}
.wf-popover-link:hover { background: #f6f8fc; color: var(--wf-blue); }
.wf-notification-list { min-height: 90px; }
.wf-notification-item { display: block; padding: 12px 14px; border-bottom: 1px solid #eef2f6; text-decoration: none; }
.wf-notification-item:hover { background: #f8fafc; }
.wf-notification-item.is-unread { background: #f2f6ff; }
.wf-notification-title { color: #172033; font-size: 13px; font-weight: 800; }
.wf-notification-body { margin-top: 3px; color: #64748b; font-size: 12px; line-height: 1.45; }
.wf-empty-state { padding: 24px 14px; text-align: center; color: #94a3b8; font-size: 13px; }

/* One shared mega menu */
.wf-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #dce4ef;
  background: rgba(255,255,255,.99);
  box-shadow: 0 20px 45px rgba(15,23,42,.13);
}
.wf-mega-menu.is-open { display: block; }
.wf-mega-inner { padding-block: 20px 24px; }
.wf-mega-panel { display: none; }
.wf-mega-panel.is-active { display: block; }
.wf-mega-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 15px; }
.wf-mega-title { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.025em; }
.wf-mega-subtitle { margin: 5px 0 0; color: var(--wf-muted); font-size: 13px; }
.wf-mega-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--wf-blue);
  background: var(--wf-blue-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.wf-mega-grid {
  max-height: min(500px, calc(100vh - 155px));
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-right: 4px;
}
.wf-mega-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  background: #fff;
}
.wf-mega-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #172033;
  text-decoration: none;
  font-size: 13px;
  font-weight: 820;
}
.wf-mega-group-title:hover { color: var(--wf-blue); }
.wf-mega-links { margin-top: 8px; display: grid; gap: 4px; }
.wf-mega-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 7px;
  color: #64748b;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 580;
}
.wf-mega-link:hover { color: var(--wf-blue); background: #f2f6ff; }
.wf-menu-backdrop {
  position: fixed;
  inset: 68px 0 0;
  z-index: -1;
  display: none;
  background: rgba(15,23,42,.28);
  backdrop-filter: blur(2px);
}
.wf-site-header.is-menu-open .wf-menu-backdrop { display: block; }

/* Mobile navigation */
.wf-mobile-toggle { display: none; }
.wf-mobile-drawer,
.wf-mobile-overlay { display: none; }

/* Common modern content */
.wf-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  border: 1px solid #dde7f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 15%, rgba(20,87,255,.14), transparent 28%),
    radial-gradient(circle at 55% 90%, rgba(124,58,237,.08), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f4f8ff 100%);
}
.wf-hero h1 { margin: 0; max-width: 820px; color: #0b1324; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -.055em; font-weight: 900; }
.wf-hero p { max-width: 700px; margin: 18px 0 0; color: #5d6c82; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.65; }
.wf-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wf-section { margin-top: 30px; }
.wf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wf-section-title { margin: 0; color: #111827; font-size: clamp(20px, 2vw, 28px); font-weight: 850; letter-spacing: -.035em; }
.wf-section-subtitle { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.wf-section-link { color: var(--wf-blue); font-weight: 750; font-size: 13px; text-decoration: none; }
.wf-section-link:hover { text-decoration: underline; }
.wf-surface { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.035); }
.wf-filter-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.wf-filter-panel { position: sticky; top: 92px; padding: 16px; }
.wf-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.wf-card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.wf-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wf-card:hover { transform: translateY(-2px); border-color: #bed0ff; box-shadow: 0 16px 34px rgba(15,23,42,.09); }
.wf-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eef2f7; }
.wf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.wf-card:hover .wf-card-media img { transform: scale(1.035); }
.wf-card-body { padding: 13px; }
.wf-card-title { margin: 0; display: -webkit-box; overflow: hidden; color: #152033; font-size: 14px; line-height: 1.4; font-weight: 780; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wf-card-meta { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64748b; font-size: 11px; }
.wf-card-price { color: #e4511e; font-size: 15px; font-weight: 850; }
.wf-chip { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #dfe7f2; border-radius: 999px; color: #526179; background: #f8fafc; font-size: 11px; font-weight: 650; text-decoration: none; }
.wf-chip:hover { color: var(--wf-blue); border-color: #b9ccff; background: #f1f5ff; }

/* Search result page */
.wf-search-page-head { padding: 26px; }
.wf-search-page-head h1 { margin: 0; font-size: 30px; font-weight: 880; letter-spacing: -.04em; }
.wf-search-page-head p { margin: 7px 0 0; color: #64748b; }
.wf-search-result-list { display: grid; gap: 10px; }
.wf-search-result-item { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; text-decoration: none; }
.wf-search-result-item:hover { border-color: #b7caff; box-shadow: 0 10px 24px rgba(15,23,42,.07); }
.wf-search-result-image { width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; background: #eef2f7; }
.wf-search-result-title { font-size: 15px; font-weight: 820; color: #162033; }
.wf-search-result-desc { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.5; }
.wf-search-result-type { padding: 5px 8px; border-radius: 999px; color: var(--wf-blue); background: var(--wf-blue-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }

/* Quick chat loads only after user action */
.wf-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #1457ff, #6c4cff);
  box-shadow: 0 14px 35px rgba(20,87,255,.32);
}
.wf-chat-launcher:hover { transform: translateY(-2px); }
.wf-chat-dock {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 860;
  width: min(760px, calc(100vw - 40px));
  height: min(570px, calc(100vh - 120px));
  display: none;
  grid-template-columns: 270px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 65px rgba(15,23,42,.24);
}
.wf-chat-dock.is-open { display: grid; }
.wf-chat-sidebar { min-width: 0; border-right: 1px solid #e5eaf1; background: #f8fafc; }
.wf-chat-head { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-bottom: 1px solid #e5eaf1; font-weight: 820; }
.wf-chat-contacts { height: calc(100% - 58px); overflow: auto; padding: 8px; }
.wf-chat-contact { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.wf-chat-contact:hover, .wf-chat-contact.is-active { background: #eaf1ff; color: var(--wf-blue); }
.wf-chat-contact-avatar { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #dbe5f5; }
.wf-chat-main { min-width: 0; display: grid; grid-template-rows: 58px minmax(0,1fr) auto; }
.wf-chat-messages { overflow: auto; padding: 14px; background: #fff; }
.wf-chat-empty { height: 100%; display: grid; place-items: center; color: #94a3b8; text-align: center; padding: 20px; }
.wf-chat-message { max-width: 78%; margin: 7px 0; padding: 9px 11px; border-radius: 12px 12px 12px 4px; color: #253247; background: #eef2f7; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.wf-chat-message.is-mine { margin-left: auto; border-radius: 12px 12px 4px 12px; color: #fff; background: var(--wf-blue); }
.wf-chat-compose { display: flex; gap: 8px; padding: 11px; border-top: 1px solid #e5eaf1; background: #fff; }
.wf-chat-compose textarea { min-height: 40px; max-height: 100px; flex: 1; resize: none; border: 1px solid #d8e0eb; border-radius: 10px; padding: 10px 11px; outline: none; }
.wf-chat-compose textarea:focus { border-color: #8eb0ff; box-shadow: 0 0 0 3px rgba(20,87,255,.1); }
.wf-chat-compose button { width: 42px; border: 0; border-radius: 10px; color: #fff; background: var(--wf-blue); }

/* Legacy template cleanup */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.st-avatar-fallback { background: linear-gradient(135deg,#1457ff,#6d3de8)!important; color:#fff!important; }
:focus-visible { outline: 3px solid rgba(20,87,255,.55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

@media (max-width: 1380px) {
  .wf-header-row { grid-template-columns: auto minmax(210px, 1fr) auto auto; gap: 12px; }
  .wf-brand-name { font-size: 22px; }
  .wf-nav-trigger { padding-inline: 8px; font-size: 13px; }
  .wf-header-actions { gap: 4px; }
  .wf-header-actions .wf-primary-cta { padding-inline: 11px; }
  .wf-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1180px) {
  .wf-brand-name { display: none; }
  .wf-nav-trigger { padding-inline: 7px; font-size: 12px; }
  .wf-header-actions .wf-primary-cta { font-size: 0; width: 39px; padding: 0; }
  .wf-header-actions .wf-primary-cta svg { width: 18px; height: 18px; }
}

@media (max-width: 980px) {
  .wf-container, .wf-page-shell { width: min(calc(100% - 24px), var(--wf-container)); }
  .wf-header-row { min-height: 62px; grid-template-columns: auto minmax(0,1fr) auto; }
  .wf-brand-name { font-size: 21px; }
  .wf-brand-mark { width: 34px; }
  .wf-primary-nav { display: none; }
  .wf-header-actions .wf-user-name,
  .wf-header-actions .wf-primary-cta,
  .wf-header-actions .wf-secondary-cta { display: none; }
  .wf-mobile-toggle { display: grid; }
  .wf-mega-menu, .wf-menu-backdrop { display: none!important; }
  .wf-mobile-overlay { position: fixed; inset: 0; z-index: 980; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); }
  .wf-mobile-overlay.is-open { display: block; }
  .wf-mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 990; width: min(420px, 92vw); overflow: auto; background: #fff; box-shadow: -18px 0 48px rgba(15,23,42,.2); transform: translateX(105%); transition: transform .22s ease; }
  .wf-mobile-drawer.is-open { display: block; transform: translateX(0); }
  .wf-mobile-head { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #e5eaf1; }
  .wf-mobile-body { padding: 12px; }
  .wf-mobile-main-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 800; }
  .wf-mobile-main-link:hover { color: var(--wf-blue); background: #f2f6ff; }
  .wf-mobile-section { margin: 8px 0; border: 1px solid #e3e9f1; border-radius: 12px; overflow: hidden; }
  .wf-mobile-section summary { list-style: none; padding: 12px; font-weight: 820; cursor: pointer; }
  .wf-mobile-section summary::-webkit-details-marker { display: none; }
  .wf-mobile-category-links { display: grid; gap: 3px; padding: 0 9px 10px; }
  .wf-mobile-category-links a { padding: 9px; border-radius: 8px; color: #526179; text-decoration: none; font-size: 13px; }
  .wf-mobile-category-links a:hover { color: var(--wf-blue); background: #f2f6ff; }
  .wf-mega-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-filter-layout { grid-template-columns: 1fr; }
  .wf-filter-panel { position: static; }
  .wf-card-grid, .wf-card-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .wf-container, .wf-page-shell { width: min(calc(100% - 20px), var(--wf-container)); }
  .wf-header-row { min-height: 58px; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; }
  .wf-brand-name { display: none; }
  .wf-brand-mark { width: 38px; height: 30px; }
  .wf-search { height: 39px; padding-left: 10px; }
  .wf-search input { font-size: 13px; }
  .wf-header-actions { gap: 2px; }
  .wf-header-actions .wf-notification-wrap { display: none; }
  .wf-icon-button { width: 36px; height: 36px; }
  .wf-user-button { width: 36px; height: 36px; padding: 2px; border: 0; }
  .wf-user-button .wf-nav-chevron { display: none; }
  .wf-user-avatar, .wf-avatar-fallback { width: 32px; height: 32px; }
  .wf-popover { position: fixed; top: 62px; left: 10px; right: 10px; width: auto; }
  .wf-hero { padding: 30px 22px; border-radius: 18px; }
  .wf-hero h1 { font-size: 35px; }
  .wf-card-grid, .wf-card-grid--3 { grid-template-columns: 1fr; }
  .wf-search-result-item { grid-template-columns: 90px minmax(0,1fr); }
  .wf-search-result-image { width: 90px; }
  .wf-search-result-type { display: none; }
  .wf-chat-launcher { right: 12px; bottom: 12px; }
  .wf-chat-dock { inset: 58px 0 0; width: 100%; height: auto; border-radius: 0; grid-template-columns: 1fr; }
  .wf-chat-sidebar { display: none; }
  .wf-chat-dock.show-contacts .wf-chat-sidebar { display: block; }
  .wf-chat-dock.show-contacts .wf-chat-main { display: none; }
}

/* Modern footer */
.wf-footer{margin-top:auto;border-top:1px solid var(--wf-line);background:#fff}
.wf-footer-grid{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,1fr));gap:44px;padding:48px 0 38px}
.wf-footer-brand p{max-width:340px;margin:15px 0;color:var(--wf-muted);font-size:13px;line-height:1.65}
.wf-footer-grid nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.wf-footer-grid nav h3{margin:0 0 5px;color:var(--wf-ink);font-size:13px;font-weight:850}
.wf-footer-grid nav a{color:#64748b;text-decoration:none;font-size:12px;font-weight:620}
.wf-footer-grid nav a:hover{color:var(--wf-blue)}
.wf-footer-social{display:flex;gap:8px}.wf-footer-social a{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--wf-line);border-radius:10px;text-decoration:none;color:#475569;font-size:12px;font-weight:800}.wf-footer-social a:hover{border-color:#9eb8f9;color:var(--wf-blue);background:var(--wf-blue-soft)}
.wf-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:19px 0;border-top:1px solid #edf1f6;color:#94a3b8;font-size:11px;font-weight:620}

/* Account / workspace sidebar */
.wf-dashboard-sidebar{position:sticky;top:92px;width:245px;flex:0 0 245px;max-height:calc(100vh - 112px);overflow:auto;padding:14px;border:1px solid var(--wf-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.wf-dashboard-user{display:flex;align-items:center;gap:10px;padding:8px 7px 15px;border-bottom:1px solid #edf1f6}.wf-dashboard-user img,.wf-dashboard-user>.wf-avatar-fallback{width:42px;height:42px;flex:0 0 42px;border-radius:12px;object-fit:cover}.wf-dashboard-user div{min-width:0}.wf-dashboard-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.wf-dashboard-user div span{display:block;margin-top:2px;color:#64748b;font-size:10px}
.wf-dashboard-nav{display:flex;flex-direction:column;padding-top:8px}.wf-dashboard-nav p{margin:15px 9px 5px;color:#94a3b8;font-size:9px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.wf-dashboard-nav a{display:flex;align-items:center;gap:9px;min-height:39px;padding:0 10px;border-radius:10px;color:#475569;text-decoration:none;font-size:12px;font-weight:700}.wf-dashboard-nav a>span{width:19px;color:#7c8ba1;text-align:center;font-size:15px}.wf-dashboard-nav a:hover{color:var(--wf-blue);background:var(--wf-blue-soft)}
.wf-dashboard-help{display:flex;flex-direction:column;gap:5px;margin-top:15px;padding:12px;border-radius:12px;background:linear-gradient(135deg,#f1f6ff,#fff)}.wf-dashboard-help strong{font-size:12px}.wf-dashboard-help span{color:#64748b;font-size:10px;line-height:1.45}.wf-dashboard-help a{color:var(--wf-blue);text-decoration:none;font-size:10px;font-weight:800}
@media(max-width:1023px){.wf-dashboard-sidebar{display:none}.wf-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}}
@media(max-width:640px){.wf-footer-grid{grid-template-columns:1fr;padding:34px 0 24px}.wf-footer-bottom{flex-direction:column;gap:6px}.wf-footer-grid nav{padding-top:4px}}
