:root {
  color-scheme: light;
  --page: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --text: #3f425d;
  --heading: #252746;
  --muted: #8f96b3;
  --soft: #c2c7dc;
  --line: #e8ebf5;
  --brand: #615dfa;
  --brand-dark: #4f4bd9;
  --cyan: #23d2e2;
  --pink: #ff4f8b;
  --gold: #ffb640;
  --green: #23cfa2;
  --red: #ff5b6f;
  --shadow: 0 18px 46px rgba(88, 92, 138, 0.14);
  --shadow-strong: 0 24px 70px rgba(88, 92, 138, 0.22);
  --radius: 14px;
  --topbar-h: 76px;
  --side-w: 80px;
  --expert-w: 0px;
  --mobile-nav-clearance: 0px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-workspace {
  display: grid;
  gap: 22px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 0;
}

.admin-head h1 {
  max-width: 820px;
  font-size: clamp(30px, 3.8vw, 46px);
}

.admin-head p {
  max-width: 760px;
  color: var(--text);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: min(420px, 100%);
}

.admin-kpis span,
.admin-policy,
.admin-queue,
.admin-audit,
.admin-filter,
.admin-queue-item,
.admin-signal,
.admin-audit-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-kpis span {
  padding: 14px;
  color: var(--muted);
}

.admin-kpis b {
  display: block;
  color: var(--heading);
  font-size: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.admin-sidebar,
.admin-queue,
.admin-audit {
  display: grid;
  gap: 14px;
}

.admin-queue,
.admin-audit {
  padding: 18px;
}

.admin-filter-list {
  display: grid;
  gap: 8px;
}

.admin-filter {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  text-align: left;
}

.admin-filter.is-active {
  border-color: rgba(31, 184, 115, 0.34);
  background: #eaf6ef;
  color: var(--brand-dark);
}

.admin-policy {
  padding: 14px;
}

.admin-policy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.admin-list,
.admin-audit-list {
  display: grid;
  gap: 12px;
}

.admin-queue-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  box-shadow: none;
}

.admin-queue-item.is-critical {
  border-color: rgba(255, 91, 111, 0.42);
}

.admin-queue-item.is-high {
  border-color: rgba(255, 182, 64, 0.48);
}

.admin-item-main,
.admin-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-item-main h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.admin-item-main p {
  margin: 0;
  color: var(--muted);
}

.admin-type,
.admin-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-risk-meter {
  display: grid;
  place-items: center;
  min-width: 64px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.admin-risk-meter b {
  color: var(--heading);
  font-size: 24px;
  line-height: 1;
}

.admin-risk-meter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-signals {
  display: grid;
  gap: 8px;
}

.admin-signal {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #fbfdfb;
  color: var(--text);
}

.admin-signal b {
  color: var(--heading);
}

.admin-signal.is-critical {
  border-color: rgba(255, 91, 111, 0.42);
  background: #fff5f6;
}

.admin-signal.is-high {
  border-color: rgba(255, 182, 64, 0.48);
  background: #fff9ec;
}

.admin-item-foot > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-status {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef7f1;
}

.admin-status.is-rejected {
  background: #fff5f6;
  color: #b72d42;
}

.admin-status.is-pending {
  background: #fff9ec;
  color: #9f6500;
}

.admin-audit-item {
  padding: 12px;
  background: #fbfdfb;
}

.admin-audit-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-audit-item strong {
  display: block;
  margin-top: 4px;
  color: var(--heading);
}

.admin-audit-item p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  }
}

@media (max-width: 760px) {
  .admin-head,
  .admin-item-main,
  .admin-item-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-kpis,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-item-foot > div {
    justify-content: stretch;
  }

  .admin-item-foot button {
    flex: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, #fff 0 var(--side-w), transparent var(--side-w)),
    linear-gradient(180deg, #fbfbff 0, #f3f4fa 420px, #f6f7fb 100%);
  overflow-x: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.18);
  opacity: 0.62;
}

button[aria-disabled="true"]:hover {
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(35, 210, 226, 0.38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

img.is-image-loading {
  background: #eef1f8;
}

img.is-image-fallback {
  background: #f4f6fb;
  object-fit: cover;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.06;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.22;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.25;
}

h4 {
  margin: 10px 0 7px;
  font-size: 14px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 268px 300px minmax(280px, 540px) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 0 36px 0 24px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(97, 93, 250, 0.2);
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.top-brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 12px 22px rgba(28, 29, 70, 0.18);
}

.top-brand strong {
  font-size: 20px;
  font-weight: 900;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-links button {
  min-height: 38px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.top-links button:hover {
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(44, 39, 159, 0.28);
  color: rgba(255, 255, 255, 0.62);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

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

.notification-center {
  position: relative;
}

.notification-toggle {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border: 2px solid var(--topbar);
  border-radius: 999px;
  background: var(--gold);
  color: #1c1842;
  font-size: 10px;
  font-weight: 900;
  line-height: 13px;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: min(380px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(222, 226, 241, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(31, 28, 83, 0.2);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 68vh);
  overflow: auto;
  padding-top: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f8ff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.notification-item:not(.is-read) {
  border-color: rgba(96, 211, 255, 0.42);
  background: #eefaff;
}

.notification-item:hover {
  border-color: rgba(97, 93, 250, 0.32);
  background: #f2f1ff;
}

.notification-item svg {
  width: 18px;
  height: 18px;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
}

.notification-item strong,
.notification-item span,
.notification-item small {
  display: block;
}

.notification-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.notification-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-item small {
  margin-top: 7px;
  color: #8a91ad;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-rail {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--side-w);
  padding: 22px 14px;
  border-right: 1px solid #eff1f8;
  background: #fff;
}

.rail-nav {
  display: grid;
  gap: 12px;
  width: 100%;
}

.nav-item,
.icon-button,
.wallet-button,
.profile-chip,
.ghost-button,
.primary-button,
.category-button,
.tab-button,
.builder-menu button,
.reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-item {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  color: #a7aed0;
}

.nav-item span {
  display: none;
}

.nav-item::before {
  position: absolute;
  left: -16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  content: "";
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--brand);
  background: #f3f3ff;
}

.nav-item.is-active::before {
  opacity: 1;
}

.nav-item svg,
.builder-menu svg,
.icon-button svg,
.ghost-button svg,
.primary-button svg,
.wallet-button svg,
.search-box svg,
.sort-select svg,
.trust-grid svg,
.reaction-button svg,
.ops-switcher svg,
.order-filters svg,
.order-search svg,
.inspector-actions svg,
.dialog-rail-empty svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
}

.expert-rail {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  z-index: 31;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 20px;
  width: var(--expert-w);
  padding: 26px 10px;
  background: #fff;
}

.expert-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 10px 20px rgba(97, 93, 250, 0.16);
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.expert-avatar::before {
  position: absolute;
  top: 2px;
  left: -2px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b8bfd9;
  content: "";
}

.expert-avatar.is-online::before {
  background: var(--green);
}

.expert-avatar span {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  min-width: 25px;
  height: 19px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.dialog-rail {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  z-index: 31;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  width: var(--expert-w);
  padding: 18px 10px;
  border-left: 1px solid #eff1f8;
  background: #fff;
  overflow-y: auto;
}

.dialog-rail-title {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.dialog-rail-title strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 91, 111, 0.1);
  color: var(--red);
  font-size: 13px;
}

.dialog-rail-card,
.dialog-rail-empty {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 62px;
  min-height: 72px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(88, 92, 138, 0.08);
}

.dialog-rail-card:hover,
.dialog-rail-empty:hover {
  border-color: rgba(97, 93, 250, 0.22);
  background: #f7f8ff;
}

.dialog-rail-card img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.dialog-rail-card span {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.dialog-rail-card small,
.dialog-rail-empty small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.workspace {
  width: min(1280px, calc(100vw - var(--side-w) - var(--expert-w) - 56px));
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 32px) 0 60px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.exchange-home {
  display: grid;
  gap: 16px;
}

.exchange-hero,
.exchange-stats,
.demand-board,
.exchange-flow,
.escrow-snapshot,
.specialist-radar,
.exchange-services-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.exchange-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  min-height: 430px;
  overflow: hidden;
}

.exchange-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  padding: 44px;
}

.exchange-copy h1 {
  margin: 0;
  font-size: 58px;
  line-height: 0.98;
}

.exchange-copy > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.exchange-actions,
.exchange-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exchange-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  max-width: 620px;
  min-height: 58px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcff;
  color: var(--muted);
}

.exchange-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  font-weight: 800;
}

.exchange-search button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.exchange-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #dde3f2;
}

.exchange-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 39, 70, 0.06), rgba(37, 39, 70, 0.32)),
    linear-gradient(90deg, rgba(97, 93, 250, 0.18), transparent 54%);
  content: "";
}

.market-signal-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background: rgba(22, 25, 60, 0.76);
  color: #fff;
  box-shadow: 0 18px 42px rgba(19, 23, 56, 0.24);
  backdrop-filter: blur(14px);
}

.market-signal-panel div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.market-signal-panel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-signal-panel strong {
  font-size: 20px;
  font-weight: 900;
}

.exchange-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.exchange-stats article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 22px 24px;
}

.exchange-stats article:not(:last-child) {
  border-right: 1px solid var(--line);
}

.exchange-stats span,
.exchange-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.exchange-stats strong {
  color: var(--heading);
  font-size: 28px;
  font-weight: 900;
}

.exchange-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 16px;
  align-items: start;
}

.demand-board,
.exchange-flow,
.escrow-snapshot,
.specialist-radar,
.exchange-services-strip {
  padding: 24px;
}

.demand-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.demand-list button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--heading);
  font-weight: 900;
  cursor: pointer;
}

.demand-list button:hover {
  border-color: rgba(35, 210, 226, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(88, 92, 138, 0.12);
}

.demand-list button em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) var(--demand), #eef1f8 var(--demand));
}

.demand-list span,
.demand-list strong {
  position: relative;
  z-index: 1;
}

.demand-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demand-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.demand-list strong {
  color: var(--muted);
  font-size: 13px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.flow-steps article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.flow-steps span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.flow-steps strong {
  color: var(--heading);
  font-weight: 900;
}

.flow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.exchange-side-stack {
  display: grid;
  gap: 16px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.escrow-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.escrow-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.escrow-lines span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.escrow-lines strong {
  color: var(--heading);
  font-weight: 900;
}

.radar-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.radar-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.radar-list img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.radar-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.radar-list b {
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
}

.featured-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.featured-services article {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.featured-services article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(88, 92, 138, 0.14);
}

.featured-services img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
}

.featured-services article > div {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 16px;
}

.featured-services span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-services h3 {
  margin: 0;
  font-size: 16px;
}

.featured-services strong {
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 16px;
  align-items: start;
}

.profile-panel,
.side-panel,
.composer,
.reputation-panel,
.market-hero,
.market-toolbar,
.deals-command,
.arbitrage-panel,
.page-builder,
.builder-grid,
.community-hero,
.service-card,
.deal-column,
.community-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  animation: riseIn 420ms ease both;
}

.profile-cover {
  position: relative;
  height: 296px;
  overflow: visible;
  background:
    radial-gradient(circle at 16% 20%, rgba(35, 210, 226, 0.28), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 182, 64, 0.22), transparent 28%),
    #edf1ff;
}

.profile-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 31, 72, 0.02), rgba(28, 31, 72, 0.12)),
    linear-gradient(90deg, rgba(97, 93, 250, 0.08), transparent 46%, rgba(35, 210, 226, 0.12));
}

.profile-identity {
  position: absolute;
  right: 30px;
  bottom: -66px;
  left: 30px;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.avatar-frame {
  width: 142px;
  height: 142px;
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff 0 16%, var(--brand) 16% 52%, var(--cyan) 52% 100%);
  filter: drop-shadow(0 16px 30px rgba(47, 49, 88, 0.2));
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
}

.profile-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 430px) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 84px 34px 18px;
  background: #fff;
}

.profile-title {
  grid-column: 2;
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-title .eyebrow {
  color: var(--brand);
}

.profile-title h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 900;
}

.profile-handle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.profile-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-action {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 11px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(94, 92, 154, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.profile-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(94, 92, 154, 0.24);
}

.profile-action.purple {
  background: var(--brand);
}

.profile-action.cyan {
  background: var(--cyan);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 92px;
  padding: 14px 48px 22px;
  background: #fff;
}

.profile-stats div {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
}

.profile-stats div:not(:last-child)::after {
  position: absolute;
  right: 0;
  width: 1px;
  height: 34px;
  background: var(--line);
  content: "";
}

.profile-stats strong {
  color: var(--heading);
  font-size: 20px;
  font-weight: 900;
}

.profile-stat-rating strong {
  color: var(--gold);
}

.profile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-about-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  align-items: start;
  gap: 26px;
  padding: 22px 48px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.profile-about-strip p {
  margin: 0;
}

.profile-about-strip > p {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.tab-button {
  position: relative;
  min-height: 76px;
  background: transparent;
  color: var(--soft);
  font-weight: 900;
}

.tab-button:not(:last-child)::after {
  position: absolute;
  right: 0;
  width: 1px;
  height: 34px;
  background: var(--line);
  content: "";
}

.tab-button.is-active {
  color: var(--heading);
}

.tab-button.is-active::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--cyan);
  content: "";
}

.side-panel {
  grid-column: 1;
  grid-row: 2 / span 4;
  padding: 24px;
}

.profile-tab-panel.is-hidden {
  display: none;
}

.home-grid.is-services-mode {
  grid-template-columns: 1fr;
}

.home-grid.is-services-mode .side-panel,
.home-grid.is-services-mode .reputation-panel {
  display: none;
}

.home-grid.is-services-mode .profile-services-panel {
  grid-column: 1 / -1;
}

.about-card {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.about-card h2 {
  margin-bottom: 16px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel-head,
.section-title,
.composer-actions,
.modal-actions,
.canvas-actions,
.post-head,
.post-actions,
.seller-line,
.service-foot,
.deal-head,
.community-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2,
.section-title h2 {
  font-size: 18px;
}

.escrow-meter {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.escrow-meter div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.escrow-meter span,
.mini-timeline,
.reputation-card span,
.service-meta,
.community-card span,
.trust-grid span,
.deal-card span,
.muted {
  color: var(--muted);
}

.meter-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eff1f8;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.meter-fill.is-low {
  background: var(--red);
}

.meter-fill.is-mid {
  background: var(--gold);
}

.meter-fill.is-high {
  background: var(--green);
}

.mini-timeline {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
}

.mini-timeline li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-timeline li span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(35, 207, 162, 0.13);
}

.composer {
  grid-column: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.composer > img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
}

.composer-body {
  display: grid;
  gap: 12px;
}

.media-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 9px;
  border: 1px solid rgba(35, 210, 226, 0.42);
  border-radius: 12px;
  background: #f8fdff;
}

.media-preview.is-hidden {
  display: none;
}

.media-preview img {
  width: 74px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
}

.media-preview-meta {
  min-width: 0;
}

.media-preview-meta strong,
.media-preview-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview-meta strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.media-preview-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.media-preview .icon-button {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #eef1f8;
  border-radius: 11px;
  outline: 0;
  background: #fbfcff;
  color: var(--text);
  padding: 14px;
}

textarea::placeholder {
  color: #b9bfd5;
}

.feed-panel {
  grid-column: 1;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.feed-panel > .section-title {
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feed-list,
.reputation-list,
.service-grid,
.deal-board,
.community-list {
  display: grid;
  gap: 16px;
}

.post-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-head {
  padding: 24px 28px 8px;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.author-line img,
.seller-line img,
.community-head img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.author-line strong,
.seller-line strong,
.community-head strong {
  display: block;
  color: var(--heading);
  font-weight: 900;
}

.author-line span,
.seller-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.post-item p {
  margin: 0;
  padding: 0 28px 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.72;
}

.post-media {
  background: #f3f5fb;
}

.post-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.post-actions {
  justify-content: space-around;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.profile-content-panel {
  grid-column: 1;
  display: grid;
  gap: 16px;
}

.profile-content-panel > .section-title,
.portfolio-card,
.review-card,
.achievement-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-content-panel > .section-title {
  padding: 22px 24px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.portfolio-grid,
.review-list,
.achievement-board {
  display: grid;
  gap: 16px;
}

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

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.portfolio-card > div {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.content-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card h3,
.portfolio-card p,
.review-card p,
.achievement-card h3,
.achievement-card p {
  margin: 0;
}

.portfolio-card strong {
  color: var(--heading);
  line-height: 1.35;
}

.portfolio-card p,
.review-card p,
.achievement-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.portfolio-card-actions button {
  justify-content: center;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  border: 1px dashed rgba(202, 207, 224, 0.95);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
}

.empty-state strong {
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.review-card header,
.achievement-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.review-card strong,
.achievement-card strong {
  display: block;
  color: var(--heading);
  font-weight: 900;
}

.review-card header span:not(.service-rating) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.review-reply {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  background: #f7f9ff;
}

.review-reply span {
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.review-reply p {
  padding: 0;
  font-size: 13px;
}

.review-reply-form {
  display: grid;
  gap: 12px;
}

.review-reply-form textarea {
  min-height: 86px;
}

.review-reply-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.review-reply-trigger {
  justify-self: start;
}

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

.achievement-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.achievement-card.is-active {
  border-color: rgba(35, 207, 162, 0.28);
  background: linear-gradient(180deg, #fff, rgba(35, 207, 162, 0.05));
}

.achievement-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
}

.achievement-card.is-active .achievement-icon {
  background: rgba(35, 207, 162, 0.12);
  color: #16876d;
}

.achievement-icon svg {
  width: 22px;
  height: 22px;
}

.achievement-card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.reaction-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #b6bcd3;
  font-weight: 900;
}

.reaction-button:hover,
.reaction-button.is-liked,
.reaction-button.is-active {
  border-color: #edf0fb;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(94, 92, 154, 0.12);
}

.post-comments {
  display: grid;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.post-comment {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #edf0fb;
  border-radius: 10px;
  background: #fbfcff;
}

.post-comment div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-comment strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.post-comment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-comment p {
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
}

.post-comment-form {
  display: grid;
  gap: 10px;
}

.post-comment-form textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
}

.post-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reputation-panel {
  grid-column: 2;
  grid-row: 2 / span 4;
  padding: 24px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.reputation-list {
  margin-top: 18px;
}

.reputation-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.reputation-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reputation-card strong {
  color: var(--heading);
  font-size: 14px;
  line-height: 1.25;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.achievement-badge {
  display: grid;
  min-width: 0;
  min-height: 66px;
  place-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  text-align: center;
  box-shadow: 0 10px 24px rgba(88, 92, 138, 0.08);
}

.achievement-badge svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.achievement-badge b {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.achievement-badge.tone-gold svg {
  color: var(--gold);
}

.achievement-badge.tone-teal svg {
  color: var(--green);
}

.achievement-badge.tone-pink svg {
  color: var(--pink);
}

.achievement-badge.tone-blue svg {
  color: var(--brand);
}

.icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid #eef1f8;
  background: #fff;
  color: #b4bad5;
}

.topbar .icon-button {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
}

.topbar .icon-button.is-active {
  border-color: rgba(46, 196, 182, 0.55);
  background: rgba(46, 196, 182, 0.16);
  color: #ffffff;
}

.icon-button:hover,
.ghost-button:hover,
.wallet-button:hover,
.profile-chip:hover {
  transform: translateY(-1px);
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(94, 92, 154, 0.12);
}

.wallet-button,
.profile-chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-weight: 900;
}

.wallet-button:hover,
.profile-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.primary-button {
  min-height: 46px;
  padding: 0 20px;
  background: var(--cyan);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(35, 210, 226, 0.24);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(35, 210, 226, 0.3);
}

.ghost-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #eef1f8;
  background: #fff;
  color: #aab0cd;
  font-weight: 900;
}

.ghost-button.is-active {
  border-color: rgba(97, 93, 250, 0.24);
  background: #f4f5ff;
  color: var(--brand);
}

.ghost-button.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-button.compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.market-layout,
.deals-layout,
.pages-layout,
.community-layout {
  display: grid;
  gap: 16px;
}

.market-hero,
.deals-command,
.page-builder,
.community-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 224px;
  padding: 34px 38px;
  overflow: hidden;
}

.market-hero {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.deals-command {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.deals-command {
  min-height: 176px;
}

.page-builder {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.community-hero {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    url("https://images.unsplash.com/photo-1521737852567-6949f3f9f2b5?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.market-hero > div,
.deals-command > div,
.page-builder > div,
.community-hero > div {
  max-width: 720px;
}

.market-hero p,
.deals-command p,
.page-builder p,
.community-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.market-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.request-exchange {
  display: grid;
  gap: 14px;
  min-height: 700px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.request-exchange-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.request-exchange-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.request-exchange-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 8px;
  min-width: min(520px, 100%);
}

.request-exchange-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(232, 235, 245, 0.9);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.request-exchange-stats b {
  overflow: hidden;
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.request-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.request-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.request-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.request-filter svg {
  width: 15px;
  height: 15px;
}

.request-filter b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f2fb;
  color: var(--heading);
  font-size: 11px;
}

.request-filter:hover,
.request-filter.is-active {
  border-color: rgba(97, 93, 250, 0.32);
  background: #f8f9ff;
  color: var(--brand);
}

.request-filter.is-active b {
  background: rgba(97, 93, 250, 0.12);
  color: var(--brand);
}

.request-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(360px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
}

.request-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.request-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  font-size: 13px;
  font-weight: 750;
}

.request-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.request-list {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: visible;
}

.request-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.request-empty strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.9fr) minmax(132px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 112px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.request-row:hover,
.request-row.is-active {
  border-color: rgba(97, 93, 250, 0.24);
  background: #f8f9ff;
  box-shadow: inset 3px 0 0 var(--brand);
}

.request-row.is-active {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.request-row.is-overflow {
  min-height: 68px;
  background: var(--surface-soft);
}

.request-row.is-overflow .request-row-main {
  gap: 4px;
}

.request-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.request-row-main > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.request-row-main strong {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-row-main em,
.request-row-main small,
.request-row-main i {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-row-main i {
  color: var(--heading);
  font-weight: 850;
}

.request-row-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.request-row-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.request-row-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(232, 235, 245, 0.92);
  border-radius: 8px;
  background: var(--surface-soft);
}

.request-row-metrics b,
.request-row-metrics small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-row-metrics b {
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.request-row-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.request-row-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
}

.request-owner-pill,
.request-row-best {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-owner-pill {
  min-height: 20px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(143, 150, 179, 0.1);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-owner-pill.is-mine {
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
}

.request-row-best {
  color: var(--heading);
  font-size: 11px;
  font-weight: 900;
}

.request-overflow {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.request-overflow-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px dashed rgba(143, 150, 179, 0.42);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.request-overflow-toggle:hover {
  border-color: rgba(97, 93, 250, 0.36);
  color: var(--brand);
}

.request-overflow-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.request-overflow-toggle svg {
  width: 15px;
  height: 15px;
}

.request-overflow-toggle b {
  color: var(--heading);
  font-size: 11px;
}

.request-overflow-list {
  display: grid;
  gap: 6px;
}

.request-overflow-list[hidden] {
  display: none;
}

.request-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.request-status svg {
  width: 14px;
  height: 14px;
}

.request-status.is-open {
  background: rgba(255, 182, 64, 0.14);
  color: #a36c00;
}

.request-status.is-offers {
  background: rgba(35, 210, 226, 0.13);
  color: #047d8b;
}

.request-status.is-selected,
.request-status.is-paid {
  background: rgba(35, 207, 162, 0.12);
  color: #0c7d64;
}

.request-inline-detail {
  display: grid;
  gap: 14px;
  margin-top: -6px;
  margin-bottom: 8px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(232, 235, 245, 0.95);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  box-shadow: inset 3px 0 0 var(--brand);
  animation: requestDetailReveal 180ms ease-out;
}

@keyframes requestDetailReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.request-detail-head,
.request-detail-actions,
.request-offer-card header,
.request-offer-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-detail-head h3 {
  margin: 3px 0 5px;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.2;
}

.request-detail-head span:not(.request-status) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.request-owner-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(97, 93, 250, 0.18);
  border-radius: 9px;
  background: rgba(97, 93, 250, 0.07);
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
}

.request-owner-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--brand);
}

.request-detail-kpis,
.request-brief-grid {
  display: grid;
  gap: 9px;
}

.request-detail-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-detail-kpis span,
.request-brief-grid span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.request-detail-kpis b,
.request-brief-grid b {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

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

.request-selected-offer {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(35, 207, 162, 0.25);
  border-radius: 12px;
  background: rgba(35, 207, 162, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.request-selected-offer svg {
  color: var(--green);
}

.request-selected-offer b {
  display: block;
  margin-bottom: 3px;
  color: var(--heading);
}

.request-offer-list {
  display: grid;
  gap: 10px;
}

.request-offer-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.request-offer-card.is-accepted {
  border-color: rgba(35, 207, 162, 0.3);
  box-shadow: inset 4px 0 0 var(--green);
}

.request-offer-card.is-declined {
  opacity: 0.72;
}

.request-offer-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.request-offer-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.request-offer-card li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.request-offer-card li svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--green);
}

.request-offer-card footer span {
  display: grid;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.request-offer-card footer b {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.request-offer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.request-offer-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.request-offer-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f5fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.request-offer-state.is-accepted,
.request-offer-state.is-shortlisted {
  background: rgba(35, 207, 162, 0.12);
  color: #0c7d64;
}

.request-offer-state.is-declined {
  background: rgba(156, 163, 175, 0.14);
  color: #667085;
}

.request-builder-preview,
.request-offer-modal {
  overflow: hidden;
}


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

.category-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.category-button.is-active {
  border-color: rgba(35, 210, 226, 0.35);
  background: rgba(35, 210, 226, 0.1);
  color: var(--cyan);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
}

.sort-select select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

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

.service-card {
  display: grid;
  grid-template-rows: 176px minmax(0, auto);
  min-height: 430px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.service-card:hover,
.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.service-card h3 {
  margin: 0;
  font-size: 18px;
}

.service-card-summary {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.service-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f5fb;
  color: var(--muted);
}

.service-choice-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: calc(100% - 24px);
  padding: 0 9px;
  border-radius: 7px;
  background: #172052;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(23, 32, 82, 0.22);
}

.service-choice-badge svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--gold);
  stroke-width: 2.6;
}

.service-choice-badge.is-saved {
  top: 12px;
  bottom: auto;
  background: #fff;
  color: var(--brand);
}

.service-choice-badge.is-saved svg {
  color: var(--brand);
}

.service-meta .service-rating,
.service-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 182, 64, 0.14);
  color: #b97800;
  font-weight: 900;
}

.service-assurance-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.service-assurance-row svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--green);
  stroke-width: 2.5;
}

.service-rating svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: currentColor;
  stroke-width: 2;
}

.profile-services-panel {
  grid-column: 1;
  padding: 28px;
}

.profile-storefront-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-storefront-head h2 {
  margin: 0;
  font-size: 24px;
}

.profile-storefront-head .muted {
  max-width: 620px;
  margin: 8px 0 0;
}

.profile-storefront-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.view-toggle button.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(88, 92, 138, 0.1);
}

.view-toggle svg {
  width: 16px;
  height: 16px;
}

.profile-service-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.profile-service-grid.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-service-grid.is-list {
  grid-template-columns: 1fr;
}

.profile-service-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(88, 92, 138, 0.1);
}

.profile-service-grid.is-grid .profile-service-card {
  grid-template-rows: 190px minmax(0, 1fr);
}

.profile-service-grid.is-list .profile-service-card {
  grid-template-columns: 280px minmax(0, 1fr);
}

.profile-service-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: #eef1f8;
}

.profile-service-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.profile-service-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.service-kicker > span:first-child {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.service-state-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.service-state-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(37, 196, 143, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-state-badge.is-draft {
  background: rgba(255, 184, 77, 0.15);
  color: #b87512;
}

.service-state-badge.is-archived {
  background: rgba(156, 163, 175, 0.14);
  color: #667085;
}

.service-state-badge.is-rejected {
  background: rgba(255, 91, 111, 0.1);
  color: var(--red);
}

.service-state-badge.is-pending {
  background: rgba(255, 184, 77, 0.15);
  color: #9f6700;
}

.service-moderation-history {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(232, 235, 245, 0.9);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.service-moderation-history span {
  display: grid;
  gap: 2px;
}

.service-moderation-history b {
  color: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-service-card h3,
.profile-service-card p {
  margin: 0;
}

.profile-service-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-includes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.service-includes li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-includes svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--green);
}

.service-foot {
  margin-top: auto;
}

.profile-service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ghost-button.is-danger {
  border-color: rgba(230, 88, 88, 0.2);
  color: #d84f4f;
}

.ghost-button.is-danger:hover {
  background: rgba(230, 88, 88, 0.08);
  color: #bf3737;
}

.price-block span,
.deal-balance span,
.modal-price span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-block strong,
.deal-balance strong,
.modal-price strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.deal-balance {
  min-width: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.deal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  min-width: min(460px, 100%);
}

.deal-kpis div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(232, 235, 245, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.deal-kpis span,
.work-price-row span,
.work-status-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deal-kpis strong {
  color: var(--heading);
  font-size: 20px;
  font-weight: 900;
}

.order-workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 326px;
  gap: 16px;
  align-items: stretch;
}

.conversation-panel,
.chat-panel {
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.conversation-panel {
  padding: 18px;
}

.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-panel-head h2,
.chat-head h2 {
  margin: 0;
  font-size: 18px;
}

.conversation-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.conversation-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.conversation-item:hover,
.conversation-item.is-active {
  border-color: rgba(97, 93, 250, 0.2);
  background: #f7f8ff;
}

.conversation-item img,
.chat-person img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.conversation-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.conversation-item strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 760;
}

.conversation-item small,
.conversation-item em,
.chat-person span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.conversation-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.conversation-item b:empty {
  visibility: hidden;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-head {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.chat-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.chat-order-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.chat-order-summary b,
.chat-order-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-order-summary b {
  color: var(--heading);
  font-size: 13px;
  font-weight: 760;
}

.chat-order-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, #fbfcff, #f7f8fc);
}

.message-row {
  display: flex;
}

.message-row.is-me {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(520px, 86%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(88, 92, 138, 0.08);
}

.message-author,
.message-time {
  display: inline-flex;
  margin: 0 8px 6px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.message-author {
  color: var(--heading);
}

.message-row.is-me .message-bubble {
  border-color: rgba(97, 93, 250, 0.16);
  background: #f1f2ff;
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.file-bubble p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-weight: 850;
}

.file-bubble small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.file-bubble svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.message-time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.offer-bubble {
  display: grid;
  gap: 10px;
  min-width: min(420px, 100%);
}

.offer-bubble h3 {
  margin: 0;
  font-size: 17px;
}

.offer-bubble > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer-bubble strong {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.chat-composer {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-composer textarea {
  min-height: 72px;
}

.chat-composer > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.work-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

#dealWorkspace {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.workspace-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.workspace-block h3 {
  margin: 0;
  font-size: 16px;
}

.work-status-line,
.work-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-status-line strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.work-price-row {
  align-items: stretch;
}

.work-price-row div {
  display: grid;
  gap: 3px;
}

.work-price-row strong {
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
}

.work-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecf7;
}

.work-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.next-action {
  margin: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-steps,
.work-files,
.workspace-services {
  display: grid;
  gap: 9px;
}

.work-steps div,
.work-files button,
.workspace-service {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.work-steps svg,
.work-files svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.work-steps .done svg {
  color: var(--green);
}

.work-steps .active {
  border-color: rgba(97, 93, 250, 0.2);
  background: #f4f5ff;
}

.work-steps .active svg {
  color: var(--brand);
}

.work-files button,
.workspace-service {
  cursor: pointer;
}

.workspace-service {
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.workspace-service span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-service strong {
  color: var(--heading);
  font-size: 13px;
}

.workspace-service small {
  color: var(--muted);
  font-size: 12px;
}

.workspace-service b {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.deals-layout {
  gap: 10px;
}

.order-dashboard-head {
  min-height: auto;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
}

.order-dashboard-head h1 {
  margin-bottom: 6px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.order-dashboard-head p {
  max-width: 620px;
  margin: 0;
}

.ops-switcher,
.role-switcher {
  display: inline-flex;
  width: max-content;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(88, 92, 138, 0.08);
}

.ops-switcher button,
.role-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.ops-switcher button.is-active,
.role-switcher button.is-active {
  background: var(--heading);
  color: #fff;
}

.order-command-center.is-hidden,
.chat-center.is-hidden {
  display: none;
}

.order-command-center {
  display: grid;
  gap: 12px;
}

.orders-toolbar,
.orders-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.orders-toolbar {
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(88, 92, 138, 0.1);
}

.order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.order-filters button.is-active {
  border-color: rgba(97, 93, 250, 0.26);
  background: #f3f4ff;
  color: var(--brand);
}

.order-filters b {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #eef1f8;
  color: var(--heading);
  font-size: 11px;
}

.order-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
}

.order-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
}

.orders-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.orders-main {
  overflow: visible;
}

.order-detail-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.order-detail-head,
.order-detail-strip,
.brief-history > div,
.brief-history p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-head h2 {
  margin: 3px 0 5px;
  font-size: 20px;
}

.order-detail-head span,
.order-detail-strip,
.brief-history span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brief-version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brief-version-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-detail-strip {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(140px, 0.45fr));
}

.order-detail-strip > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.order-detail-strip b,
.brief-history strong {
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

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

.brief-detail-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(232, 235, 245, 0.92);
  border-radius: 12px;
  background: #fbfcff;
}

.brief-detail-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.brief-detail-card svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

.brief-detail-card p,
.brief-history p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.brief-change-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 184, 77, 0.34);
  border-radius: 12px;
  background: rgba(255, 249, 236, 0.88);
}

.brief-change-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brief-change-card strong {
  color: var(--heading);
  font-size: 14px;
}

.brief-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brief-change-grid span {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(232, 235, 245, 0.86);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.brief-change-grid b {
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.order-state-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 0.7fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(232, 235, 245, 0.92);
  border-radius: 12px;
  background: #fbfcff;
}

.order-state-card > div:first-child {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.order-state-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
}

.order-state-card strong svg {
  width: 18px;
  height: 18px;
}

.order-state-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.order-state-card.is-waiting {
  border-color: rgba(255, 182, 64, 0.34);
  background: rgba(255, 249, 236, 0.78);
}

.order-state-card.is-ready,
.order-state-card.is-work {
  border-color: rgba(35, 207, 162, 0.26);
  background: rgba(35, 207, 162, 0.06);
}

.order-state-card.is-acceptance,
.order-state-card.is-release {
  border-color: rgba(35, 210, 226, 0.32);
  background: rgba(35, 210, 226, 0.07);
}

.order-state-card.is-revision {
  border-color: rgba(255, 91, 111, 0.26);
  background: rgba(255, 91, 111, 0.06);
}

.order-state-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-state-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(232, 235, 245, 0.86);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.order-state-meta b {
  overflow: hidden;
  color: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-state-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-state-actions p {
  width: 100%;
  color: var(--muted);
  text-align: right;
}

.order-payment-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 184, 115, 0.22);
  border-radius: 12px;
  background: #f8fbf8;
}

.order-payment-card > div:first-child {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.order-payment-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
}

.order-payment-card strong svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.order-payment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.order-payment-card.is-released {
  border-color: rgba(31, 184, 115, 0.34);
  background: #eef8f1;
}

.order-payment-card.is-refunded {
  border-color: rgba(207, 139, 46, 0.3);
  background: #fff8eb;
}

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

.order-payment-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.order-payment-meta b {
  overflow: hidden;
  color: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brief-files-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.brief-files-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brief-files-panel strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.brief-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.brief-file-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(232, 235, 245, 0.9);
  border-radius: 10px;
  background: var(--surface-soft);
}

.brief-file-card > svg {
  grid-row: span 2;
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

.brief-file-card b,
.brief-file-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-file-card b {
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.brief-file-card small,
.brief-file-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.brief-file-actions,
.chat-file-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 6px;
  padding-top: 4px;
}

.brief-file-actions .compact,
.chat-file-actions .compact {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.brief-history {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.brief-version-list {
  display: grid;
  gap: 7px;
}

.brief-version-list span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.brief-version-list span.is-current {
  border-color: rgba(35, 210, 226, 0.36);
  background: rgba(35, 210, 226, 0.08);
  color: var(--heading);
}

.brief-version-list b {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.brief-history p {
  justify-content: flex-start;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.brief-history p b {
  flex: 0 0 auto;
  min-width: 70px;
  color: var(--brand);
  font-size: 12px;
}

.orders-table-head,
.order-row {
  display: grid;
  grid-template-columns: minmax(390px, 1.34fr) minmax(174px, 0.48fr) minmax(132px, 0.32fr) minmax(116px, 0.28fr) minmax(92px, 0.22fr) 76px;
  gap: 10px;
  align-items: center;
}

.orders-table-head {
  position: sticky;
  top: calc(var(--topbar-h) + 74px);
  z-index: 12;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.orders-table {
  overflow: visible;
}

.order-row {
  width: 100%;
  min-height: 96px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-align: left;
}

.order-row:hover,
.order-row.is-selected {
  background: #f8f9ff;
}

.order-row.is-selected {
  box-shadow: inset 4px 0 0 var(--brand);
}

.order-row.is-reply {
  box-shadow: inset 4px 0 0 var(--red);
}

.order-row.is-due {
  box-shadow: inset 4px 0 0 var(--gold);
}

.order-row.is-review {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.order-title-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-items: center;
}

.order-title-body,
.order-client-cell span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-service-visual {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(232, 235, 245, 0.9);
  border-radius: 8px;
  background: #f0f2fb;
}

.order-service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-service-visual em {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(20, 23, 50, 0.72);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 860;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.order-row-badges {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.order-row-top strong {
  flex: 1 1 190px;
  min-width: 0;
}

.order-title-cell strong,
.order-client-cell b {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-title-cell i {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 640;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.order-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.order-meta-line span:not(:first-child)::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8dcec;
}

.order-meta-line svg,
.order-next-action svg,
.order-signal-pill svg,
.order-work-status svg,
.order-brief-cell svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.order-next-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-progress-line {
  position: relative;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f8;
}

.order-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.order-title-cell small,
.order-client-cell small,
.order-deadline-cell small,
.order-brief-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-client-cell img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
}

.order-deadline-cell,
.order-brief-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-brief-cell span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--heading);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-brief-cell.is-waiting span {
  color: #a36c00;
}

.order-deadline-cell b,
.order-price-cell {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-deadline-cell.is-urgent b {
  color: var(--red);
}

.order-deadline-cell.is-warning b {
  color: #a36c00;
}

.order-deadline-cell.is-calm b {
  color: var(--heading);
}

.order-status-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-signal-pill,
.order-work-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 860;
  line-height: 1;
  white-space: nowrap;
}

.order-work-status {
  background: #f4f6fb;
  color: var(--text);
}

.order-signal-pill.is-reply {
  background: rgba(255, 91, 111, 0.1);
  color: var(--red);
}

.order-signal-pill.is-urgent {
  background: rgba(255, 182, 64, 0.16);
  color: #a36c00;
}

.order-signal-pill.is-review {
  background: rgba(35, 210, 226, 0.14);
  color: #047d8b;
}

.order-signal-pill.is-brief {
  background: rgba(255, 182, 64, 0.14);
  color: #a36c00;
}

.order-signal-pill.is-work {
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
}

.order-signal-pill.is-completed {
  background: rgba(35, 207, 162, 0.12);
  color: #0c7d64;
}

.order-work-status.is-waiting {
  background: rgba(255, 182, 64, 0.14);
  color: #a36c00;
}

.order-work-status.is-ready {
  background: rgba(35, 207, 162, 0.12);
  color: #0c7d64;
}

.order-work-status.is-acceptance {
  background: rgba(35, 210, 226, 0.14);
  color: #047d8b;
}

.order-work-status.is-revision {
  background: rgba(255, 91, 111, 0.1);
  color: var(--red);
}

.order-work-status.is-completed {
  background: rgba(35, 207, 162, 0.12);
  color: #0c7d64;
}

.order-mini-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.order-status-cell em,
.order-mini-status em,
.inspector-status span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.order-status-cell b,
.order-mini-status b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.order-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.order-chat-button:hover {
  border-color: rgba(97, 93, 250, 0.24);
  background: #f4f5ff;
}

.orders-empty {
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

.order-inspector {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.inspector-block {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.inspector-block.is-primary {
  background: #fff;
}

.inspector-status,
.inspector-client,
.inspector-message span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inspector-status strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.inspector-block h2 {
  font-size: 18px;
  line-height: 1.28;
}

.inspector-client {
  justify-content: flex-start;
}

.inspector-client img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.inspector-client strong,
.inspector-client span {
  display: block;
}

.inspector-client strong {
  color: var(--heading);
}

.inspector-client span,
.inspector-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inspector-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.inspector-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.inspector-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inspector-metrics strong {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-chat {
  display: grid;
  gap: 8px;
}

.inspector-message {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.inspector-message.is-me {
  background: #f3f4ff;
}

.inspector-message span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inspector-message p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.inspector-actions {
  display: grid;
  gap: 8px;
}

.chat-center {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.deal-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deal-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 420px;
  padding: 16px;
}

.deal-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin: 0;
  font-size: 15px;
}

.deal-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f0f2fb;
  color: var(--muted);
  font-size: 12px;
}

.deal-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.deal-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.arbitrage-panel {
  padding: 24px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.trust-grid div {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.trust-grid svg {
  color: var(--brand);
}

.profile-preview {
  display: grid;
  width: min(360px, 100%);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.profile-preview img {
  width: 100%;
  height: 148px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-preview strong,
.profile-preview span {
  display: block;
}

.profile-preview span {
  margin-top: 4px;
  color: var(--muted);
}

.builder-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 14px;
  gap: 14px;
}

.builder-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  border-right: 1px solid var(--line);
}

.builder-menu button {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.builder-menu button.is-active {
  background: rgba(97, 93, 250, 0.1);
  color: var(--brand);
}

.builder-canvas {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

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

.canvas-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 48px);
}

.canvas-content p {
  color: var(--muted);
  line-height: 1.6;
}

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

.community-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.community-card.is-joined {
  border-color: rgba(46, 196, 182, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
}

.community-head {
  gap: 14px;
}

.community-head .compact {
  flex: 0 0 auto;
}

.community-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.community-stats div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.community-stats strong {
  display: block;
  color: var(--heading);
}

.community-stats span {
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(47, 49, 88, 0.52);
  backdrop-filter: blur(12px);
}

.modal-backdrop.is-open {
  display: flex;
}

.deal-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 44%) minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(47, 49, 88, 0.28);
  animation: modalIn 220ms ease both;
}

.create-service-modal {
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  width: min(1080px, 100%);
}

.portfolio-modal {
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  width: min(1040px, 100%);
}

.public-service-preview-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(47, 49, 88, 0.28);
  animation: modalIn 220ms ease both;
}

.public-service-preview-media {
  min-height: 100%;
  background: #172052;
}

.public-service-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.public-service-preview-content {
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 42px);
}

.public-service-preview-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.public-service-preview-content .muted {
  margin: -8px 0 0;
}

.public-service-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-service-preview-kpis div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.public-service-preview-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.public-service-preview-kpis strong {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.public-service-preview-details {
  display: grid;
  gap: 12px;
}

.file-preview-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(880px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(47, 49, 88, 0.28);
  animation: modalIn 220ms ease both;
}

.file-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 56px 0 26px;
}

.file-preview-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.file-preview-body {
  min-height: 260px;
  overflow: auto;
  margin: 0 26px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.file-preview-body img,
.file-preview-body iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

.file-preview-body img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #fff;
}

.file-preview-body pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--heading);
  font: 13px/1.55 "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
}

.wallet-modal {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 40px 100px rgba(47, 49, 88, 0.28);
  animation: modalIn 220ms ease both;
}

.wallet-modal-head h2,
.wallet-ledger h3 {
  margin: 0;
  color: var(--heading);
}

.wallet-modal-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

.wallet-summary-grid div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.wallet-summary-grid span,
.wallet-transaction-item span,
.wallet-transaction-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.wallet-summary-grid strong {
  color: var(--heading);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
}

.wallet-topup-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wallet-topup-form label {
  display: grid;
  gap: 8px;
}

.wallet-topup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-topup-presets button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--heading);
  font-weight: 850;
  cursor: pointer;
}

.wallet-topup-presets button:hover {
  border-color: rgba(97, 93, 250, 0.38);
  color: var(--brand);
}

.wallet-ledger {
  display: grid;
  gap: 12px;
}

.wallet-transaction-list {
  display: grid;
  gap: 8px;
}

.wallet-transaction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.wallet-transaction-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}

.wallet-transaction-item b {
  color: var(--brand);
  font-size: 15px;
}

.wallet-transaction-item.is-negative b {
  color: #e45a77;
}

.file-preview-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
}

.file-preview-fallback svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
}

.file-preview-fallback strong {
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
}

.file-preview-fallback p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-art img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.modal-content {
  display: grid;
  align-content: center;
  gap: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
}

.modal-content h2 {
  margin: 0;
}

.create-service-form {
  align-content: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.create-service-form label {
  display: grid;
  gap: 7px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.create-service-form input,
.create-service-form select,
.create-service-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--heading);
}

.create-service-form input,
.create-service-form select {
  min-height: 44px;
  padding: 0 13px;
}

.create-service-form textarea {
  resize: vertical;
  min-height: 76px;
  padding: 12px 13px;
  line-height: 1.5;
}

.create-service-form [aria-invalid="true"],
.deal-brief-form [aria-invalid="true"] {
  border-color: rgba(255, 91, 111, 0.78);
  background: #fff8fa;
  box-shadow: 0 0 0 3px rgba(255, 91, 111, 0.12);
}

.field-error-summary {
  padding: 10px 12px;
  border: 1px solid rgba(255, 91, 111, 0.26);
  border-radius: 10px;
  background: rgba(255, 91, 111, 0.08);
  color: var(--red);
  font-size: 13px;
  font-weight: 840;
  line-height: 1.4;
}

.field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

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

.service-builder-preview {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100%;
  overflow: hidden;
  background: #172052;
}

.service-builder-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 82, 0.05), rgba(23, 32, 82, 0.92));
}

.service-builder-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.service-preview-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
}

.service-preview-copy span {
  width: fit-content;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(35, 210, 226, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-preview-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.service-preview-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.service-preview-copy strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.service-preview-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.modal-price {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.modal-price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.modal-wallet {
  background: #f7f8ff;
}

.modal-wallet.is-warning {
  border-color: rgba(255, 91, 111, 0.28);
  background: rgba(255, 91, 111, 0.08);
}

.modal-wallet.is-warning strong,
.modal-wallet.is-warning small {
  color: var(--red);
}

.deal-scope {
  display: grid;
  gap: 12px;
}

.scope-section {
  display: grid;
  gap: 8px;
}

.scope-section h3 {
  margin: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.scope-section p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

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

.scope-list-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.scope-list-item svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--green);
  stroke-width: 2.6;
}

.service-review-snippets {
  display: grid;
  gap: 8px;
}

.service-review-snippets article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.service-review-snippets article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-review-snippets strong,
.service-review-snippets span {
  font-size: 12px;
  line-height: 1.3;
}

.service-review-snippets strong {
  color: var(--heading);
  font-weight: 900;
}

.service-review-snippets span {
  color: var(--muted);
  font-weight: 800;
}

.service-review-snippets p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.deal-brief-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8ff;
}

.deal-brief-form label {
  display: grid;
  gap: 7px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.deal-brief-form textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--heading);
  padding: 10px 11px;
  line-height: 1.45;
}

.deal-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deal-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.deal-steps span {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(35, 210, 226, 0.13);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-strong);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.entrance {
  animation: riseIn 460ms ease both;
}

.delay-1 {
  animation-delay: 70ms;
}

.delay-2 {
  animation-delay: 140ms;
}

.delay-3 {
  animation-delay: 210ms;
}

.delay-4 {
  animation-delay: 280ms;
}

@keyframes riseIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    transform: translateY(18px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 220px max-content minmax(260px, 1fr) auto;
  }

  .top-links {
    gap: 14px;
  }

  .workspace {
    width: min(1180px, calc(100vw - var(--side-w) - var(--expert-w) - 40px));
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .exchange-hero {
    grid-template-columns: minmax(0, 1fr) 410px;
  }

  .exchange-copy {
    padding: 38px;
  }

  .exchange-main-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .reputation-panel {
    grid-column: 2;
    grid-row: 2 / span 4;
  }

  .reputation-list {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .community-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-board {
    grid-template-columns: 1fr;
  }

  .request-list {
    max-height: none;
    padding-right: 0;
  }

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

  .order-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .orders-board {
    grid-template-columns: 1fr;
  }

  .chat-center {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  :root {
    --topbar-h: 76px;
    --side-w: 0px;
    --expert-w: 0px;
    --mobile-nav-clearance: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  html {
    scroll-padding-bottom: var(--mobile-nav-clearance);
  }

  body {
    background: var(--page);
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 12px;
  }

  .top-brand strong,
  .top-links,
  .profile-chip span,
  #themePulse,
  .expert-rail,
  .dialog-rail {
    display: none;
  }

  .top-brand img {
    width: 38px;
    height: 38px;
  }

  .search-box {
    min-height: 44px;
    padding: 0 12px;
  }

  .wallet-button {
    min-width: 96px;
    padding: 0 10px;
    font-size: 12px;
  }

  .file-preview-modal {
    width: min(720px, 100%);
    max-height: calc(100svh - 28px);
  }

  .wallet-modal {
    width: min(720px, 100%);
    max-height: calc(100svh - 28px);
  }

  .file-preview-head {
    padding: 22px 54px 0 22px;
  }

  .file-preview-body {
    margin: 0 22px 22px;
  }

  .side-rail {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    width: auto;
    height: 62px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(14px);
  }

  .rail-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-item {
    width: auto;
    height: 48px;
    border-radius: 14px;
  }

  .nav-item::before {
    display: none;
  }

  .workspace {
    width: min(100% - 20px, 680px);
    padding: calc(var(--topbar-h) + 12px) 0 calc(var(--mobile-nav-clearance) + 24px);
  }

  .exchange-hero {
    min-height: auto;
  }

  .exchange-copy {
    padding: 30px;
  }

  .exchange-copy h1 {
    font-size: 42px;
  }

  .exchange-copy > p {
    font-size: 15px;
  }

  .exchange-visual {
    min-height: 280px;
  }

  .market-signal-panel {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

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

  .exchange-stats article:nth-child(2) {
    border-right: 0;
  }

  .exchange-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .exchange-side-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .featured-services article {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .home-grid,
  .exchange-hero,
  .exchange-main-grid,
  .flow-steps,
  .featured-services,
  .service-grid,
  .request-board,
  .request-detail-kpis,
  .request-brief-grid,
  .deal-board,
  .order-workspace,
  .chat-center,
  .orders-board,
  .trust-grid,
  .community-list,
  .portfolio-grid,
  .achievement-board,
  .builder-grid,
  .builder-canvas,
  .deal-modal,
  .public-service-preview-modal,
  .reputation-list {
    grid-template-columns: 1fr;
  }

  .public-service-preview-modal {
    width: min(720px, 100%);
    max-height: calc(100svh - 28px);
  }

  .public-service-preview-media img {
    min-height: 260px;
    max-height: 320px;
  }

  .public-service-preview-kpis {
    grid-template-columns: 1fr;
  }

  .profile-panel,
  .side-panel,
  .composer,
  .feed-panel,
  .profile-services-panel,
  .profile-content-panel,
  .reputation-panel {
    grid-column: 1;
  }

  .side-panel,
  .reputation-panel {
    grid-row: auto;
  }

  .profile-cover {
    height: 224px;
    overflow: visible;
  }

  .profile-identity {
    right: 16px;
    bottom: -52px;
    left: 16px;
  }

  .avatar-frame {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 28px;
  }

  .avatar-frame img {
    border-radius: 22px;
  }

  .profile-title {
    grid-column: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-title h1 {
    font-size: 24px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 72px 16px 18px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 0;
  }

  .profile-about-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .profile-actions {
    grid-column: auto;
    padding: 0;
    justify-content: center;
  }

  .profile-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile-stats div {
    min-height: 70px;
  }

  .profile-stats div:not(:last-child)::after {
    display: none;
  }

  .profile-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(5, 132px);
    padding: 0;
  }

  .tab-button {
    min-height: 62px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .profile-service-card {
    grid-template-columns: 1fr;
  }

  .profile-storefront-head,
  .profile-storefront-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-storefront-actions,
  .view-toggle,
  .view-toggle button,
  .profile-service-actions {
    width: 100%;
  }

  .view-toggle button,
  .profile-service-actions button {
    justify-content: center;
  }

  .profile-service-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-state-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-service-grid.is-grid,
  .profile-service-grid.is-list {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .achievement-board {
    grid-template-columns: 1fr;
  }

  .profile-service-grid.is-list .profile-service-card,
  .profile-service-grid.is-grid .profile-service-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .profile-service-media,
  .profile-service-media img {
    min-height: 210px;
    max-height: 230px;
  }

  .composer > img {
    display: none;
  }

  .composer-actions,
  .market-hero,
  .deals-command,
  .page-builder,
  .section-title,
  .request-exchange-head,
  .request-detail-head,
  .request-detail-actions,
  .request-offer-card header,
  .request-offer-card footer,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-hero-actions,
  .market-hero-actions button,
  .request-exchange-stats,
  .request-detail-actions button,
  .request-offer-card footer button {
    width: 100%;
  }

  .market-hero-actions {
    justify-content: stretch;
  }

  .market-hero-actions button,
  .request-detail-actions button,
  .request-offer-card footer button {
    justify-content: center;
  }

  .request-exchange-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-actions {
    width: 100%;
  }

  .section-actions button {
    flex: 1;
    justify-content: center;
  }

  .deal-kpis {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ops-switcher,
  .role-switcher,
  .orders-toolbar {
    width: 100%;
  }

  .ops-switcher button,
  .role-switcher button {
    flex: 1;
    justify-content: center;
  }

  .orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .order-search {
    width: 100%;
  }

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

  .order-filters button {
    justify-content: center;
  }

  .orders-table-head {
    display: none;
  }

  .order-detail-head,
  .brief-version-head,
  .brief-history > div,
  .brief-history p {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-detail-strip,
  .brief-detail-grid,
  .brief-change-grid,
  .order-state-card,
  .order-state-meta,
  .order-payment-card,
  .order-payment-meta {
    grid-template-columns: 1fr;
  }

  .brief-change-card > div:first-child,
  .brief-detail-actions,
  .brief-files-panel > div:first-child,
  .order-state-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brief-detail-actions button,
  .brief-files-panel button,
  .order-state-actions button {
    justify-content: center;
    width: 100%;
  }

  .order-state-actions p {
    text-align: left;
  }

  .brief-file-list {
    grid-template-columns: 1fr;
  }

  .brief-version-list span {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 14px;
  }

  .order-title-cell {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
  }

  .order-service-visual {
    width: 54px;
    height: 54px;
  }

  .order-row-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-row-top strong {
    flex: 0 1 auto;
  }

  .order-row-badges {
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .order-title-cell strong,
  .order-title-cell i,
  .order-next-action,
  .order-meta-line,
  .order-brief-cell span,
  .order-client-cell b,
  .order-title-cell small,
  .order-client-cell small,
  .order-deadline-cell b,
  .order-deadline-cell small {
    white-space: normal;
  }

  .order-meta-line {
    flex-wrap: wrap;
  }

  .order-status-cell {
    justify-content: flex-start;
  }

  .order-chat-button {
    width: 100%;
  }

  .conversation-panel,
  .chat-panel {
    min-height: auto;
    scroll-margin-bottom: var(--mobile-nav-clearance);
  }

  .chat-panel {
    min-height: 620px;
  }

  #view-deals,
  .deals-layout,
  .order-workspace,
  .order-detail-panel,
  .orders-table,
  .conversation-list {
    scroll-margin-bottom: var(--mobile-nav-clearance);
  }

  .orders-table,
  .conversation-list {
    padding-bottom: 12px;
  }

  .chat-head,
  .chat-head-main,
  .chat-actions,
  .chat-composer > div,
  .offer-bubble > div {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-order-summary {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 94%;
  }

  .market-hero,
  .deals-command,
  .page-builder,
  .community-hero {
    padding: 26px;
  }

  .market-toolbar,
  .request-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .request-search {
    width: 100%;
  }

  .builder-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .builder-menu button {
    justify-content: center;
  }

  .canvas-cover img {
    height: 230px;
  }

  .profile-preview {
    width: 100%;
  }

  .modal-art img {
    min-height: 220px;
    max-height: 260px;
  }

  .modal-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
  }

  .service-builder-preview {
    min-height: 280px;
  }

  .create-service-form {
    max-height: none;
  }

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

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .search-box input::placeholder {
    color: transparent;
  }

  .wallet-button {
    min-width: 88px;
    padding: 0 9px;
  }

  .wallet-button span {
    white-space: nowrap;
    line-height: 1;
  }

  .brief-file-list {
    grid-template-columns: 1fr;
  }

  .brief-file-actions,
  .chat-file-actions {
    grid-column: 1 / -1;
  }

  .brief-file-actions .compact,
  .chat-file-actions .compact {
    flex: 1 1 120px;
  }

  .file-preview-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
  }

  .public-service-preview-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
  }

  .wallet-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 22px 18px;
  }

  .wallet-summary-grid,
  .wallet-transaction-item {
    grid-template-columns: 1fr;
  }

  .public-service-preview-content {
    padding: 22px 18px;
  }

  .public-service-preview-media img {
    min-height: 220px;
    max-height: 260px;
  }

  .service-review-snippets article div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .file-preview-head {
    display: grid;
    padding: 20px 52px 0 18px;
  }

  .file-preview-body {
    margin: 0 18px 18px;
  }

  .file-preview-body img,
  .file-preview-body iframe {
    min-height: 360px;
  }

  .profile-chip {
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .profile-handle {
    max-width: 280px;
  }

  .post-head,
  .post-item p {
    padding-right: 18px;
    padding-left: 18px;
  }

  .post-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .exchange-copy {
    padding: 24px;
  }

  .exchange-copy h1 {
    font-size: 36px;
  }

  .exchange-actions .primary-button,
  .exchange-actions .ghost-button {
    width: 100%;
  }

  .exchange-search {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 12px;
  }

  .exchange-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-signal-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    bottom: 78px;
  }

  .market-signal-panel div {
    padding: 10px 8px;
  }

  .market-signal-panel span {
    font-size: 9px;
  }

  .market-signal-panel strong {
    font-size: 16px;
  }

  .exchange-stats {
    grid-template-columns: 1fr;
  }

  .exchange-stats article,
  .exchange-stats article:nth-child(2) {
    border-right: 0;
  }

  .exchange-stats article:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .demand-board,
  .exchange-flow,
  .escrow-snapshot,
  .specialist-radar,
  .exchange-services-strip {
    padding: 18px;
  }

  .featured-services article {
    grid-template-columns: 1fr;
  }

  .featured-services img {
    height: 180px;
    min-height: 0;
  }

  .request-exchange {
    padding: 14px;
  }

  .request-exchange-stats {
    grid-template-columns: 1fr;
  }

  .request-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .request-row-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-row-side {
    justify-self: stretch;
    justify-items: stretch;
  }

  .request-owner-pill,
  .request-row-best {
    max-width: none;
  }

  .request-row-main strong,
  .request-row-main em,
  .request-row-main small,
  .request-row-main i {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* JobStarter-inspired calm redesign. Keeps the prototype logic, lowers visual noise. */
:root {
  --page: #f7faf7;
  --surface: #ffffff;
  --surface-soft: #f3f8f4;
  --text: #53635b;
  --heading: #10251c;
  --muted: #728079;
  --soft: #b8c7bf;
  --line: #dfe9e3;
  --brand: #187a56;
  --brand-dark: #0f5f43;
  --cyan: #20a071;
  --pink: #c45a74;
  --gold: #cf8b2e;
  --green: #1fb873;
  --red: #c65353;
  --shadow: 0 14px 34px rgba(18, 55, 39, 0.055);
  --shadow-strong: 0 18px 42px rgba(18, 55, 39, 0.09);
  --radius: 8px;
  --topbar-h: 72px;
  --side-w: 0px;
  --expert-w: 0px;
}

html {
  background: var(--page);
}

body {
  background-color: var(--page);
  background-image:
    linear-gradient(rgba(24, 122, 86, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 122, 86, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 900;
}

p {
  color: var(--text);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline-color: rgba(31, 184, 115, 0.36);
}

.side-rail {
  display: none;
}

.workspace {
  width: min(1160px, calc(100vw - 48px));
  padding: calc(var(--topbar-h) + 34px) 0 76px;
}

.topbar {
  grid-template-columns: minmax(190px, 250px) minmax(360px, 1fr) minmax(230px, 360px) auto;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid rgba(223, 233, 227, 0.96);
  background: rgba(250, 253, 250, 0.94);
  color: var(--heading);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.top-brand {
  color: var(--heading);
}

.top-brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--brand);
  filter: hue-rotate(-92deg) saturate(0.72) brightness(0.82);
  box-shadow: none;
}

.top-brand strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.1;
}

.top-links {
  gap: 4px;
}

.top-links button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  color: #41564b;
  font-size: 13px;
  font-weight: 800;
}

.top-links button:hover {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.top-links button.is-active {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.search-box {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.search-box input {
  color: var(--heading);
}

.search-box input::placeholder {
  color: #8b9991;
}

.topbar-actions {
  gap: 8px;
}

.topbar .icon-button,
.icon-button {
  border-color: var(--line);
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.topbar .icon-button.is-active {
  border-color: rgba(31, 184, 115, 0.3);
  background: #eaf6ef;
  color: var(--brand-dark);
}

.wallet-button,
.profile-chip {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  box-shadow: none;
}

.wallet-button:hover,
.profile-chip:hover,
.icon-button:hover,
.ghost-button:hover {
  background: var(--surface-soft);
  color: var(--brand-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

.notification-panel {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
}

.primary-button,
.exchange-search button {
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.primary-button:hover,
.exchange-search button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

.ghost-button {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.ghost-button.is-active,
.order-filters button.is-active,
.request-filter.is-active,
.category-tabs button.is-active,
.view-toggle button.is-active {
  border-color: rgba(31, 184, 115, 0.32);
  background: #eaf6ef;
  color: var(--brand-dark);
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d8eadf;
  border-radius: 6px;
  background: #edf8f1;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.exchange-home,
.market-layout,
.deals-layout,
.pages-layout,
.community-layout {
  gap: 36px;
}

.exchange-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(28px, 5vw, 64px);
  min-height: 430px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.exchange-copy {
  justify-content: center;
  gap: 18px;
  padding: 26px 0 22px;
}

.exchange-copy h1 {
  max-width: 660px;
  font-size: clamp(46px, 5.6vw, 72px);
  line-height: 0.98;
}

.exchange-copy > p {
  max-width: 650px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
}

.exchange-actions {
  margin-top: 4px;
}

.exchange-search {
  max-width: 590px;
  min-height: 54px;
  margin-top: 2px;
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(18, 55, 39, 0.04);
}

.exchange-search input {
  color: var(--heading);
  font-weight: 700;
}

.exchange-visual {
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8f0eb;
  box-shadow: var(--shadow-strong);
}

.exchange-visual::after {
  background: linear-gradient(180deg, rgba(16, 37, 28, 0.02), rgba(16, 37, 28, 0.16));
}

.market-signal-panel {
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 0;
  border-radius: 8px;
  background: rgba(16, 54, 39, 0.94);
  box-shadow: none;
  backdrop-filter: none;
}

.market-signal-panel div {
  padding: 14px;
}

.market-signal-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.exchange-stats {
  border-width: 1px 0;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.exchange-stats article {
  padding: 22px 0;
}

.exchange-stats article:not(:last-child) {
  padding-right: 24px;
  border-right: 0;
}

.exchange-stats strong {
  color: var(--heading);
}

.exchange-main-grid {
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 26px;
}

.demand-board,
.exchange-flow,
.escrow-snapshot,
.specialist-radar,
.exchange-services-strip,
.profile-panel,
.composer,
.feed-panel,
.profile-services-panel,
.profile-content-panel,
.reputation-panel,
.market-toolbar,
.request-exchange,
.role-switcher,
.ops-switcher,
.orders-toolbar,
.orders-main,
.order-detail-panel,
.conversation-panel,
.chat-panel,
.community-card,
.service-card,
.profile-service-card,
.deal-modal,
.wallet-modal,
.public-service-preview-modal,
.file-preview-modal {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demand-board,
.exchange-flow,
.escrow-snapshot,
.specialist-radar,
.exchange-services-strip {
  padding: 28px;
}

.section-title {
  gap: 16px;
}

.demand-list {
  gap: 10px;
}

.demand-list button,
.flow-steps article,
.featured-services article,
.request-row,
.request-row-metrics span,
.request-detail-kpis span,
.request-brief-grid span,
.request-offer-card,
.profile-service-card,
.brief-detail-card,
.order-detail-strip > span,
.order-state-card,
.workspace-block,
.workspace-service,
.community-stats div,
.wallet-summary-grid article,
.wallet-transaction-item {
  border-color: var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  box-shadow: none;
}

.demand-list button:hover,
.service-card:hover,
.community-card:hover,
.profile-service-card:hover,
.request-row:hover,
.request-row.is-active {
  border-color: rgba(31, 184, 115, 0.34);
  box-shadow: 0 12px 28px rgba(18, 55, 39, 0.07);
  transform: translateY(-2px);
}

.demand-list button em {
  height: 3px;
  background: linear-gradient(90deg, var(--brand) var(--demand), #e5eee8 var(--demand));
}

.demand-list svg,
.flow-steps span,
.service-assurance-row svg,
.brief-detail-card svg,
.request-status svg,
.order-next-action svg,
.order-brief-cell svg {
  color: var(--brand);
}

.score-pill,
.service-choice-badge.is-saved,
.request-owner-pill.is-mine,
.order-work-status.is-ready,
.order-work-status.is-completed,
.request-status.is-selected,
.request-status.is-paid,
.request-offer-state.is-accepted,
.request-offer-state.is-shortlisted {
  background: #eaf6ef;
  color: var(--brand-dark);
}

.featured-services {
  gap: 16px;
}

.featured-services article {
  min-height: 152px;
  overflow: hidden;
}

.featured-services img {
  min-height: 152px;
}

.service-grid {
  display: grid;
  gap: 18px;
}

.market-service-grid {
  align-items: stretch;
}

.service-card {
  grid-template-rows: 156px minmax(0, auto);
  min-height: 398px;
}

.service-card:hover .service-image img {
  transform: scale(1.025);
}

.service-meta span,
.service-rating,
.order-filters b,
.request-filter b,
.service-choice-badge,
.order-signal-pill,
.order-work-status,
.request-status,
.request-offer-state {
  background: #eef7f1;
  color: var(--brand-dark);
}

.service-choice-badge {
  background: rgba(16, 54, 39, 0.92);
  color: #fff;
}

.market-hero,
.deals-command,
.page-builder,
.community-hero {
  min-height: auto;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-hero h1,
.deals-command h1,
.community-hero h1 {
  max-width: 860px;
  font-size: clamp(30px, 3.8vw, 46px);
}

.market-hero p,
.deals-command p,
.community-hero p {
  max-width: 760px;
  color: var(--text);
}

.market-hero-actions {
  align-self: center;
}

.market-toolbar {
  padding: 12px;
  box-shadow: none;
}

.category-tabs button,
.request-filter,
.order-filters button,
.ops-switcher button,
.role-switcher button,
.view-toggle button {
  border-radius: 8px;
  color: var(--muted);
}

.request-exchange {
  gap: 20px;
  min-height: auto;
  padding: 24px;
  box-shadow: var(--shadow);
}

.request-exchange-head {
  padding-bottom: 18px;
}

.request-exchange-head h2 {
  max-width: 680px;
  font-size: clamp(22px, 2.5vw, 32px);
}

.request-exchange-stats span {
  background: #fbfdfb;
}

.request-search,
.order-search,
.sort-select,
.view-toggle {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-board,
.request-list,
.orders-table {
  gap: 10px;
}

.request-row {
  padding: 18px;
}

.request-row.is-active {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.request-inline-detail {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-private-offers {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.request-private-offers svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--brand);
}

.request-private-offers b {
  display: block;
  margin-bottom: 3px;
  color: var(--heading);
  font-weight: 900;
}

.request-offer-modal {
  width: min(700px, calc(100vw - 32px));
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
}

.request-offer-modal .create-service-form {
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
}

.request-offer-modal h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

.request-offer-modal .muted {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

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

.request-offer-summary:empty {
  display: none;
}

.request-offer-summary span,
.request-offer-summary p {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.request-offer-summary span {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.request-offer-summary b {
  overflow: hidden;
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.request-offer-summary p {
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.request-offer-modal textarea {
  min-height: 104px;
}

.request-offer-modal .modal-actions {
  padding-top: 2px;
}

.deals-layout {
  gap: 18px;
}

.deal-kpis div {
  border-color: var(--line);
  background: #fff;
}

.ops-switcher,
.role-switcher {
  box-shadow: none;
}

.ops-switcher button.is-active,
.role-switcher button.is-active {
  background: var(--brand);
  color: #fff;
}

.orders-toolbar {
  top: calc(var(--topbar-h) + 12px);
  box-shadow: 0 10px 24px rgba(18, 55, 39, 0.06);
}

.orders-table-head {
  top: calc(var(--topbar-h) + 75px);
  background: #fff;
}

.order-row:hover,
.order-row.is-selected {
  background: #f8fbf8;
}

.order-row.is-selected {
  box-shadow: inset 4px 0 0 var(--brand);
}

.order-row.is-reply,
.order-row.is-due,
.order-row.is-review {
  box-shadow: inset 4px 0 0 var(--gold);
}

.order-chat-button:hover {
  border-color: rgba(31, 184, 115, 0.34);
}

.profile-cover {
  min-height: 280px;
}

.profile-cover::after,
.cover-shade {
  background: linear-gradient(180deg, rgba(16, 37, 28, 0.04), rgba(16, 37, 28, 0.44));
}

.profile-action.purple,
.profile-action.cyan {
  background: var(--brand);
  box-shadow: none;
}

.profile-action.purple:hover,
.profile-action.cyan:hover {
  background: var(--brand-dark);
}

.profile-tabs,
.profile-about-strip,
.profile-storefront-head,
.workspace-panel-head,
.chat-composer,
.request-exchange-head {
  border-color: var(--line);
}

.tab-button.is-active {
  color: var(--brand-dark);
}

.tab-button.is-active::after {
  background: var(--brand);
}

.composer textarea,
.create-service-form input,
.create-service-form textarea,
.create-service-form select,
.wallet-topup-form input,
.chat-composer textarea {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
}

.modal-backdrop {
  background: rgba(9, 28, 19, 0.42);
}

.toast {
  border: 1px solid rgba(31, 184, 115, 0.22);
  border-radius: 8px;
  background: #103627;
  box-shadow: none;
}

@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto;
  }

  .search-box {
    display: none;
  }

  .workspace {
    width: min(1120px, calc(100vw - 40px));
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .top-links {
    display: none;
  }

  .exchange-main-grid,
  .exchange-hero {
    grid-template-columns: 1fr;
  }

  .exchange-visual {
    min-height: 320px;
  }
}

@media (max-width: 940px) {
  :root {
    --side-w: 0px;
    --topbar-h: 70px;
    --mobile-nav-clearance: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    grid-template-columns: minmax(160px, 1fr) auto;
    min-height: var(--topbar-h);
  }

  .search-box {
    display: none;
  }

  .side-rail {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 45;
    display: block;
    width: auto;
    height: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(16px);
  }

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

  .nav-item {
    width: 100%;
    min-width: 0;
    height: 40px;
    border-radius: 8px;
    color: var(--muted);
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .nav-item.is-active {
    background: #eaf6ef;
    color: var(--brand-dark);
  }

  .workspace {
    width: min(100% - 28px, 760px);
    padding: calc(var(--topbar-h) + 18px) 0 calc(var(--mobile-nav-clearance) + 24px);
  }

  .chat-panel,
  .chat-composer {
    scroll-margin-bottom: var(--mobile-nav-clearance);
  }

  .exchange-home,
  .market-layout,
  .deals-layout,
  .pages-layout,
  .community-layout {
    gap: 24px;
  }

  .exchange-copy {
    padding-top: 8px;
  }

  .exchange-stats {
    gap: 0;
  }

  .exchange-stats article {
    padding: 18px 0;
  }

  .market-hero,
  .deals-command,
  .community-hero {
    padding: 0;
  }

  .request-exchange,
  .demand-board,
  .exchange-flow,
  .escrow-snapshot,
  .specialist-radar,
  .exchange-services-strip {
    padding: 20px;
  }

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

  .request-offer-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 14px;
  }

  .topbar-actions .icon-button,
  .wallet-button i {
    display: none;
  }

  .wallet-button {
    min-width: 0;
  }

  .exchange-copy h1 {
    font-size: 42px;
  }

  .exchange-visual {
    min-height: 280px;
  }

  .market-signal-panel {
    position: static;
    margin: -74px 12px 12px;
  }

  .market-signal-panel strong {
    font-size: 15px;
  }

  .exchange-stats {
    grid-template-columns: 1fr 1fr;
  }

  .exchange-stats article {
    padding: 16px 0;
  }

  .service-card {
    min-height: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .request-offer-modal .modal-actions {
    display: grid;
  }
}

.demo-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(31, 184, 115, 0.22);
  background: #103627;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.demo-ribbon strong {
  color: #bff3d3;
  text-transform: uppercase;
}

.demo-ribbon span {
  color: rgba(255, 255, 255, 0.82);
}

.demo-ribbon a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.is-demo-readonly .topbar {
  top: 38px;
}

body.is-demo-readonly .workspace {
  padding-top: calc(var(--topbar-h) + 72px);
}

/* Exchange-first layout: requests are the product, services are the secondary path. */
.market-hero {
  order: 1;
}

.request-exchange {
  order: 2;
}

.market-toolbar {
  order: 3;
}

.market-service-grid {
  order: 4;
}

.market-hero .eyebrow,
.request-exchange .eyebrow {
  color: var(--brand-dark);
}

.market-hero-actions .primary-button {
  min-width: 190px;
}

.request-role-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(197, 216, 205, 0.9);
  border-radius: 8px;
  background: #f8fbf8;
}

.request-role-panel > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.request-role-panel strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
}

.request-role-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.request-persona-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-persona-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.request-persona-switch button.is-active {
  background: var(--brand);
  color: #fff;
}

.request-persona-switch svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 720px) {
  .request-role-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .request-persona-switch,
  .request-persona-switch button {
    width: 100%;
  }
}

@media (max-width: 940px) {
  .demo-ribbon {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  body.is-demo-readonly .workspace {
    padding-top: calc(var(--topbar-h) + 54px);
  }
}
