/* DomPro Expert Workspace — premium dark CRM */

/* Базовые ограничения: SVG/картинки не раздуваются без размеров */
.ws-body svg {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.ws-body img {
  max-width: 100%;
  height: auto;
}

.ws-body {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-sidebar: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #243044;
  --accent-gold: #d4af37;
  --accent-gold-dim: rgba(212, 175, 55, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(148, 163, 184, 0.12);
  --border-gold: rgba(212, 175, 55, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sidebar-w: 260px;
  --header-h: 64px;
  --rail-w: 300px;
  --radius: 12px;
  --transition: 0.3s ease;

  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ——— Layout ——— */
.ws-app {
  display: flex;
  min-height: 100vh;
}

.ws-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.ws-overlay.open {
  display: block;
}

.ws-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  transition: transform var(--transition);
}

.ws-sidebar-logo img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem;
  max-height: 2rem;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.ws-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.5rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ws-sidebar-logo span {
  background: linear-gradient(135deg, #f4d03f, var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ws-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.ws-nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
  margin: 0;
}

.ws-nav-divider {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.ws-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.ws-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.ws-nav-link.active {
  background: #2563eb;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.ws-nav-link-muted {
  opacity: 0.65;
  font-size: 0.82rem;
}

.ws-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}

.ws-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ws-btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.ws-btn-logout:hover {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ——— Shell ——— */
.ws-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ws-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
}

.ws-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.35rem;
  cursor: pointer;
}

.ws-menu-btn svg {
  width: 1.375rem !important;
  height: 1.375rem !important;
  max-width: 1.375rem;
  max-height: 1.375rem;
}

.ws-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  transition: border-color var(--transition);
}

.ws-search:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

.ws-search svg {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem;
  max-height: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ws-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
}

.ws-search input::placeholder {
  color: var(--text-muted);
}

.ws-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.ws-icon-btn {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.ws-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.ws-icon-btn svg {
  width: 1.125rem !important;
  height: 1.125rem !important;
  max-width: 1.125rem;
  max-height: 1.125rem;
}

.ws-chevron {
  width: 0.875rem !important;
  height: 0.875rem !important;
  max-width: 0.875rem;
  max-height: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ws-badge-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ws-pulse 2s ease infinite;
}

@keyframes ws-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.ws-profile {
  position: relative;
}

.ws-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  cursor: pointer;
  color: inherit;
  transition: border-color var(--transition);
}

.ws-profile-trigger:hover {
  border-color: var(--border-gold);
}

.ws-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.ws-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.ws-profile-text strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.ws-profile-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ws-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: var(--shadow-card);
  z-index: 60;
}

.ws-dropdown a,
.ws-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  background: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.ws-dropdown a:hover,
.ws-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ——— Main layout ——— */
.ws-layout {
  display: flex;
  flex: 1;
  align-items: flex-start;
}

.ws-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
}

.ws-rail {
  width: var(--rail-w);
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 1.5rem 0;
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.ws-content {
  animation: ws-fade-in 0.35s ease;
}

@keyframes ws-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Welcome / stats ——— */
.ws-welcome {
  margin-bottom: 1.75rem;
}

.ws-greeting {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ws-greeting-sub {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.ws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.ws-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  transition: all var(--transition);
  animation: ws-stagger-in 0.45s ease backwards;
}

.ws-stat:nth-child(1) { animation-delay: 0.05s; }
.ws-stat:nth-child(2) { animation-delay: 0.1s; }
.ws-stat:nth-child(3) { animation-delay: 0.15s; }
.ws-stat:nth-child(4) { animation-delay: 0.2s; }

@keyframes ws-stagger-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ws-stat:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.ws-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.ws-stat-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ws-stat-value.gold { color: var(--accent-gold); }
.ws-stat-value.green { color: var(--accent-green); }

.ws-verify-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ws-verify-bar progress {
  flex: 1;
  height: 6px;
  accent-color: var(--accent-gold);
}

/* ——— Toolbar ——— */
.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ws-toolbar h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.ws-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.ws-feed-cat-filter {
  position: relative;
}

.ws-feed-cat-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-elevated, #1a1f2e);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
}

.ws-feed-cat-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.ws-feed-cat-item:hover,
.ws-feed-cat-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text-primary);
}

.ws-prof-cat {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.ws-prof-icon {
  margin-right: 0.25rem;
}

.ws-prof-subs {
  margin: 0.25rem 0 0.75rem 1.1rem;
  padding: 0;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ws-prof-subs li {
  margin-bottom: 0.15rem;
}

.ws-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.ws-chip:hover,
.ws-chip.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: var(--accent-blue-dim);
}

.ws-demo-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

/* ——— Order cards ——— */
.ws-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ws-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  animation: ws-stagger-in 0.4s ease backwards;
}

.ws-order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.ws-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.ws-order-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.ws-order-budget {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-gold);
  white-space: nowrap;
}

.ws-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ws-meta-item {
  display: inline-flex;
  align-items: center;
}

.ws-order-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-order-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-badge-cat { background: var(--accent-blue-dim); color: #93c5fd; }
.ws-badge-open { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.ws-badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.ws-badge-accepted { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.ws-badge-draft { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }
.ws-badge-signed { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }

/* ——— Buttons ——— */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.ws-btn-primary {
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  color: #0f172a;
}

.ws-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.ws-btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.ws-btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.ws-btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #c9a227);
  color: #0f172a;
}

.ws-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.ws-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ——— Clients grid ——— */
.ws-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ws-client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
  animation: ws-stagger-in 0.4s ease backwards;
}

.ws-client-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}

.ws-client-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ws-client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.ws-client-name {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.ws-client-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.ws-client-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.ws-client-stats dt {
  color: var(--text-muted);
  margin: 0;
}

.ws-client-stats dd {
  font-family: var(--font-mono);
  margin: 0;
  color: var(--text-primary);
}

.ws-client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ——— Contracts table ——— */
.ws-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ws-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-color);
}

.ws-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.ws-table tr:last-child td {
  border-bottom: none;
}

.ws-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ws-table .mono {
  font-family: var(--font-mono);
  color: var(--accent-gold);
}

/* ——— Right rail ——— */
.ws-rail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ws-rail-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.ws-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ws-activity-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ws-activity-item:last-child {
  border-bottom: none;
}

.ws-activity-time {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.ws-mini-cal {
  display: grid;
  gap: 0.4rem;
}

.ws-cal-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* ——— Empty / skeleton ——— */
.ws-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}

.ws-empty svg {
  width: 4.5rem !important;
  height: 4.5rem !important;
  max-width: 4.5rem;
  max-height: 4.5rem;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.ws-empty h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.ws-empty p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.ws-skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, #2a3548 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: ws-shimmer 1.2s ease infinite;
  border-radius: 8px;
}

@keyframes ws-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ws-skeleton-card {
  height: 140px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

/* ——— Stub section ——— */
.ws-stub {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.ws-stub h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

/* ——— Modal ——— */
.ws-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: ws-fade-in 0.2s ease;
}

.ws-modal-backdrop[hidden] {
  display: none;
}

.ws-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-hover);
}

.ws-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.ws-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.ws-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.ws-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ws-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ws-modal textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: inherit;
  resize: vertical;
}

.ws-modal--wide {
  width: min(800px, 100%);
}

.ws-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.ws-profile-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.ws-profile-tab:hover,
.ws-profile-tab.active {
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.12);
}

.ws-profile-tab-panel {
  display: none;
}

.ws-profile-tab-panel.active {
  display: block;
}

.ws-photo-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ws-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ws-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-modal-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.ws-modal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color);
}

.ws-inline-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
}

.ws-inline-form.hidden {
  display: none;
}

.ws-input-readonly {
  opacity: 0.75;
  cursor: not-allowed;
}

.ws-prof-subhead {
  margin: 0.75rem 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.ws-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ws-rail-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color 0.2s;
}

.ws-rail-action:hover {
  border-color: var(--accent-gold);
}

.ws-rail-action small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.ws-rail-action-icon {
  font-size: 1.25rem;
}

.ws-verify-panel {
  padding: 0.5rem 0;
}

.ws-verify-panel--ok {
  color: var(--accent-green, #10b981);
}

.ws-verify-panel--pending {
  color: #fbbf24;
}

.ws-verify-panel--error {
  color: #f87171;
}

.ws-verify-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.ws-verify-upload {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.ws-verify-spinner {
  padding: 1rem 0;
  color: var(--accent-gold, #d4af37);
  font-weight: 600;
}

@media (max-width: 768px) {
  .ws-modal--wide {
    width: 100%;
    max-height: 100vh;
    border-radius: 12px 12px 0 0;
  }
}

/* ——— Notifications ——— */
.notifications {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.notification {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  animation: ws-fade-in 0.25s ease;
}

.notification-success { border-color: rgba(16, 185, 129, 0.4); }
.notification-error { border-color: rgba(239, 68, 68, 0.4); }
.notification-hide { opacity: 0; transform: translateX(12px); transition: 0.3s; }

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .ws-rail {
    display: none;
  }
}

@media (max-width: 960px) {
  .ws-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ws-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-hover);
  }

  .ws-sidebar.open {
    transform: translateX(0);
  }

  .ws-menu-btn {
    display: flex;
  }

  .ws-search {
    max-width: none;
    flex: 1;
  }

  .ws-profile-text {
    display: none;
  }

  .ws-main {
    padding: 1rem;
  }

  .ws-stats {
    grid-template-columns: 1fr;
  }

  .ws-clients-grid {
    grid-template-columns: 1fr;
  }

  .ws-order-top {
    flex-direction: column;
  }

  .ws-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Profile page (home) ——— */
.ws-profile-page {
  animation: ws-fade-in 0.4s ease;
}

.ws-profile-cover {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 40%, rgba(212, 175, 55, 0.25) 100%);
  border: 1px solid var(--border-color);
  margin-bottom: -48px;
}

.ws-profile-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  padding: 0 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.ws-profile-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.ws-profile-identity {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.25rem;
}

.ws-profile-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.ws-profile-role {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ws-profile-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.ws-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.ws-profile-status {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.ws-link-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-link-btn.ws-link-muted {
  color: var(--text-muted);
}

.ws-status-input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  font: inherit;
}

.ws-profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.ws-profile-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
}

.ws-profile-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.ws-profile-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.25rem;
  align-items: start;
}

.ws-wall {
  margin-top: 1.25rem;
}

.ws-wall-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.ws-wall-post {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.ws-wall-post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.ws-wall-post p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ws-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
}

.ws-info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.ws-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
}

.ws-info-list dt {
  color: var(--text-muted);
}

.ws-info-list dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
}

/* ——— Chat ——— */
.ws-layout--wide .ws-main {
  max-width: none;
}

.ws-chat {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  min-height: calc(100vh - var(--header-h) - 8rem);
  animation: ws-fade-in 0.35s ease;
}

.ws-chat-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h) - 8rem);
}

.ws-chat-item {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.ws-chat-item:hover,
.ws-chat-item.active {
  background: rgba(255, 255, 255, 0.04);
}

.ws-chat-item.active {
  border-left: 3px solid var(--accent-gold);
}

.ws-chat-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ws-chat-item-body {
  min-width: 0;
  flex: 1;
}

.ws-chat-item-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.ws-chat-item-preview {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  min-height: 400px;
}

.ws-chat-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.ws-chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.ws-chat-header p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ws-chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.ws-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ws-chat-bubble {
  max-width: 75%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.ws-chat-bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.ws-chat-bubble.out {
  align-self: flex-end;
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-gold);
}

.ws-chat-bubble p {
  margin: 0 0 0.25rem;
}

.ws-chat-bubble time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ws-chat-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
}

.ws-chat-compose input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

@media (max-width: 960px) {
  .ws-profile-body {
    grid-template-columns: 1fr;
  }

  .ws-chat {
    grid-template-columns: 1fr;
  }

  .ws-chat-list {
    max-height: 200px;
  }
}

/* ——— Home: professional expert page ——— */
.ws-home-page {
  animation: ws-fade-in 0.3s ease;
}

.ws-home-grid {
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 70%);
  gap: 1rem;
  align-items: start;
}

.ws-home-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ws-home-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ws-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.ws-profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ws-profile-avatar-lg {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.ws-profile-name {
  font-size: 1.7rem;
  text-align: center;
}

.ws-profile-role {
  text-align: center;
  margin-bottom: 0.75rem;
}

.ws-profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.ws-small-caption {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ws-list-block p {
  margin: 0 0 0.4rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.ws-skill-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.65rem 0;
}

.ws-home-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
}

.ws-feed-compact .ws-order-card {
  border-left-width: 3px;
  padding: 1rem;
}

.ws-feed-compact .ws-order-desc {
  -webkit-line-clamp: 2;
}

.ws-stat-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ws-home-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ws-client-avatars {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.ws-client-avatar-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ws-home-grid-secondary {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
}

.ws-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.ws-verify-bar-ok {
  border-color: rgba(16, 185, 129, 0.35);
}

.ws-chat-stub-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.ws-wallet-balance {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.ws-wallet-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-gold);
  margin: 0.5rem 0 1rem;
}

.ws-loading-msg {
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .ws-home-grid {
    grid-template-columns: 1fr;
  }

  .ws-home-grid-secondary {
    grid-template-columns: 1fr;
  }
}

.ws-editable-status {
  cursor: pointer;
}
.ws-search-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.ws-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}

.ws-search-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.ws-search-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ws-search-item-label {
  font-weight: 500;
}

.ws-search-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ws-search-empty {
  padding: 0.85rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ——— Notifications panel ——— */
.ws-notify-wrap {
  position: relative;
}

.ws-notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 90vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 200;
}

.ws-notify-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.ws-notify-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.ws-notify-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.ws-notify-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ws-notify-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ——— Forms in modals ——— */
.ws-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ws-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ws-form input,
.ws-form select,
.ws-form textarea {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
}

.ws-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ws-form-full {
  grid-column: 1 / -1;
}

.ws-contract-preview {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 0.875rem;
}

/* ——— Profile avatar ——— */
.ws-profile-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  margin: 0 auto;
}

.ws-profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-profile-avatar--has-photo {
  cursor: pointer;
}

.ws-avatar-upload-btn {
  width: auto;
}

.ws-avatar-change-btn {
  font-size: 0.82rem;
}

.ws-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ws-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.ws-remove-btn:hover {
  color: #ef4444;
}

.ws-highlight {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.ws-dropdown button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ws-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .ws-search-wrap {
    max-width: none;
  }

  .ws-form-grid {
    grid-template-columns: 1fr;
  }

  .ws-order-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ws-order-footer .ws-btn,
  .ws-client-actions .ws-btn,
  .ws-profile-actions .ws-btn {
    width: 100%;
    justify-content: center;
  }

  .ws-home-page {
    font-size: 0.95rem;
  }

  .ws-profile-name {
    font-size: 1.25rem;
  }

  .ws-feed-list {
    grid-template-columns: 1fr;
  }

  .ws-action-cards {
    grid-template-columns: 1fr;
  }
}

/* ——— Profile page blocks ——— */
.ws-profile-progress .ws-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ws-profile-progress .ws-progress-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.ws-progress-pct {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 600;
}

.ws-progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.ws-progress-bar-sm {
  height: 6px;
}

.ws-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #f5d76e);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ws-checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.35rem;
}

.ws-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ws-checklist li.done {
  color: var(--text-primary);
}

.ws-cta-block {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(30, 58, 95, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.ws-cta-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ws-action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ws-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.ws-action-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.ws-action-card-icon {
  font-size: 1.5rem;
}

.ws-reviews {
  display: grid;
  gap: 0.75rem;
}

.ws-review-card {
  padding: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.ws-review-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ws-review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ws-review-stars {
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.ws-reviews-empty {
  padding: 1rem 0;
}

.ws-achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.ws-achievement-list li {
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}

.ws-filters-col {
  flex-direction: column;
  align-items: stretch;
}

.ws-req {
  color: #ef4444;
}
