:root {
  color-scheme: dark;
  --bg: #090b0d;
  --bg-soft: #0c1014;
  --surface: #11161b;
  --surface-2: #171d23;
  --surface-3: #202830;
  --line: #2b353e;
  --muted: #8f9aa3;
  --text: #f2f4ef;
  --accent: #d8ff64;
  --accent-2: #62d6e8;
  --danger: #ff6d74;
  --warn: #f7b955;
  --good: #58d77d;
  --divider: linear-gradient(90deg, transparent, rgba(216,255,100,.5), rgba(98,214,232,.24), transparent);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(98, 214, 232, .12), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(216, 255, 100, .08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.boot {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 34%, rgba(124, 92, 255, .18), transparent 28%),
    radial-gradient(circle at 42% 44%, rgba(216, 255, 100, .1), transparent 24%),
    linear-gradient(180deg, #080b10 0%, #0d1018 48%, #07090d 100%);
  color: #f8fafc;
  text-align: center;
}

.boot-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .38),
    0 0 42px rgba(124, 92, 255, .28);
  animation: bootFloat 2.4s ease-in-out infinite;
}

.boot-mark img {
  width: 54px;
  height: 54px;
  display: block;
}

.boot-copy {
  display: grid;
  gap: 6px;
}

.boot-copy strong {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.boot-copy span {
  color: rgba(248, 250, 252, .66);
  font-size: 13px;
  line-height: 1.5;
}

.boot-progress {
  width: min(220px, 64vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.boot-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #d8ff64, #62d6e8, transparent);
  animation: bootProgress 1.2s ease-in-out infinite;
}

@keyframes bootFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bootProgress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .boot-mark,
  .boot-progress i {
    animation: none;
  }
}

.top-nav {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(0,0,0, calc(var(--nav-bg-alpha, 0) * .18));
}
.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--nav-bg-alpha, 0);
  background:
    linear-gradient(180deg, rgba(6,8,10,.82), rgba(6,8,10,.66)),
    linear-gradient(90deg, rgba(6,8,10,.92), rgba(6,8,10,.58), rgba(6,8,10,.92));
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: opacity .08s linear;
}
.top-nav > * {
  position: relative;
  z-index: 1;
}
.brand {
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--accent);
  color: #101500;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav button, .side button {
  border: 1px solid transparent;
  background: transparent;
  color: #c8d0d6;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.main-nav button:hover, .main-nav button.active, .side button.active, .side button:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.main-nav button.active {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 8px 12px; min-height: 38px; font-weight: 850; }
.nav-actions .workspace-btn {
  width: 117px;
  height: 37px;
  min-height: 37px;
  padding: 0;
}
.top-nav.workspace-nav-mode {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e6e2f0;
}
.top-nav.workspace-nav-mode::before {
  opacity: 0;
}
.top-nav.workspace-nav-mode .brand {
  color: #171525;
  text-shadow: none;
}
.top-nav.workspace-nav-mode .brand small {
  color: #706b82;
}
.user-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 12px;
  border-radius: 999px;
  color: #dbe3e7;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #101500; font-weight: 850; }
.btn.active { box-shadow: 0 0 0 3px rgba(216,255,100,.14); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: #6b3035; color: #ffc1c4; background: #281113; }
.btn.full { width: 100%; }
.btn.compact { padding: 6px 9px; font-size: 12px; margin-right: 6px; }

.public-main { min-height: calc(100vh - 72px); }
.hero {
  min-height: 690px;
  margin-top: -72px;
  padding: 118px 6vw 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 56px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,11,13,.18) 0%, rgba(9,11,13,.16) 42%, rgba(9,11,13,.72) 78%, #090b0d 100%),
    linear-gradient(90deg, #090b0d 0%, rgba(9,11,13,.62) 18%, rgba(9,11,13,.22) 48%, rgba(9,11,13,.64) 82%, #090b0d 100%),
    radial-gradient(ellipse at 52% 34%, rgba(255,255,255,.16), transparent 42%),
    url("assets/bg.jpg") center 10% / cover no-repeat;
  filter: grayscale(.92) saturate(.24) contrast(1.05) brightness(1.14);
  opacity: .98;
}
.hero:after {
  content: "";
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 0;
  height: 1px;
  background: var(--divider);
}
.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 68px;
  line-height: .95;
}
.hero-copy {
  min-height: 510px;
  display: flex;
  flex-direction: column;
}
.hero-copy p {
  max-width: 720px;
  color: #b8c2c9;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 30px;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { margin-top: 24px; gap: 12px; }
.hero-actions .hero-cta {
  min-height: 50px;
  padding: 0 25px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-actions .owner-cta {
  background: linear-gradient(180deg, #e5ff6d, #b9ef2d);
  border-color: rgba(216,255,100,.88);
  color: #0b1007;
  box-shadow: 0 16px 38px rgba(188,242,48,.2), inset 0 1px 0 rgba(255,255,255,.38);
}
.hero-actions .worker-cta {
  background: linear-gradient(180deg, rgba(98,214,232,.28), rgba(19,35,42,.94));
  border-color: rgba(98,214,232,.62);
  color: #e7fbff;
  box-shadow: 0 16px 38px rgba(42,176,204,.16), inset 0 1px 0 rgba(255,255,255,.16);
}
.hero-actions .owner-cta:hover {
  background: linear-gradient(180deg, #efff8d, #c2f33c);
  border-color: rgba(216,255,100,1);
}
.hero-actions .worker-cta:hover {
  background: linear-gradient(180deg, rgba(113,227,246,.34), rgba(21,43,51,.98));
  border-color: rgba(98,214,232,.8);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}
.metric-row div, .feature-grid article, .hero-panel, .task-card, .worker-card, .panel, .order-card, .stat {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,29,35,.94), rgba(13,17,21,.96));
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.metric-row div { padding: 16px; }
.metric-row strong, .metric-row span { display: block; }
.metric-row span { color: var(--muted); margin-top: 6px; font-size: 13px; }
.hero-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-rules span {
  border: 1px solid rgba(98,214,232,.28);
  background: rgba(98,214,232,.07);
  color: #d9f7fb;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}
.hero-panel { padding: 18px; position: relative; align-self: center; }
.command-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.command-panel:before {
  content: none;
}
.panel-head.clean { display: flex; justify-content: space-between; border-bottom: 1px solid transparent; border-image: var(--divider) 1; padding-bottom: 14px; margin-bottom: 12px; }
.command-panel .panel-head.clean {
  border-bottom: 0;
  border-image: none;
  padding: 0 4px;
  margin-bottom: 18px;
  color: #dfe6e9;
}
.command-panel .panel-head.clean span {
  color: #c4ccd2;
}
.command-panel .panel-head.clean strong {
  color: var(--accent);
}
.mini-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mini-task:last-child { border-bottom: 0; }
.mini-task b { display: block; font-size: 13px; margin-bottom: 5px; }
.mini-task span { display: block; color: #8f9aa3; font-size: 12px; }
.mini-task strong, .task-top strong { color: var(--accent); }
.ops-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.ops-strip span {
  padding: 9px 6px;
  text-align: center;
  color: #cdd5da;
  font-size: 12px;
  border-right: 1px solid var(--line);
  background: #0d1115;
}
.ops-strip span:last-child { border-right: 0; }
.orbit-flow {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}
.orbit-flow:before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(98,214,232,.16);
  border-radius: 50%;
}
.orbit-core {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(216,255,100,.45);
  background: radial-gradient(circle, rgba(216,255,100,.23), rgba(13,17,21,.56) 68%);
  backdrop-filter: blur(8px);
  z-index: 1;
}
.orbit-core b, .orbit-flow div:not(.orbit-core) b { color: var(--accent); }
.orbit-core span, .orbit-flow div:not(.orbit-core) span { color: #b8c3ca; font-size: 12px; margin-top: 4px; }
.orbit-flow div:not(.orbit-core) {
  position: absolute;
  width: 138px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,10,13,.58);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 10px;
}
.orbit-flow div:not(.orbit-core) i,
.orbit-flow div:not(.orbit-core) b,
.orbit-flow div:not(.orbit-core) span {
  display: block;
}
.orbit-flow div:not(.orbit-core) i { color: var(--accent-2); font-style: normal; font-size: 11px; font-weight: 900; }
.orbit-flow div:nth-child(2) { left: 0; top: 26px; }
.orbit-flow div:nth-child(3) { right: 0; top: 26px; }
.orbit-flow div:nth-child(4) { right: 0; bottom: 80px; }
.orbit-flow div:nth-child(5) { left: 0; bottom: 80px; }
.orbit-flow div:nth-child(6) { left: 50%; bottom: 0; transform: translateX(-50%); }
.notice-mini {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 7px;
  padding: 11px;
}
.notice-mini b, .notice-mini span { display: block; }
.notice-mini b { font-size: 13px; margin-bottom: 5px; }
.notice-mini span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.section { padding: 58px 6vw; position: relative; }
.section:before {
  content: none;
  position: absolute;
  left: 6vw;
  right: 6vw;
  top: 0;
  height: 1px;
  background: var(--divider);
}
.section.band { background: rgba(255,255,255,.025); }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.section-head.vertical { display: block; max-width: 760px; }
.section-head h2 { margin: 0; font-size: 42px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 620px; line-height: 1.6; }
.section-head.vertical p { max-width: none; white-space: nowrap; }
.feature-grid, .market-grid, .worker-grid, .dashboard-grid, .process-grid, .task-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trust-stack,
.scenario-grid {
  display: grid;
  gap: 18px;
  margin: 30px auto 0;
  max-width: 1280px;
}
.trust-stack {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
}
.trust-stack article,
.scenario-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    #111923;
  border-radius: 8px;
  padding: 24px;
}
.trust-stack article:before,
.scenario-grid article:before {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #d8ff64, rgba(98,214,232,.72));
}
.trust-stack article:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(216,255,100,.2), transparent 42%),
    linear-gradient(180deg, rgba(23,34,43,.98), rgba(10,15,20,.98));
  border-color: rgba(216,255,100,.3);
  box-shadow: 0 28px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.12);
}
.trust-stack article:nth-child(1):after {
  content: "托管";
  position: absolute;
  top: 30px;
  left: 30px;
  color: rgba(216,255,100,.12);
  font-size: clamp(72px, 7vw, 112px);
  line-height: 1;
  font-weight: 950;
  pointer-events: none;
}
.trust-stack article:nth-child(n+2) {
  grid-column: 2;
  min-height: 150px;
}
.trust-stack span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(216,255,100,.34);
  background: rgba(216,255,100,.12);
  color: #dffb7a;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 900;
  align-self: flex-start;
}
.trust-stack h3,
.scenario-grid b {
  display: block;
  margin: 18px 0 10px;
  color: #f2f6f7;
  font-size: 20px;
  line-height: 1.32;
}
.trust-stack article:nth-child(1) h3 {
  max-width: 360px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}
.trust-stack p,
.scenario-grid span {
  color: #c3ccd2;
  line-height: 1.7;
}
.trust-stack article:nth-child(1) p {
  max-width: 430px;
  font-size: 17px;
}
.scenario-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.scenario-grid article {
  min-height: 150px;
  grid-column: span 4;
}
.scenario-grid article:nth-child(1),
.scenario-grid article:nth-child(2) {
  grid-column: span 6;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(98,214,232,.12), transparent 48%),
    #121b25;
}
.scenario-grid b {
  color: #eef4ed;
  margin-top: 0;
}
.process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-lane {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.process-lane:before {
  content: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 33px;
  height: 1px;
  background: linear-gradient(90deg, rgba(98,214,232,.1), rgba(216,255,100,.45), rgba(98,214,232,.1));
}
.process-lane article {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(20,26,31,.78), rgba(11,15,19,.82));
  border-radius: 8px;
  padding: 20px 18px 18px;
}
.process-lane article span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #101500;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 30px;
}
.process-lane h3 { margin: 0 0 8px; }
.process-lane p { margin: 0; color: #b9c2c8; line-height: 1.55; }
.process-lane.professional {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.process-lane.professional article {
  min-height: 230px;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 30px auto 0;
  max-width: 1280px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    #111820;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.rule-grid article {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  border-radius: 0;
  padding: 20px 0 18px 22px;
  position: relative;
}
.rule-grid article:before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8ff64;
  box-shadow: 0 0 0 5px rgba(216,255,100,.12);
}
.rule-grid b { display: block; color: #eef4ed; margin-bottom: 8px; }
.rule-grid span { color: #b9c2c8; line-height: 1.55; }
.home-worker-grid {
  margin-top: 6px;
}
.home-worker-grid .worker-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(216,255,100,.08), transparent 32%),
    linear-gradient(180deg, rgba(17,23,28,.86), rgba(9,12,15,.9));
}
.cyber-section {
  position: relative;
  overflow: hidden;
  background: #070b10;
  border-top: 1px solid rgba(255,255,255,.07);
}
.cyber-section:before {
  content: none;
}
.cyber-section:after {
  content: none;
}
.cyber-heading,
.control-copy,
.final-cta > div {
  position: relative;
  z-index: 1;
}
.cyber-heading {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 0;
  border-left: 0;
}
.cyber-heading > span,
.control-copy > span,
.final-cta > div > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(216,255,100,.26);
  background: rgba(216,255,100,.08);
  color: #dffb7a;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: none;
}
.cyber-heading h2,
.control-copy h2,
.final-cta h2 {
  margin: 14px 0 0;
  max-width: 980px;
  color: #f6f8f5;
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 1.18;
  text-shadow: none;
}
.cyber-heading p,
.control-copy p,
.final-cta p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #aeb8bd;
  line-height: 1.75;
  font-size: 16px;
}
.cyber-grid article,
.neon-scenarios article,
.neon-rules article {
  backdrop-filter: none;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.cyber-grid article,
.scenario-grid article,
.rule-grid.neon-rules article {
  clip-path: none;
}
.cyber-grid article:hover,
.scenario-grid article:hover,
.rule-grid.neon-rules article:hover,
.cyber-timeline article:hover {
  border-color: rgba(216,255,100,.34);
  box-shadow: 0 30px 86px rgba(0,0,0,.32);
}
.control-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(135deg, rgba(216,255,100,.14), transparent 34%),
    linear-gradient(315deg, rgba(98,214,232,.12), transparent 38%),
    #121b24;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
  clip-path: none;
  max-width: 1280px;
  margin: 0 auto;
}
.control-panel:after {
  content: none;
}
.control-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4,8,12,.42);
}
.control-matrix div {
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  border-radius: 0;
  padding: 17px 18px;
  box-shadow: none;
}
.control-matrix div:last-child { border-bottom: 0; }
.control-matrix small {
  display: block;
  color: #dffb7a;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
}
.control-matrix b {
  display: block;
  color: #eef7fb;
  line-height: 1.55;
}
.cyber-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 34px auto 0;
  max-width: 1280px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  background: #111820;
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}
.cyber-timeline article {
  min-height: 260px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  background: transparent;
  border-radius: 0;
  padding: 18px;
  backdrop-filter: none;
  clip-path: none;
}
.cyber-timeline article:nth-child(even) { background: rgba(255,255,255,.035); }
.cyber-timeline article:last-child { border-right: 0; }
.cyber-timeline article span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #d8ff64;
  border: 1px solid rgba(216,255,100,.7);
  color: #111700;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 30px;
}
.cyber-timeline h3 {
  margin: 0 0 10px;
  color: #f3f8fb;
  font-size: 17px;
}
.cyber-timeline p {
  margin: 0;
  color: #aebbc4;
  line-height: 1.62;
}
.final-cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(110deg, rgba(216,255,100,.16), transparent 36%),
    #111820;
}
.final-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.home-redesign {
  background: #070a0d;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #f3f6f2;
}
.home-redesign > * {
  position: relative;
  z-index: 1;
}
.home-redesign span:first-child,
.flow-title span,
.scenario-focus > span,
.rules-title > span,
.home-closing span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #d8ff64;
  color: #101500;
  font-size: 13px;
  font-weight: 950;
}
.home-stage-copy h2,
.flow-title h2,
.scenario-focus h2,
.rules-title h2,
.home-closing h2 {
  margin: 16px 0 0;
  max-width: 800px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.12;
}
.home-stage-copy p,
.scenario-focus p,
.rules-title p,
.home-closing p {
  margin: 18px 0 0;
  max-width: 680px;
  color: #b7c1c7;
  font-size: 17px;
  line-height: 1.75;
}
.assurance-stage {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 52px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 82px;
  background:
    linear-gradient(90deg, rgba(216,255,100,.11), transparent 34%),
    linear-gradient(180deg, #080c10, #05070a);
}
.escrow-ledger {
  border: 1px solid rgba(216,255,100,.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    #101720;
  box-shadow: 0 32px 100px rgba(0,0,0,.36);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  background: rgba(216,255,100,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ledger-head b {
  font-size: 24px;
}
.ledger-head span {
  color: #b9c5ca;
  font-size: 13px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 18px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-row small {
  grid-row: span 2;
  color: #d8ff64;
  font-weight: 950;
}
.ledger-row strong {
  color: #f6faf1;
  font-size: 20px;
}
.ledger-row span {
  color: #aeb8bd;
  line-height: 1.6;
}
.flow-stage {
  background: #eef2e9;
  color: #111712;
  padding-top: 76px;
  padding-bottom: 76px;
}
.flow-title {
  max-width: 1180px;
  margin: 0 auto 34px;
}
.flow-title span {
  background: #111712;
  color: #d8ff64;
}
.flow-title h2 {
  color: #111712;
}
.flow-rail {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #cdd5c5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(17,23,18,.12);
}
.flow-rail article {
  min-height: 286px;
  padding: 26px 22px;
  border-right: 1px solid #dfe5d9;
  display: flex;
  flex-direction: column;
}
.flow-rail article:last-child {
  border-right: 0;
}
.flow-rail article:nth-child(even) {
  background: #f7f9f3;
}
.flow-rail article span {
  display: block;
  color: #a6b65c;
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
  margin-bottom: auto;
}
.flow-rail article b {
  display: block;
  color: #101510;
  font-size: 20px;
  margin-bottom: 10px;
}
.flow-rail article p {
  margin: 0;
  color: #526057;
  line-height: 1.65;
}
.scenario-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 42px;
  align-items: stretch;
  background:
    linear-gradient(180deg, #0b1117, #070a0d);
  padding-top: 82px;
  padding-bottom: 82px;
}
.scenario-focus {
  min-height: 440px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 8px;
  border: 1px solid rgba(98,214,232,.28);
  background:
    linear-gradient(140deg, rgba(98,214,232,.18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    #101923;
  box-shadow: 0 34px 100px rgba(0,0,0,.35);
}
.scenario-focus > span {
  background: #62d6e8;
  color: #061115;
}
.scenario-list {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: #101720;
  overflow: hidden;
}
.scenario-list div {
  padding: 26px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.scenario-list div:last-child {
  border-bottom: 0;
}
.scenario-list b,
.scenario-list span {
  display: block;
}
.scenario-list b {
  color: #f5f8f4;
  font-size: 20px;
  margin-bottom: 8px;
}
.scenario-list span {
  color: #aeb9bf;
  line-height: 1.65;
}
.rules-stage {
  background: #101510;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
  padding-top: 84px;
  padding-bottom: 84px;
}
.rules-title {
  position: sticky;
  top: 92px;
}
.rules-lines {
  border-top: 1px solid rgba(255,255,255,.16);
}
.rules-lines div {
  display: grid;
  grid-template-columns: 58px minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rules-lines small {
  color: #d8ff64;
  font-size: 18px;
  font-weight: 950;
}
.rules-lines b {
  color: #f6faf1;
  font-size: 20px;
}
.rules-lines span {
  color: #b6c1b8;
  line-height: 1.7;
}
.home-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    linear-gradient(90deg, rgba(216,255,100,.14), transparent 44%),
    #070a0d;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 13px 6vw 15px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #080a0c;
  color: #c2cbd1;
}
.site-footer strong,
.site-footer span {
  display: block;
}
.site-footer strong {
  color: var(--text);
  font-size: 13px;
}
.site-footer span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.footer-actions .btn {
  min-width: 102px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.footer-actions .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font-weight: 850;
}
.social-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px;
  fill: currentColor;
}
.social-icon path { fill: currentColor; }
.social-btn.telegram {
  background: rgba(98,214,232,.12);
  border-color: rgba(98,214,232,.38);
  color: #e5fbff;
}
.social-btn.telegram .social-icon {
  background: rgba(98,214,232,.24);
  color: #a9f4ff;
}
.social-btn.wechat {
  background: rgba(216,255,100,.1);
  border-color: rgba(216,255,100,.34);
  color: #f1ffd6;
}
.social-btn.wechat .social-icon {
  background: rgba(216,255,100,.2);
  color: var(--accent);
}
.feature-grid article, .process-grid article { padding: 20px; }
.feature-grid span, .process-grid span { color: var(--accent-2); font-weight: 900; }
.feature-grid h3, .process-grid h3, .task-card h3, .worker-card h3, .order-card h3 { margin: 10px 0 8px; }
.feature-grid p, .process-grid p, .task-card p, .order-card p { color: #b9c2c8; line-height: 1.55; }
.ops-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ops-board article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px;
}
.ops-board span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}
.ops-board strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}
.ops-board p {
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
}
.market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-grid.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featured-showcase { width: 100%; }
.task-card, .worker-card, .order-card { padding: 18px; }
.task-card { display: grid; gap: 10px; align-content: start; }
.task-card.premium { border-color: rgba(216,255,100,.24); }
.featured-showcase .task-card.premium {
  min-height: 262px;
  position: relative;
  overflow: hidden;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border-color: transparent;
  background:
    radial-gradient(circle at 14% 0%, rgba(216,255,100,.11), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(98,214,232,.1), transparent 34%),
    linear-gradient(180deg, rgba(18,24,28,.9), rgba(8,11,13,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.18);
}
.featured-showcase .task-card.premium::before {
  content: none;
}
.featured-showcase .task-card.premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216,255,100,.82), rgba(98,214,232,.34) 56%, rgba(255,255,255,.08)) top left / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(216,255,100,.82), rgba(98,214,232,.34) 56%, rgba(255,255,255,.08)) top right / 1px 100% no-repeat,
    linear-gradient(270deg, rgba(216,255,100,.82), rgba(98,214,232,.34) 56%, rgba(255,255,255,.08)) bottom right / 100% 1px no-repeat,
    linear-gradient(0deg, rgba(216,255,100,.82), rgba(98,214,232,.34) 56%, rgba(255,255,255,.08)) bottom left / 1px 100% no-repeat;
  pointer-events: none;
}
.featured-showcase .task-card.premium > * {
  position: relative;
  z-index: 1;
}
.featured-showcase .task-card.premium .task-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.featured-showcase .task-card.premium .task-card-head h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: #f5f7f2;
}
.featured-showcase .task-card.premium .task-route {
  display: block;
  color: #8f9aa3;
  font-size: 12px;
  font-weight: 800;
}
.featured-showcase .task-card.premium .task-price {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}
.featured-showcase .task-card.premium .task-objective {
  color: #c1cbd1;
  min-height: 74px;
  margin: 0;
  line-height: 1.62;
}
.featured-showcase .task-card.premium .task-detail-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.featured-showcase .task-card.premium .task-detail-row div {
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.featured-showcase .task-card.premium .task-detail-row div:first-child {
  padding-left: 0;
  border-left: 0;
}
.featured-showcase .task-card.premium .task-detail-row small {
  display: block;
  color: #78848d;
  font-size: 11px;
  margin-bottom: 6px;
}
.featured-showcase .task-card.premium .task-detail-row b {
  display: block;
  color: #edf3f6;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-card p {
  min-height: 68px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.filter-bar {
  display: grid;
  grid-template-columns: 180px 180px 160px;
  gap: 10px;
  margin-bottom: 18px;
  justify-content: start;
}
.task-top, .order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.task-top span, .order-head span { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tags span {
  border: 1px solid var(--line);
  background: #0d1115;
  color: #d5dde2;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
}
.tags.mini { justify-content: center; margin: 10px 0; }
.tags.mini span { font-size: 11px; padding: 4px 7px; }
.worker-scope .tags.mini { justify-content: flex-start; margin: 8px 0 0; }
.task-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.task-meta div {
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0f13;
  border-radius: 7px;
  padding: 9px 8px;
  min-width: 0;
}
.task-meta small, .evidence-grid small, .stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.task-meta b { display: block; font-size: 12px; color: #edf3f6; white-space: nowrap; }
.text-good { color: var(--good) !important; }
.text-warn { color: var(--warn) !important; }
.text-neutral { color: var(--accent-2) !important; }
.worker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.worker-card { text-align: left; }
.worker-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.worker-head h3 { margin: 0 0 5px; }
.worker-head span { color: var(--muted); font-size: 12px; }
.worker-summary {
  color: #b8c2c8;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}
.avatar {
  width: 54px;
  height: 54px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--accent);
  font-weight: 900;
}
.worker-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--surface-3);
}
.stats-line { display: flex; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.worker-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.worker-order-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}
.worker-metrics div {
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0f13;
  border-radius: 7px;
  padding: 10px;
}
.worker-metrics small, .worker-scope small { color: var(--muted); font-size: 11px; }
.worker-metrics strong { display: block; margin-top: 5px; }
.worker-scope { margin-top: 10px; }
.worker-score {
  width: 64px;
  height: 32px;
  margin: 10px auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,255,100,.28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(216,255,100,.06);
  font-weight: 900;
}
.worker-score.large {
  width: 82px;
  height: 42px;
  font-size: 20px;
}
.public-page {
  min-height: calc(100vh - 72px);
  padding: 88px 6vw 72px;
  background:
    linear-gradient(180deg, rgba(216,255,100,.08), transparent 220px),
    #070a0d;
  color: #f2f5f1;
  overflow-x: hidden;
}
.public-page-head {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 32px;
  align-items: end;
}
.public-page-head > div {
  min-width: 0;
  max-width: 100%;
}
.public-page-head span:first-child {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #d8ff64;
  color: #101500;
  font-size: 13px;
  font-weight: 950;
}
.public-page-head h2 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.12;
}
.public-page-head p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #b7c1c7;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.public-page-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #111820;
  overflow: hidden;
}
.public-page-stats div {
  padding: 18px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.public-page-stats div:last-child {
  border-right: 0;
}
.public-page-stats b,
.public-page-stats small {
  display: block;
}
.public-page-stats b {
  color: #f8fff0;
  font-size: 22px;
}
.public-page-stats small {
  margin-top: 6px;
  color: #8f9aa3;
  font-size: 12px;
}
.market-filter-panel {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 190px 210px 180px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #101720;
}
.market-filter-panel label {
  display: grid;
  gap: 7px;
}
.market-filter-panel label span {
  color: #aab5bb;
  font-size: 12px;
  font-weight: 850;
}
.market-filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: #070b10;
  color: #f2f5f1;
  padding: 0 12px;
}
.market-list {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.market-row {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216,255,100,.08), transparent 32%),
    #111820;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.market-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px) 132px;
  gap: 18px;
  align-items: start;
}
.market-row-main h3 {
  margin: 12px 0 8px;
  color: #f8fbf3;
  font-size: 22px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.market-row-main p {
  margin: 0;
  color: #b8c3c9;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.market-row-description {
  max-width: 980px;
  margin: 0;
  color: #b8c3c9;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.market-row-kicker,
.market-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.market-row-kicker span,
.market-row-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}
.market-row-kicker span {
  background: rgba(216,255,100,.12);
  border: 1px solid rgba(216,255,100,.24);
  color: #e8ff9f;
}
.market-row-tags {
  margin-top: 14px;
}
.market-row-tags span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #c7d1d6;
}
.market-row-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: start;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.market-row-terms div {
  min-height: 48px;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: grid;
  align-content: start;
}
.market-row-terms div:last-child {
  border-bottom: 0;
  border-right: 0;
}
.market-row-terms small,
.market-row-terms b {
  display: block;
}
.market-row-terms small {
  color: #8d989f;
  font-size: 11px;
  margin-bottom: 5px;
  line-height: 1.2;
}
.market-row-terms b {
  color: #f3f8f2;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  white-space: nowrap;
}
.market-row-terms div:first-child b {
  color: #d8ff64;
}
.market-row-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.market-row-action .btn {
  width: 100%;
  min-height: 44px;
}
.workers-page {
  background:
    linear-gradient(180deg, rgba(98,214,232,.08), transparent 220px),
    #070a0d;
}
.worker-directory {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.merc-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 310px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    #111820;
  box-shadow: 0 24px 72px rgba(0,0,0,.24);
}
.merc-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.merc-profile h3 {
  margin: 0 0 6px;
  color: #f8fbf3;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.merc-profile span {
  color: #d8ff64;
  font-size: 13px;
  font-weight: 850;
}
.merc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.merc-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.merc-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(216,255,100,.2);
  background: rgba(216,255,100,.08);
  color: #e7ff9c;
  font-size: 12px;
  font-weight: 820;
}
.merc-tags span {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(98,214,232,.2);
  background: rgba(98,214,232,.08);
  color: #bff5ff;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.merc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4,8,12,.36);
}
.merc-stats div {
  padding: 12px 10px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.merc-stats div:last-child {
  border-right: 0;
}
.merc-stats small,
.merc-stats b {
  display: block;
}
.merc-stats small {
  color: #8d989f;
  font-size: 11px;
}
.merc-stats b {
  margin-top: 6px;
  color: #f6faf1;
  font-size: 18px;
}
.public-empty {
  max-width: 1280px;
  margin: 18px auto 0;
}
.rule-list { display: grid; gap: 12px; }
.rule-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid transparent;
  border-image: var(--divider) 1;
}
.rule-list span { color: var(--muted); }
.rule-list.compact { gap: 0; }
.rule-list.compact div { padding: 14px 0; }

.empty {
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  border-radius: 8px;
  padding: 18px;
  line-height: 1.5;
}
.empty.slim {
  border: 0;
  background: transparent;
  padding: 8px 0 0;
  color: #7d8891;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.segmented button {
  border: 1px solid var(--line);
  background: #0e1216;
  color: var(--text);
  padding: 10px;
  border-radius: 7px;
}
.segmented button.active { background: var(--accent); color: #101500; border-color: var(--accent); }
.form, .form-grid { display: grid; gap: 12px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0f13;
  color: var(--text);
  border-radius: 7px;
  padding: 11px 12px;
  outline: none;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
input:disabled {
  color: #9aa5ad;
  background: #0a0d10;
  cursor: not-allowed;
}
select[multiple] {
  min-height: 112px;
  padding: 8px;
}
select[multiple] option {
  padding: 7px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.choice-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-chip {
  border: 1px solid rgba(255,255,255,.1);
  background: #0b0f13;
  color: #c4ccd2;
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 36px;
}
.choice-chip.active {
  border-color: rgba(216,255,100,.62);
  background: rgba(216,255,100,.1);
  color: var(--accent);
}
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-hint {
  color: var(--ws-muted);
  background: #f8fafc;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.auth-role-field {
  display: grid;
  gap: 8px;
}
.auth-role-field > span {
  color: var(--muted);
  font-size: 13px;
}
.auth-role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.auth-role-options label {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--line);
  background: #0b0f13;
  border-radius: 8px;
  padding: 12px 12px 12px 38px;
  cursor: pointer;
  color: var(--text);
}
.auth-role-options label.active {
  border-color: rgba(216,255,100,.7);
  background: rgba(216,255,100,.08);
}
.auth-role-options input {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.auth-role-options b {
  font-size: 14px;
}
.auth-role-options small {
  color: var(--muted);
  line-height: 1.45;
}
.captcha-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.captcha-field img {
  width: 220px;
  max-width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  object-fit: cover;
  background: #0b0f13;
}
.captcha-field input,
.captcha-field button {
  height: 44px;
}

.workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #090c0f;
}
.side {
  border-right: 1px solid rgba(255,255,255,.08);
  background: #0b0f12;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-spacer { flex: 1; }
.side-footer {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}
.support-entry {
  border-color: rgba(98,214,232,.26) !important;
  background: rgba(98,214,232,.07) !important;
  color: #dff8fb !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
}
.support-entry span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(98,214,232,.14);
}
.support-entry b { display: block; }
.support-entry small {
  display: block;
  color: #9fb7be;
  margin-top: 3px;
  grid-column: 2;
}
.logout-entry {
  color: #abb5bc !important;
  background: transparent !important;
}
.logout-entry span {
  width: 28px;
  text-align: center;
}
.account-card {
  border: 1px solid rgba(255,255,255,.07);
  background: #0f1418;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.account-card strong, .account-card span, .account-card small { display: block; }
.account-card span, .account-card small { color: var(--muted); margin-top: 6px; }
.side button {
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
}
.side button.active {
  background: rgba(216,255,100,.075);
  color: var(--accent);
  border-color: rgba(216,255,100,.18);
}
.work-main { padding: 26px; min-width: 0; }
.work-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: flex-end;
}
.work-head h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; }
.work-head p { margin: 0; color: var(--muted); line-height: 1.45; }
.work-head-metric {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 5px;
}
.work-head-metric span {
  color: var(--muted);
  font-size: 12px;
}
.work-head-metric strong {
  color: var(--accent);
  font-size: 22px;
}
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px; }
.stat span { color: var(--muted); }
.stat strong { display: block; margin-top: 8px; font-size: 25px; }
.stat small { margin-top: 8px; line-height: 1.4; }
.overview-layout { display: grid; gap: 12px; }
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.next-card {
  min-height: 158px;
  border: 1px solid rgba(255,255,255,.075);
  background: #10151a;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  display: grid;
  align-content: start;
  gap: 9px;
  position: relative;
}
.next-card:hover {
  border-color: rgba(216,255,100,.35);
  background: #12191d;
}
.next-card h3 {
  margin: 0;
  font-size: 17px;
}
.next-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  min-height: 42px;
}
.next-card b {
  color: var(--accent);
  font-size: 13px;
  margin-top: 6px;
}
.next-card > span {
  position: absolute;
  top: 13px;
  right: 13px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(247,185,85,.12);
  color: #ffd899;
  border: 1px solid rgba(247,185,85,.28);
  font-weight: 850;
  font-size: 12px;
}
.clean-stat {
  background: #0f1418;
}
.overview-hero {
  border: 1px solid rgba(255,255,255,.08);
  background: #10151a;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.overview-hero span, .overview-money small {
  color: var(--accent-2);
  font-weight: 850;
  font-size: 12px;
}
.overview-hero h3 {
  margin: 8px 0;
  font-size: 28px;
}
.overview-hero p {
  color: var(--muted);
  margin: 0;
}
.overview-money {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 220px;
}
.overview-money strong {
  font-size: 30px;
  color: var(--accent);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 12px;
}
.overview-grid.simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.insight-panel { padding: 15px; }
.insight-panel h3, .table-panel h3, .panel-title h3, .list-title h3 { margin: 0 0 10px; }
.list-panel { padding: 15px; }
.list-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.list-title h3 { margin: 0; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  min-height: auto;
  font-size: 12px;
}
.panel-title { margin-bottom: 16px; }
.panel-title p { margin: 0; color: var(--muted); line-height: 1.5; }
.table-title { padding: 16px 16px 0; margin-bottom: 4px; }
.status-bars { display: grid; gap: 9px; }
.status-bars div, .compact-list button, .compact-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: #0b0f13;
  border-radius: 7px;
  padding: 10px;
  color: #d7dee3;
}
.compact-list { display: grid; gap: 8px; }
.compact-list.clear button, .compact-list.clear div {
  background: transparent;
}
.compact-list button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.compact-list span { color: #d7dee3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-panel { padding: 18px; }
.form-section-title {
  color: #dbe4e8;
  font-weight: 850;
  font-size: 13px;
  margin: 2px 0 12px;
}
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.file-field input {
  margin-top: 7px;
  border-style: dashed;
}
.evidence-files, .chat-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.evidence-files span, .chat-pending span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: #0c1115;
  border-radius: 7px;
  color: #d8e0e5;
  font-size: 12px;
  padding: 7px 9px;
}
.evidence-files button, .chat-pending button {
  border: 0;
  background: transparent;
  color: #ffb2a4;
  cursor: pointer;
}
.stack { display: grid; gap: 12px; }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 10px;
}
.tabs button {
  border: 1px solid rgba(255,255,255,.08);
  background: #0c1014;
  color: #cfd7dc;
  border-radius: 999px;
  padding: 8px 11px;
  white-space: nowrap;
}
.tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #101500;
  font-weight: 850;
}
.tabs span { opacity: .75; margin-left: 4px; }
.order-table-panel {
  overflow: auto;
}
.order-table {
  min-width: 980px;
}
.order-workbench .order-table {
  min-width: 1120px;
}
.arbitration-table {
  min-width: 1040px;
  table-layout: auto;
}
.order-table th {
  white-space: nowrap;
}
.order-table td {
  height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.order-table td > strong, .order-table td > b, .order-table td > span {
  display: block;
}
.order-table td > span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.order-title-cell {
  min-width: 280px;
  max-width: 420px;
}
.arbitration-table .order-title-cell {
  min-width: 300px;
  max-width: 460px;
}
.arbitration-table th:nth-child(1),
.arbitration-table td:nth-child(1),
.arbitration-table th:nth-child(4),
.arbitration-table td:nth-child(4),
.arbitration-table th:nth-child(5),
.arbitration-table td:nth-child(5),
.arbitration-table th:nth-child(6),
.arbitration-table td:nth-child(6),
.arbitration-table th:nth-child(7),
.arbitration-table td:nth-child(7) {
  white-space: nowrap;
}
.arbitration-table th:nth-child(2),
.arbitration-table td:nth-child(2),
.arbitration-table th:nth-child(3),
.arbitration-table td:nth-child(3) {
  min-width: 190px;
}
.arbitration-resolve-modal {
  max-width: 760px;
}
.arbitration-resolve-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arbitration-resolve-form .wide {
  grid-column: 1 / -1;
}
.resolve-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-hint {
  border: 1px solid rgba(63, 224, 178, .22);
  background: rgba(63, 224, 178, .08);
  color: #d8fff4;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.light-modal .preset-hint {
  border-color: rgba(109, 91, 255, .18);
  background: rgba(109, 91, 255, .08);
  color: #4338ca;
}
.order-title-cell b, .order-title-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 12px;
}
.table-toolbar > div,
.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.table-toolbar span {
  color: var(--ws-muted);
  font-size: 12px;
}
.table-toolbar label,
.table-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ws-muted);
  font-size: 12px;
}
.table-toolbar select,
.table-pagination select {
  width: auto;
  min-height: 30px;
  padding: 4px 26px 4px 8px;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-btn {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--ws-line-strong);
  background: #fff;
  color: var(--ws-text);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) {
  background: #f8f6ff;
  border-color: #c8bfff;
  color: var(--ws-purple);
}
.page-btn:disabled {
  cursor: not-allowed;
  color: #a8a1b8;
  background: #f4f2f8;
}
.page-size-select {
  width: auto;
  min-width: 78px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
}
.btn.compact {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 6px;
}
.badge {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.badge.good { color: #baffc9; border-color: #326c3f; background: #102416; }
.badge.warn { color: #ffdb9e; border-color: #705024; background: #271b0b; }
.badge.bad { color: #ffc2c5; border-color: #713136; background: #281113; }
.badge.neutral { color: #bfeef5; border-color: #2f6270; background: #102026; }
.order-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0;
}
.order-progress span {
  border: 1px solid var(--line);
  background: #0b0f13;
  color: var(--muted);
  border-radius: 7px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
}
.order-progress span.done { color: #dfffe7; border-color: rgba(88,215,125,.42); background: rgba(88,215,125,.08); }
.order-progress span.active { color: #101500; border-color: var(--accent); background: var(--accent); font-weight: 900; }
.simple-order {
  display: grid;
  gap: 12px;
}
.order-row-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.order-row-top h3 {
  margin: 0 0 6px;
}
.order-row-top span {
  color: var(--muted);
  font-size: 12px;
}
.order-mainline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.order-mainline div {
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  border-radius: 7px;
  padding: 10px;
}
.order-mainline small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.order-mainline strong {
  color: #e9eff2;
}
.order-objective {
  margin: 0;
  color: #bfc8ce;
  line-height: 1.55;
}
.order-details {
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 7px;
  background: rgba(0,0,0,.12);
  padding: 10px 12px;
}
.order-details summary {
  cursor: pointer;
  color: #cfd7dc;
  font-weight: 760;
}
.order-actions {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 12px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.evidence-grid div {
  border: 1px solid rgba(255,255,255,.07);
  background: #0b0f13;
  border-radius: 7px;
  padding: 10px;
}
.evidence-grid span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #cbd5dc;
  line-height: 1.45;
  font-size: 13px;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.attachment-grid a, .attachment-grid button, .message-images a, .message-images button {
  border: 1px solid rgba(255,255,255,.08);
  background: #080c10;
  border-radius: 7px;
  overflow: hidden;
  color: #cfd8de;
  text-decoration: none;
}
.attachment-grid button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.message-images button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.attachment-grid img, .message-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.attachment-grid span {
  display: block;
  padding: 7px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.timeline div {
  display: grid;
  grid-template-columns: 14px 86px 92px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}
.timeline span {
  color: var(--muted);
  font-size: 12px;
}
.timeline strong {
  color: #e9eff2;
  font-size: 13px;
}
.timeline p {
  margin: 0;
  color: #b7c1c8;
  line-height: 1.45;
  font-size: 13px;
}
.arbitration-card { border-color: rgba(247,185,85,.24); }
.arbitration-topic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.arbitration-topic div {
  border: 1px solid rgba(255,255,255,.07);
  background: #0b0f13;
  border-radius: 7px;
  padding: 12px;
}
.arbitration-topic small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.arbitration-topic strong {
  display: block;
  margin-bottom: 6px;
}
.arbitration-topic span {
  color: #b9c2c8;
  line-height: 1.5;
  font-size: 13px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
}
.profile-card {
  padding: 18px;
  text-align: center;
}
.profile-card h3 { margin: 12px 0 6px; }
.profile-card p { color: var(--muted); margin: 0; }
.avatar.large {
  width: 74px;
  height: 74px;
  font-size: 28px;
}
.wallet-layout, .chat-layout {
  display: grid;
  gap: 14px;
}
.wallet-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.wallet-pro .wallet-hero { grid-column: 1 / -1; padding: 22px; display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.wallet-hero span { color: var(--muted); }
.wallet-hero strong { display: block; margin: 8px 0; font-size: 42px; color: var(--accent); }
.wallet-hero p { color: var(--muted); margin: 0; line-height: 1.5; max-width: 560px; }
.wallet-quick {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0f13;
  border-radius: 8px;
  padding: 14px;
}
.wallet-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.wallet-kpis div {
  border: 1px solid rgba(255,255,255,.08);
  background: #10151a;
  border-radius: 8px;
  padding: 14px;
}
.wallet-kpis small { color: var(--muted); display: block; margin-bottom: 7px; }
.wallet-kpis b { color: #eaf1f4; font-size: 20px; }
.wallet-kpis span { display: block; color: #7f8a92; margin-top: 7px; font-size: 12px; line-height: 1.4; }
.wallet-actions { grid-column: span 4; padding: 18px; display: grid; gap: 12px; align-content: start; }
.wallet-actions h3 { margin: 0; }
.deposit-panel { grid-column: 1 / -1; padding: 18px; }
.manual-credit-panel {
  grid-column: 1 / -1;
  padding: 18px;
}
.manual-credit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}
.user-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.user-result-list button {
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0f13;
  color: var(--text);
  border-radius: 7px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.user-result-list button.active {
  border-color: rgba(216,255,100,.6);
  background: rgba(216,255,100,.08);
}
.user-result-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.user-result-list strong {
  color: var(--accent);
  font-size: 12px;
}
.manual-credit-confirm {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #cbd4da;
}
.deposit-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
}
.wallet-box, .platform-box { padding: 16px; display: grid; gap: 12px; }
.platform-box { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reconciliation-panel { grid-column: 1 / -1; display: grid; gap: 14px; }
.reconciliation-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(74, 222, 128, .26);
  background: rgba(34, 197, 94, .08);
  color: #bbf7d0;
}
.reconciliation-status.bad {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(239, 68, 68, .08);
  color: #fecaca;
}
.reconciliation-status b { font-size: 14px; }
.reconciliation-status span { color: inherit; opacity: .78; font-size: 12px; }
.reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.reconciliation-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.reconciliation-grid strong { color: #eef4f6; }
.reconciliation-grid span { color: #9aa7b1; font-size: 12px; }
.reconciliation-grid em { color: #86efac; font-style: normal; font-weight: 700; }
.reconciliation-grid em.bad { color: #fca5a5; }
.table-panel { grid-column: 1 / -1; }
.wallet-box div, .platform-box div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: 8px; }
.table-panel { overflow: auto; }
.table-panel h3 { padding: 14px 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; }
th { color: var(--muted); font-weight: 750; }
.chat-layout {
  grid-template-columns: minmax(240px, 292px) minmax(0, 1fr);
  height: clamp(520px, calc(100dvh - 172px), 760px);
  min-height: 0;
  overflow: hidden;
}
.chat-layout.clean { align-items: stretch; }
.chat-layout.clean:before {
  content: "选择会话后沟通";
  display: none;
}
.session-list { padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 0; overflow: auto; }
.session-list.flat {
  border-right: 1px solid var(--line);
  padding: 0 10px 0 0;
}
.session-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.session-list .session-open {
  border: 1px solid rgba(255,255,255,.08);
  background: #0d1115;
  color: var(--text);
  border-radius: 7px;
  padding: 9px 10px;
  text-align: left;
  min-height: 54px;
  min-width: 0;
}
.session-item.active .session-open { border-color: rgba(98,214,232,.62); background: rgba(98,214,232,.06); }
.session-item.closed { opacity: .72; }
.session-list strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.session-list span { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.session-state {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.session-state.pending { color: #b45309; }
.session-state.active { color: #15803d; }
.session-state.closed { color: #64748b; }
.session-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.session-filter-tabs button {
  border: 1px solid rgba(255,255,255,.08);
  background: #0d1115;
  color: var(--muted);
  border-radius: 6px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 850;
}
.session-filter-tabs button.active {
  border-color: rgba(98,214,232,.55);
  color: var(--text);
  background: rgba(98,214,232,.1);
}
.closed-compose-note {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(8,12,15,.72);
}
.thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 0; }
.clean-thread {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(13,17,21,.8);
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}
.thread-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: 52px;
  align-items: center;
}
.thread-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.thread-head strong {
  display: block;
  max-width: min(520px, 56vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-head div span {
  display: block;
  max-width: min(620px, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-head span { color: var(--muted); font-size: 12px; }
.messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.message {
  max-width: min(72%, 680px);
  border: 1px solid var(--line);
  background: #0d1115;
  border-radius: 8px;
  padding: 8px 10px;
}
.message.mine { align-self: flex-end; border-color: #355f3b; background: #102016; }
.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.message-meta span {
  color: #cbd5dc;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-meta time, .message small { color: var(--muted); font-size: 11px; }
.chat-role {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
}
.role-owner { color: #ffe0a6; background: rgba(245,166,35,.13); border: 1px solid rgba(245,166,35,.28); }
.role-worker { color: #b9f3c8; background: rgba(46,204,113,.13); border: 1px solid rgba(46,204,113,.28); }
.role-support { color: #c8d7ff; background: rgba(91,141,239,.14); border: 1px solid rgba(91,141,239,.3); }
.role-admin { color: #ffc7d1; background: rgba(255,91,124,.13); border: 1px solid rgba(255,91,124,.3); }
.message p { margin: 6px 0 0; line-height: 1.45; font-size: 13px; color: #e2e8ec; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.compose, .support-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0d1115;
}
.compose input {
  border: 0;
  background: transparent;
  color: var(--text);
  min-height: 42px;
  padding: 0 4px;
}
.compose input:focus {
  border-color: transparent;
}
.compose .btn,
.compose .icon-upload {
  border-radius: 6px;
}
.icon-upload {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: #dce4e8;
  background: #0b1115;
  cursor: pointer;
  font-weight: 850;
}
.icon-upload input { display: none; }
.chat-pending {
  padding: 0 12px 12px;
}
.support-line {
  margin-top: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workspace {
  color-scheme: light;
  background: #eef3f7;
  color: #17212b;
}
.workspace .side {
  background: #ffffff;
  border-right-color: #d9e2ea;
  box-shadow: 10px 0 30px rgba(15, 23, 42, .04);
}
.workspace .account-card,
.workspace .panel,
.workspace .order-card,
.workspace .stat,
.workspace .wallet-quick,
.workspace .wallet-kpis div,
.workspace .wallet-box,
.workspace .platform-box,
.workspace .reconciliation-panel,
.workspace .clean-thread,
.workspace .thread,
.workspace .profile-card {
  background: #ffffff;
  border-color: #d9e2ea;
  color: #17212b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.workspace .work-main {
  background: #eef3f7;
  color: #17212b;
}
.workspace .work-head {
  border-bottom-color: #d7e1ea;
}
.workspace .work-head h2,
.workspace .panel-title h3,
.workspace .list-title h3,
.workspace .table-panel h3,
.workspace .insight-panel h3,
.workspace .profile-card h3,
.workspace .order-row-top h3,
.workspace .wallet-actions h3,
.workspace .order-title-cell b,
.workspace .order-mainline strong,
.workspace .timeline strong,
.workspace .config-edit-info b {
  color: #17212b;
}
.workspace .work-head p,
.workspace .work-head-metric span,
.workspace .account-card span,
.workspace .account-card small,
.workspace .panel-title p,
.workspace .wallet-hero span,
.workspace .wallet-hero p,
.workspace .wallet-kpis small,
.workspace .wallet-kpis span,
.workspace .order-table td > span,
.workspace .order-row-top span,
.workspace .order-mainline small,
.workspace .timeline span,
.workspace .timeline p,
.workspace .compact-list span,
.workspace label {
  color: #657382;
}
.workspace .side button {
  color: #334155;
  text-shadow: none;
}
.workspace .side button:hover {
  background: #f2f6f9;
  border-color: #d9e2ea;
  color: #17212b;
}
.workspace .side button.active {
  background: #17212b;
  border-color: #17212b;
  color: #ffffff;
}
.workspace .side-footer {
  border-top-color: #d9e2ea;
}
.workspace .support-entry {
  background: #eef8fb !important;
  border-color: #bfdae3 !important;
  color: #165568 !important;
}
.workspace .support-entry small {
  color: #547482;
}
.workspace .logout-entry {
  color: #657382 !important;
}
.workspace .btn {
  background: #ffffff;
  border-color: #cfd9e3;
  color: #17212b;
}
.workspace .btn:hover {
  background: #f6f9fb;
}
.workspace .btn.primary {
  background: #17212b;
  border-color: #17212b;
  color: #ffffff;
}
.workspace .btn.danger {
  border-color: #efb4ba;
  color: #a92331;
  background: #fff1f2;
}
.workspace input,
.workspace select,
.workspace textarea {
  background: #ffffff;
  border-color: #cbd6e2;
  color: #17212b;
}
.workspace input:focus,
.workspace select:focus,
.workspace textarea:focus {
  border-color: #2aa7bc;
  box-shadow: 0 0 0 3px rgba(42, 167, 188, .12);
}
.workspace input:disabled {
  background: #edf2f7;
  color: #8492a1;
}
.workspace .form-section-title {
  color: #263443;
}
.workspace .tabs {
  border-bottom-color: #d7e1ea;
}
.workspace .tabs button {
  background: #ffffff;
  border-color: #d7e1ea;
  color: #334155;
}
.workspace .tabs button.active {
  background: #17212b;
  border-color: #17212b;
  color: #ffffff;
}
.workspace .status-bars div,
.workspace .compact-list button,
.workspace .compact-list div,
.workspace .order-mainline div,
.workspace .order-details,
.workspace .evidence-grid div,
.workspace .arbitration-topic div,
.workspace .settlement-preview div,
.workspace .config-edit-info div,
.workspace .user-result-list button {
  background: #f8fafc;
  border-color: #d9e2ea;
  color: #17212b;
}
.workspace .compact-list.clear button,
.workspace .compact-list.clear div {
  background: #ffffff;
}
.workspace .evidence-files span,
.workspace .chat-pending span,
.workspace .attachment-grid a,
.workspace .attachment-grid button,
.workspace .message-images a,
.workspace .message-images button {
  background: #ffffff;
  border-color: #d9e2ea;
  color: #334155;
}
.workspace .order-objective,
.workspace .order-details summary,
.workspace .evidence-grid span,
.workspace .arbitration-topic span,
.workspace .settlement-preview p,
.workspace .profile-card p {
  color: #334155;
}
.workspace .wallet-hero strong {
  color: #17212b;
}
.workspace .reconciliation-status {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.workspace .reconciliation-status.bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.workspace .reconciliation-grid div {
  background: #f8fafc;
}
.workspace .reconciliation-grid strong { color: #17212b; }
.workspace .reconciliation-grid span { color: #64748b; }
.workspace .reconciliation-grid em { color: #15803d; }
.workspace .reconciliation-grid em.bad { color: #dc2626; }
.workspace .wallet-box div,
.workspace .platform-box div,
.workspace .reconciliation-grid div,
.workspace .manual-credit-confirm,
.workspace th,
.workspace td,
.workspace .thread-head,
.workspace .compose,
.workspace .support-line,
.workspace .timeline,
.workspace .timeline div,
.workspace .order-actions {
  border-color: #d9e2ea;
}
.workspace th {
  background: #f8fafc;
  color: #657382;
}
.workspace td {
  color: #263443;
}
.workspace .session-list.flat {
  border-right-color: #d9e2ea;
}
.workspace .session-list .session-open {
  background: #ffffff;
  border-color: #d9e2ea;
  color: #17212b;
}
.workspace .session-item.active .session-open {
  border-color: #2aa7bc;
  background: #edf9fb;
}
.workspace .thread-head span,
.workspace .session-list span,
.workspace .message-meta time,
.workspace .message small {
  color: #657382;
}
.workspace .messages {
  background: #f8fafc;
}
.workspace .message {
  background: #ffffff;
  border-color: #d9e2ea;
}
.workspace .message.mine {
  background: #eaf8ef;
  border-color: #b7dfc2;
}
.workspace .message-meta span,
.workspace .message p {
  color: #17212b;
}
.workspace .icon-upload {
  background: #ffffff;
  border-color: #cfd9e3;
  color: #17212b;
}
.workspace .empty {
  background: #f8fafc;
  border-color: #cbd6e2;
  color: #657382;
}
.workspace .empty.slim {
  background: transparent;
  color: #657382;
}
.workspace .badge.good { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.workspace .badge.warn { color: #92400e; border-color: #fed7aa; background: #fff7ed; }
.workspace .badge.bad { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.workspace .badge.neutral { color: #155e75; border-color: #bae6fd; background: #f0f9ff; }
.workspace .order-progress span {
  background: #ffffff;
  border-color: #d9e2ea;
  color: #657382;
}
.workspace .order-progress span.done {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.workspace .order-progress span.active {
  color: #ffffff;
  border-color: #17212b;
  background: #17212b;
}
.workspace .text-btn {
  color: #0f7890;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.64);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 60;
}
.accept-modal {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,29,35,.98), rgba(10,14,17,.98));
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  padding: 18px;
}
.accept-modal.light-modal {
  border-color: #d9e2ea;
  background: #ffffff;
  color: #17212b;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}
.accept-modal.light-modal .modal-head {
  border-bottom-color: #d9e2ea;
}
.accept-modal.light-modal .modal-head span {
  color: #0f7890;
}
.accept-modal.light-modal .modal-head h3,
.accept-modal.light-modal .modal-money b {
  color: #17212b;
}
.accept-modal.light-modal .icon-btn {
  background: #ffffff;
  border-color: #cfd9e3;
  color: #17212b;
}
.accept-modal.light-modal .modal-money div {
  background: #f8fafc;
  border-color: #d9e2ea;
}
.accept-modal.light-modal .modal-money small,
.accept-modal.light-modal p {
  color: #657382;
}
.accept-modal.light-modal .modal-rules span {
  background: #eef8fb;
  border-color: #bfdae3;
  color: #165568;
}
.accept-modal.light-modal .modal-form label {
  color: #334155;
}
.accept-modal.light-modal input,
.accept-modal.light-modal select,
.accept-modal.light-modal textarea {
  background: #ffffff;
  border-color: #cbd6e2;
  color: #17212b;
}
.accept-modal.light-modal .evidence-files span {
  background: #f8fafc;
  border-color: #d9e2ea;
  color: #334155;
}
.accept-modal.light-modal .actions {
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
}
.accept-modal.light-modal .btn {
  min-height: 42px;
  border-color: #cbd6e2;
  background: #ffffff;
  color: #243447;
  box-shadow: none;
}
.accept-modal.light-modal .btn:hover {
  background: #f1f5f9;
  border-color: #aebdcb;
  color: #17212b;
  transform: none;
}
.accept-modal.light-modal .btn.primary {
  border-color: #5b7f00;
  background: #d8ff64;
  color: #111800;
}
.accept-modal.light-modal .btn.primary:hover {
  border-color: #4d6c00;
  background: #c7ef50;
  color: #111800;
}
.accept-modal.light-modal .btn.danger {
  border-color: #dc9aa0;
  background: #fff1f2;
  color: #9f1d2a;
}
.accept-modal.light-modal .btn.danger:hover {
  background: #ffe4e6;
  color: #7f1d1d;
}
.accept-confirm-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
}
.accept-task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}
.accept-task-summary div,
.accept-objective {
  min-width: 0;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.accept-task-summary small,
.accept-objective small {
  display: block;
  margin-bottom: 6px;
  color: #667789;
  font-size: 12px;
  font-weight: 850;
}
.accept-task-summary b {
  display: block;
  color: #17212b;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.accept-objective {
  margin: 0 0 12px;
}
.accept-objective p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.accept-confirm-modal .accept-money {
  margin-top: 12px;
}
.accept-confirm-modal .accept-money div:first-child b {
  color: #5b7f00;
}
.worker-cancel-modal {
  max-width: 640px;
}
.worker-cancel-modal .modal-note {
  margin: 12px 0 0;
}
.strong-confirm-modal {
  max-width: 620px;
}
.strong-confirm-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
.strong-confirm-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
}
.strong-confirm-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.strong-confirm-list b {
  color: #17212b;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.strong-confirm-modal .actions {
  justify-content: flex-end;
}
.worker-cancel-form {
  gap: 10px;
}
.reason-choice-grid {
  display: grid;
  gap: 8px;
}
.reason-choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.reason-choice-grid label.active {
  border-color: #0f7890;
  background: #eef8fb;
  box-shadow: 0 0 0 3px rgba(15, 120, 144, .10);
}
.reason-choice-grid input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0f7890;
}
.reason-choice-grid span {
  line-height: 1.45;
}
.accept-confirm-copy {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #dce7c2;
  border-radius: 8px;
  background: #fbfff0;
  color: #41510f !important;
}

/* Workspace redesign: minimal neutral SaaS with AI purple accent. */
.workspace-shell {
  --ws-bg: #f7f7fb;
  --ws-surface: #ffffff;
  --ws-surface-soft: #f4f1ff;
  --ws-surface-quiet: #fbfbfe;
  --ws-line: #e6e2f0;
  --ws-line-strong: #d6d0e6;
  --ws-text: #171525;
  --ws-muted: #706b82;
  --ws-purple: #6d5dfc;
  --ws-purple-strong: #5b21d6;
  --ws-purple-soft: #eeeaff;
  --ws-danger: #dc2626;
  --ws-danger-soft: #fff1f2;
  --ws-warn: #b45309;
  --ws-warn-soft: #fff7ed;
  --ws-good: #15803d;
  --ws-good-soft: #f0fdf4;
  color-scheme: light;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--ws-bg);
  color: var(--ws-text);
}
.workspace-shell .workspace-sidebar {
  background: rgba(255,255,255,.9);
  border-right: 1px solid var(--ws-line);
  padding: 18px;
  gap: 10px;
  box-shadow: none;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: hidden;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 10px;
}
.workspace-brand-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.workspace-brand-button:hover .workspace-brand-mark {
  background: var(--ws-purple-strong);
}
.workspace-brand-button:focus-visible {
  outline: 3px solid rgba(109,93,252,.22);
  outline-offset: 4px;
  border-radius: 8px;
}
.workspace-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ws-purple);
  color: #fff;
  font-weight: 900;
}
.workspace-brand strong,
.workspace-brand span {
  display: block;
}
.workspace-brand strong {
  color: var(--ws-text);
  font-size: 15px;
}
.workspace-brand span {
  color: var(--ws-muted);
  font-size: 12px;
  margin-top: 2px;
}
.workspace-shell .workspace-account {
  background: var(--ws-surface-soft);
  border: 1px solid #dfd8ff;
  border-radius: 8px;
  padding: 12px;
  margin: 4px 0 8px;
  box-shadow: none;
}
.workspace-shell .workspace-account strong {
  color: var(--ws-text);
}
.workspace-shell .workspace-account span,
.workspace-shell .workspace-account small {
  color: var(--ws-muted);
}
.workspace-nav {
  display: grid;
  gap: 5px;
}
.workspace-shell .workspace-nav button,
.workspace-shell .side-footer button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #413b55;
  background: transparent;
  text-shadow: none;
  font-weight: 760;
}
.workspace-shell .workspace-nav button {
  position: relative;
}
.workspace-shell .workspace-nav button b {
  flex: 1;
  font: inherit;
}
.workspace-shell .workspace-nav button span {
  width: 20px;
  color: #8a829e;
  text-align: center;
}
.nav-unread,
.session-unread {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}
.workspace-shell .workspace-nav button.active .nav-unread {
  background: #fff;
  color: var(--ws-purple-strong);
}
.workspace-shell .workspace-nav button:hover {
  background: var(--ws-surface-quiet);
  border-color: var(--ws-line);
  color: var(--ws-text);
}
.workspace-shell .workspace-nav button.active {
  background: var(--ws-purple);
  border-color: var(--ws-purple);
  color: #fff;
}
.workspace-shell .workspace-nav button.active span {
  color: #fff;
}
.workspace-shell .side-footer {
  border-top: 0;
  padding-top: 0;
  margin-top: auto;
}
.workspace-shell .support-entry {
  background: var(--ws-surface) !important;
  border-color: var(--ws-line) !important;
  color: #413b55 !important;
}
.workspace-shell .support-entry span {
  background: #e4dcff;
}
.workspace-shell .password-entry {
  color: #4f4863 !important;
  background: #fbfaff !important;
  border-color: var(--ws-line) !important;
  font-weight: 700;
}
.workspace-shell .password-entry span {
  width: 28px;
  text-align: center;
  color: var(--ws-purple);
}
.workspace-shell .logout-entry {
  color: var(--ws-muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  font-weight: 650;
}
.workspace-shell .workspace-content {
  min-width: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 18% -10%, rgba(109,93,252,.09), transparent 30%),
    linear-gradient(180deg, #fbfbff 0%, var(--ws-bg) 180px);
}
.workspace-shell .workspace-topbar {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 40px rgba(52, 45, 86, .06);
  align-items: center;
}
.workspace-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #ded7ff;
  background: var(--ws-purple-soft);
  color: var(--ws-purple-strong);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 8px;
}
.workspace-shell .workspace-topbar h2 {
  color: var(--ws-text);
  font-size: 26px;
}
.workspace-shell .workspace-topbar p {
  color: var(--ws-muted);
}
.workspace-page {
  min-width: 0;
}
.workspace-shell .panel,
.workspace-shell .order-card,
.workspace-shell .stat,
.workspace-shell .next-card,
.workspace-shell .wallet-quick,
.workspace-shell .wallet-kpis div,
.workspace-shell .wallet-box,
.workspace-shell .platform-box,
.workspace-shell .clean-thread,
.workspace-shell .profile-card,
.workspace-shell .status-bars div,
.workspace-shell .compact-list button,
.workspace-shell .compact-list div,
.workspace-shell .order-mainline div,
.workspace-shell .order-details,
.workspace-shell .evidence-grid div,
.workspace-shell .arbitration-topic div,
.workspace-shell .settlement-preview div,
.workspace-shell .config-edit-info div,
.workspace-shell .user-result-list button {
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  color: var(--ws-text);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(52, 45, 86, .05);
}
.workspace-shell .next-grid,
.workspace-shell .dashboard-grid,
.workspace-shell .overview-grid.simple {
  gap: 12px;
}
.workspace-shell .next-card {
  min-height: 152px;
  padding: 16px;
}
.workspace-shell .next-card:hover {
  border-color: #c8bfff;
  background: #fdfcff;
}
.workspace-shell .next-card h3,
.workspace-shell .panel-title h3,
.workspace-shell .list-title h3,
.workspace-shell .table-panel h3,
.workspace-shell .insight-panel h3,
.workspace-shell .profile-card h3,
.workspace-shell .order-row-top h3,
.workspace-shell .wallet-actions h3,
.workspace-shell .order-title-cell b,
.workspace-shell .order-mainline strong,
.workspace-shell .timeline strong,
.workspace-shell .config-edit-info b {
  color: var(--ws-text);
}
.workspace-shell .next-card p,
.workspace-shell .panel-title p,
.workspace-shell .wallet-hero span,
.workspace-shell .wallet-hero p,
.workspace-shell .wallet-kpis small,
.workspace-shell .wallet-kpis span,
.workspace-shell .order-table td > span,
.workspace-shell .order-row-top span,
.workspace-shell .order-mainline small,
.workspace-shell .timeline span,
.workspace-shell .timeline p,
.workspace-shell .compact-list span,
.workspace-shell .profile-card p,
.workspace-shell label {
  color: var(--ws-muted);
}
.workspace-shell .next-card b,
.workspace-shell .text-btn,
.workspace-shell .user-result-list strong {
  color: var(--ws-purple-strong);
}
.workspace-shell .next-card > span {
  background: var(--ws-purple);
  border-color: var(--ws-purple);
  color: #fff;
}
.workspace-shell .clean-stat strong,
.workspace-shell .wallet-hero strong,
.workspace-shell .wallet-kpis b {
  color: var(--ws-text);
}
.workspace-shell .btn {
  background: var(--ws-surface);
  border-color: var(--ws-line-strong);
  color: var(--ws-text);
  border-radius: 8px;
  box-shadow: none;
}
.workspace-shell .btn:hover {
  background: #faf9ff;
  border-color: #c8bfff;
  transform: translateY(-1px);
}
.workspace-shell .btn.primary {
  background: var(--ws-purple);
  border-color: var(--ws-purple);
  color: #fff;
}
.workspace-shell .btn.danger {
  border-color: #fecaca;
  color: var(--ws-danger);
  background: var(--ws-danger-soft);
}
.workspace-shell input,
.workspace-shell select,
.workspace-shell textarea {
  background: var(--ws-surface);
  border-color: var(--ws-line-strong);
  color: var(--ws-text);
  border-radius: 8px;
}
.workspace-shell input:focus,
.workspace-shell select:focus,
.workspace-shell textarea:focus {
  border-color: var(--ws-purple);
  box-shadow: 0 0 0 3px rgba(109,93,252,.13);
}
.workspace-shell input:disabled {
  background: #f0eef7;
  color: #928aa3;
}
.workspace-shell .form-section-title {
  color: var(--ws-purple-strong);
  font-weight: 900;
  margin-top: 4px;
}
.workspace-shell .tabs {
  gap: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}
.workspace-shell .tabs button {
  background: var(--ws-surface);
  border-color: var(--ws-line);
  color: #4a435d;
  border-radius: 999px;
}
.workspace-shell .tabs button.active {
  background: var(--ws-purple);
  border-color: var(--ws-purple);
  color: #fff;
}
.workspace-shell .order-table-panel,
.workspace-shell .table-panel {
  background: var(--ws-surface);
  border-color: var(--ws-line);
  border-radius: 8px;
  padding: 12px;
}
.workspace-shell table {
  color: var(--ws-text);
}
.workspace-shell .table {
  --bs-table-color: var(--ws-text);
  --bs-table-bg: #fff;
  --bs-table-border-color: var(--ws-line);
  --bs-table-hover-color: var(--ws-text);
  --bs-table-hover-bg: #f8f7ff;
  --bs-table-active-bg: #f1efff;
  --bs-table-active-color: var(--ws-text);
  border: 1px solid #ebe7f4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(27, 22, 45, .03);
}
.workspace-shell .table-panel,
.workspace-shell .order-table-panel {
  overflow-x: auto;
}
.workspace-shell .table-panel h3 {
  padding: 0;
  margin: 0 0 12px;
}
.workspace-shell .table-toolbar {
  padding: 0 0 12px;
}
.workspace-shell .table > :not(caption) > * > * {
  padding: 8px 12px;
  background-color: var(--bs-table-bg);
  border-bottom-color: var(--ws-line);
  vertical-align: middle;
}
.workspace-shell .table > thead > tr > th,
.workspace-shell .table > tbody > tr:first-child > th,
.workspace-shell .table > tr:first-child > th {
  background: #f7f5fc;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  border-bottom-color: #e4deee;
}
.workspace-shell .table > tbody > tr:last-child > td,
.workspace-shell .table > tr:last-child > td {
  border-bottom-color: transparent;
}
.workspace-shell .table .select-col {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.workspace-shell .table input[type="checkbox"],
.workspace-shell .table .form-check-input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
}
.workspace-shell .table input[type="checkbox"]:disabled,
.workspace-shell .table .form-check-input:disabled {
  cursor: not-allowed;
}
.workspace-shell th {
  background: #faf9ff;
  color: var(--ws-muted);
  border-bottom-color: var(--ws-line);
}
.workspace-shell td {
  color: #2d293b;
  border-bottom-color: var(--ws-line);
}
.workspace-shell .table-actions {
  min-width: 220px;
}
.workspace-shell .badge {
  border-color: var(--ws-line);
}
.workspace-shell .badge.good {
  color: var(--ws-good);
  border-color: #bbf7d0;
  background: var(--ws-good-soft);
}
.workspace-shell .badge.warn {
  color: var(--ws-warn);
  border-color: #fed7aa;
  background: var(--ws-warn-soft);
}
.workspace-shell .badge.bad {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}
.workspace-shell .badge.neutral {
  color: var(--ws-purple-strong);
  border-color: #ddd6fe;
  background: var(--ws-purple-soft);
}
.workspace-shell .role-worker {
  color: var(--ws-good);
}
.workspace-shell .role-support {
  color: var(--ws-purple-strong);
}
.workspace-shell .role-owner {
  color: #9a3412;
}
.workspace-shell .role-admin {
  color: #be123c;
}
.workspace-shell .order-progress span {
  background: var(--ws-surface);
  border-color: var(--ws-line);
  color: var(--ws-muted);
}
.workspace-shell .order-progress span.done {
  color: var(--ws-good);
  border-color: #bbf7d0;
  background: var(--ws-good-soft);
}
.workspace-shell .order-progress span.active {
  color: #fff;
  border-color: var(--ws-purple);
  background: var(--ws-purple);
}
.workspace-shell .order-objective,
.workspace-shell .order-details summary,
.workspace-shell .evidence-grid span,
.workspace-shell .arbitration-topic span,
.workspace-shell .settlement-preview p,
.workspace-shell .message p {
  color: #302c3f;
}
.workspace-shell .wallet-layout,
.workspace-shell .chat-layout,
.workspace-shell .stack,
.workspace-shell .overview-layout {
  gap: 14px;
}
.workspace-shell .wallet-hero {
  align-items: center;
  background: linear-gradient(135deg, #fff, #f7f4ff);
}
.workspace-shell .wallet-quick {
  box-shadow: none;
}
.workspace-shell .wallet-box div,
.workspace-shell .platform-box div,
.workspace-shell .manual-credit-confirm,
.workspace-shell .thread-head,
.workspace-shell .compose,
.workspace-shell .support-line,
.workspace-shell .timeline,
.workspace-shell .timeline div,
.workspace-shell .order-actions,
.workspace-shell .session-list.flat {
  border-color: var(--ws-line);
}
.workspace-shell .user-result-list button.active {
  border-color: var(--ws-purple);
  background: var(--ws-purple-soft);
}
.workspace-shell .preset-hint {
  border-color: #ddd6fe;
  background: var(--ws-purple-soft);
  color: var(--ws-purple-strong);
}
.workspace-shell .chat-layout {
  grid-template-columns: minmax(240px, 304px) minmax(0, 1fr);
  height: clamp(540px, calc(100dvh - 190px), 780px);
}
.workspace-shell .session-list {
  background: transparent;
}
.workspace-shell .session-list .session-open {
  background: var(--ws-surface);
  border-color: var(--ws-line);
  color: var(--ws-text);
  position: relative;
  padding-right: 40px;
}
.workspace-shell .session-item.active .session-open {
  border-color: var(--ws-purple);
  background: var(--ws-purple-soft);
}
.workspace-shell .session-filter-tabs button {
  background: #fff;
  border-color: var(--ws-line);
  color: var(--ws-muted);
}
.workspace-shell .session-filter-tabs button.active {
  background: var(--ws-purple-soft);
  border-color: var(--ws-purple);
  color: var(--ws-purple-strong);
}
.workspace-shell .session-list span,
.workspace-shell .thread-head span,
.workspace-shell .message-meta time,
.workspace-shell .message small {
  color: var(--ws-muted);
}
.session-unread {
  position: absolute;
  top: 10px;
  right: 10px;
}
.workspace-shell .session-state.pending { color: #a16207; }
.workspace-shell .session-state.active { color: #15803d; }
.workspace-shell .session-state.closed { color: #64748b; }
.workspace-shell .closed-compose-note {
  background: #f8fafc;
  border-top-color: var(--ws-line);
  color: var(--ws-muted);
}
.workspace-shell .clean-thread {
  background: var(--ws-surface);
  box-shadow: none;
}
.workspace-shell .compose {
  background: #fff;
  border-top-color: var(--ws-line);
}
.workspace-shell .compose input {
  color: var(--ws-text);
}
.workspace-shell .compose input::placeholder {
  color: var(--ws-muted);
}
.workspace-shell .messages {
  background: #fff;
  padding: 14px 18px;
}
.workspace-shell .message {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 3px 0;
  max-width: min(76%, 720px);
}
.workspace-shell .message.mine {
  background: transparent;
  border: 0;
}
.workspace-shell .message-meta span {
  color: var(--ws-text);
}
.workspace-shell .chat-role {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
}
.chat-status-dot {
  width: 9px;
  height: 9px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.chat-status-dot.live {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.chat-status-dot.offline {
  background: #dc2626;
}
.workspace-shell .message p {
  display: inline-block;
  margin-top: 5px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f3f4f8;
  color: #272334;
  box-shadow: none;
}
.workspace-shell .message.mine p {
  background: var(--ws-purple);
  color: #fff;
}
.workspace-shell .message.mine .message-meta {
  justify-content: flex-end;
}
.workspace-shell .message-images {
  max-width: 420px;
}
.workspace-shell .icon-upload {
  background: var(--ws-surface);
  border-color: var(--ws-line-strong);
  color: var(--ws-purple-strong);
}
.workspace-shell .evidence-files span,
.workspace-shell .chat-pending span,
.workspace-shell .attachment-grid a,
.workspace-shell .attachment-grid button,
.workspace-shell .message-images a,
.workspace-shell .message-images button {
  background: var(--ws-surface);
  border-color: var(--ws-line);
  color: var(--ws-text);
}
.workspace-shell .attachment-grid button {
  cursor: pointer;
  text-align: left;
}
.workspace-shell .empty {
  background: var(--ws-surface-quiet);
  border-color: var(--ws-line-strong);
  color: var(--ws-muted);
}
.workspace-shell .empty.slim {
  background: transparent;
}
.workspace-shell .empty.empty-action {
  display: grid;
  justify-items: start;
  gap: 8px;
  text-align: left;
}
.workspace-shell .empty.empty-action strong {
  color: #17212b;
  font-size: 15px;
}
.workspace-shell .empty.empty-action span {
  color: #667789;
  line-height: 1.55;
}
.order-next-inline {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.order-next-inline.good { color: #137a3f; }
.order-next-inline.warn { color: #a16207; }
.order-next-inline.danger { color: #b4232d; }
.order-next-inline.neutral { color: #64748b; }
.order-next-panel {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 5px;
}
.order-next-panel strong {
  color: #17212b;
  font-size: 15px;
}
.order-next-panel span {
  color: #526273;
  line-height: 1.55;
}
.order-next-panel.good {
  border-color: #b7e3c3;
  background: #f0fdf4;
}
.order-next-panel.warn {
  border-color: #f2d49b;
  background: #fffbeb;
}
.order-next-panel.danger {
  border-color: #f4b7bd;
  background: #fff1f2;
}
.workspace-shell .choice-chip {
  border-color: var(--ws-line-strong);
  background: var(--ws-surface);
  color: #4a435d;
}
.workspace-shell .choice-chip.active {
  border-color: var(--ws-purple);
  background: var(--ws-purple-soft);
  color: var(--ws-purple-strong);
}
.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.publish-main {
  display: grid;
  gap: 14px;
}
.workspace-shell .task-template-panel {
  padding: 16px;
}
.task-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.task-template-grid button {
  min-height: 86px;
  display: grid;
  gap: 7px;
  align-content: start;
  text-align: left;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ws-text);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.task-template-grid button:hover {
  border-color: var(--ws-purple);
  background: var(--ws-purple-soft);
  transform: translateY(-1px);
}
.task-template-grid strong {
  font-size: 14px;
}
.task-template-grid span {
  color: var(--ws-muted);
  font-size: 12px;
  line-height: 1.45;
}
.workspace-shell .publish-section {
  padding: 18px;
}
.admin-risk-panel {
  display: grid;
  gap: 14px;
}
.admin-risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-risk-grid button {
  min-height: 104px;
  display: grid;
  gap: 7px;
  align-content: start;
  text-align: left;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ws-text);
  cursor: pointer;
}
.risk-count {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef2ff;
  color: #5145cd;
  font-weight: 900;
}
.risk-count.warn {
  background: #fffbeb;
  color: #a16207;
}
.risk-count.bad {
  background: #fef2f2;
  color: #dc2626;
}
.risk-count.good {
  background: #f0fdf4;
  color: #15803d;
}
.admin-risk-grid small {
  color: var(--ws-muted);
  line-height: 1.45;
}
.workspace-shell .priority-section {
  border-color: #cfc5ff;
  background: linear-gradient(180deg, #fff, #fcfbff);
}
.section-kicker {
  display: grid;
  grid-template-columns: 34px minmax(0, auto) 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-kicker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ws-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.section-kicker b {
  color: var(--ws-text);
  font-size: 16px;
}
.section-kicker em {
  color: var(--ws-muted);
  font-style: normal;
  font-size: 12px;
  justify-self: end;
}
.workspace-shell label > span,
.choice-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3a344d;
  font-weight: 850;
}
.field-required,
.field-optional {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
}
.field-required {
  color: var(--ws-purple-strong);
  background: var(--ws-purple-soft);
  border: 1px solid #d8ceff;
}
.field-optional {
  color: var(--ws-muted);
  background: #f3f1f8;
  border: 1px solid var(--ws-line);
}
.field-important textarea,
.field-important input {
  min-height: 48px;
}
.money-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.evidence-drop input {
  min-height: 52px;
  background: #faf9ff;
}
.publish-summary {
  position: sticky;
  top: 88px;
  padding: 18px;
}
.summary-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.summary-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: var(--ws-surface-quiet);
}
.summary-list span,
.summary-objective span {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 760;
}
.summary-list b {
  color: var(--ws-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary-list b.danger {
  color: var(--ws-danger);
}
.summary-warning {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 8px;
  padding: 10px 12px;
  margin: -2px 0 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.summary-objective {
  border: 1px solid #d8ceff;
  background: var(--ws-purple-soft);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.summary-objective.quiet {
  border-color: var(--ws-line);
  background: var(--ws-surface-quiet);
}
.summary-objective p {
  margin: 6px 0 0;
  color: #302c3f;
  line-height: 1.5;
  font-size: 13px;
}
.workbench-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.workbench-intro h3 {
  margin: 0 0 6px;
  color: var(--ws-text);
}
.workbench-intro p {
  margin: 0;
  color: var(--ws-muted);
  line-height: 1.5;
}
.intro-metrics {
  min-width: 110px;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.intro-metrics b {
  color: var(--ws-purple-strong);
  font-size: 30px;
}
.intro-metrics span {
  color: var(--ws-muted);
  font-size: 12px;
}
.filter-tabs {
  padding: 4px;
  border: 1px solid var(--ws-line);
  background: var(--ws-surface);
  border-radius: 8px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}
.workspace-shell .order-filter-tabs button {
  border-radius: 6px;
  border: 0;
  background: transparent;
  min-height: 36px;
  white-space: nowrap;
}
.workspace-shell .order-filter-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0eef7;
  color: var(--ws-muted);
  font-size: 12px;
}
.workspace-shell .order-filter-tabs button.active span {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.order-stat-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 14px 16px;
}
.order-stat-panel div {
  min-width: 0;
  padding: 2px 16px;
  border-left: 1px solid var(--ws-line);
}
.order-stat-panel div:first-child {
  border-left: 0;
  padding-left: 0;
}
.order-stat-panel span,
.order-stat-panel b {
  display: block;
}
.order-stat-panel span {
  color: var(--ws-muted);
  font-size: 12px;
}
.order-stat-panel b {
  margin-top: 5px;
  color: var(--ws-text);
  font-size: 22px;
}
.order-workbench .order-table-panel {
  padding-top: 12px;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ws-muted);
  font-size: 13px;
}
.table-pagination b {
  color: var(--ws-text);
}
.table-pagination.mini {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ws-line);
}
.profile-redesign {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.profile-hero-card {
  padding: 18px;
  display: grid;
  gap: 18px;
}
.profile-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-avatar-wrap {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.profile-avatar-wrap img,
.profile-avatar-wrap .avatar.large {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  object-fit: cover;
  margin: 0;
  border: 1px solid var(--ws-line);
  background: var(--ws-purple-soft);
  color: var(--ws-purple-strong);
}
.avatar-upload-btn {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ws-line-strong);
  background: var(--ws-surface);
  color: var(--ws-purple-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}
.avatar-upload-btn input {
  display: none;
}
.profile-preview-copy h3 {
  margin: 0 0 6px;
  color: var(--ws-text);
  font-size: 28px;
}
.profile-preview-copy p {
  margin: 0;
  color: var(--ws-muted);
}
.profile-summary-preview {
  margin-top: 12px !important;
  color: #3a344d !important;
  line-height: 1.6;
}
.profile-summary-preview.muted {
  color: var(--ws-muted) !important;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  justify-content: flex-start;
}
.profile-tags span {
  border: 1px solid var(--ws-line);
  background: var(--ws-surface-quiet);
  border-radius: 999px;
  color: var(--ws-muted);
  padding: 5px 8px;
  font-size: 12px;
}
.pro-profile-editor {
  padding: 18px;
}
.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.profile-hero-stats div {
  border: 1px solid var(--ws-line);
  background: var(--ws-surface-quiet);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.profile-hero-stats span,
.profile-hero-stats b {
  display: block;
}
.profile-hero-stats span {
  color: var(--ws-muted);
  font-size: 12px;
}
.profile-hero-stats b {
  color: var(--ws-text);
  font-size: 20px;
  margin-top: 5px;
  white-space: nowrap;
}
.profile-edit-sections {
  display: grid;
  gap: 16px;
}
.profile-edit-section {
  border: 1px solid var(--ws-line);
  background: var(--ws-surface-quiet);
  border-radius: 8px;
  padding: 14px;
}
.compact-kicker {
  grid-template-columns: 30px minmax(0, auto) 1fr;
  margin-bottom: 12px;
}
.compact-kicker span {
  width: 30px;
  height: 30px;
}
.profile-save-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.admin-user-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.admin-user-workbench .admin-search-panel {
  padding-bottom: 16px;
}
.admin-user-workbench .admin-user-table-panel {
  width: 100%;
  overflow: hidden;
}
.admin-user-filters {
  display: grid;
  grid-template-columns: 180px minmax(320px, 1fr) 112px;
  gap: 12px;
  align-items: end;
}
.admin-user-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
}
.admin-user-filters label > span {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-user-filters input,
.admin-user-filters select,
.admin-user-filters button {
  height: 44px;
}
.admin-user-table-panel table {
  width: 100%;
  border-collapse: collapse;
}
.admin-user-table-panel table th {
  padding-top: 8px;
  padding-bottom: 8px;
}
.admin-user-table-panel table td {
  height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}
.admin-user-table-panel tr.active td {
  background: #f5f1ff;
}
.admin-user-table-panel td > span {
  display: block;
  color: var(--ws-muted);
  font-size: 12px;
  margin-top: 3px;
}
.admin-user-table-panel td:first-child strong {
  display: block;
  color: var(--ws-text);
  font-size: 14px;
  margin-bottom: 4px;
}
.admin-user-table-panel td:last-child {
  text-align: right;
}
.admin-user-edit-modal {
  max-width: 560px;
}
.admin-user-edit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.admin-user-edit-summary div {
  border: 1px solid var(--ws-line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
}
.admin-user-edit-summary small {
  display: block;
  color: var(--ws-muted);
  margin-bottom: 6px;
}
.admin-user-edit-summary b {
  color: var(--ws-text);
  word-break: break-word;
}
.admin-user-edit-form select {
  height: 44px;
}
.admin-password-reset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--ws-line);
  background: #fbfaff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.admin-password-reset label {
  display: grid;
  gap: 7px;
  margin: 0;
}
.password-modal {
  max-width: 460px;
}
.finance-dashboard .wallet-hero {
  min-height: 180px;
}
.finance-dashboard .wallet-kpis div {
  min-height: 104px;
}
.wallet-action-panel {
  grid-column: 1 / -1;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wallet-action-panel h3 {
  margin: 0 0 5px;
  color: var(--ws-text);
}
.wallet-action-panel p {
  margin: 0;
  color: var(--ws-muted);
  line-height: 1.5;
}
.session-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 4px 2px 8px;
}
.session-list-head b {
  color: var(--ws-text);
}
.session-list-head span {
  color: var(--ws-muted);
  font-size: 12px;
}
.arbitration-workbench .arbitration-form-panel {
  padding: 18px;
}
.arbitration-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.arbitration-toolbar span {
  color: var(--ws-muted);
  font-size: 13px;
}
.arbitration-list {
  display: grid;
  gap: 0;
  padding: 6px;
}
.arbitration-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(140px, .8fr) minmax(140px, .8fr) minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--ws-line);
}
.arbitration-row:last-child {
  border-bottom: 0;
}
.arbitration-row strong,
.arbitration-row b {
  color: var(--ws-text);
}
.arbitration-row span,
.arbitration-row small {
  display: block;
  color: var(--ws-muted);
  font-size: 12px;
  margin-top: 4px;
}
.arbitration-modal-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6e2f0;
}
.arbitration-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arbitration-evidence-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.arbitration-evidence-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6e2f0;
  border-radius: 8px;
  background: #fbfbfe;
}
.arbitration-evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.arbitration-evidence-meta small {
  color: #706b82;
  font-size: 12px;
}
.arbitration-evidence-meta b {
  color: #5b21d6;
  font-size: 12px;
}
.arbitration-evidence-card p {
  margin: 0;
  color: #302c3f;
  line-height: 1.55;
  white-space: pre-wrap;
}
.arbitration-evidence-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.arbitration-evidence-images button {
  min-height: 120px;
  padding: 0;
  border: 1px solid #d8d2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.arbitration-evidence-images img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.config-workbench {
  display: grid;
  gap: 14px;
}
.config-table-panel {
  padding-top: 4px;
}

@media (max-width: 1080px) {
  .workspace-shell {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }
  .workspace-shell > * {
    min-width: 0;
  }
  .workspace-shell .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ws-line);
    position: static;
    height: auto;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .workspace-brand,
  .workspace-shell .workspace-account {
    max-width: 360px;
  }
  .workspace-nav {
    display: flex;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .workspace-shell .workspace-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .workspace-shell .side-spacer {
    display: none;
  }
  .workspace-shell .side-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .workspace-shell .side-footer button {
    min-width: 0;
  }
  .publish-layout,
  .admin-user-workbench,
  .profile-workbench {
    grid-template-columns: 1fr;
  }
  .pro-profile-stats {
    grid-column: 1;
  }
  .publish-summary {
    position: static;
  }
  .admin-user-workbench .admin-search-panel,
  .admin-user-workbench .admin-user-table-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .workspace-shell .workspace-sidebar {
    padding: 12px;
  }
  .workspace-brand,
  .workspace-shell .workspace-account {
    max-width: 100%;
  }
  .workspace-shell .workspace-content {
    padding: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .workspace-shell .workspace-topbar {
    display: grid;
    gap: 12px;
    align-items: start;
  }
  .workspace-shell .next-grid,
  .workspace-shell .dashboard-grid,
  .workspace-shell .overview-grid.simple,
  .order-stat-panel,
  .profile-hero-main,
  .workspace-shell .workspace-form-grid,
  .workspace-shell .profile-grid,
  .workspace-shell .wallet-kpis,
  .workspace-shell .manual-credit-grid,
  .workspace-shell .user-result-list,
  .workspace-shell .platform-box {
    grid-template-columns: 1fr;
  }
  .order-stat-panel div {
    border-left: 0;
    border-top: 1px solid var(--ws-line);
    padding: 12px 0;
  }
  .order-stat-panel div:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .profile-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-shell .wallet-hero,
  .workspace-shell .manual-credit-confirm,
  .workspace-shell .order-row-top {
    display: grid;
  }
  .workspace-shell .chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 210px) minmax(0, 1fr);
    height: calc(100dvh - 126px);
    min-height: 560px;
  }
  .workspace-shell .side-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace-shell .side-footer button {
    padding-inline: 8px;
  }
  .workspace-shell .session-list.flat {
    border-right: 0;
    border-bottom: 1px solid var(--ws-line);
    padding: 0 0 10px;
  }
  .section-kicker {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .section-kicker em {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .money-grid,
  .summary-list div {
    grid-template-columns: 1fr;
  }
  .workbench-intro {
    display: grid;
  }
  .intro-metrics {
    justify-items: start;
  }
  .wallet-action-panel,
  .table-pagination,
  .arbitration-toolbar {
    display: grid;
  }
  .arbitration-row,
  .arbitration-create-form,
  .arbitration-evidence-images,
  .admin-user-filters {
    grid-template-columns: 1fr;
  }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 14px;
}
.modal-head span { color: var(--accent-2); font-size: 12px; font-weight: 900; }
.modal-head h3 { margin: 6px 0 0; }
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0f13;
  color: var(--text);
}
.modal-money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.modal-money div {
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0f13;
  border-radius: 7px;
  padding: 10px;
}
.modal-money small { display: block; color: var(--muted); margin-bottom: 5px; }
.modal-money b { color: var(--accent); }
.accept-modal p { color: #c5cdd3; line-height: 1.6; }
.contact-modal { max-width: 560px; }
.config-edit-modal { max-width: 620px; }
.action-modal { max-width: 680px; }
.modal-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.modal-form label {
  display: grid;
  gap: 7px;
  color: #dce5e9;
  font-size: 13px;
  font-weight: 800;
}

.modal-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
}

.modal-form .checkbox-line input {
  width: 16px;
  height: 16px;
}

.modal-form textarea {
  min-height: 86px;
  resize: vertical;
}
.modal-form .reason-choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.modal-form .reason-choice-grid label.active {
  border-color: #0f7890;
  background: #eef8fb;
  box-shadow: 0 0 0 3px rgba(15, 120, 144, .10);
}
.modal-form .reason-choice-grid input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0f7890;
}
.settlement-preview {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.settlement-preview div {
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(8,12,15,.72);
  border-radius: 7px;
  padding: 10px;
}
.settlement-preview small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.settlement-preview p {
  margin: 0;
  color: #d7e0e4;
  line-height: 1.55;
  font-size: 13px;
}
.config-edit-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.config-edit-info div {
  border: 1px solid rgba(255,255,255,.075);
  background: #0b0f13;
  border-radius: 7px;
  padding: 10px;
}
.config-edit-info small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.config-edit-info b {
  color: #e9eff2;
  word-break: break-word;
}
.config-edit-field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.config-edit-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.config-edit-field span {
  color: var(--muted);
  min-width: 26px;
}
.order-detail-modal {
  width: min(980px, 100%);
  max-height: min(86vh, 980px);
  overflow: auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,29,35,.98), rgba(10,14,17,.98));
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  padding: 18px;
}
.order-detail-modal.light-detail-modal {
  background: #fff;
  border-color: #e6e2f0;
  color: #171525;
  box-shadow: 0 30px 90px rgba(52, 45, 86, .18);
}
.light-detail-modal .modal-head {
  border-bottom-color: #e6e2f0;
}
.light-detail-modal .modal-head span {
  color: #5b21d6;
}
.light-detail-modal .icon-btn {
  background: #fbfbfe;
  border-color: #d6d0e6;
  color: #171525;
}
.light-detail-modal .detail-summary div,
.light-detail-modal .detail-grid section,
.light-detail-modal .detail-block {
  background: #fbfbfe;
  border-color: #e6e2f0;
}
.light-detail-modal .detail-summary small,
.light-detail-modal .detail-line span {
  color: #706b82;
}
.light-detail-modal .detail-summary strong,
.light-detail-modal .detail-line b,
.light-detail-modal .detail-grid h4,
.light-detail-modal .detail-block h4 {
  color: #171525;
}
.light-detail-modal .detail-grid p {
  color: #3b354e;
}
.light-detail-modal .detail-line {
  border-bottom-color: #e6e2f0;
}
.light-detail-modal .actions {
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
}
.light-detail-modal .btn {
  min-height: 42px;
  border-color: #d6d0e6;
  background: #ffffff;
  color: #241f35;
  box-shadow: none;
}
.light-detail-modal .btn:hover {
  background: #f3f0ff;
  border-color: #b9aed8;
  color: #171525;
  transform: none;
}
.light-detail-modal .btn.primary {
  border-color: #6d5dfc;
  background: #6d5dfc;
  color: #ffffff;
}
.light-detail-modal .btn.primary:hover {
  background: #5b21d6;
  border-color: #5b21d6;
  color: #ffffff;
}
.light-detail-modal .btn.danger {
  border-color: #f0a3aa;
  background: #fff1f2;
  color: #a51f2d;
}
.light-detail-modal .btn.danger:hover {
  background: #ffe4e6;
  border-color: #e1848e;
  color: #7f1d1d;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.detail-summary div, .detail-grid section, .detail-block {
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(11,15,19,.82);
  border-radius: 7px;
  padding: 12px;
}
.detail-summary small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-summary strong {
  color: var(--accent);
  font-size: 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-grid h4, .detail-block h4 {
  margin: 0 0 10px;
}
.detail-grid p {
  margin: 8px 0 0;
  color: #c2ccd2;
  line-height: 1.55;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 8px 0;
}
.detail-line:last-child { border-bottom: 0; }
.detail-line span {
  color: var(--muted);
}
.detail-line b {
  text-align: right;
  color: #e8eff2;
}
.detail-block {
  margin-top: 10px;
}
.modal-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}
.modal-rules span {
  border: 1px solid rgba(98,214,232,.22);
  background: rgba(98,214,232,.06);
  color: #d9f7fb;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}
.image-preview-backdrop {
  z-index: 80;
}
.image-preview-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: min(88dvh, 900px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 80px rgba(10, 10, 20, .28);
}
.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  color: #171525;
}
.image-preview-head span {
  min-width: 0;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-preview-head .icon-btn {
  color: #353043;
  border-color: #e5e7eb;
  background: #f8fafc;
}
.image-preview-modal img {
  max-width: 100%;
  max-height: calc(88dvh - 70px);
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  z-index: 50;
}
.app-toast.error { color: #ffc2c5; border-color: #703036; }

@media (max-width: 1080px) {
  .hero, .workspace, .wallet-layout, .chat-layout, .overview-grid, .profile-grid, .overview-grid.simple { grid-template-columns: 1fr; }
  .chat-layout {
    grid-template-rows: minmax(150px, 210px) minmax(0, 1fr);
    height: clamp(560px, calc(100dvh - 150px), 780px);
  }
  .hero { gap: 30px; }
  .hero-copy { min-height: 480px; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid, .market-grid, .worker-grid, .dashboard-grid, .admin-risk-grid, .ops-board, .process-grid, .process-lane, .process-lane.professional, .cyber-timeline, .rule-grid, .task-showcase, .trust-stack, .scenario-grid, .wallet-kpis, .reconciliation-grid, .task-template-grid, .next-grid, .order-mainline, .detail-summary, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-stack article:nth-child(1),
  .trust-stack article:nth-child(n+2),
  .scenario-grid article,
  .scenario-grid article:nth-child(1),
  .scenario-grid article:nth-child(2) {
    grid-column: span 1;
    grid-row: auto;
  }
  .trust-stack article:nth-child(1) {
    min-height: 260px;
  }
  .cyber-timeline {
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 14px;
    overflow: visible;
  }
  .cyber-timeline article,
  .cyber-timeline article:last-child {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: #111820;
  }
  .control-panel { grid-template-columns: 1fr; }
  .assurance-stage,
  .scenario-stage,
  .rules-stage {
    grid-template-columns: 1fr;
  }
  .rules-title {
    position: static;
  }
  .flow-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-page-head,
  .market-row,
  .market-row-top {
    grid-template-columns: 1fr;
  }
  .market-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .worker-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-row-action {
    justify-content: flex-start;
  }
  .market-row-action .btn {
    width: auto;
    min-width: 132px;
  }
  .flow-rail article,
  .flow-rail article:last-child {
    min-height: 220px;
    border-right: 1px solid #dfe5d9;
    border-bottom: 1px solid #dfe5d9;
  }
  .rules-lines div {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .rules-lines span {
    grid-column: 2;
  }
  .final-cta { display: grid; }
  .final-actions { justify-content: flex-start; }
  .process-lane:before { content: none; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-hero, .wallet-actions, .platform-box, .table-panel { grid-column: 1 / -1; }
  .overview-hero, .wallet-hero { display: grid; }
  .overview-money { justify-items: start; }
  .work-head-metric { justify-items: start; }
  .session-list.flat { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .thread-head strong, .thread-head div span { max-width: 72vw; }
}
@media (max-width: 720px) {
  html,
  body,
  .site,
  .public-main,
  .top-nav {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .top-nav { height: auto; padding: 14px; flex-wrap: wrap; gap: 16px; }
  .brand {
    flex: 1 1 150px;
    min-width: 0;
    max-width: calc(100vw - 170px);
  }
  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-actions {
    flex: 0 0 auto;
  }
  .main-nav {
    order: 3;
    width: calc(100vw - 28px);
    flex: 0 0 100%;
    overflow-x: auto;
    gap: 10px;
  }
  .main-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .hero, .section, .work-main { padding: 24px 14px; }
  .hero { min-height: auto; margin-top: 0; padding-top: 36px; padding-bottom: 42px; }
  .hero-copy { min-height: auto; }
  .hero-panel.command-panel { display: none; }
  .metric-row { margin-top: 28px; }
  .hero-copy h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .hero-copy p,
  .cyber-heading p,
  .control-copy p,
  .final-cta p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .section-head h2 { font-size: 30px; }
  .section-head.vertical p { white-space: normal; }
  .feature-grid, .market-grid, .worker-grid, .dashboard-grid, .admin-risk-grid, .form-grid, .metric-row, .task-meta, .evidence-grid, .attachment-grid, .order-progress, .ops-board, .process-grid, .process-lane, .process-lane.professional, .cyber-timeline, .control-matrix, .rule-grid, .task-showcase, .trust-stack, .scenario-grid, .filter-bar, .timeline div, .wallet-kpis, .platform-box, .reconciliation-grid, .task-template-grid, .deposit-row, .manual-credit-grid, .user-result-list, .arbitration-topic, .modal-money, .next-grid, .order-mainline, .detail-summary, .detail-grid, .config-edit-info { grid-template-columns: 1fr; }
  .home-stage-copy h2,
  .flow-title h2,
  .scenario-focus h2,
  .rules-title h2,
  .home-closing h2 {
    max-width: 100%;
    width: 100%;
    font-size: 28px;
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .home-stage-copy p,
  .scenario-focus p,
  .rules-title p,
  .home-closing p {
    font-size: 15px;
  }
  .assurance-stage,
  .scenario-stage,
  .rules-stage {
    gap: 22px;
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .escrow-ledger,
  .scenario-focus,
  .scenario-list,
  .flow-rail {
    width: 100%;
    min-width: 0;
  }
  .ledger-head {
    display: grid;
    padding: 20px;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .ledger-row small {
    grid-row: auto;
  }
  .flow-rail {
    grid-template-columns: 1fr;
  }
  .flow-rail article,
  .flow-rail article:last-child {
    min-height: auto;
    padding: 22px;
    border-right: 0;
  }
  .flow-rail article span {
    font-size: 34px;
    margin-bottom: 22px;
  }
  .scenario-focus {
    min-height: auto;
    padding: 24px;
  }
  .scenario-list div {
    padding: 22px;
  }
  .rules-lines div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .rules-lines span {
    grid-column: auto;
  }
  .home-closing {
    display: grid;
  }
  .public-page {
    padding: 36px 14px 42px;
  }
  .public-page * {
    max-width: 100%;
  }
  .public-page-head,
  .public-page-stats,
  .market-filter-panel,
  .market-list,
  .market-row,
  .market-row-top,
  .market-row-main,
  .market-row-terms,
  .worker-directory,
  .merc-card {
    min-width: 0;
    max-width: 100%;
  }
  .public-page-head {
    gap: 18px;
    margin-bottom: 18px;
  }
  .public-page-head h2 {
    font-size: 32px;
    line-height: 1.16;
  }
  .public-page-head p {
    font-size: 15px;
    width: 100%;
    max-width: calc(100vw - 28px);
    white-space: normal;
    word-break: break-all;
  }
  .public-page-stats {
    grid-template-columns: 1fr;
  }
  .public-page-stats div,
  .public-page-stats div:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .public-page-stats div:last-child {
    border-bottom: 0;
  }
  .market-filter-panel,
  .market-row,
  .market-row-top,
  .market-row-terms,
  .worker-directory {
    grid-template-columns: 1fr;
  }
  .market-filter-panel {
    padding: 14px;
  }
  .market-row {
    gap: 14px;
    padding: 16px;
  }
  .market-row-description {
    max-width: 100%;
  }
  .market-row-main h3 {
    font-size: 20px;
  }
  .market-row-main p,
  .merc-card p {
    word-break: break-all;
  }
  .accept-task-summary {
    grid-template-columns: 1fr;
  }
  .accept-confirm-modal {
    padding: 16px;
  }
  .market-row-kicker span,
  .market-row-tags span,
  .merc-tags span {
    white-space: normal;
  }
  .market-row-terms div,
  .market-row-terms div:nth-child(2n),
  .market-row-terms div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .market-row-terms div:last-child {
    border-bottom: 0;
  }
  .market-row-action .btn {
    width: 100%;
  }
  .merc-card {
    min-height: auto;
    padding: 18px;
  }
  .merc-stats {
    grid-template-columns: 1fr;
  }
  .merc-stats div,
  .merc-stats div:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .merc-stats div:last-child {
    border-bottom: 0;
  }
  .trust-stack article:nth-child(1),
  .trust-stack article:nth-child(n+2),
  .scenario-grid article,
  .scenario-grid article:nth-child(1),
  .scenario-grid article:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
  .trust-stack article:nth-child(1),
  .scenario-grid article:nth-child(1),
  .scenario-grid article:nth-child(2) {
    min-height: auto;
  }
  .rule-grid {
    padding: 12px 18px;
  }
  .trust-stack article,
  .scenario-grid article,
  .cyber-timeline article,
  .control-panel {
    padding: 20px;
  }
  .cyber-heading,
  .control-copy,
  .final-cta > div {
    max-width: 100%;
    min-width: 0;
  }
  .cyber-heading h2, .control-copy h2, .final-cta h2 {
    max-width: 100%;
    width: 100%;
    font-size: 20px;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .cyber-timeline article { min-height: auto; }
  .section-head, .work-head, .rule-list div, .order-head { display: grid; }
  .order-row-top, .manual-credit-confirm { display: grid; }
  .order-detail-modal { padding: 14px; max-height: 90vh; }
  .detail-line { display: grid; }
  .detail-line b { text-align: left; }
  .message { max-width: 100%; }
  .chat-layout {
    height: calc(100dvh - 120px);
    min-height: 560px;
  }
  .compose { grid-template-columns: minmax(0, 1fr) auto auto; }
  .support-line { grid-template-columns: 1fr; }
  .task-card p, .worker-summary { min-height: auto; }
  .site-footer { display: grid; padding: 13px 14px 15px; }
  .footer-actions { justify-content: stretch; }
  .footer-actions .btn { flex: 1; min-width: 0; }
}
