/* 链单 LinkGig — design system */
:root {
  --ink: #16251f;
  --ink-2: #213b33;
  --ink-3: #38544b;
  --teal: #0f6b5c;
  --teal-2: #148573;
  --mint: #e4f3ec;
  --mint-2: #cfe9dd;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --sand: #efe8d8;
  --sand-2: #f5efe4;
  --orange: #e86632;
  --orange-2: #f2a05a;
  --amber: #c98a1e;
  --red: #b42318;
  --blue: #1d4ed8;
  --violet: #6d28d9;
  --line: #e5dfd2;
  --line-2: #d8d0c0;
  --muted: #6d776f;
  --muted-2: #8a938b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(22, 37, 31, .05);
  --shadow: 0 12px 30px rgba(22, 37, 31, .07);
  --shadow-lg: 0 30px 70px rgba(22, 37, 31, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --max: 1180px;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.public-body { background: var(--cream); }
body.app-body { background: #f2f0e9; }
body.admin-body { background: #f1efe8; }
body.auth-body { background: var(--cream); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--orange-2); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(232, 102, 50, .35); outline-offset: 2px; }

.icon { display: inline-block; vertical-align: -0.18em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: -.01em; }
.prose { color: var(--ink-3); font-size: 14.5px; line-height: 1.85; overflow-wrap: anywhere; }
.prose p { margin: 0 0 10px; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.container.narrow { max-width: 720px; }
.hidden, [hidden] { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 650; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 34px; padding: 6px 13px; font-size: 13px; }
.btn-xs { min-height: 28px; padding: 4px 10px; font-size: 12px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(22, 37, 31, .14); }
.btn-primary:hover { background: var(--teal); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, .55); }
.btn-ghost { background: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: rgba(22, 37, 31, .06); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand-2); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8f1a12; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(22, 37, 31, .08); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-weight: 650; font-size: 13.5px; }
.text-link:hover { color: var(--orange); }
.text-link.small { font-size: 12.5px; }

/* badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; line-height: 1.6; white-space: nowrap;
}
.badge-green { background: #e3f3e8; color: #166b3c; }
.badge-teal { background: #ddf1ec; color: #0c5c50; }
.badge-blue { background: #e6edfb; color: #1e40af; }
.badge-amber { background: #fbf0d8; color: #8a5a0a; }
.badge-orange { background: #fde9dd; color: #a53f13; }
.badge-violet { background: #eee7fb; color: #5b21b6; }
.badge-red { background: #fbe4e1; color: #9f1c12; }
.badge-done { background: #e7ece8; color: #345046; }
.badge-muted { background: #eeece5; color: #6c756d; }
.badge-dark { background: var(--ink); color: #fff; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  background: var(--sand-2); color: var(--ink-3); font-size: 11.5px; font-weight: 600;
}
.match-score { font-size: 11.5px; font-weight: 750; color: var(--teal); background: var(--mint); padding: 3px 8px; border-radius: 999px; }
.count-chip { background: var(--sand-2); color: var(--ink-3); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--teal); font-size: 11px; font-weight: 650; background: var(--mint); border-radius: 999px; padding: 3px 8px; }
.status-note { display: inline-flex; gap: 6px; align-items: center; color: var(--red); font-size: 12.5px; font-weight: 600; }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.field > span b { font-weight: 450; color: var(--muted-2); font-size: 11.5px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="email"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  padding: 10px 13px; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 107, 92, .12); }
input::placeholder, textarea::placeholder { color: #a0a79f; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d776f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-note { font-size: 12px; color: var(--muted); display: block; line-height: 1.7; }
.form-note .icon { margin-right: 4px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; min-height: 44px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inline-form input, .inline-form textarea { flex: 1; min-width: 150px; }
.inline-form textarea { min-height: 70px; }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.otp-btn { min-width: 122px; }
.otp-hint { background: var(--mint); color: var(--teal); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-amounts label { position: relative; }
.quick-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.quick-amounts span { display: flex; justify-content: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 700; background: #fff; cursor: pointer; }
.quick-amounts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topup-custom { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--teal); }
.range-row output { font-weight: 700; color: var(--teal); min-width: 44px; text-align: right; }

/* toasts */
.toast {
  position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px));
  padding: 11px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 550; animation: none;
}
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-2); flex: none; }
.toast-danger .toast-dot { background: #ff8b80; }
.toast-warn .toast-dot { background: #ffc46b; }
.toast-success .toast-dot { background: #7ee2b8; }
.toast-close { background: transparent; border: 0; color: rgba(255,255,255,.6); display: inline-flex; padding: 2px; margin-left: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { display: inline-flex; color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(22,37,31,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 19px; letter-spacing: .06em; }
.brand-text small { font-size: 8px; letter-spacing: .22em; color: var(--muted); font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); display: inline-block; box-shadow: 0 0 0 0 rgba(20,133,115,.35); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(20,133,115,0); } 100% { box-shadow: 0 0 0 0 rgba(20,133,115,0); } }

/* public nav */
.public-nav { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 236, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(22,37,31,.07); }
.public-nav-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 74px; display: flex; align-items: center; gap: 32px; }
.public-links { display: flex; gap: 24px; margin-right: auto; }
.public-links a { font-size: 13.5px; font-weight: 600; color: var(--ink-3); padding: 6px 0; border-bottom: 2px solid transparent; }
.public-links a:hover, .public-links a.active { color: var(--ink); border-color: var(--orange); }
.public-actions { display: flex; align-items: center; gap: 8px; }

/* hero */
.hero { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 74px 0 34px; }
.hero::before { content: ""; position: absolute; inset: 20px -8vw 0; background: radial-gradient(60% 65% at 82% 30%, rgba(232,102,50,.11), transparent 70%), radial-gradient(45% 55% at 10% 10%, rgba(15,107,92,.08), transparent 70%); z-index: -1; border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); background: rgba(15,107,92,.08); border: 1px solid rgba(15,107,92,.15); padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(48px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -.055em; font-weight: 820; }
.marker { position: relative; color: var(--teal); white-space: nowrap; }
.marker::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 18%; background: var(--orange-2); opacity: .55; z-index: -1; border-radius: 4px; }
.hero-lead { max-width: 560px; color: var(--ink-3); font-size: 16.5px; line-height: 1.85; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust .icon { color: var(--teal); }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); width: fit-content; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; letter-spacing: -.03em; }
.hero-stats span { font-size: 11.5px; color: var(--muted); }
.hero-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-orbit { position: absolute; border: 1px dashed rgba(15,107,92,.18); border-radius: 50%; }
.orbit-a { width: 460px; height: 460px; }
.orbit-b { width: 620px; height: 620px; border-color: rgba(232,102,50,.13); }
.hero-task { position: relative; z-index: 2; width: min(390px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); transform: rotate(-1.8deg); }
.hero-task-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.escrow-chip { display: inline-flex; gap: 4px; align-items: center; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.hero-task h3 { margin: 16px 0 8px; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
.hero-task p { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.hero-task-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-task-meta span { display: flex; flex-direction: column; }
.hero-task-meta strong { font-size: 15px; }
.hero-task-meta small { font-size: 10.5px; color: var(--muted); }
.milestone-track { display: flex; gap: 5px; margin-top: 5px; }
.milestone-track span { height: 4px; flex: 1; border-radius: 4px; background: var(--sand); }
.milestone-track span.done { background: var(--teal); }
.milestone-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: var(--muted-2); }
.hero-chat { display: flex; align-items: center; gap: 9px; margin-top: 17px; padding: 10px 11px; border-radius: 12px; background: var(--sand-2); }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); }
.hero-chat div { display: flex; flex-direction: column; flex: 1; }
.hero-chat strong { font-size: 11px; }
.hero-chat small { font-size: 9.5px; color: var(--muted); }
.hero-chat .icon { color: var(--teal); }
.float-card { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; box-shadow: var(--shadow); }
.float-card div { display: flex; flex-direction: column; }
.float-card strong { font-size: 13.5px; }
.float-card small { font-size: 10px; color: var(--muted); }
.float-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: var(--mint); color: var(--teal); }
.float-money { right: 2px; top: 4px; transform: rotate(2deg); }
.float-fee { left: -14px; bottom: 44px; transform: rotate(-2deg); }
.hero-foot { display: flex; align-items: center; gap: 22px; margin-top: 54px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.hero-cats { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-cats span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-3); }

/* sections */
.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.section-head > p { max-width: 440px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.section-kicker { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--orange); text-transform: uppercase; margin-bottom: 10px; }
.section-kicker.light { color: var(--orange-2); }
.section h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.15; letter-spacing: -.045em; font-weight: 800; }
.section-head h2 { max-width: 680px; }
.section-head p { color: var(--muted); }

.process-section { border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; overflow: hidden; }
.process-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.step-no { position: absolute; top: 18px; right: 18px; font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; }
.process-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.process-card:nth-child(2) .process-icon { background: #fdeee4; color: var(--orange); }
.process-card:nth-child(3) .process-icon { background: #e9edfb; color: var(--blue); }
.process-card:nth-child(4) .process-icon { background: #f5efdc; color: var(--amber); }
.process-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.02em; }
.process-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; min-height: 63px; }
.process-card small { display: block; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10.5px; }

.features-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; border-top: 1px solid var(--line); }
.feature-copy p { color: var(--muted); margin: 20px 0 24px; max-width: 360px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.6); }
.feature-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.feature-item h3 { font-size: 14px; margin-bottom: 5px; }
.feature-item p { font-size: 12px; color: var(--muted); line-height: 1.65; }

.categories-section { border-top: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; }
.category-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.category-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sand-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.category-card h3 { font-size: 14.5px; }
.category-card p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.cat-count { margin-left: auto; font-size: 10.5px; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.cat-arrow { color: var(--muted-2); }
.category-card.large { padding: 24px; align-items: flex-start; }
.category-card.large h3 { font-size: 18px; margin-bottom: 6px; }
.category-card.large p { font-size: 12.5px; }
.category-card.large small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 10.5px; }
.category-card.large .cat-arrow { position: absolute; right: 20px; bottom: 20px; }

.escrow-section { padding-top: 30px; }
.escrow-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 56px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.escrow-card::after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -180px; top: -180px; }
.escrow-copy h2 { color: #fff; margin-bottom: 18px; }
.escrow-copy p { color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.85; max-width: 470px; }
.escrow-example { display: flex; align-items: center; gap: 14px; margin: 26px 0; flex-wrap: wrap; }
.escrow-example div { display: flex; flex-direction: column; }
.escrow-example span { font-size: 10.5px; color: rgba(255,255,255,.5); }
.escrow-example strong { font-size: 19px; letter-spacing: -.02em; }
.escrow-example .fee { color: var(--orange-2); }
.escrow-example .net { color: #8fe3c5; }
.escrow-arrow { color: rgba(255,255,255,.3); }
.escrow-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.escrow-node { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 13px 16px; }
.escrow-node span { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; }
.escrow-node div, .escrow-node strong { font-size: 13.5px; }
.escrow-node small { margin-left: auto; font-size: 10.5px; color: rgba(255,255,255,.5); }
.escrow-center { background: rgba(143,227,197,.1); border-color: rgba(143,227,197,.3); }
.escrow-center span { background: #8fe3c5; color: var(--ink); }
.escrow-line { display: flex; align-items: center; gap: 12px; padding-left: 34px; }
.escrow-line span { width: 1px; height: 22px; background: rgba(255,255,255,.18); }
.escrow-line b { font-size: 9.5px; color: rgba(255,255,255,.4); letter-spacing: .1em; }

.llm-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; border-top: 1px solid var(--line); }
.llm-copy p { color: var(--muted); margin: 18px 0 22px; max-width: 440px; }
.model-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.model-pills span { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: rgba(255,253,248,.6); }
.llm-mock { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.mock-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mock-head .badge { margin-left: auto; }
.mock-dots { display: flex; gap: 4px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mock-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.mock-row label { font-size: 10.5px; color: var(--muted); font-weight: 650; }
.mock-input { background: var(--sand-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: 11.5px; color: var(--ink-3); display: flex; justify-content: space-between; }
.mock-test { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--teal); }
.mock-test b { margin-left: auto; color: var(--ink); font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }

.closing-section { padding-bottom: 100px; }
.closing-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--orange); color: #fff; border-radius: var(--radius-lg); padding: 52px 56px; position: relative; overflow: hidden; }
.closing-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.12); right: -140px; bottom: -180px; }
.closing-card h2 { color: #fff; margin-bottom: 14px; }
.closing-card p { color: rgba(255,255,255,.8); max-width: 480px; font-size: 13.5px; }
.closing-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.closing-actions span { font-size: 10.5px; color: rgba(255,255,255,.7); }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 26px; }
.footer-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 50px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.4); }
.footer-brand .logo-mark { color: rgba(255,255,255,.12); box-shadow: none; }
.footer-brand p { margin-top: 16px; color: rgba(255,255,255,.45); font-size: 12px; max-width: 250px; }
.footer-cols { display: flex; gap: 80px; }
.footer-cols div { display: flex; flex-direction: column; gap: 9px; }
.footer-cols h4 { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-cols a { font-size: 12.5px; color: rgba(255,255,255,.72); }
.footer-cols a:hover { color: #fff; }
.footer-bottom { width: min(var(--max), calc(100% - 48px)); margin: 40px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.35); font-size: 10.5px; }

/* page hero */
.page-hero { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 88px 0 56px; }
.page-hero h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; margin: 12px 0 20px; }
.page-hero p { max-width: 620px; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.page-hero.compact { padding: 64px 0 34px; }
.page-hero.compact h1 { font-size: clamp(36px, 4vw, 52px); }
.page-hero.dark-hero { width: 100%; padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: 24px; background: var(--ink); color: #fff; }
.page-hero.dark-hero h1, .page-hero.dark-hero .section-kicker { color: #fff; }
.page-hero.dark-hero p { color: rgba(255,255,255,.6); }

/* how it works */
.flow-vertical { display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow-item { display: grid; grid-template-columns: 60px 70px 1fr; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.flow-no { font-size: 11px; color: var(--muted-2); font-weight: 700; padding-top: 12px; }
.flow-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.flow-item h3 { font-size: 18px; margin-bottom: 6px; }
.flow-item p { color: var(--muted); font-size: 13.5px; max-width: 720px; }
.split-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-card.tinted { background: var(--mint); border-color: transparent; }
.info-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 16px; }
.info-card ul { display: grid; gap: 9px; margin-bottom: 22px; }
.info-card li { font-size: 12.5px; color: var(--ink-3); padding-left: 16px; position: relative; }
.info-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.center-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.center-cta h2 { max-width: 650px; }

/* categories & previews */
.task-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.task-preview { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.task-preview:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.task-preview h3 { font-size: 15.5px; line-height: 1.45; }
.task-preview p { font-size: 12px; color: var(--muted); }
.task-preview div { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.task-preview strong { color: var(--ink); font-size: 15px; }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.trust-card > span { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.trust-card h3 { font-size: 16px; margin-bottom: 8px; }
.trust-card p { font-size: 12.5px; color: var(--muted); line-height: 1.8; min-height: 90px; }
.trust-card b { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--teal); }
.escrow-section.alt { padding-top: 20px; }
.escrow-card.light-card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.escrow-card.light-card h2 { color: var(--ink); }
.escrow-card.light-card .escrow-copy p { color: var(--muted); }
.escrow-card.light-card .escrow-visual { gap: 8px; }
.money-flow { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.money-step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--sand-2); }
.money-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.money-step div { display: flex; flex-direction: column; flex: 1; }
.money-step strong { font-size: 13px; }
.money-step small { font-size: 10.5px; color: var(--muted); }
.money-step b { font-size: 10px; border-radius: 999px; padding: 3px 8px; }
.tag-frozen { background: #fde9dd; color: var(--orange); }
.tag-held { background: #ddf1ec; color: var(--teal); }
.tag-done { background: #e3f3e8; color: #166b3c; }

/* legal */
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: 60px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--line); padding-left: 18px; }
.legal-toc a { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legal-toc a:hover { color: var(--teal); }
.legal-body h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-3); font-size: 14px; line-height: 1.9; margin-bottom: 12px; }
.legal-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 16px 0 22px; }
.legal-body li { position: relative; padding-left: 16px; font-size: 13px; color: var(--ink-3); }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.legal-example { display: flex; align-items: center; gap: 14px; background: var(--mint); border-radius: 12px; padding: 16px 18px; margin: 14px 0 20px; font-size: 12.5px; font-weight: 700; color: var(--teal); flex-wrap: wrap; }
.legal-note { display: flex; gap: 8px; margin-top: 36px; padding: 14px 16px; border-radius: 12px; background: var(--sand-2); color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* auth/login */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(50% 50% at 50% 0%, #fff9ef, transparent 70%); }
.auth-brand { margin-bottom: 26px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth-foot { display: flex; gap: 12px; margin-top: 22px; font-size: 11.5px; color: var(--muted); }
.auth-foot a:hover { color: var(--ink); }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .form { margin-top: 24px; }
.login-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.login-left { background: var(--ink); color: #fff; padding: 48px max(48px, 7vw); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-left::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -220px; bottom: -220px; }
.login-brand { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.login-brand span { display: block; font-size: 8px; letter-spacing: .3em; color: rgba(255,255,255,.4); font-weight: 600; margin-top: 3px; }
.login-quote { margin: auto 0; padding: 50px 0; position: relative; z-index: 1; }
.login-quote h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.05em; margin: 14px 0 18px; color: #fff; }
.login-quote p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 420px; line-height: 1.85; }
.login-points { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.login-points > div { display: flex; align-items: center; gap: 11px; }
.login-points > div > .icon { color: var(--orange-2); }
.login-points span { display: flex; flex-direction: column; }
.login-points strong { font-size: 12.5px; }
.login-points small { font-size: 10.5px; color: rgba(255,255,255,.45); }
.login-foot { margin-top: 36px; font-size: 10.5px; color: rgba(255,255,255,.35); }
.login-foot a { color: rgba(255,255,255,.6); }
.login-right { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: min(440px, 100%); }
.login-mobile-brand { display: none; font-size: 22px; font-weight: 800; letter-spacing: .08em; margin-bottom: 26px; }
.login-mobile-brand span { display: block; font-size: 7px; letter-spacing: .28em; color: var(--muted); font-weight: 600; }
.login-card h2 { font-size: 28px; letter-spacing: -.04em; margin: 6px 0 8px; }
.login-card > p { font-size: 13px; margin-bottom: 8px; }
.login-card .form { margin-top: 22px; }
.login-legal { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 10.5px; color: var(--muted); text-align: center; max-width: 380px; }
.demo-box { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.demo-head b { background: var(--orange); color: #fff; font-size: 8px; letter-spacing: .1em; border-radius: 4px; padding: 2px 5px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 10px; }
.demo-grid a { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 600; background: #fff; }
.demo-grid a:hover { border-color: var(--teal); }
.demo-grid a > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.demo-grid small { font-size: 9px; color: var(--muted); font-weight: 400; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.demo-note { font-size: 9.5px; color: var(--muted-2); line-height: 1.6; display: block; }

/* ============ App shell ============ */
.app-shell { min-height: 100vh; }
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 60; display: flex; flex-direction: column;
  background: var(--ink); color: #fff; padding: 24px 16px 16px; overflow-y: auto;
}
.sidebar-brand { padding: 0 8px 22px; }
.sidebar-brand .brand { color: #fff; }
.sidebar-brand .brand-text small { color: rgba(255,255,255,.35); }
.sidebar-brand .logo-mark { color: rgba(255,255,255,.13); box-shadow: none; }
.sidebar-cta { width: 100%; background: var(--orange); color: #fff; margin-bottom: 20px; box-shadow: none; }
.sidebar-cta:hover { background: #f17645; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.58); font-size: 13px; font-weight: 550; transition: background .15s, color .15s; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-link.active { color: #fff; background: rgba(255,255,255,.11); }
.side-link.active .icon { color: var(--orange-2); }
.side-link .nav-dot { margin-left: auto; background: var(--orange); color: #fff; font-size: 9px; border-radius: 999px; padding: 1px 5px; }
.side-sep { height: 1px; background: rgba(255,255,255,.09); margin: 12px 8px; }
.side-admin { color: var(--orange-2); }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.sidebar-safety { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.35); font-size: 10px; padding: 0 8px 12px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 14px; }
.sidebar-user > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sidebar-user strong { font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { font-size: 9.5px; color: rgba(255,255,255,.35); }
.sidebar-user form { margin-left: auto; }
.sidebar-user .icon-btn { color: rgba(255,255,255,.45); width: 30px; height: 30px; }
.sidebar-user .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.app-main { margin-left: 262px; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 0 30px; background: rgba(247,245,239,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-context { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-kicker { font-size: 8.5px; letter-spacing: .16em; color: var(--muted-2); font-weight: 700; }
.topbar-context strong { font-size: 14px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-bell { position: relative; }
.bell-dot { position: absolute; top: 3px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 2px solid var(--cream); }
.topbar-user { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.app-content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 30px 30px 64px; }
.app-content.wide { max-width: 1420px; }
.mobile-menu { display: none; }
.mobile-tabbar { display: none; }
.sidebar-scrim { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.045em; margin-top: 4px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 7px; max-width: 700px; }
.page-head .page-kicker, .page-kicker { font-size: 9.5px; letter-spacing: .16em; font-weight: 800; color: var(--orange); text-transform: uppercase; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* panels */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { font-size: 16px; letter-spacing: -.02em; }
.panel-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.panel-head > .text-link, .panel-head > .icon-btn { flex: none; }
.panel h3 { font-size: 14px; }
.panel-subhead { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin: 4px 0 -4px; }
.panel-subhead small { fonts-size: 10.5px; font-weight: 400; color: var(--muted); }
.mock-head, .panel-subhead { scroll-margin-top: 90px; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { display: flex; align-items: center; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.stat-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-ic.mint { background: var(--mint); color: var(--teal); }
.stat-ic.sand { background: #fbf0d8; color: var(--amber); }
.stat-ic.blue { background: #e6edfb; color: var(--blue); }
.stat-ic.rose { background: #fde9dd; color: var(--orange); }
.stat-card div { display: flex; flex-direction: column; min-width: 0; }
.stat-card strong { font-size: 17px; letter-spacing: -.03em; line-height: 1.25; }
.stat-card small { font-size: 10.5px; color: var(--muted); }
.focus-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg, var(--ink), #1c4a3f); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.focus-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.focus-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; color: var(--orange-2); }
.focus-body { flex: 1; min-width: 0; }
.focus-label { display: block; font-size: 9.5px; letter-spacing: .1em; color: rgba(255,255,255,.45); text-transform: uppercase; font-weight: 700; }
.focus-body > a { font-size: 16px; font-weight: 700; color: #fff; display: block; margin: 3px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 10.5px; color: rgba(255,255,255,.55); }
.focus-meta .badge { background: rgba(255,255,255,.12); color: #d9f4e8; }
.focus-banner > .btn { position: relative; z-index: 1; border-color: rgba(255,255,255,.3); color: #fff; }
.focus-banner > .btn:hover { background: rgba(255,255,255,.1); }
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.task-grid.three { grid-template-columns: repeat(3, 1fr); }
.task-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.task-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.task-card.is-locked { opacity: .78; }
.task-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.task-card-top .match-score { margin-left: auto; }
.task-card-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.task-card-title:hover { color: var(--teal); }
.task-card-summary { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 5px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card-meta { display: flex; align-items: center; gap: 12px; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.task-card-meta .budget { font-size: 15px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; }
.task-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.task-skill { margin-left: auto; background: var(--sand-2); border-radius: 5px; padding: 2px 6px; }
.task-card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 11.5px; font-weight: 650; margin-top: 10px; }
.locked-note { display: flex; gap: 5px; align-items: center; margin-top: 9px; padding: 6px 8px; border-radius: 7px; background: #fbf0d8; color: #8a5a0a; font-size: 9.5px; line-height: 1.4; }
.task-card-actions { margin-top: 10px; }

.list-table { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(239,232,216,.35); }
.row-status { flex: none; }
.row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.row-main strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-money { font-weight: 700; font-size: 12px; flex: none; }
.row-time { color: var(--muted-2); font-size: 10px; flex: none; width: 62px; text-align: right; }
.wallet-mini { display: flex; flex-direction: column; margin-bottom: 14px; }
.wallet-mini span { font-size: 10.5px; color: var(--muted); }
.wallet-mini strong { font-size: 28px; letter-spacing: -.04em; line-height: 1.2; }
.wallet-mini small { font-size: 10px; color: var(--muted); }
.mini-actions { display: flex; gap: 6px; }
.mini-list { display: flex; flex-direction: column; }
.mini-item { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.mini-item.unread .mini-dot { background: var(--orange); }
.mini-item div { display: flex; flex-direction: column; min-width: 0; }
.mini-item strong { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item small { font-size: 9.5px; color: var(--muted); }
.mini-item:hover strong { color: var(--teal); }
.trust-side { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.trust-side-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--orange-2); margin-bottom: 12px; }
.trust-side h3 { font-size: 14px; color: #fff; }
.trust-side p { font-size: 10.5px; color: rgba(255,255,255,.55); line-height: 1.7; margin: 6px 0 12px; }
.trust-side .text-link { color: var(--orange-2); }
.quick-links { display: flex; flex-direction: column; gap: 2px; }
.quick-links h2 { font-size: 14px; margin-bottom: 6px; }
.quick-links a { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 11.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.quick-links a:last-child { border: 0; }
.quick-links a:hover { color: var(--teal); }
.safety-strip { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 10.5px; color: var(--muted); }
.safety-strip a { margin-left: auto; color: var(--teal); font-weight: 650; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 20px; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand-2); color: var(--muted); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty h3 { font-size: 14px; color: var(--ink-3); }
.empty p { font-size: 11.5px; max-width: 320px; margin: 5px 0 14px; }
.empty.small-empty { padding: 18px; }

/* filter */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-form .search-box { position: relative; }
.filter-form .search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-form .search-box input { padding-left: 33px; min-width: 220px; }
.filter-form select { width: auto; min-width: 116px; }
.filter-note { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.privacy-note { display: flex; gap: 11px; margin-top: 18px; padding: 15px 18px; border-radius: 12px; background: var(--mint); color: var(--teal); }
.privacy-note strong { font-size: 12px; display: block; }
.privacy-note p { font-size: 11px; color: var(--ink-3); margin-top: 2px; line-height: 1.65; }
.privacy-inline { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 9px; background: var(--mint); color: var(--teal); font-size: 11px; }
.alert { display: flex; gap: 10px; padding: 13px 15px; border-radius: 11px; margin-bottom: 14px; font-size: 12px; line-height: 1.65; }
.alert strong { display: block; font-size: 12px; }
.alert p { margin-top: 2px; color: var(--ink-3); }
.alert-info { background: #e9eff8; color: #1e3a8a; }
.alert-success { background: var(--mint); color: var(--teal); }
.alert-warn { background: #fbf0d8; color: #7a5008; }
.alert-danger { background: #fbe4e1; color: #8f1a12; }

/* lifecycle */
.task-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.task-status-left { display: flex; align-items: center; gap: 8px; }
.task-code { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--muted); background: var(--sand-2); border-radius: 6px; padding: 3px 7px; }
.lifecycle { display: flex; align-items: center; gap: 0; margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.life-step { display: flex; align-items: center; gap: 7px; flex: 1; position: relative; color: var(--muted-2); font-size: 10.5px; }
.life-step::after { content: ""; height: 1px; flex: 1; background: var(--line); margin-right: 8px; }
.life-step:last-child::after { display: none; }
.life-step span { width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex: none; background: #fff; }
.life-step.current { color: var(--ink); font-weight: 650; }
.life-step.current span { background: var(--orange); border-color: var(--orange); color: #fff; }
.life-step.done { color: var(--teal); }
.life-step.done span { background: var(--mint); border-color: var(--mint); color: var(--teal); }
.life-step.done::after { background: var(--mint-2); }

/* task detail */
.task-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.task-detail-side { display: flex; flex-direction: column; gap: 14px; }
.sticky-panel { position: sticky; top: 82px; }
.detail-tags { display: flex; gap: 7px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.task-lead { font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-facts > div { display: flex; flex-direction: column; }
.key-facts span { font-size: 10px; color: var(--muted); }
.key-facts strong { font-size: 16px; letter-spacing: -.02em; }
.key-facts small { font-size: 9.5px; color: var(--muted-2); }
.skill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.skill-row span { background: var(--sand-2); border-radius: 6px; padding: 3px 8px; font-size: 10.5px; color: var(--ink-3); }
.acceptance-preview { background: var(--sand-2); border-radius: 11px; padding: 14px 16px; margin: 18px 0; }
.acceptance-preview h3 { font-size: 11.5px; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.acceptance-preview li { font-size: 11.5px; color: var(--ink-3); padding-left: 13px; position: relative; margin: 3px 0; }
.acceptance-preview li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.brief { white-space: normal; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-columns h3 { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.check-list { display: flex; flex-direction: column; gap: 5px; }
.check-list li { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.check-list .icon { color: var(--teal); margin-top: 2px; }
.milestone-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.milestone-section h3 { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.milestone-track.full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.milestone-card { background: var(--sand-2); border-radius: 10px; padding: 12px; }
.milestone-card > span { display: inline-block; font-size: 9.5px; font-weight: 700; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 1px 6px; margin-bottom: 5px; }
.milestone-card strong { display: block; font-size: 11.5px; }
.milestone-card small { font-size: 9.5px; color: var(--muted); }
.milestone-card p { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.milestone-list { display: flex; flex-direction: column; gap: 8px; }
.milestone { display: flex; align-items: center; gap: 10px; }
.milestone > span { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.milestone div { display: flex; flex-direction: column; }
.milestone strong { font-size: 11.5px; }
.milestone small { font-size: 9.5px; color: var(--muted); }
.people-card { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.people-card:first-of-type { border-top: 0; }
.people-card div { display: flex; flex-direction: column; min-width: 0; }
.people-card strong { font-size: 12px; }
.people-card small { font-size: 9.5px; color: var(--muted); }
.people-meta { margin-top: 2px; }
.people-card .verified { margin-left: auto; }
.empty-people { color: var(--muted); border-top: 1px solid var(--line); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.rating .stars { color: var(--amber); letter-spacing: -1px; font-size: 9.5px; }
.rating small { color: var(--muted-2); }
.claim-box { padding-bottom: 16px; }
.claim-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.claim-box ul { margin: 8px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.claim-box li { position: relative; padding-left: 13px; font-size: 11px; color: var(--ink-3); }
.claim-box li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.claim-box form { margin-bottom: 8px; }
.locked-action { display: flex; gap: 6px; align-items: center; padding: 10px; border-radius: 9px; background: #fbf0d8; color: #7a5008; font-size: 10.5px; line-height: 1.55; }
.escrow-panel { border: 1px solid var(--line); border-radius: 13px; padding: 15px; margin-bottom: 14px; background: var(--sand-2); }
.escrow-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.escrow-panel-head > span { display: inline-flex; align-items: center; gap: 5px; }
.escrow-amount { display: flex; flex-direction: column; margin: 12px 0; }
.escrow-amount strong { font-size: 30px; letter-spacing: -.045em; line-height: 1.2; }
.escrow-amount span { font-size: 10px; color: var(--muted); }
.escrow-lines { border-top: 1px solid var(--line-2); padding-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.escrow-lines div { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.escrow-lines b { color: var(--ink-3); font-weight: 650; }
.escrow-lines b.net { color: var(--teal); }
.escrow-tip { font-size: 9.5px; color: var(--muted); margin-top: 9px; line-height: 1.55; }
.action-drawer { margin: 6px 0; }
.action-drawer summary { list-style: none; cursor: pointer; }
.action-drawer summary::-webkit-details-marker { display: none; }
.action-drawer[open] summary { margin-bottom: 8px; }
.assurance-list { display: flex; flex-direction: column; gap: 10px; }
.assurance-list > div { display: flex; gap: 9px; align-items: flex-start; color: var(--teal); }
.assurance-list span { display: flex; flex-direction: column; }
.assurance-list strong { font-size: 11px; color: var(--ink-3); }
.assurance-list small { font-size: 9.5px; color: var(--muted); }
.deliverables { display: flex; flex-direction: column; gap: 10px; }
.deliverable { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.deliverable-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.deliverable-head span { font-weight: 700; color: var(--teal); }
.deliverable .prose { font-size: 12px; }
.review-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.waiting-note { display: flex; gap: 7px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--mint); color: var(--teal); font-size: 11px; }
.waiting-note.warn { background: #fbf0d8; color: #7a5008; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 28px; bottom: -8px; width: 1px; background: var(--line); }
.timeline-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--sand-2); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; z-index: 1; }
.timeline-item div { display: flex; flex-direction: column; }
.timeline-item strong { font-size: 11px; }
.timeline-item small { font-size: 9.5px; color: var(--muted); line-height: 1.5; }
.dispute-panel { border-color: #f0c8c0; background: #fffaf9; }
.resolution { margin-top: 12px; padding: 10px 12px; background: var(--sand-2); border-radius: 8px; font-size: 11.5px; color: var(--ink-3); }
.contact-state { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.safety-copy { display: flex; gap: 8px; padding: 10px; background: var(--sand-2); border-radius: 9px; color: var(--teal); margin-bottom: 10px; }
.safety-copy p { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
.raw-box { background: #fdf8ef; border: 1px dashed #e2cfa9; border-radius: 10px; padding: 14px; font-size: 12px; color: var(--ink-3); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.raw-meta { margin-top: 10px; font-size: 10px; color: var(--muted); }
.sensitive-panel { border-color: #eccfc8; }
.admin-raw { border-color: #eccfc8; }
.risk-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; margin: 14px 0; font-size: 11.5px; line-height: 1.6; }
.risk-banner strong { display: block; font-size: 11.5px; }
.risk-banner p { margin-top: 2px; }
.risk-warn { background: #fbf0d8; color: #7a5008; }
.risk-block { background: #fbe4e1; color: #8f1a12; }

/* ============ Publish / preview ============ */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.publish-main { min-width: 0; }
.publish-side { display: flex; flex-direction: column; gap: 12px; }
.publish-side .panel { margin: 0; }
.publish-side h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 9px; }
.publish-side p { font-size: 11px; line-height: 1.7; }
.tips-list { display: flex; flex-direction: column; gap: 7px; }
.tips-list li { position: relative; padding-left: 14px; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.tips-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.kind-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kind-tab { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink-3); }
.kind-tab:hover { border-color: var(--line-2); }
.kind-tab.active { border-color: var(--teal); background: var(--mint); color: var(--teal); box-shadow: 0 0 0 3px rgba(15,107,92,.08); }
.kind-tab > .icon { flex: none; }
.kind-tab span { display: flex; flex-direction: column; }
.kind-tab strong { font-size: 12.5px; }
.kind-tab small { font-size: 9.5px; color: var(--muted); }
.publish-form { background: var(--paper); }
.auto-list { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; background: var(--sand-2); border-radius: 10px; font-size: 10.5px; color: var(--muted); }
.tinted-panel { background: var(--mint); border-color: transparent; }
.mini-math { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mini-math span { background: rgba(255,255,255,.7); border-radius: 6px; padding: 4px 7px; font-size: 9.5px; color: var(--teal); font-weight: 650; }

.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.preview-side { display: flex; flex-direction: column; gap: 12px; }
.preview-side .panel { margin: 0; }
.preview-side h3 { display: flex; gap: 7px; align-items: center; font-size: 13px; margin-bottom: 9px; }
.analysis-panel { background: linear-gradient(110deg, #fffdf8, #fbf5e9); }
.analysis-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.analysis-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--orange-2); display: flex; align-items: center; justify-content: center; }
.analysis-head div { display: flex; flex-direction: column; }
.analysis-head strong { font-size: 13px; }
.analysis-head small { font-size: 9.5px; color: var(--muted); }
.analysis-head .badge { margin-left: auto; }
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 0; }
.analysis-grid div { display: flex; flex-direction: column; }
.analysis-grid span { font-size: 9.5px; color: var(--muted); }
.analysis-grid strong { font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.analysis-risk { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: #fbf0d8; color: #7a5008; font-size: 10.5px; line-height: 1.55; }
.analysis-safe { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--mint); color: var(--teal); font-size: 10.5px; }
.milestone-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.milestone-preview > div { background: var(--sand-2); border-radius: 8px; padding: 9px; display: flex; flex-direction: column; }
.milestone-preview span { font-size: 9px; font-weight: 700; color: var(--teal); }
.milestone-preview strong { font-size: 10.5px; }
.milestone-preview small { font-size: 9px; color: var(--muted); line-height: 1.4; }
.escrow-confirm { background: var(--ink); color: #fff; border-radius: 12px; padding: 15px; }
.escrow-confirm-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; margin-bottom: 10px; color: var(--orange-2); }
.escrow-confirm-lines { display: flex; flex-direction: column; gap: 6px; }
.escrow-confirm-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: rgba(255,255,255,.55); }
.escrow-confirm-lines b { color: #fff; font-weight: 650; }
.insufficient { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: rgba(232,102,50,.2); color: #ffd0bb; font-size: 10.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.insufficient a { color: #fff; text-decoration: underline; }
.supply-confirm { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 9px; background: var(--mint); color: var(--teal); font-size: 11px; }
.preview-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.preview-actions .muted { font-size: 10px; }
.next-steps { display: flex; flex-direction: column; gap: 6px; counter-reset: step; }
.next-steps li { position: relative; padding-left: 22px; font-size: 10.5px; color: var(--ink-3); counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--sand-2); color: var(--muted); font-size: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ============ Messages ============ */
.messages-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.thread-list-panel { padding: 0; overflow: hidden; }
.thread-list-panel > .panel-head { padding: 18px 20px 12px; margin: 0; }
.thread-list { display: flex; flex-direction: column; }
.thread-item { display: flex; gap: 11px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.thread-item:hover { background: var(--sand-2); }
.thread-item.unread { background: #fffaf0; }
.thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-title { display: flex; justify-content: space-between; gap: 8px; }
.thread-title strong { font-size: 12px; }
.thread-title small { font-size: 9.5px; color: var(--muted-2); }
.thread-task { font-size: 9.5px; color: var(--teal); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-main p { font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-unread { background: var(--orange); color: #fff; font-size: 9px; border-radius: 999px; padding: 2px 6px; }
.messages-side { position: sticky; top: 82px; }
.messages-side h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 10px; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 180px); min-height: 500px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head div { display: flex; flex-direction: column; }
.chat-head strong { font-size: 12.5px; }
.chat-head small { font-size: 9.5px; color: var(--muted); }
.chat-secure { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: 9px; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 3px 8px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #faf7f0; display: flex; flex-direction: column; gap: 12px; }
.chat-system { align-self: center; display: flex; gap: 6px; align-items: center; text-align: center; font-size: 9.5px; color: var(--muted); background: var(--sand-2); border-radius: 8px; padding: 6px 10px; max-width: 90%; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-align: center; max-width: 260px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.bubble-row.mine { margin-left: auto; flex-direction: row-reverse; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; padding: 9px 12px; font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.bubble-row.mine .bubble { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 13px 13px 4px 13px; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble-time { display: block; margin-top: 4px; font-size: 8.5px; color: var(--muted-2); text-align: right; }
.bubble-row.mine .bubble-time { color: rgba(255,255,255,.45); }
.bubble-warn { border-color: #e5c27f; background: #fffaf0; }
.bubble-row.mine .bubble-warn { background: #7a5008; border-color: #7a5008; }
.chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-composer textarea { min-height: 44px; max-height: 140px; resize: none; font-size: 12px; }
.chat-composer .btn { width: 44px; height: 44px; padding: 0; border-radius: 12px; flex: none; }
.chat-foot { padding: 7px 14px; border-top: 1px solid var(--line); font-size: 8.5px; color: var(--muted-2); text-align: center; background: #fff; }
.chat-side { display: flex; flex-direction: column; gap: 12px; }
.chat-side .panel { margin: 0; }
.chat-side h3 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 9px; }
.side-task { display: flex; flex-direction: column; padding: 10px; background: var(--sand-2); border-radius: 9px; }
.side-task strong { font-size: 11.5px; }
.side-task small { font-size: 9.5px; color: var(--muted); }
.contact-card { margin-top: 12px; padding: 11px; border-radius: 9px; background: var(--mint); display: flex; flex-direction: column; }
.contact-card > span { display: flex; gap: 4px; align-items: center; font-size: 9.5px; color: var(--teal); font-weight: 700; }
.contact-card strong { font-size: 12px; margin-top: 3px; }
.contact-card p { font-size: 10.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.warn-panel { border-color: #e5c27f; background: #fffaf0; }
.warn-panel h3 { color: #7a5008; }

/* ============ Wallet ============ */
.wallet-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wallet-hero { grid-row: span 1; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -70px; top: -80px; }
.wallet-hero > span { font-size: 10.5px; color: rgba(255,255,255,.5); }
.wallet-hero > strong { display: block; font-size: 38px; line-height: 1.15; letter-spacing: -.05em; margin: 3px 0 5px; }
.wallet-hero-meta { display: flex; gap: 14px; font-size: 9.5px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.wallet-hero-actions { display: flex; gap: 6px; margin-top: 14px; }
.wallet-hero-actions .btn { min-height: 30px; padding: 4px 11px; font-size: 10.5px; }
.wallet-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.wallet-stat span { font-size: 10px; color: var(--muted); }
.wallet-stat strong { font-size: 21px; letter-spacing: -.03em; margin: 2px 0; }
.wallet-stat small { font-size: 9.5px; color: var(--muted-2); }
.wallet-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wallet-columns .panel { margin-bottom: 16px; }
.ledger-list, .mini-ledger { display: flex; flex-direction: column; }
.ledger-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-ic { width: 27px; height: 27px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.ledger-ic.in { background: var(--mint); color: var(--teal); }
.ledger-ic.out { background: #fde9dd; color: var(--orange); }
.ledger-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ledger-main strong { font-size: 11.5px; }
.ledger-main small { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-amt { font-size: 12px; font-weight: 700; }
.ledger-amt.plus { color: var(--teal); }
.ledger-amt.minus { color: var(--ink-3); }
.mini-table { margin-top: 12px; border-top: 1px solid var(--line); }
.mini-table > div { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.mini-table b { margin-left: auto; color: var(--ink-3); }
.mini-ledger > div { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.mini-ledger > div:last-child { border: 0; }
.mini-ledger > div > span, .mini-ledger > a > span:not(.mini-dot) { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ledger .mini-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.mini-ledger b { color: var(--ink-3); }
.mini-ledger small { color: var(--muted-2); font-size: 9px; }
.inline-topup { gap: 12px; }

/* ============ Profile ============ */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 12px; }
.profile-side .panel { margin: 0; }
.profile-side h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 8px; }
.profile-card .form { margin-top: 18px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-head > div { flex: 1; }
.profile-head h2 { font-size: 20px; }
.profile-head p { font-size: 10.5px; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stats > div { display: flex; flex-direction: column; padding: 9px; background: var(--sand-2); border-radius: 9px; }
.profile-stats strong { font-size: 16px; letter-spacing: -.02em; }
.profile-stats span { font-size: 9.5px; color: var(--muted); }

/* notifications */
.notification-list { display: flex; flex-direction: column; }
.notification-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 4px; border-bottom: 1px solid var(--line); position: relative; }
.notification-row:last-child { border: 0; }
.notification-row:hover { background: var(--sand-2); }
.notification-row.unread { background: #fffaf0; }
.notif-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--sand-2); display: flex; align-items: center; justify-content: center; color: var(--teal); flex: none; }
.notification-row > div { flex: 1; }
.notification-row strong { font-size: 12px; }
.notification-row p { font-size: 11px; color: var(--muted); margin-top: 1px; }
.notification-row small { font-size: 9.5px; color: var(--muted-2); }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 6px; }

/* ============ Admin ============ */
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 60; background: #101c19; color: #fff; padding: 22px 14px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.admin-brand .logo-mark { color: rgba(255,255,255,.13); box-shadow: none; }
.admin-brand > div { display: flex; flex-direction: column; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { font-size: 7.5px; letter-spacing: .2em; color: rgba(255,255,255,.3); }
.admin-env { display: flex; align-items: center; gap: 6px; margin: 0 8px 16px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 9px; color: rgba(255,255,255,.45); }
.admin-nav { gap: 2px; }
.admin-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 35; background: rgba(247,245,239,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.admin-topbar > div:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
.admin-topbar .topbar-kicker { font-size: 8px; }
.admin-topbar strong { font-size: 13.5px; }
.admin-date { font-size: 10.5px; color: var(--muted); }
.admin-content { padding: 26px 28px 60px; max-width: 1500px; width: 100%; margin: 0 auto; }
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.admin-page-head h1 { font-size: clamp(25px, 2.6vw, 32px); letter-spacing: -.045em; }
.admin-page-head p { font-size: 12px; color: var(--muted); margin-top: 5px; max-width: 780px; }
.admin-page-head .page-actions { flex: none; }
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.kpi { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; flex-direction: column; min-height: 92px; }
.kpi-label { font-size: 9.5px; color: var(--muted); }
.kpi > strong { font-size: 23px; letter-spacing: -.04em; line-height: 1.2; margin: 2px 0; }
.kpi small { font-size: 9px; color: var(--muted-2); }
.kpi-ic { position: absolute; right: 12px; top: 12px; color: var(--line-2); }
.kpi.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.accent .kpi-label, .kpi.accent small { color: rgba(255,255,255,.45); }
.kpi.accent .kpi-ic { color: var(--orange-2); }
.kpi.danger { border-color: #eccfc8; background: #fffaf9; }
.kpi.danger strong { color: var(--red); }
.kpi.warn-kpi { border-color: #e5c27f; background: #fffaf0; }
.finance-kpis { grid-template-columns: repeat(4, 1fr); }
.warn-text { color: var(--amber) !important; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 10px; }
.board-title { display: flex; align-items: baseline; gap: 9px; }
.board-title h2 { font-size: 15px; }
.board-title span { font-size: 10px; color: var(--muted); }
.board-legend { display: flex; gap: 12px; font-size: 9.5px; color: var(--muted); align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot.amber { background: var(--amber); } .dot.green { background: var(--teal-2); } .dot.teal { background: var(--blue); } .dot.red { background: var(--red); }
.kanban { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.kanban-col { flex: 0 0 238px; background: #eae7de; border-radius: 13px; padding: 9px; min-height: 300px; scroll-snap-align: start; }
.kanban-head { padding: 3px 4px 9px; }
.kanban-head > div { display: flex; align-items: center; justify-content: space-between; }
.kanban-head strong { font-size: 11.5px; }
.kanban-head span { background: rgba(22,37,31,.08); border-radius: 999px; padding: 0 6px; font-size: 9px; font-weight: 700; }
.kanban-head small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.kanban-list { display: flex; flex-direction: column; gap: 7px; }
.kanban-card { background: #fff; border: 1px solid rgba(22,37,31,.06); border-radius: 9px; padding: 10px; }
.kanban-card:hover { box-shadow: 0 4px 12px rgba(22,37,31,.07); }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 5px; }
.kanban-card-top .cat-chip { font-size: 9px; padding: 2px 5px; background: var(--sand-2); }
.kanban-title { display: block; font-size: 11px; font-weight: 650; line-height: 1.4; margin-bottom: 6px; }
.kanban-title:hover { color: var(--teal); }
.kanban-meta { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.kanban-meta span:first-child { font-weight: 700; color: var(--ink-3); font-size: 10px; }
.kanban-people { display: flex; gap: 8px; margin-top: 5px; font-size: 8.5px; color: var(--muted); }
.kanban-foot { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 8.5px; color: var(--muted-2); }
.kanban-actions { display: flex; gap: 5px; margin-top: 7px; align-items: center; }
.kanban-alert { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 6px; background: #fbe4e1; color: #8f1a12; border-radius: 5px; font-size: 8.5px; font-weight: 650; }
.kanban-empty { padding: 20px 8px; text-align: center; font-size: 9px; color: var(--muted-2); }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.admin-panel { margin: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.bar-chart.tall { height: 210px; }
.bar-item { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bar { width: 100%; max-width: 34px; background: var(--mint-2); border-radius: 4px 4px 0 0; position: relative; min-height: 3px; }
.bar:hover { background: var(--teal-2); }
.bar span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 7.5px; color: var(--muted); white-space: nowrap; opacity: 0; }
.bar:hover span { opacity: 1; }
.bar-item small { font-size: 7.5px; color: var(--muted-2); margin-top: 4px; white-space: nowrap; }
.mini-users { display: flex; flex-direction: column; }
.mini-user { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-user:last-child { border: 0; }
.mini-user div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini-user strong { font-size: 11px; }
.mini-user small { font-size: 9px; color: var(--muted); }
.admin-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.admin-table th { text-align: left; font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; padding: 0 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border: 0; }
.admin-table tr:hover td { background: var(--sand-2); }
.admin-table td strong { display: block; font-size: 11px; }
.admin-table td small { display: block; font-size: 8.5px; color: var(--muted); }
.admin-table .num { text-align: right; white-space: nowrap; }
.table-user { display: flex; align-items: center; gap: 7px; }
.admin-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-detail-money { display: flex; gap: 18px; font-size: 10px; color: var(--muted); }
.admin-detail-money b { color: var(--ink); font-size: 12px; margin-left: 3px; }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.admin-detail-side { display: flex; flex-direction: column; gap: 12px; }
.admin-detail-side .panel { margin: 0; }
.action-card { border-color: var(--mint-2); }
.compact-form { gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.compact-form:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.assign-box { display: flex; flex-direction: column; gap: 6px; }
.assign-box > span { font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.assign-row { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.assign-row > div { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.assign-row > div > span { display: flex; flex-direction: column; min-width: 0; }
.assign-row strong { font-size: 10px; }
.assign-row small { font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-people { display: flex; flex-direction: column; gap: 8px; }
.admin-people > div { display: flex; align-items: center; gap: 9px; }
.admin-people > div > span { display: flex; flex-direction: column; flex: 1; }
.admin-people strong { font-size: 10.5px; }
.admin-people small { font-size: 8.5px; color: var(--muted); }
.flag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.flag-item { display: inline-block; background: #fbe4e1; color: #8f1a12; border-radius: 5px; padding: 2px 6px; font-size: 8.5px; }
.admin-profile-head { display: flex; align-items: center; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.admin-profile-head > div { flex: 1; }
.admin-profile-head h2 { font-size: 18px; }
.admin-profile-head p { font-size: 10.5px; color: var(--muted); }
.admin-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.admin-kv > div { display: flex; flex-direction: column; padding: 8px 10px; background: var(--sand-2); border-radius: 8px; }
.admin-kv span { font-size: 8.5px; color: var(--muted); }
.admin-kv strong { font-size: 10.5px; overflow-wrap: anywhere; }
.dispute-list { display: flex; flex-direction: column; gap: 10px; }
.dispute-card { border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.dispute-head { display: flex; justify-content: space-between; gap: 12px; }
.dispute-head h3 { font-size: 14px; margin-top: 2px; }
.dispute-head small { font-size: 9px; color: var(--muted); }
.dispute-reason { font-size: 11px; color: var(--ink-3); margin: 9px 0; line-height: 1.65; }
.dispute-meta { display: flex; gap: 14px; font-size: 9.5px; color: var(--muted); flex-wrap: wrap; }
.dispute-actions { margin-top: 10px; }
.llm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.llm-side { display: flex; flex-direction: column; gap: 12px; }
.llm-side .panel { margin: 0; }
.llm-form-panel .form { gap: 14px; }
.llm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.llm-actions .muted { flex: 1; min-width: 150px; }
.llm-actions .ok { color: var(--teal); }
.llm-actions .bad { color: var(--red); }
.preset-list { display: flex; flex-direction: column; gap: 6px; }
.preset-list > div { padding: 8px 9px; border-radius: 8px; border: 1px solid var(--line); }
.preset-list > div.active { border-color: var(--teal); background: var(--mint); }
.preset-list strong { font-size: 10.5px; }
.preset-list small { display: block; font-size: 8.5px; color: var(--muted); }
.preset-list p { font-size: 9px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.secret-hint { color: var(--amber) !important; }
.account-reveal { margin-top: 2px; }
.account-reveal summary { cursor: pointer; color: var(--teal); font-size: 9px; list-style: none; }
.account-reveal summary::-webkit-details-marker { display: none; }
.account-reveal span { display: block; margin-top: 3px; color: var(--ink-3); font-size: 9px; }

/* ============ Error ============ */
.error-page { text-align: center; padding: 80px 20px; max-width: 620px; margin: 0 auto; }
.error-code { font-size: 72px; font-weight: 800; color: var(--line-2); letter-spacing: -.06em; line-height: 1; }
.error-page h1 { font-size: 30px; margin: 12px 0 8px; letter-spacing: -.04em; }
.error-page p { color: var(--muted); font-size: 13px; }
.error-hint { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; background: var(--sand-2); padding: 8px 12px; border-radius: 8px; font-size: 11px; color: var(--ink-3); }
.error-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 420px; }
  .hero-task { width: 420px; }
  .float-money { right: 4%; }
  .float-fee { left: 4%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .features-section, .llm-section { grid-template-columns: 1fr; gap: 32px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kanban-col { flex-basis: 220px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .task-detail-grid { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 1024px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .app-sidebar.open { transform: none; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: none; }
  .app-main, .admin-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .sidebar-scrim { display: none; position: fixed; inset: 0; background: rgba(10,20,16,.45); z-index: 55; }
  .sidebar-scrim.open { display: block; }
  .mobile-tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(255,253,248,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; color: var(--muted); padding: 3px; }
  .mobile-tabbar a.active { color: var(--teal); }
  .app-content { padding-bottom: 90px; }
  .dash-grid, .publish-layout, .preview-grid, .messages-layout, .chat-layout, .profile-grid, .llm-layout { grid-template-columns: 1fr; }
  .dash-side, .publish-side, .preview-side, .messages-side, .chat-side, .profile-side, .llm-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .task-detail-grid { grid-template-columns: 1fr; }
  .task-detail-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sticky-panel { position: static; }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .wallet-hero { grid-column: span 2; }
  .wallet-columns { grid-template-columns: 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .chat-panel { height: 70vh; }
  .login-left { padding: 36px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
}
@media (max-width: 760px) {
  .public-nav-inner { width: calc(100% - 32px); min-height: 64px; gap: 12px; }
  .public-links { display: none; }
  .public-actions .btn-ghost { display: none; }
  .hero { width: calc(100% - 32px); padding-top: 44px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 18px; }
  .hero-visual { min-height: 380px; }
  .hero-task { width: 100%; transform: none; }
  .orbit-a, .orbit-b { display: none; }
  .float-card { display: none; }
  .hero-foot { margin-top: 36px; }
  .section { width: calc(100% - 32px); padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .process-grid, .category-grid, .trust-grid, .feature-list, .task-preview-grid, .task-grid, .task-grid.three { grid-template-columns: 1fr; }
  .feature-item p { min-height: 0; }
  .escrow-card, .closing-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .closing-card { flex-direction: column; align-items: flex-start; }
  .escrow-example { gap: 8px; }
  .footer-inner { flex-direction: column; gap: 30px; }
  .footer-cols { gap: 30px; justify-content: space-between; }
  .footer-bottom { flex-direction: column; }
  .page-hero { width: calc(100% - 32px); padding: 50px 0 30px; }
  .page-hero.dark-hero { width: 100%; }
  .flow-item { grid-template-columns: 34px 1fr; gap: 12px; }
  .flow-ic { display: none; }
  .split-info { grid-template-columns: 1fr; }
  .legal-body ul { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 30px 18px; }
  .login-mobile-brand { display: block; }
  .login-card h2 { font-size: 24px; }
  .demo-grid { grid-template-columns: 1fr; }
  .app-content, .admin-content { padding: 18px 14px 88px; }
  .app-topbar, .admin-topbar { padding: 0 14px; min-height: 60px; }
  .admin-date, .topbar-user span { display: none; }
  .page-head, .admin-page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-actions { width: 100%; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .task-detail-side, .dash-side, .publish-side, .preview-side, .messages-side, .chat-side, .profile-side, .llm-side, .admin-detail-side { grid-template-columns: 1fr; }
  .lifecycle { overflow-x: auto; }
  .life-step { min-width: 100px; }
  .key-facts, .analysis-grid { grid-template-columns: 1fr 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .milestone-track.full, .milestone-preview { grid-template-columns: 1fr; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-hero { grid-column: span 1; }
  .quick-amounts { grid-template-columns: 1fr 1fr; }
  .filter-form { width: 100%; }
  .filter-form .search-box, .filter-form .search-box input { width: 100%; min-width: 0; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .chat-panel { height: calc(100vh - 210px); min-height: 420px; }
  .bubble-row { max-width: 92%; }
  .admin-two-col, .kpi-row, .finance-kpis { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 82px; }
  .kanban-col { flex-basis: 82vw; }
  .chat-composer .btn { width: 40px; height: 40px; }
  .list-row .row-time { display: none; }
  .list-row .row-money { font-size: 11px; }
  .toast { top: 10px; }
}
@media (max-width: 460px) {
  .kpi-row, .finance-kpis, .admin-two-col { grid-template-columns: 1fr; }
  .task-detail-side { grid-template-columns: 1fr; }
  .app-topbar .topbar-context strong { font-size: 12px; }
  .btn-lg { min-height: 46px; padding: 12px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* overflow hardening */
.app-main, .admin-main, .app-content, .admin-content,
.dash-main, .dash-side, .task-detail-main, .task-detail-side,
.publish-main, .publish-side, .preview-main, .preview-side,
.chat-layout > *, .messages-layout > *, .profile-main, .profile-side,
.admin-detail-main, .admin-detail-side, .admin-two-col > *, .panel { min-width: 0; }
.stat-row, .task-grid, .task-detail-grid, .dash-grid, .kpi-row, .admin-two-col { min-width: 0; }
.stat-card, .task-card, .kpi, .task-card-meta { min-width: 0; }
.task-card-meta { flex-wrap: wrap; }
.lifecycle { min-width: 0; max-width: 100%; }

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(34px, 10.4vw, 48px); }
  .hero-lead { max-width: 100%; }
  .marker { white-space: normal; }
  .stat-row, .kpi-row, .finance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-grid, .task-grid.three, .task-detail-grid, .dash-grid, .publish-layout, .preview-grid,
  .messages-layout, .chat-layout, .profile-grid, .wallet-columns, .admin-two-col,
  .admin-detail-grid, .llm-layout { grid-template-columns: minmax(0, 1fr); }
  .stat-card { padding: 12px; gap: 8px; }
  .stat-card strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-card small { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .task-card-meta { gap: 8px; }
  .task-card-meta .task-skill { margin-left: 0; }
  .task-status-left { flex-wrap: wrap; }
  .lifecycle { padding: 10px 12px; }
  .admin-topbar .topbar-actions .btn { display: none; }
  .admin-topbar .topbar-actions { gap: 0; }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .hero::before { inset: 20px 0 0; border-radius: 0; }
  .hero-grid, .hero-copy { min-width: 0; }
  .toast { top: 70px; }
  .life-step { min-width: 82px; font-size: 9.5px; }
  .lifecycle { padding: 9px 10px; }
}
@media (max-width: 760px) {
  .toast { top: auto; bottom: 74px; }
}
.bank-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--sand-2); border: 1px dashed var(--line-2); }
.bank-box span { font-size: 9.5px; color: var(--muted); }
.bank-box strong { font-size: 12px; }
.bank-box b { font-size: 14px; letter-spacing: .05em; color: var(--teal); }
.bank-box small { font-size: 9.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.app-body .toast, .admin-body .toast { top: 78px; left: auto; right: 24px; transform: none; }

@media (max-width: 760px) {
  .app-body .toast, .admin-body .toast { top: auto; bottom: 74px; left: 50%; right: auto; transform: translateX(-50%); }
}
.audit-messages { display: flex; flex-direction: column; gap: 8px; }
.audit-msg { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.audit-msg.warn { border-color: #e5c27f; background: #fffaf0; }
.audit-msg-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.audit-msg-head strong { font-size: 10.5px; }
.audit-msg-head small { font-size: 8.5px; color: var(--muted); }
.audit-msg p { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; overflow-wrap: anywhere; }
.beta-box { padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--sand-2); display: flex; flex-direction: column; gap: 7px; }
.beta-box strong { font-size: 15px; }
.beta-box p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.beta-box .btn { align-self: flex-start; margin-top: 2px; }
