.dashboard-body {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  padding: 20px 18px 32px;
  padding-left: calc(var(--sidebar-width) + 32px);
  margin: 0;
  width: 100%;
  max-width: none;
  gap: 24px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
}

.profile-view-body {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-body .app-main {
  max-width: none;
  width: 100%;
  padding-top: 0;
  overflow-x: hidden;
  justify-self: stretch;
  grid-column: 1;
}

.dashboard-body .sidebar {
  position: fixed;
  top: calc(var(--header-height) + 18px);
  left: 18px;
  height: calc(100vh - var(--header-height) - 36px);
  width: var(--sidebar-width);
  border-radius: 18px;
  overflow-y: auto;
  border: 1px solid #e6eaf0;
  padding: 20px 16px;
  background: #ffffff;
  color: #1f2933;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-body .right-rail {
  width: 320px;
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  padding-top: 0;
  grid-column: 2;
}

.sidebar-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f5f7fb;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #dbe6f4;
  color: #0a66c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 44px;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 12px;
  color: #7b8794;
}

.dash-card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 18px 0;
}

.dash-card-subheader {
  padding: 0 0 12px;
  font-size: 16px;
}

.dash-card-body {
  padding: 16px 18px 18px;
}

.profile-center {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.profile-pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.profile-pro-hero-main {
  display: flex;
  gap: 20px;
  align-items: center;
}

.profile-pro-avatar {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: #e7eef8;
  color: #2c4a7a;
  font-weight: 700;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-pro-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pro-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-status {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-status-btn {
  cursor: pointer;
  border: none;
}

.profile-status-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.profile-status-menu[hidden] {
  display: none;
}

.profile-status-menu button {
  border: none;
  background: #f8fafc;
  color: #1f2933;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.profile-status-menu button:hover {
  background: #eef4fb;
  color: #0a66c2;
}

.profile-pro-name {
  font-size: 26px;
  margin: 0;
  color: #1f2a44;
}

.profile-pro-meta {
  margin-top: 6px;
  color: #6a7a96;
  font-size: 14px;
}

.profile-pro-badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-soft {
  background: #eef3fb;
  color: #32527a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.pill-outline {
  border: 1px solid #d7e2f1;
  color: #32527a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
}

.pill-verified {
  background: #e9f7ef;
  color: #1f7a49;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.profile-pro-progress {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.profile-hero-metrics {
  margin-top: 4px;
  display: grid;
  gap: 6px;
}

.profile-hero-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2eaf5;
  border-radius: 10px;
  padding: 6px 8px;
  background: #ffffff;
}

.profile-hero-metric strong {
  color: #1f2a44;
  font-size: 13px;
}

.profile-hero-strength-label {
  margin-top: 8px;
}

.profile-hero-hint {
  margin-top: 4px;
}

.profile-hero-warning {
  margin-top: 2px;
  color: #9a5a04;
}

.profile-pro-progress-label {
  font-size: 12px;
  color: #6a7a96;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-pro-progress-value {
  font-size: 22px;
  font-weight: 700;
  color: #1f2a44;
}

.profile-pro-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e3eaf5;
  overflow: hidden;
}

.profile-pro-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2b6df6, #1e4bb8);
}

.profile-pro-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

/* Ratings & Reviews */
.ratings-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e6eaf0;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.ratings-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr);
  gap: 16px 24px;
  align-items: center;
}

.ratings-title {
  font-weight: 700;
  font-size: 18px;
  color: #1f2a44;
}

.ratings-score-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.ratings-score {
  font-size: 36px;
  font-weight: 700;
  color: #1f2a44;
}

.ratings-stars {
  font-size: 18px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.ratings-stars .is-muted {
  color: #e5e7eb;
}

.ratings-subtle {
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
}

.ratings-bars {
  display: grid;
  gap: 12px;
}

.ratings-bar {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1f2a44;
}

.ratings-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.ratings-bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.ratings-bar-value {
  text-align: right;
  color: #64748b;
  font-size: 12px;
}

.ratings-list {
  display: grid;
  gap: 12px;
}

.ratings-item {
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}

.ratings-item.is-hidden {
  display: none;
}

.ratings-item-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ratings-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbe6f4;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ratings-author {
  font-weight: 600;
  color: #1f2a44;
}

.ratings-date {
  color: #64748b;
  font-size: 12px;
}

.ratings-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ratings-tag {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-weight: 600;
}

.ratings-text {
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

.ratings-more {
  justify-self: start;
}

.ratings-empty {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ratings-summary {
    grid-template-columns: 1fr;
  }
  .ratings-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ratings-bar-value {
    text-align: left;
  }
}

.profile-pro-card .dash-card-header {
  margin-bottom: 12px;
}

.profile-block-actions {
  display: inline-flex;
  justify-content: flex-end;
  margin-top: 6px;
  order: 999;
  align-self: flex-end;
  width: auto;
}

.profile-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-accordion-body > .profile-block-actions {
  order: 999;
}

.profile-pro-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
}

.kv-label {
  font-size: 12px;
  color: #6a7a96;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kv-value {
  font-size: 14px;
  color: #1f2a44;
  font-weight: 600;
}

.profile-pro-summary {
  margin: 0;
  display: block;
  color: #334155;
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 22px;
}

.profile-pro-list {
  display: grid;
  gap: 12px;
}

.profile-pro-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  background: #fbfcfe;
  gap: 16px;
}

.profile-pro-item-title {
  font-weight: 700;
  color: #1f2a44;
}

.profile-pro-item-meta {
  color: #6a7a96;
  font-size: 12px;
}

.profile-pro-item-desc {
  margin-top: 8px;
  color: #3c4a63;
  font-size: 13px;
  line-height: 1.5;
}

.profile-pro-timeline {
  display: grid;
  gap: 12px;
}

.profile-pro-timeline-item {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f8;
}

.profile-pro-timeline-item:last-child {
  border-bottom: none;
}

.profile-pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pro-skill-groups {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pro-subblock {
  margin-top: 12px;
}

.work-history-linkedin {
  margin-top: 8px;
  display: grid;
  gap: 14px;
}

.work-history-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.work-history-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e7eef9;
  color: #1f5fbf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.work-history-content {
  border-left: 2px solid #e7edf6;
  padding-left: 14px;
  padding-bottom: 10px;
}

.work-history-entry:last-child .work-history-content {
  padding-bottom: 0;
}

.work-history-role {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a44;
  line-height: 1.3;
}

.work-history-company {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #2b3957;
}

.work-history-dates {
  margin-top: 3px;
  font-size: 12px;
  color: #6a7a96;
}

.work-history-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #3f4f6b;
}

.job-card-link {
  color: inherit;
  text-decoration: none;
}

.job-card-link:hover {
  text-decoration: underline;
}

.job-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-detail-hero {
  padding: 18px 20px;
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.job-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2a44;
}

.job-detail-subtitle {
  margin-top: 6px;
  color: #6a7a96;
}

.job-detail-meta {
  margin-top: 6px;
  color: #6a7a96;
  font-size: 13px;
}

.job-detail-address-link {
  color: #2b6df6;
  text-decoration: none;
}

.job-detail-address-link:hover {
  text-decoration: underline;
}

.job-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.job-detail-section .dash-card-header {
  padding-bottom: 8px;
}

.job-detail-text {
  color: #334155;
  line-height: 1.6;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
}

.job-detail-skills {
  margin-top: 12px;
}

.job-detail-subsection {
  margin-top: 16px;
}

.job-detail-list {
  display: grid;
  gap: 8px;
}

.job-detail-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  background: #fbfcfe;
  color: #1f2a44;
  text-decoration: none;
}

.job-detail-list-item:hover {
  border-color: #c8d7f0;
}

.job-match-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.job-match-item {
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.job-share-list {
  display: grid;
  gap: 8px;
}

.job-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fbfcfe;
}

.job-detail-actions .dash-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.form-section {
  border-top: 1px solid #eef2f8;
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-title {
  font-weight: 600;
  color: #1f2a44;
  font-size: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.attachment-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.attachment-item {
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  padding: 8px;
  background: #fbfcfe;
  display: grid;
  place-items: center;
  min-height: 100px;
  text-align: center;
  font-size: 12px;
  color: #5b6b86;
}

.attachment-thumb {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.attachment-doc {
  font-weight: 600;
  color: #2b6df6;
  word-break: break-word;
}

.job-preview {
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfcfe;
  display: grid;
  gap: 6px;
}

.job-preview-title {
  font-weight: 700;
  color: #1f2a44;
}

.job-preview-meta {
  color: #6a7a96;
  font-size: 12px;
}

.job-preview-text {
  color: #334155;
  font-size: 13px;
}

.job-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.job-attachment {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e3eaf5;
  max-height: 160px;
}

.job-attachment-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  color: #1f2a44;
  text-decoration: none;
  background: #fbfcfe;
}

.job-attachment-link:hover {
  border-color: #c8d7f0;
}

.jobs-filters-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.jobs-filter-col {
  display: contents;
}

.jobs-filter-col-main {
  display: contents;
}

.jobs-header {
  gap: 12px;
  flex-wrap: wrap;
}

.jobs-header-copy {
  gap: 4px;
}

.jobs-header-copy p {
  font-size: 13px;
}

.jobs-section-switch {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #cfdaea;
  background: #f3f7fd;
  margin-top: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.jobs-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #3d5d87;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.jobs-section-link.is-active {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 102, 194, 0.28);
}

.jobs-section-link:not(.is-active):hover {
  background: #e5eefc;
  color: #123f73;
}

.jobs-filters-panel {
  margin-top: 4px;
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  background: #fbfcfe;
}

.jobs-filters-panel > summary {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #1f2a44;
}

.jobs-filters-panel > summary::-webkit-details-marker {
  display: none;
}

.jobs-filters-panel > summary::after {
  content: "+";
  color: #6a7a96;
  font-size: 18px;
  line-height: 1;
}

.jobs-filters-panel[open] > summary::after {
  content: "\2212";
}

.jobs-filters-panel > form {
  padding: 0 14px 14px;
}

.jobs-benefits-row {
  grid-column: 1 / -1;
}

.jobs-benefit-pills {
  gap: 10px;
}

.jobs-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7e2f1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  font-size: 12px;
  color: #32527a;
}

.jobs-benefit-pill input {
  margin: 0;
}

.jobs-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.jobs-active-filters {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jobs-active-filter-pill {
  background: #eef4ff;
  color: #315786;
}

.jobs-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.jobs-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.job-list-card {
  gap: 10px;
  border-color: #dfe7f3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.job-market-card {
  overflow: hidden;
  border-color: #dfe7f3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.job-market-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.job-market-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(125deg, #e6eefc 0%, #dbe7fb 55%, #e8f1ff 100%);
  overflow: hidden;
}

.job-market-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-market-media-video {
  background: #0f1e3d;
}

.job-market-media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1f4f93;
}

.job-market-badges {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-market-badges .badge {
  background: rgba(8, 20, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.job-market-badges .badge-status {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(30, 64, 175, 0.88));
  border-color: rgba(191, 219, 254, 0.55);
}

.job-market-badges .badge-license {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.9), rgba(180, 83, 9, 0.9));
  border-color: rgba(253, 230, 138, 0.6);
}

.job-market-badges .badge-verified {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(4, 120, 87, 0.9));
  border-color: rgba(167, 243, 208, 0.6);
}

.job-market-save {
  position: absolute;
  top: 10px;
  right: 10px;
}

.job-market-save form {
  margin: 0;
}

.job-market-save-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2a44;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.job-market-save-btn.is-saved {
  color: #d94848;
}

.job-market-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.job-market-seller {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-market-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e6effe;
  color: #1f5fbf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.job-market-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}


.job-market-seller-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.job-market-seller-meta strong {
  font-size: 13px;
  color: #1f2a44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-market-seller-meta span {
  font-size: 12px;
  color: #6a7a96;
}

.job-market-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-market-location {
  margin: 0;
  min-height: 18px;
}

.job-market-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #1f2a44;
}

.job-market-star {
  color: #111827;
  font-size: 14px;
}

.job-market-rating-meta {
  color: #5a6884;
  font-weight: 500;
}

.job-market-price {
  margin-top: 0;
  font-size: 18px;
  color: #1f2a44;
}

.job-market-skills {
  gap: 6px;
}

.job-list-title {
  font-size: 18px;
  line-height: 1.35;
}

.job-list-meta {
  line-height: 1.45;
}

.job-list-stats {
  margin-top: -4px;
}

.job-list-address-link {
  color: #2b6df6;
  text-decoration: none;
}

.job-list-address-link:hover {
  text-decoration: underline;
}

.job-list-actions {
  margin-top: 4px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.job-list-actions form {
  margin: 0;
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.jobs-match-high {
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.28);
  color: #1f7a49;
}

.jobs-match-mid {
  background: rgba(178, 106, 0, 0.12);
  border-color: rgba(178, 106, 0, 0.28);
  color: #9a5a04;
}

.jobs-match-low {
  background: rgba(181, 40, 32, 0.12);
  border-color: rgba(181, 40, 32, 0.28);
  color: #b52820;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .jobs-filters-grid {
    grid-template-columns: 1fr;
  }

  .jobs-section-switch {
    width: auto;
  }

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

  .jobs-filters-panel > summary {
    padding: 11px 12px;
  }

  .jobs-filters-panel > form {
    padding: 0 12px 12px;
  }

  .job-list-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .job-list-actions form {
    width: 100%;
  }

  .job-market-title {
    font-size: 16px;
    min-height: 44px;
  }

  .job-market-price {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .jobs-section-switch {
    width: 100%;
  }

  .jobs-section-link {
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 1400px) {
  .jobs-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .jobs-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-pro-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.profile-update-profile-cta {
  display: none;
}

.profile-accordion {
  border: 0;
  padding: 0;
  margin: 0;
}

.profile-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px;
  font-weight: 600;
  color: #1f2a44;
  list-style: none;
  cursor: pointer;
}

.profile-accordion > :not(summary) {
  display: block;
}

.profile-summary-details {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.profile-summary-details > summary {
  order: 2;
  display: none;
}

.profile-summary-details:not([open]) > :not(summary) {
  display: block;
}

.profile-summary-details:not([open]) .profile-pro-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-summary-details[open] .profile-pro-summary {
  display: block;
  -webkit-line-clamp: initial;
}

@media (max-width: 900px) {
  .profile-center {
    padding: 16px 0 24px;
  }

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

  .profile-pro-hero-main {
    align-items: flex-start;
  }

  .profile-pro-avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
  }

  .profile-pro-name {
    font-size: 22px;
  }

  .profile-pro-actions {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 5;
    background: #f6f8fb;
    padding: 8px 0;
  }

  .profile-pro-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    height: 44px;
  }

  .profile-pro-grid {
    gap: 12px;
  }

  .profile-accordion {
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }

  .profile-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 600;
    color: #1f2a44;
    cursor: pointer;
    list-style: none;
  }

  .profile-accordion > summary::after {
    content: '▾';
    color: #6a7a96;
    font-size: 14px;
  }

  .profile-accordion[open] > summary::after {
    content: '▴';
  }

  .profile-accordion-body {
    border: 0;
    box-shadow: none;
    padding: 12px 16px 16px;
  }

  .profile-accordion:not([open]) > :not(summary) {
    display: none;
  }

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

  .profile-pro-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .profile-pro-skill-groups {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .profile-summary-details > summary {
    display: inline-flex;
    margin-top: 8px;
    font-size: 12px;
    color: #2b6df6;
    cursor: pointer;
  }
}

.profile-header-card {
  overflow: hidden;
}

.profile-banner {
  height: 72px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.16));
}

.profile-header-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px 20px;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-header-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.profile-header-buttons {
  display: flex;
  gap: 12px;
}

.profile-edit-btn {
  padding: 8px 14px;
  border-radius: 12px;
  height: 40px;
}

.profile-edit-label {
  display: inline;
}

.profile-settings-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.profile-settings-text {
  display: inline-flex;
}

.profile-settings-icon {
  font-size: 16px;
}

.profile-visibility {
  font-size: 12px;
  color: #7b8794;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-visibility-icon {
  font-size: 14px;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 22px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overview-card {
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

.overview-icon {
  font-size: 18px;
}

.overview-title {
  font-size: 12px;
  color: #7b8794;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-meta {
  font-size: 12px;
  color: #7b8794;
}

.overview-link {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
}

.overview-link:hover {
  text-decoration: underline;
}

.overview-metric {
  font-weight: 600;
  font-size: 18px;
}

.overview-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.overview-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
}

.account-overview-card {
  border-radius: 16px;
}

.account-overview-header {
  align-items: center;
}

.overview-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.overview-menu-btn:hover {
  background: #f3f4f6;
  color: #475569;
}

.overview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.overview-badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.overview-badge-info {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

.overview-card-cta {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
  cursor: pointer;
}

.overview-scroll-indicator {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.overview-scroll-indicator span {
  display: block;
  width: 36%;
  height: 100%;
  background: rgba(37, 99, 235, 0.6);
  border-radius: inherit;
}

.billing-card-compact {
  padding: 14px 16px;
}

.billing-card-large {
  padding: 18px 20px;
}

.billing-card-header {
  justify-content: space-between;
  align-items: flex-start;
}

.billing-card-list {
  margin-top: 14px;
}

.billing-card-actions {
  margin-top: 16px;
}

.profile-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.composer-visibility-note {
  font-size: 12px;
  color: #7b8794;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 20px;
}

.profile-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef2f6;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-empty-icon svg {
  width: 28px;
  height: 28px;
}

.profile-empty-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

/* Messages (desktop only) */
.messages-center {
  max-width: 100%;
}

.messages-body {
  overflow: hidden;
}

.messages-body .app-shell {
  height: 100vh;
  height: 100dvh;
}

.messages-page {
  min-height: 0;
}

.messages-page.dashboard-body {
  flex: 1;
  --messages-bottom-gap: 85px;
  height: calc(100vh - var(--header-height) - var(--messages-bottom-gap));
  height: calc(100dvh - var(--header-height) - var(--messages-bottom-gap));
  overflow: hidden;
  box-sizing: border-box;
  align-items: stretch;
  padding-bottom: var(--messages-bottom-gap);
}

.messages-page .app-main {
  height: 100%;
  min-height: 0;
}

.messages-page .messages-center {
  height: 100%;
}

.messages-shell {
  display: grid;
  --messages-sidebar-width: 320px;
  --messages-gap: 16px;
  grid-template-columns: var(--messages-sidebar-width) minmax(0, 1fr);
  gap: var(--messages-gap);
  height: 100%;
  padding-top: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.messages-center {
  height: 100%;
}

.chat-list-view,
.chat-view {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat-back-btn {
  display: none;
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 999px;
}

.chat-back-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

.messages-sidebar,
.chat-window {
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-list-view .messages-sidebar,
.chat-view .chat-window {
  flex: 1;
}

.chat-window {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.messages-header {
  padding: 16px;
  border-bottom: 1px solid #e6eaf0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messages-title {
  font-size: 18px;
  font-weight: 600;
}

.messages-tabs {
  display: flex;
  gap: 8px;
}

.messages-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
}

.messages-tab.active {
  background: #e0edff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
  font-weight: 600;
}

.messages-search .input {
  border-radius: 999px;
  background: #f8fafc;
}

.messages-list {
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.messages-subtitle {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 6px 0 4px;
}

.dialog-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e6eaf0;
  text-decoration: none;
  color: #1f2933;
  background: #fff;
}

.dialog-card:hover {
  background: #f5f7fb;
}

.dialog-card.active {
  background: #eaf2ff;
  border-color: rgba(37, 99, 235, 0.35);
}

.dialog-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dialog-title {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-time {
  font-size: 11px;
  color: #94a3b8;
  flex: 0 0 auto;
}

.dialog-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dialog-snippet {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  color: #64748b;
}

.dialog-prefix {
  flex: 0 0 auto;
  font-weight: 600;
}

.dialog-prefix.mine {
  color: #2563eb;
}

.dialog-prefix.peer {
  color: #64748b;
}

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

.dialog-unread {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e6eaf0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-peer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.chat-peer-link:hover .chat-title {
  text-decoration: underline;
}

.chat-title {
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

.chat-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.chat-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e6eaf0;
  background: #f8fafd;
}

.chat-search-panel[hidden] {
  display: none;
}

.chat-search-panel .input {
  flex: 1;
  min-height: 38px;
}

.chat-search-count {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.chat-bubble.is-search-match {
  outline: 2px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

.chat-bubble.is-search-active {
  outline: 2px solid rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.chat-history {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 16px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-view .chat-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 3;
}

.dash-alert {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  font-size: 14px;
}

.dash-alert-success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #166534;
}

.dash-alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.dash-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.verification-request-meta {
  display: grid;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.verification-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.chat-view .message-input {
  position: static;
  background: #ffffff;
  z-index: 3;
}

.messages-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  height: calc(100vh - var(--header-height) - 32px - 15px);
  height: calc(100dvh - var(--header-height) - 32px - 15px);
}

.messages-sidebar .messages-list {
  min-height: 0;
}

.chat-plus-panel {
  margin: 8px 16px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e6eaf0;
  background: #f8fafc;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.chat-plus-panel .offer-form {
  margin-top: 0;
  box-shadow: none;
}

.offer-form {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.offer-form-row {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr);
  align-items: center;
}

.offer-form-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-form-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2933;
}

.offer-form-subtitle {
  font-size: 12px;
  color: #7b8794;
}

.offer-form-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: end;
}

.offer-form-actions .form-field {
  margin: 0;
}

@media (max-width: 720px) {
  .offer-form-row {
    grid-template-columns: 1fr;
  }

  .offer-form-actions {
    grid-template-columns: 1fr;
  }
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #1f2933;
  font-size: 14px;
  align-self: flex-start;
}

.chat-author {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.chat-bubble.is-pending {
  opacity: 0.6;
}

.chat-bubble.is-failed {
  opacity: 1;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.chat-bubble.me {
  align-self: flex-end;
  background: #e0edff;
}

.chat-status {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.message-input {
  border-top: 1px solid #e6eaf0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  flex: 0 0 auto;
}

.message-input-field .input {
  width: 100%;
  min-height: 44px;
  resize: none;
  border-radius: 14px;
}

.message-input-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-file-input {
  display: none;
}

.message-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quick-actions-card {
  display: none;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e6eaf0;
  background: #fff;
  text-decoration: none;
  color: #1f2933;
  min-height: 52px;
}

.quick-action-icon {
  font-size: 16px;
}

.quick-action-text {
  flex: 1;
  font-size: 14px;
}

.quick-action-chevron {
  color: #94a3b8;
  font-size: 18px;
}

@media (max-width: 430px) {
  .profile-pro-hero-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .profile-pro-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-top: 2px;
  }

  .profile-pro-hero-text {
    min-width: 0;
    flex: 1;
  }

  .profile-pro-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .profile-pro-badges {
    margin-top: 8px;
    gap: 6px;
  }

  .pill-soft {
    font-size: 11px;
    padding: 4px 8px;
  }

  .profile-center {
    max-width: 100%;
    padding: 16px 0 24px;
    gap: 14px;
  }

  .profile-banner {
    height: 56px;
  }

  .profile-header-content {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px 16px 16px;
    gap: 12px;
  }

  .profile-header-left {
    gap: 12px;
    flex: 1;
  }

  .profile-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 18px;
  }

  .profile-header-actions {
    width: auto;
    align-items: flex-end;
    gap: 8px;
  }

  .profile-header-buttons {
    gap: 8px;
  }

  .profile-edit-label {
    display: none;
  }

  .profile-settings-text {
    display: none;
  }

  .profile-settings-btn {
    display: inline-flex;
  }

  .profile-visibility {
    margin-top: 6px;
  }

  .profile-email {
    max-width: 180px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .overview-card {
    min-height: 92px;
    padding: 12px;
    gap: 6px;
    justify-content: flex-start;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  }

  .overview-title {
    font-size: 12px;
    color: #94a3b8;
  }

  .overview-meta,
  .overview-link {
    font-size: 12px;
    line-height: 1.3;
  }

  .overview-metric {
    font-size: 16px;
  }

  .overview-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .overview-progress {
    height: 6px;
  }

  .overview-scroll-indicator {
    display: none;
  }

  .overview-grid::-webkit-scrollbar {
    height: 6px;
  }

  .overview-grid::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
  }

  .quick-actions-card {
    display: block;
  }

  .composer-input {
    min-height: 88px;
  }

  .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions .actions-left {
    width: 100%;
    justify-content: space-between;
  }

  .composer-actions .btn.btn-primary {
    width: 100%;
  }

  .profile-empty-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-empty-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.composer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-title {
  font-weight: 600;
  font-size: 16px;
}

.composer-subtitle {
  font-size: 13px;
  color: #7b8794;
}

.composer-input {
  width: 100%;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 12px 14px;
  resize: none;
  min-height: 52px;
  transition: min-height 0.2s ease, border-color 0.2s ease;
}

.composer-input:focus {
  outline: none;
  border-color: #c9d5e6;
  min-height: 110px;
}

.composer-input:focus-visible,
.post-action-btn:focus-visible,
.mobile-bottom-nav .nav-item:focus-visible,
.mobile-menu-link:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 2px;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-actions .actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.composer-visibility {
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 120px;
}

.composer-attach {
  position: relative;
  overflow: hidden;
}

.composer-attach input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user-row .avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  overflow: hidden;
}

.post-user-row .avatar .avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.post-meta {
  font-size: 12px;
  color: #7b8794;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.post-actions form {
  margin: 0;
}

.post-action-btn {
  background: transparent;
  border: none;
  color: #4a5568;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
}

.post-action-btn:hover {
  background: #eef2f6;
  color: #1f2933;
}

.post-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.post-action-btn.is-static {
  cursor: default;
  pointer-events: none;
}

.post-action-count {
  color: #7b8794;
  font-size: 12px;
}

.post-comment {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.post-comment input {
  flex: 1;
  border: 1px solid #e6eaf0;
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 0;
}

.post-comment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
}

.post-comment button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.widget-list-clean {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-link {
  font-size: 12px;
  color: #7b8794;
  text-decoration: none;
}

.widget-link:hover {
  color: #0a66c2;
}

.empty-state-clean {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #7b8794;
  font-size: 14px;
}

.sidebar-section {
  margin-top: 16px;
}

.sidebar-section-title {
  font-size: 12px;
  color: #8a97a6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 12px 0 8px;
}

.sidebar-link {
  position: relative;
  gap: 10px;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: #0a66c2;
}

.sidebar-link.active {
  background: #eef4fb;
  color: #0a66c2;
}

.dashboard-body .sidebar .sidebar-section-title {
  color: #8a97a6;
}

.dashboard-body .sidebar .sidebar-link {
  color: #5f6c7b;
  border: 1px solid transparent;
}

.dashboard-body .sidebar .sidebar-link:hover {
  background: #f1f5f9;
  color: #1f2933;
  border-color: #e2e8f0;
}

.dashboard-body .sidebar .sidebar-link.active {
  background: #eef4fb;
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.25);
}

.dashboard-body .sidebar .sidebar-link.active::before {
  left: -12px;
  background: #0a66c2;
  box-shadow: none;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #5f6c7b;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.mobile-bottom-nav .nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-bottom-nav .nav-item.active {
  color: #0a66c2;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1205;
}

.mobile-menu-sheet {
  position: absolute;
  inset: 0;
  background: #f5f7fa;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-menu-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6eaf0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.mobile-menu-close-btn:hover {
  background: #eef2f6;
}

.mobile-menu-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eaf0;
  margin-bottom: 16px;
}

.mobile-menu-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-profile-name {
  font-weight: 600;
}

.mobile-menu-profile-role {
  font-size: 12px;
  color: #7b8794;
}

.mobile-menu-section {
  margin-top: 16px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6eaf0;
  margin-bottom: 10px;
  min-height: 48px;
  text-decoration: none;
  color: #1f2933;
  position: relative;
}

.mobile-menu-link.active {
  background: #eaf2ff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #1f2933;
}

.mobile-bottom-nav .icon-badge {
  top: -2px;
  right: 10px;
}

.mobile-menu-link .icon-badge {
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
}

.mobile-menu-link span:last-child {
  color: #94a3b8;
}

.mobile-menu-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-menu-logout {
  margin-top: 24px;
  color: #c62828;
  font-weight: 600;
}

.mobile-menu-logout-btn {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.4);
}

.mobile-menu-logout-btn:hover {
  background: rgba(198, 40, 40, 0.08);
}

@media (max-width: 1024px) {
  .dashboard-body {
    grid-template-columns: 1fr;
    padding: 8px 12px 80px;
  }

  .dashboard-body .right-rail,
  .dashboard-body .sidebar {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .mobile-menu-overlay.open {
    display: block;
  }

  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .chat-view .message-input {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .profile-actions .btn {
    flex: 1 1 140px;
  }

  .profile-center {
    padding-top: 0;
    gap: 12px;
  }

  .profile-pro-hero {
    margin-top: 0;
  }
}

@media (max-width: 768px), (pointer: coarse) {
  html.chat-page,
  body.chat-page.messages-body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  body.chat-page.messages-body {
    position: fixed;
    inset: 0;
    width: 100%;
    overscroll-behavior: none;
  }

  body.chat-page.messages-body .site-footer {
    display: none;
  }

  body.chat-page.messages-body .app-shell {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--vvh, 100dvh);
    overflow: hidden;
  }

  body.chat-page.messages-body .messages-page.dashboard-body {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  body.chat-page.messages-body .messages-page .app-main.messages-center {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  body.chat-page.messages-body .messages-shell {
    display: block;
    height: 100%;
    min-height: 0;
    padding-top: 0;
  }

  .chat-list-view,
  .chat-page .ChatRoot {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background: #f5f7fa;
    display: none;
    overflow: hidden;
    z-index: 5;
  }

  body.is-chat-view .header,
  body.is-chat-view .mobile-bottom-nav {
    display: none;
  }

  body.is-chat-view .ChatRoot {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--vvh, 100dvh);
    transform: none !important;
  }

  .chat-list-view.is-active,
  .chat-page .ChatRoot.is-active,
  .ChatRoot.is-active {
    display: block;
  }

  .chat-list-view .messages-sidebar,
  .chat-page .ChatRoot .chat-window {
    height: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .chat-page .ChatRoot .chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .chat-page .ChatRoot .ChatHeader {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .chat-page .ChatRoot .chat-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chat-page .ChatRoot .ChatMessages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: calc(var(--composerH, 64px) + env(safe-area-inset-bottom) + var(--kb, 0px));
  }

  .chat-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chat-header {
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
  }

  .chat-page .ChatRoot .ChatComposerWrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--kb, 0px) + env(safe-area-inset-bottom));
    z-index: 3000;
    background: #ffffff;
    border-top: 1px solid #e6eaf0;
    padding: 12px 16px;
    padding-bottom: 12px;
    transform: none !important;
    will-change: auto;
  }

  .chat-page .chat-debug-overlay {
    position: fixed;
    right: 8px;
    top: calc(8px + env(safe-area-inset-top));
    z-index: 4000;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    white-space: pre-line;
    pointer-events: none;
  }

}

.is-mobile .dashboard-body {
  grid-template-columns: 1fr;
  padding: 8px 12px 80px;
}

.is-mobile .dashboard-body .right-rail,
.is-mobile .dashboard-body .sidebar {
  display: none;
}

.is-mobile .mobile-bottom-nav {
  display: flex;
}

.is-mobile .mobile-menu-overlay.open {
  display: block;
}

.is-mobile .message-layout {
  grid-template-columns: 1fr;
}

.is-mobile .app-main {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.is-mobile.messages-body .app-main.messages-center {
  padding-bottom: 0;
}

/* Profile edit - central content only */
.profile-edit-main {
  padding-top: 0;
  width: 100%;
}

.profile-edit-body {
  gap: 12px;
  padding: 16px 12px 24px;
  padding-left: calc(var(--sidebar-width) + 30px);
  grid-template-columns: minmax(0, 1fr);
}

.profile-edit-shell {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
  width: 100%;
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-tab-list {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 5;
  background: #f8fafc;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #e6eaf0;
  flex-wrap: wrap;
}

.profile-tabs .tab-list {
  flex-wrap: wrap;
}

.profile-tabs .tab-button {
  font-size: 12px;
  padding: 8px 12px;
}

.profile-tabs .tab-panel {
  display: none;
}

.profile-tabs .tab-panel.active {
  display: block;
}

.profile-edit-side {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.profile-edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-edit-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.profile-edit-subtitle {
  margin: 0;
  color: #6b7785;
  font-size: 13px;
}

.profile-edit-meta {
  font-size: 12px;
  color: #7b8794;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 999px;
}

.onboarding-save-highlight .btn,
.onboarding-save-highlight {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  border-radius: 14px;
}

/* Profile onboarding tour */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1200;
  pointer-events: none;
}

.tour-tooltip {
  position: fixed;
  max-width: 320px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e6eaf0;
  z-index: 1201;
}

.tour-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2a44;
  margin: 0 0 6px;
}

.tour-text {
  font-size: 13px;
  color: #4a5568;
  margin: 0 0 12px;
  line-height: 1.5;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tour-actions .btn {
  height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.tour-step-count {
  font-size: 11px;
  color: #94a3b8;
}

.tour-highlight {
  position: relative;
  z-index: 1202;
  outline: 3px solid rgba(37, 99, 235, 0.7);
  outline-offset: 4px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 0 0 6px rgba(37, 99, 235, 0.18);
  border-radius: 12px;
}

.dropdown-item.tour-highlight,
.dropdown-item.tour-highlight:hover,
.dropdown-item.tour-highlight:focus {
  background: #ffffff;
  color: #1f2933;
}


.tour-spotlight {
  position: fixed;
  border-radius: 14px;
  border: 3px solid rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
  z-index: 1203;
  pointer-events: none;
}

.profile-section {
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e6eaf0;
  background: #ffffff;
}

.profile-section .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-section .section-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.profile-section .section-sub {
  margin: 0;
  color: #6b7785;
  font-size: 12px;
}

.profile-subsection {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #e3e8ef;
}

.profile-subsection h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #1f2933;
}

.section-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #7b8794;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-form-actions .form-hint {
  margin: 0;
}

.avatar-uploader {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eef2f7;
  color: #0a66c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #d6e1ee;
  overflow: hidden;
}

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

.avatar-dropzone {
  position: relative;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.avatar-dropzone.is-dragover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}

.avatar-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.avatar-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6b7785;
  font-size: 12px;
}

.avatar-dropzone-text strong {
  color: #1f2933;
  font-size: 13px;
}

.avatar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-section .form-field + .form-field,
.profile-section .grid-2 {
  margin-top: 2px;
}

.profile-section .input,
.profile-section .select,
.profile-section .textarea {
  background: #ffffff;
  border-color: #d7dee7;
}

.profile-section .input:focus,
.profile-section .select:focus,
.profile-section .textarea:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.profile-section .form-hint {
  color: #7b8794;
}

.skills-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #ffffff;
}

.skills-input:focus-within {
  border-color: #0a66c2;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.skills-text {
  border: none;
  padding: 6px 8px;
  min-width: 180px;
  flex: 1;
}

.skills-text:focus {
  outline: none;
  box-shadow: none;
}

.skill-tag {
  border: 1px solid rgba(10, 102, 194, 0.25);
  background: #eef4fb;
  color: #0a66c2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.skill-tag:hover {
  background: rgba(10, 102, 194, 0.12);
}

.skills-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-pill {
  cursor: pointer;
  border-color: rgba(10, 102, 194, 0.2);
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}

.skill-pill:hover {
  background: rgba(10, 102, 194, 0.16);
}

@media (max-width: 1024px) {
  .profile-edit-layout {
    grid-template-columns: 1fr;
  }

  .profile-edit-side {
    position: static;
  }

  .profile-edit-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatar-uploader {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .avatar-preview {
    width: 120px;
    height: 120px;
    font-size: 24px;
  }
}

@media (max-height: 900px) and (min-width: 1025px) {
  .dashboard-body {
    padding: 16px 16px 24px;
    padding-left: calc(var(--sidebar-width) + 24px);
  }

  .dashboard-body .sidebar {
    top: calc(var(--header-height) + 12px);
    height: calc(100vh - var(--header-height) - 24px);
    padding: 16px 12px;
  }

  .sidebar-user {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }

  .sidebar-user-name {
    font-size: 14px;
  }

  .sidebar-user-role {
    font-size: 11px;
  }

  .sidebar-section {
    margin-top: 12px;
  }

  .sidebar-section-title {
    margin: 10px 0 6px;
    font-size: 11px;
  }

  .sidebar-link {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Quick search */
.quick-search-panel {
  margin-bottom: 18px;
}

.quick-search-form {
  display: grid;
  gap: 16px;
}

.quick-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}

.quick-search-actions {
  gap: 10px;
}

.quick-search-results {
  display: grid;
  gap: 14px;
}

.quick-result-card {
  gap: 12px;
}

.quick-result-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quick-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quick-result-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.quick-result-profile-link {
  color: #1f2a44;
  text-decoration: none;
}

.quick-result-profile-link:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.quick-result-badges,
.quick-result-skills {
  gap: 8px;
}

.quick-result-actions {
  margin-top: 4px;
}

.quick-search-loader,
.quick-search-empty {
  padding: 12px 6px;
  color: #6b7785;
  font-size: 14px;
}

.quick-search-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .quick-search-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card-header.no-pad {
  padding: 0;
}

.pro-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-plan-card {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 14px;
  background: #f9fbff;
  display: grid;
  gap: 10px;
}

.pro-plan-card.is-current {
  border-color: #0a66c2;
  box-shadow: 0 8px 18px rgba(10, 102, 194, 0.12);
  background: #f4f9ff;
}

.pro-plan-card-pro {
  background: linear-gradient(180deg, #f5f9ff 0%, #ecf4ff 100%);
}

.pro-plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pro-plan-title-row h4 {
  margin: 0;
  font-size: 18px;
}

.pro-plan-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #41556f;
}

@media (max-width: 960px) {
  .pro-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile mobile redesign */
@media (max-width: 900px) {
  .dashboard-body {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .profile-center {
    gap: 12px;
    padding: 8px 0 0;
  }

  .profile-pro-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dde6f4;
    background:
      radial-gradient(circle at 12% -8%, rgba(52, 118, 245, 0.16), transparent 45%),
      #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .profile-pro-hero-main {
    align-items: flex-start;
    gap: 12px;
  }

  .profile-pro-avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    border: 2px solid #f2f6fc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    flex: 0 0 76px;
  }

  .profile-pro-name {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .profile-pro-meta {
    margin-top: 4px;
    font-size: 15px;
    color: #60728f;
  }

  .profile-pro-badges {
    margin-top: 10px;
    gap: 6px;
  }

  .pill-soft {
    font-size: 12px;
    line-height: 1.2;
    padding: 6px 10px;
  }

  .profile-pro-progress {
    display: grid !important;
    border-radius: 14px;
    border: 1px solid #e3eaf5;
    background: #f7f9fc;
    gap: 10px;
    padding: 14px;
  }

  .profile-pro-hero-side {
    display: block !important;
    width: 100%;
    order: 3;
  }

  .profile-pro-progress-value {
    font-size: 30px;
    line-height: 1;
  }

  .profile-update-profile-hero {
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .profile-pro-actions {
    display: none !important;
  }

  .profile-pro-actions .btn {
    min-height: 46px;
    width: 100%;
    font-size: 15px;
    border-radius: 14px;
  }

  .profile-pro-actions > :first-child,
  .profile-update-profile-cta {
    grid-column: 1 / -1;
  }

  .profile-update-profile-cta {
    display: none;
    min-height: 46px;
    border-color: rgba(10, 102, 194, 0.22);
    background: #f1f6ff;
  }

  .profile-pro-grid {
    gap: 10px;
    margin-top: 4px;
  }

  .profile-accordion {
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  }

  .profile-accordion > summary {
    padding: 13px 14px;
    font-size: 16px;
    font-weight: 700;
  }

  .profile-accordion-body {
    padding: 12px 14px 14px;
    gap: 12px;
  }

  .profile-block-actions {
    margin-top: 2px;
  }

  .profile-block-actions .btn {
    min-height: 42px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 12px;
  }

  .kv-label {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .kv-value {
    font-size: 15px;
    line-height: 1.3;
  }

  .profile-pro-summary {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 430px) {
  .profile-pro-name {
    font-size: 34px;
  }

  .profile-pro-name-row {
    align-items: flex-start;
    gap: 8px;
  }

  .profile-pro-hero-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .profile-pro-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-top: 2px;
  }

  .profile-pro-progress-label {
    font-size: 11px;
  }

  .profile-pro-progress-value {
    font-size: 28px;
  }
}

/* Dashboard visual alignment with landing/auth style */
.dashboard-top-actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.dashboard-body {
  background: linear-gradient(180deg, #eef3fa 0%, #e7edf7 100%);
}

.dashboard-body .app-main {
  gap: 14px;
}

.dashboard-body .sidebar {
  background: #ffffff;
  border: 1px solid rgba(11, 41, 77, 0.12);
  box-shadow: 0 12px 28px rgba(11, 41, 77, 0.08);
}

.dashboard-body .sidebar-user {
  background: #f5f8fd;
  border: 1px solid #dbe6f4;
}

.dashboard-body .sidebar-user-name,
.dashboard-body .sidebar-user-role,
.dashboard-body .sidebar-section-title,
.dashboard-body .sidebar-link {
  color: #1f2933;
}

.dashboard-body .sidebar-link:hover {
  background: #f3f7fd;
}

.dashboard-body .sidebar-link.active {
  background: rgba(10, 102, 194, 0.1);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.26);
}

.dashboard-body .sidebar-link.active::before {
  background: #f4c542;
}

.dashboard-body .card,
.dashboard-body .dash-card {
  background: #ffffff;
  border: 1px solid rgba(11, 41, 77, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 41, 77, 0.08);
}

.dashboard-body .card-header strong,
.dashboard-body .dash-card-header strong {
  color: #0b2b4f;
}

.dashboard-body .post-card {
  border-radius: 16px;
  overflow: hidden;
}

.dashboard-body .post-header {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.dashboard-body .post-action.active {
  background: rgba(10, 102, 194, 0.12);
  border-color: rgba(10, 102, 194, 0.34);
  color: #0a66c2;
}

.dashboard-body .btn-primary {
  background: #f4c542;
  border-color: #f4c542;
  color: #102740;
  box-shadow: 0 8px 18px rgba(244, 197, 66, 0.28);
}

.dashboard-body .btn-primary:hover {
  background: #e8b52d;
  border-color: #e8b52d;
}

.dashboard-body .btn-secondary {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.dashboard-body .btn-secondary:hover {
  background: #0857a5;
  border-color: #0857a5;
}

.dashboard-body .btn-ghost {
  border-color: rgba(10, 102, 194, 0.26);
  color: #0a66c2;
}

.dashboard-body .btn-ghost:hover {
  background: rgba(10, 102, 194, 0.08);
}

.dashboard-body .pill {
  background: #edf4ff;
  color: #124072;
  border: 1px solid #cadcf3;
}

/* Dashboard top bar aligned with landing style */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 40, 104, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.header .logo,
.header .header-link,
.header .header-nav,
.header .nav-icon,
.header .nav-label {
  color: rgba(255, 255, 255, 0.92);
}

.header .header-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header .search-input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.header .search-input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header .search-icon,
.header .search-icon::after {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.85);
}

.header .btn.btn-secondary {
  background: #f4c542;
  border-color: #f4c542;
  color: #102740;
}

.header .btn.btn-secondary:hover {
  background: #e8b52d;
  border-color: #e8b52d;
}

.header .avatar-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }

  .header .header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .header .header-actions .btn.btn-secondary {
    height: 40px;
    padding: 0 14px;
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 999px;
    box-shadow: none;
  }

  .app-shell .dashboard-body {
    margin-top: calc(var(--header-height) + 56px);
  }
}

/* Profile desktop polish only (keep mobile layout untouched) */
@media (min-width: 901px) {
  .profile-center {
    max-width: 1060px;
    gap: 14px;
    padding-top: 18px;
  }

  .profile-center > .profile-pro-hero {
    grid-template-columns: 1fr;
    border-radius: 18px;
    border: 1px solid rgba(11, 41, 77, 0.12);
    box-shadow: 0 14px 32px rgba(11, 41, 77, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    align-items: start;
    gap: 14px;
  }

  .profile-pro-hero-main {
    align-items: flex-start;
  }

  .profile-pro-hero-side {
    width: 100%;
    max-width: none;
  }

  .profile-pro-avatar {
    box-shadow: inset 0 0 0 1px rgba(10, 102, 194, 0.18);
    background: linear-gradient(145deg, #e9f2ff, #dce9fb);
  }

  .profile-pro-name {
    letter-spacing: -0.02em;
  }

  .profile-pro-meta {
    color: #58708f;
  }

  .profile-pro-progress {
    border: 1px solid #dfe8f4;
    border-radius: 16px;
    background: #f7faff;
  }

  .profile-pro-actions {
    display: none;
    margin: 0;
  }

  .profile-pro-grid {
    margin-top: 8px;
    gap: 14px;
  }

  .profile-accordion > summary {
    padding: 4px 2px 10px;
    font-size: 34px;
    letter-spacing: -0.02em;
    color: #15365c;
  }

  .profile-accordion-body {
    border: 1px solid rgba(11, 41, 77, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 41, 77, 0.06);
    padding: 16px 18px 18px;
  }

  .profile-pro-kv {
    gap: 16px 24px;
  }

  .kv-label {
    color: #6c809b;
  }

  .kv-value {
    color: #112f51;
  }
}
