/* Wemvy Design System v7 — reusable product components */
.w-icon { display: inline-block; fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; vertical-align: middle; width: 20px; }
.w-sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0,0,0,0); }
.w-muted { color: var(--w-slate-600); }
.w-text-cyan { color: var(--w-cyan-700); }
.w-text-pink { color: var(--w-pink-600); }

/* Buttons */
.w-btn {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--w-radius-round);
  color: var(--w-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: var(--w-text-sm);
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform var(--w-fast) var(--w-ease), box-shadow var(--w-fast), background var(--w-fast), border-color var(--w-fast);
  white-space: nowrap;
}
.w-btn:hover:not(:disabled) { transform: translateY(-1px); }
.w-btn:focus-visible { box-shadow: var(--w-focus); outline: none; }
.w-btn:disabled, .w-btn.is-disabled { cursor: not-allowed; opacity: .45; pointer-events: none; }
.w-btn-primary { background: var(--w-ink); box-shadow: 0 8px 20px rgba(16,43,49,.15); color: white; }
.w-btn-primary:hover:not(:disabled) { background: var(--w-ink-soft); box-shadow: 0 12px 24px rgba(16,43,49,.2); }
.w-btn-brand { background: var(--w-cyan-500); color: var(--w-white); text-shadow: 0 1px 1px rgba(16,43,49,.12); }
.w-btn-brand:hover:not(:disabled) { background: var(--w-cyan-400); box-shadow: 0 10px 24px rgba(0,195,212,.22); }
.w-btn-secondary { background: var(--w-white); border-color: var(--w-slate-200); }
.w-btn-secondary:hover:not(:disabled) { border-color: var(--w-cyan-300); }
.w-btn-ghost:hover:not(:disabled) { background: var(--w-slate-100); }
.w-btn-danger { background: var(--w-danger); color: white; }
.w-btn-sm { font-size: 12px; min-height: 34px; padding: 0 13px; }
.w-btn-lg { font-size: 15px; min-height: 50px; padding: 0 23px; }
.w-btn-icon { flex: 0 0 auto; padding: 0; width: 42px; }
.w-btn-icon.w-btn-sm { width: 34px; }
.w-btn-icon.w-btn-lg { width: 50px; }
.w-btn-block { width: 100%; }
.w-btn.is-loading { color: transparent; pointer-events: none; position: relative; }
.w-btn.is-loading::after { animation: w-spin .7s linear infinite; border: 2px solid rgba(255,255,255,.4); border-radius: 50%; border-top-color: var(--w-cyan-300); content: ""; height: 16px; left: calc(50% - 8px); position: absolute; width: 16px; }
@keyframes w-spin { to { transform: rotate(360deg); } }

/* Status, badges, avatar */
.w-badge { align-items: center; background: var(--w-slate-100); border: 1px solid var(--w-slate-150); border-radius: var(--w-radius-round); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); color: var(--w-slate-700); display: inline-flex; font-size: 10px; font-weight: 850; gap: 6px; letter-spacing: .015em; line-height: 1; min-height: 27px; padding: 0 10px; white-space: nowrap; }
.w-badge .w-icon { height: 13px; stroke-width: 2.1; width: 13px; }
.w-badge-brand { background: linear-gradient(180deg,var(--w-cyan-25),var(--w-cyan-50)); border-color: var(--w-cyan-200); color: var(--w-cyan-800); }
.w-badge-pink { background: linear-gradient(180deg,var(--w-pink-25),var(--w-pink-50)); border-color: var(--w-pink-200); color: var(--w-pink-700); }
.w-badge-success { background: linear-gradient(180deg,#f4fcf9,var(--w-success-soft)); border-color: #bfe8da; color: #087957; }
.w-badge-warning { background: linear-gradient(180deg,#fffbf1,var(--w-warning-soft)); border-color: #f1d9a7; color: #93600f; }
.w-badge-danger { background: linear-gradient(180deg,#fff8f9,var(--w-danger-soft)); border-color: #f5ccd2; color: #b52f3c; }
.w-badge-info { background: linear-gradient(180deg,#f8fbff,var(--w-info-soft)); border-color: #cee1f9; color: #225eaa; }
.w-badge-ai { background: linear-gradient(120deg,var(--w-ink),#18515a); border-color: #29636c; box-shadow: 0 5px 14px rgba(16,43,49,.14); color: var(--w-white); }
.w-dot { background: currentColor; border-radius: 50%; height: 6px; width: 6px; }
.w-status { align-items: center; color: var(--w-slate-600); display: inline-flex; font-size: 12px; font-weight: 700; gap: 7px; }
.w-status::before { background: var(--w-slate-400); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--w-slate-200); content: ""; height: 8px; width: 8px; }
.w-status.online::before { background: var(--w-success); }
.w-status.away::before { background: var(--w-warning); }
.w-status.offline::before { background: var(--w-danger); }
.w-avatar { --w-avatar-size: 40px; align-items: center; aspect-ratio: 1; background: linear-gradient(145deg, var(--w-cyan-100), var(--w-pink-100)); border: 0; border-radius: 50%; box-sizing: border-box; color: var(--w-ink); display: inline-grid; flex: 0 0 var(--w-avatar-size); font-size: 12px; font-weight: 850; height: var(--w-avatar-size); justify-items: center; letter-spacing: -.02em; line-height: 1; max-height: var(--w-avatar-size); max-width: var(--w-avatar-size); min-height: var(--w-avatar-size); min-width: var(--w-avatar-size); place-items: center; position: relative; vertical-align: middle; width: var(--w-avatar-size); }
.w-avatar-sm { --w-avatar-size: 30px; font-size: 10px; }
.w-avatar-lg { --w-avatar-size: 54px; font-size: 17px; }
.w-avatar-xl { --w-avatar-size: 72px; font-size: 22px; }
.w-avatar[data-status]::after { background: var(--w-success); border: 2px solid white; border-radius: 50%; bottom: 0; content: ""; height: 10px; position: absolute; right: 0; width: 10px; }
.w-avatar-group { display: flex; padding-left: 8px; }
.w-avatar-group .w-avatar { border: 3px solid white; margin-left: -8px; }

/* Fields */
.w-field { display: flex; flex-direction: column; gap: 7px; }
.w-label { color: var(--w-ink); font-size: 12px; font-weight: 800; }
.w-label .optional { color: var(--w-slate-400); font-weight: 600; }
.w-control { position: relative; }
.w-input, .w-select, .w-textarea {
  appearance: none;
  background: var(--w-white);
  border: 1px solid var(--w-slate-200);
  border-radius: var(--w-radius-md);
  color: var(--w-ink);
  outline: none;
  padding: 0 14px;
  transition: border var(--w-fast), box-shadow var(--w-fast), background var(--w-fast);
  width: 100%;
}
.w-input, .w-select { height: 44px; }
.w-textarea { line-height: 1.55; min-height: 112px; padding-block: 12px; resize: vertical; }
.w-input::placeholder, .w-textarea::placeholder { color: var(--w-slate-400); }
.w-input:hover, .w-select:hover, .w-textarea:hover { border-color: var(--w-slate-300); }
.w-input:focus, .w-select:focus, .w-textarea:focus { border-color: var(--w-cyan-500); box-shadow: var(--w-focus); }
.w-input:disabled, .w-select:disabled, .w-textarea:disabled { background: var(--w-slate-75); color: var(--w-slate-400); cursor: not-allowed; }
.w-control > [data-icon] { align-items: center; color: var(--w-slate-400); display: flex; height: 44px; justify-content: center; left: 12px; pointer-events: none; position: absolute; top: 0; width: 22px; z-index: 1; }
.w-control > [data-icon] .w-icon { height: 19px; width: 19px; }
.w-control.has-icon .w-input { padding-left: 43px; }
.w-control .w-control-action { color: var(--w-slate-500); position: absolute; right: 7px; top: 5px; }
.w-select { background-image: linear-gradient(45deg,transparent 50%,var(--w-slate-500) 50%),linear-gradient(135deg,var(--w-slate-500) 50%,transparent 50%); background-position: calc(100% - 17px) 19px,calc(100% - 12px) 19px; background-repeat: no-repeat; background-size: 5px 5px; padding-right: 34px; }
.w-select option { background: var(--w-white); color: var(--w-ink); padding: 12px; }
.w-selectbox { position: relative; }
.w-selectbox-trigger { align-items: center; background: var(--w-white); border: 1px solid var(--w-slate-200); border-radius: var(--w-radius-md); color: var(--w-ink); cursor: pointer; display: flex; height: 44px; justify-content: space-between; outline: none; padding: 0 12px 0 14px; transition: border var(--w-fast), box-shadow var(--w-fast); width: 100%; }
.w-selectbox-trigger:hover { border-color: var(--w-slate-300); }
.w-selectbox-trigger:focus-visible, .w-selectbox.open .w-selectbox-trigger { border-color: var(--w-cyan-500); box-shadow: var(--w-focus); }
.w-selectbox-trigger .w-icon { color: var(--w-slate-500); height: 17px; transform: rotate(90deg); transition: transform var(--w-fast); width: 17px; }
.w-selectbox.open .w-selectbox-trigger .w-icon { transform: rotate(-90deg); }
.w-selectbox-options { background: var(--w-white); border: 1px solid var(--w-slate-150); border-radius: var(--w-radius-lg); box-shadow: var(--w-shadow-md); display: none; left: 0; list-style: none; margin: 7px 0 0; overflow: hidden; padding: 6px; position: absolute; right: 0; top: 100%; z-index: 30; }
.w-selectbox.open .w-selectbox-options { animation: w-select-in var(--w-fast) var(--w-ease); display: block; }
.w-selectbox-up .w-selectbox-options { bottom: calc(100% + 7px); margin: 0; top: auto; }
.w-selectbox-option { align-items: center; border-radius: 10px; color: var(--w-slate-700); cursor: pointer; display: flex; font-size: 13px; font-weight: 650; justify-content: space-between; min-height: 38px; padding: 8px 10px; }
.w-selectbox-option:hover { background: var(--w-cyan-25); color: var(--w-ink); }
.w-selectbox-option[aria-selected="true"] { background: var(--w-cyan-50); color: var(--w-cyan-800); }
.w-selectbox-option[aria-selected="true"]::after { border: solid var(--w-cyan-700); border-width: 0 2px 2px 0; content: ""; height: 8px; margin-right: 4px; transform: rotate(45deg); width: 4px; }
@keyframes w-select-in { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.w-help, .w-error { color: var(--w-slate-500); font-size: 11px; }
.w-field.invalid .w-input, .w-field.invalid .w-select, .w-field.invalid .w-textarea { border-color: var(--w-danger); box-shadow: 0 0 0 3px var(--w-danger-soft); }
.w-field.invalid .w-error { color: var(--w-danger); }
.w-field.valid .w-input { border-color: var(--w-success); }
.w-input-group { display: flex; }
.w-input-group .w-input { border-radius: var(--w-radius-md) 0 0 var(--w-radius-md); }
.w-input-group .w-btn { border-radius: 0 var(--w-radius-md) var(--w-radius-md) 0; }

.w-check, .w-radio { align-items: flex-start; cursor: pointer; display: inline-flex; gap: 9px; }
.w-check input, .w-radio input { height: 18px; margin: 1px 0 0; opacity: 0; position: absolute; width: 18px; }
.w-check-box, .w-radio-box { align-items: center; background: white; border: 1.5px solid var(--w-slate-300); display: flex; flex: 0 0 auto; height: 18px; justify-content: center; transition: var(--w-fast); width: 18px; }
.w-check-box { border-radius: 5px; }
.w-radio-box { border-radius: 50%; }
.w-check input:checked + .w-check-box { background: var(--w-ink); border-color: var(--w-ink); }
.w-check input:checked + .w-check-box::after { border: solid white; border-width: 0 2px 2px 0; content: ""; height: 8px; transform: rotate(45deg) translate(-1px,-1px); width: 4px; }
.w-radio input:checked + .w-radio-box { border: 5px solid var(--w-ink); }
.w-check input:focus-visible + .w-check-box, .w-radio input:focus-visible + .w-radio-box { box-shadow: var(--w-focus); }
.w-choice-copy { line-height: 1.35; }
.w-choice-copy strong { display: block; font-size: 13px; }
.w-choice-copy small { color: var(--w-slate-500); }

.w-switch { align-items: center; cursor: pointer; display: inline-flex; gap: 10px; }
.w-switch input { opacity: 0; position: absolute; }
.w-switch-track { background: var(--w-slate-300); border-radius: 999px; height: 24px; padding: 3px; transition: var(--w-fast); width: 43px; }
.w-switch-track::after { background: white; border-radius: 50%; box-shadow: 0 1px 4px rgba(16,43,49,.2); content: ""; display: block; height: 18px; transition: transform var(--w-fast) var(--w-ease); width: 18px; }
.w-switch input:checked + .w-switch-track { background: var(--w-cyan-500); }
.w-switch input:checked + .w-switch-track::after { transform: translateX(19px); }
.w-switch input:focus-visible + .w-switch-track { box-shadow: var(--w-focus); }
.w-switch-copy strong { display: block; font-size: 13px; }
.w-switch-copy small { color: var(--w-slate-500); }

.w-range { accent-color: var(--w-cyan-500); cursor: pointer; width: 100%; }
.w-segmented { background: var(--w-slate-100); border-radius: var(--w-radius-round); display: inline-flex; padding: 4px; }
.w-segmented button { background: transparent; border: 0; border-radius: var(--w-radius-round); color: var(--w-slate-600); cursor: pointer; font-size: 12px; font-weight: 750; padding: 8px 13px; }
.w-segmented button.active { background: white; box-shadow: var(--w-shadow-xs); color: var(--w-ink); }

/* Cards and data */
.w-card { background: var(--w-white); border: 1px solid var(--w-slate-150); border-radius: var(--w-radius-xl); box-shadow: var(--w-shadow-xs); }
.w-card-body { padding: 22px; }
.w-card-header { align-items: flex-start; border-bottom: 1px solid var(--w-slate-150); display: flex; gap: 16px; justify-content: space-between; padding: 18px 22px; }
.w-card-title { font-family: var(--w-font-display); font-size: 17px; letter-spacing: -.02em; margin: 0; }
.w-card-subtitle { color: var(--w-slate-500); font-size: 12px; margin: 3px 0 0; }
.w-card-footer { align-items: center; border-top: 1px solid var(--w-slate-150); display: flex; justify-content: space-between; padding: 14px 22px; }
.w-card-interactive { cursor: pointer; transition: border var(--w-fast), box-shadow var(--w-fast), transform var(--w-fast) var(--w-ease); }
.w-card-interactive:hover { border-color: var(--w-cyan-200); box-shadow: var(--w-shadow-sm); transform: translateY(-2px); }
.w-metric { min-height: 156px; padding: 21px; position: relative; }
.w-metric-label { color: var(--w-slate-500); font-size: 12px; font-weight: 700; }
.w-metric-value { font-family: var(--w-font-display); font-size: 34px; font-weight: 750; letter-spacing: -.05em; line-height: 1; margin-top: 18px; }
.w-metric-trend { align-items: center; color: var(--w-success); display: flex; font-size: 11px; font-weight: 750; gap: 4px; margin-top: 9px; }
.w-metric-icon { align-items: center; background: var(--w-cyan-50); border-radius: 14px; color: var(--w-cyan-700); display: flex; height: 40px; justify-content: center; position: absolute; right: 18px; top: 18px; width: 40px; }
.w-list { list-style: none; margin: 0; padding: 0; }
.w-list-item { align-items: center; border-bottom: 1px solid var(--w-slate-150); display: flex; gap: 13px; padding: 14px 0; }
.w-list-item:last-child { border-bottom: 0; }
.w-list-copy { min-width: 0; }
.w-list-copy strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-list-copy span { color: var(--w-slate-500); display: block; font-size: 11px; margin-top: 2px; }
.w-list-trailing { margin-left: auto; }
.w-table-wrap { overflow-x: auto; }
.w-table { border-collapse: collapse; min-width: 620px; width: 100%; }
.w-table th { color: var(--w-slate-500); font-size: 10px; font-weight: 850; letter-spacing: .08em; padding: 12px 16px; text-align: left; text-transform: uppercase; }
.w-table td { border-top: 1px solid var(--w-slate-150); padding: 15px 16px; }
.w-table tbody tr { transition: background var(--w-fast); }
.w-table tbody tr:hover { background: var(--w-cyan-25); }
.w-person { align-items: center; display: flex; gap: 11px; }
.w-person > div > strong { display: block; font-size: 13px; }
.w-person > div > span { color: var(--w-slate-500); display: block; font-size: 11px; }
.w-kv { display: grid; gap: 0; }
.w-kv-row { border-bottom: 1px solid var(--w-slate-150); display: grid; gap: 12px; grid-template-columns: 130px 1fr; padding: 13px 0; }
.w-kv-row:last-child { border: 0; }
.w-kv-row dt { color: var(--w-slate-500); }
.w-kv-row dd { font-weight: 700; margin: 0; }

/* Feedback */
.w-alert { align-items: flex-start; background: var(--w-info-soft); border: 1px solid #d6e8ff; border-radius: var(--w-radius-lg); color: #245b99; display: flex; gap: 12px; padding: 15px 16px; }
.w-alert-success { background: var(--w-success-soft); border-color: #ccefe2; color: #0d7154; }
.w-alert-warning { background: var(--w-warning-soft); border-color: #f7e3ba; color: #87580e; }
.w-alert-danger { background: var(--w-danger-soft); border-color: #ffd9de; color: #a5303b; }
.w-alert-content { flex: 1; }
.w-alert-content strong { display: block; font-size: 13px; }
.w-alert-content p { font-size: 12px; margin: 3px 0 0; }
.w-banner { align-items: center; background: linear-gradient(120deg, var(--w-ink), #17454e); border-radius: var(--w-radius-xl); color: white; display: flex; gap: 18px; justify-content: space-between; overflow: hidden; padding: 22px 24px; position: relative; }
.w-banner::after { background: var(--w-pink-400); border-radius: 50%; content: ""; filter: blur(34px); height: 90px; opacity: .35; position: absolute; right: 8%; width: 90px; }
.w-banner > * { position: relative; z-index: 1; }
.w-banner p { color: rgba(255,255,255,.68); margin: 4px 0 0; }
.w-progress { background: var(--w-slate-150); border-radius: 99px; height: 7px; overflow: hidden; }
.w-progress > span { background: linear-gradient(90deg, var(--w-cyan-500), var(--w-pink-400)); border-radius: inherit; display: block; height: 100%; }
.w-spinner { animation: w-spin .8s linear infinite; border: 2px solid var(--w-slate-200); border-radius: 50%; border-top-color: var(--w-cyan-500); display: inline-block; height: 24px; width: 24px; }
.w-skeleton { animation: w-pulse 1.4s ease-in-out infinite; background: linear-gradient(90deg,var(--w-slate-100),var(--w-slate-50),var(--w-slate-100)); background-size: 200% 100%; border-radius: 8px; height: 12px; }
@keyframes w-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.w-empty { align-items: center; color: var(--w-slate-500); display: flex; flex-direction: column; padding: 42px 22px; text-align: center; }
.w-empty-visual { align-items: center; background: linear-gradient(145deg,var(--w-cyan-50),var(--w-pink-50)); border-radius: 24px; color: var(--w-cyan-700); display: flex; height: 70px; justify-content: center; margin-bottom: 17px; transform: rotate(-4deg); width: 70px; }
.w-empty h3 { color: var(--w-ink); font-size: 16px; margin: 0; }
.w-empty p { margin: 5px 0 18px; max-width: 330px; }
.w-toast-region { bottom: 22px; display: flex; flex-direction: column; gap: 10px; position: fixed; right: 22px; z-index: 100; }
.w-toast { align-items: center; animation: w-toast-in var(--w-normal) var(--w-ease); background: var(--w-ink); border-radius: var(--w-radius-lg); box-shadow: var(--w-shadow-float); color: white; display: flex; gap: 11px; min-width: 290px; padding: 14px 16px; }
.w-toast .w-icon { color: var(--w-cyan-400); }
@keyframes w-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Navigation */
.w-tabs { border-bottom: 1px solid var(--w-slate-200); display: flex; gap: 22px; overflow-x: auto; }
.w-tab { background: none; border: 0; color: var(--w-slate-500); cursor: pointer; font-weight: 700; padding: 12px 1px; position: relative; white-space: nowrap; }
.w-tab.active { color: var(--w-ink); }
.w-tab.active::after { background: var(--w-cyan-500); border-radius: 4px 4px 0 0; bottom: -1px; content: ""; height: 3px; left: 0; position: absolute; right: 0; }
.w-breadcrumb { align-items: center; color: var(--w-slate-500); display: flex; font-size: 12px; gap: 8px; list-style: none; margin: 0; padding: 0; }
.w-breadcrumb li:not(:last-child)::after { color: var(--w-slate-300); content: "/"; margin-left: 8px; }
.w-breadcrumb li:last-child { color: var(--w-ink); font-weight: 700; }
.w-pagination { align-items: center; display: flex; gap: 5px; }
.w-page { align-items: center; background: white; border: 1px solid var(--w-slate-200); border-radius: 10px; color: var(--w-slate-600); display: flex; height: 36px; justify-content: center; min-width: 36px; text-decoration: none; }
.w-page.active { background: var(--w-ink); border-color: var(--w-ink); color: white; }
.w-topbar { align-items: center; background: white; border-bottom: 1px solid var(--w-slate-150); display: flex; height: 68px; padding: 0 22px; }
.w-topbar-brand img { height: 24px; width: auto; }
.w-topbar-nav { display: flex; gap: 5px; margin: 0 auto; }
.w-topbar-nav a { align-items: center; border-radius: 11px; color: var(--w-slate-600); display: flex; gap: 7px; padding: 9px 12px; text-decoration: none; }
.w-topbar-nav a.active { background: var(--w-cyan-50); color: var(--w-cyan-800); font-weight: 750; }
.w-sidebar-mini { background: var(--w-ink); color: white; min-height: 400px; padding: 20px 14px; width: 220px; }
.w-sidebar-mini .brand { font-size: 18px; font-weight: 850; padding: 8px 10px 24px; }
.w-sidebar-mini a { align-items: center; border-radius: 12px; color: rgba(255,255,255,.64); display: flex; gap: 10px; margin: 3px 0; padding: 11px 12px; text-decoration: none; }
.w-sidebar-mini a.active { background: rgba(0,195,212,.16); color: var(--w-cyan-300); }

/* Overlay helpers */
.w-backdrop { align-items: center; background: rgba(9,30,34,.5); display: none; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 90; }
.w-backdrop.open { display: flex; }
.w-modal { animation: w-modal-in var(--w-normal) var(--w-ease); background: white; border-radius: var(--w-radius-xl); box-shadow: var(--w-shadow-float); max-width: 480px; overflow: hidden; width: 100%; }
@keyframes w-modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.w-modal-head { align-items: center; border-bottom: 1px solid var(--w-slate-150); display: flex; justify-content: space-between; padding: 18px 20px; }
.w-modal-head h3 { margin: 0; }
.w-modal-body { padding: 22px 20px; }
.w-modal-foot { border-top: 1px solid var(--w-slate-150); display: flex; gap: 9px; justify-content: flex-end; padding: 14px 20px; }
.w-drawer-backdrop { background: rgba(9,30,34,.32); display: none; inset: 0; position: fixed; z-index: 90; }
.w-drawer-backdrop.open { display: block; }
.w-drawer { background: white; bottom: 0; box-shadow: var(--w-shadow-float); max-width: 420px; padding: 24px; position: absolute; right: 0; top: 0; width: 90%; }
.w-popover-demo { background: white; border: 1px solid var(--w-slate-150); border-radius: var(--w-radius-lg); box-shadow: var(--w-shadow-md); padding: 15px; position: relative; width: 230px; }
.w-popover-demo::before { background: white; border-left: 1px solid var(--w-slate-150); border-top: 1px solid var(--w-slate-150); content: ""; height: 10px; left: 25px; position: absolute; top: -6px; transform: rotate(45deg); width: 10px; }
.w-tooltip { display: inline-flex; position: relative; }
.w-tooltip::after { background: var(--w-ink); border-radius: 7px; bottom: calc(100% + 8px); color: white; content: attr(data-tip); font-size: 11px; left: 50%; opacity: 0; padding: 6px 8px; pointer-events: none; position: absolute; transform: translate(-50%,5px); transition: var(--w-fast); white-space: nowrap; }
.w-tooltip:hover::after, .w-tooltip:focus-within::after { opacity: 1; transform: translate(-50%,0); }

/* Product patterns */
.w-conversation { align-items: flex-start; border-bottom: 1px solid var(--w-slate-150); cursor: pointer; display: flex; gap: 11px; padding: 14px; position: relative; }
.w-conversation:hover, .w-conversation.active { background: var(--w-cyan-25); }
.w-conversation.active::before { background: var(--w-cyan-500); border-radius: 0 4px 4px 0; bottom: 10px; content: ""; left: 0; position: absolute; top: 10px; width: 3px; }
.w-conversation-copy { flex: 1; min-width: 0; }
.w-conversation-line { align-items: center; display: flex; justify-content: space-between; }
.w-conversation-line strong { font-size: 13px; }
.w-conversation-line time { color: var(--w-slate-400); font-size: 10px; }
.w-conversation-copy p { color: var(--w-slate-500); font-size: 11px; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-unread { align-items: center; background: var(--w-pink-400); border-radius: 50%; color: white; display: flex; font-size: 9px; font-weight: 850; height: 18px; justify-content: center; margin-top: 7px; width: 18px; }
.w-chat { background: #f7faf9; display: flex; flex-direction: column; min-height: 470px; }
.w-chat-head { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--w-slate-150); display: flex; gap: 11px; padding: 13px 16px; }
.w-chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.w-bubble { background: white; border: 1px solid var(--w-slate-150); border-radius: 5px 17px 17px 17px; box-shadow: var(--w-shadow-xs); max-width: 72%; padding: 10px 13px; }
.w-bubble.me { align-self: flex-end; background: var(--w-cyan-50); border-color: var(--w-cyan-100); border-radius: 17px 5px 17px 17px; }
.w-bubble p { margin: 0; }
.w-bubble time { color: var(--w-slate-400); display: block; font-size: 9px; margin-top: 4px; text-align: right; }
.w-composer { align-items: flex-end; background: white; border-top: 1px solid var(--w-slate-150); display: flex; gap: 8px; padding: 12px; }
.w-composer textarea { border: 0; flex: 1; height: 40px; max-height: 100px; outline: 0; padding: 9px; resize: none; }
.w-channel { align-items: center; display: flex; gap: 15px; padding: 20px; }
.w-channel-icon { align-items: center; background: var(--w-success-soft); border-radius: 15px; color: var(--w-whatsapp); display: flex; height: 48px; justify-content: center; width: 48px; }
.w-channel-copy { flex: 1; }
.w-channel-copy h3 { font-size: 15px; margin: 0; }
.w-channel-copy p { color: var(--w-slate-500); font-size: 11px; margin: 3px 0 0; }
.w-qr { background: repeating-linear-gradient(45deg,var(--w-ink) 0 5px,white 5px 10px); border: 10px solid white; box-shadow: 0 0 0 1px var(--w-slate-200); height: 130px; image-rendering: pixelated; position: relative; width: 130px; }
.w-qr::after { background: white; border: 8px solid var(--w-ink); box-shadow: 0 0 0 4px white; content: ""; height: 20px; left: 41px; position: absolute; top: 41px; width: 20px; }
.w-assistant-preview { background: linear-gradient(145deg,var(--w-ink),#16424b); border-radius: var(--w-radius-xl); color: white; overflow: hidden; padding: 24px; position: relative; }
.w-assistant-preview::after { background: var(--w-pink-400); border-radius: 50%; content: ""; filter: blur(45px); height: 130px; opacity: .28; position: absolute; right: -30px; top: -30px; width: 130px; }
.w-assistant-orb { align-items: center; background: linear-gradient(135deg,var(--w-cyan-300),var(--w-pink-400)); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.06); display: flex; height: 54px; justify-content: center; margin-bottom: 25px; position: relative; width: 54px; z-index: 1; }
.w-assistant-preview h3 { font-size: 20px; letter-spacing: -.03em; margin: 0; position: relative; }
.w-assistant-preview p { color: rgba(255,255,255,.64); margin: 6px 0 18px; position: relative; }
.w-assistant-preview .w-bubble { color: var(--w-ink); }
.w-assistant-preview .w-bubble p { color: var(--w-ink); margin: 0; }
.w-assistant-preview .w-bubble time { color: var(--w-slate-400); margin-top: 4px; }
.w-knowledge { align-items: center; border: 1px solid var(--w-slate-200); border-radius: var(--w-radius-md); display: flex; gap: 11px; padding: 12px; }
.w-knowledge-icon { align-items: center; background: var(--w-pink-50); border-radius: 10px; color: var(--w-pink-600); display: flex; height: 36px; justify-content: center; width: 36px; }

/* Application shells */
.w-app-frame { background: var(--w-slate-50); border: 1px solid var(--w-slate-200); border-radius: var(--w-radius-xl); box-shadow: var(--w-shadow-md); overflow: hidden; }
.w-app-frame-body { min-height: 460px; padding: 24px; }
.w-inbox-frame { display: grid; grid-template-columns: 260px minmax(330px,1fr) 220px; min-height: 520px; }
.w-inbox-list { background: white; border-right: 1px solid var(--w-slate-150); }
.w-inbox-details { background: white; border-left: 1px solid var(--w-slate-150); padding: 20px; }
.w-login-frame { background: white; display: grid; grid-template-columns: 44% 56%; min-height: 520px; }
.w-login-panel { align-items: center; display: flex; justify-content: center; padding: 44px; }
.w-login-panel > div { max-width: 350px; width: 100%; }
.w-login-art { background: var(--w-cyan-50); overflow: hidden; padding: 42px; position: relative; }
.w-login-art::before, .w-login-art::after { border-radius: 50%; content: ""; position: absolute; }
.w-login-art::before { background: var(--w-cyan-300); height: 260px; right: -50px; top: -60px; width: 260px; }
.w-login-art::after { background: var(--w-pink-300); bottom: -80px; height: 230px; left: -60px; width: 230px; }
.w-login-quote { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.8); border-radius: var(--w-radius-xl); box-shadow: var(--w-shadow-md); margin-top: 110px; padding: 26px; position: relative; z-index: 2; }
.w-settings-frame { display: grid; gap: 22px; grid-template-columns: minmax(0,1.7fr) minmax(260px,.75fr); }

@media (max-width: 840px) {
  .w-topbar-nav { display: none; }
  .w-inbox-frame { grid-template-columns: 220px 1fr; }
  .w-inbox-details { display: none; }
  .w-login-frame { grid-template-columns: 1fr; }
  .w-login-art { display: none; }
  .w-settings-frame { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .w-banner { align-items: flex-start; flex-direction: column; }
  .w-inbox-frame { display: block; }
  .w-inbox-frame .w-chat { display: none; }
  .w-login-panel { padding: 28px 20px; }
  .w-kv-row { grid-template-columns: 1fr; gap: 3px; }
  .w-toast-region { bottom: 12px; left: 12px; right: 12px; }
  .w-toast { min-width: 0; width: 100%; }
}
