:root{
  --canvas:#F8F5F0;--surface:#FFFFFF;--surface-alt:#F1ECE8;--ink:#1D1A1B;--muted:#746D6E;
  --border:#E5DEDA;--ember:#EB6048;--action:#C64230;--pressed:#A93629;--butter:#F1D783;
  --sage:#A7B5A3;--berry:#654457;--success:#2F6B4F;--warning:#7A531A;--danger:#A83232;
  --shadow-1:0 2px 8px rgba(29,26,27,.06);--shadow-2:0 8px 28px rgba(29,26,27,.11);
  --ease:cubic-bezier(0.2,0,0,1);--tg-safe-top:0px;--tg-safe-bottom:0px;--tg-safe-left:0px;
  --tg-safe-right:0px;--bb-app-height:100dvh;--shell-h:60px;--nav-h:64px
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background-color:#F8F5F0!important;background-image:none!important;color:var(--ink);color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
html{overscroll-behavior:none}
body{min-width:320px;-webkit-font-smoothing:antialiased}
body.bb-route-discover,body.bb-route-profile{height:var(--bb-app-height);overflow:hidden}
button,input{font:inherit}button{color:inherit}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bb-app,#app{width:100%;height:var(--bb-app-height);overflow:hidden;background-color:#F8F5F0!important}
.discovery-page,.profile-page{width:100%;max-width:480px;height:var(--bb-app-height);margin:0 auto;background:var(--canvas);position:relative;overflow:hidden}

.top-shell{height:calc(var(--shell-h) + var(--tg-safe-top));padding:calc(6px + var(--tg-safe-top)) 16px 6px;display:grid;grid-template-columns:48px 1fr 48px;gap:8px;align-items:center;position:relative;z-index:10}
.brand-mark,.icon-button,.floating-back{width:48px;height:48px;border:0;border-radius:16px;display:grid;place-items:center;background:var(--surface);box-shadow:var(--shadow-1);font-weight:800}
.brand-mark{background:var(--ink);color:#fff;letter-spacing:-1px}.icon-button:disabled{opacity:.38}
.search-trigger{height:48px;border:1px solid var(--border);border-radius:16px;background:var(--surface);display:flex;align-items:center;gap:8px;padding:0 14px;color:var(--muted);font-size:15px;line-height:20px}

.discovery-stage{height:calc(var(--bb-app-height) - var(--shell-h) - var(--nav-h) - var(--tg-safe-top) - var(--tg-safe-bottom));padding:0 16px 8px;touch-action:pan-y;overflow:hidden}
.discovery-card{height:auto;max-height:100%;min-height:0;background:var(--surface);border-radius:24px;overflow-y:auto;overflow-x:hidden;box-shadow:var(--shadow-2);border:1px solid rgba(229,222,218,.9);display:flex;flex-direction:column;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-width:none}.discovery-card::-webkit-scrollbar{display:none}
.hero-media{position:relative;flex:0 0 clamp(236px,calc(var(--bb-app-height) * .37),340px);min-height:0;background:var(--surface-alt);overflow:hidden}
.hero-image,.profile-hero-image{width:100%;height:100%;object-fit:cover;display:block}
.media-fallback{width:100%;height:100%;place-items:center;background:linear-gradient(150deg,var(--surface-alt),#ddd4cf);font-size:48px;font-weight:800;color:var(--berry)}
.hero-scrim,.profile-hero-scrim{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(20,15,17,.03) 48%,rgba(20,15,17,.72) 100%);pointer-events:none}
.hero-topline{position:absolute;top:14px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.position-chip,.status-chip,.verified-label{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border-radius:12px;font-size:12px;line-height:16px;font-weight:600}
.position-chip,.status-chip.light{background:rgba(255,255,255,.92);backdrop-filter:blur(12px)}
.identity-overlay{position:absolute;left:18px;right:18px;bottom:16px;color:#fff}
.eyebrow{margin:0 0 4px;font-size:13px;line-height:18px;font-weight:700}.eyebrow.dark{color:var(--berry)}
.identity-overlay h1,.profile-identity h1{font-size:30px;line-height:36px;margin:0;font-weight:700;letter-spacing:-.02em}
.identity-subtitle{margin:4px 0 0;font-size:16px;line-height:21px;font-weight:700;color:rgba(255,255,255,.98);text-shadow:0 1px 10px rgba(0,0,0,.18)}
.profile-identity .profile-subtitle{font-size:18px;line-height:23px;opacity:1;font-weight:700}

.discovery-content{flex:0 0 auto;min-height:0;padding:12px;display:flex;flex-direction:column;gap:8px}
.decision-summary{display:grid;gap:6px}
.decision-geo{margin:0;font-size:15px;line-height:20px;font-weight:600;color:var(--ink)}
.decision-signals{display:flex;flex-wrap:wrap;gap:6px;overflow-x:auto;scrollbar-width:none}.decision-signals::-webkit-scrollbar{display:none}
.signal-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:10px;background:var(--surface-alt);color:var(--muted);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
.work-strip{flex:0 0 clamp(82px,11vh,112px);min-height:82px;max-height:112px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(96px,1fr);gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x}
.work-strip::-webkit-scrollbar{display:none}
.work-thumb{border:0;padding:0;border-radius:14px;overflow:hidden;background:var(--surface-alt);scroll-snap-align:start}.work-thumb-image{width:100%;height:100%;object-fit:cover}
.no-works{min-height:72px;border-radius:14px;background:var(--surface-alt);display:grid;place-items:center;color:var(--muted);font-size:14px;line-height:20px}
.discovery-actions{display:grid;grid-template-columns:1fr 52px;gap:8px;margin-top:2px}
.button{height:52px;border-radius:16px;border:0;padding:0 16px;font-size:16px;line-height:20px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform 140ms var(--ease),background 140ms var(--ease)}
.button:active{transform:scale(.985)}.button.primary{background:var(--action);color:#fff}.button.primary:active{background:var(--pressed)}
.button.secondary{background:var(--surface-alt);color:var(--ink);border:1px solid var(--border)}.button.full{width:100%}
.next-button{background:var(--ink);color:#fff;box-shadow:none}
.gesture-hint{margin:0;text-align:center;color:var(--muted);font-size:12px;line-height:16px}

.bottom-nav{position:absolute;z-index:20;left:0;right:0;bottom:0;height:calc(var(--nav-h) + var(--tg-safe-bottom));padding:5px 8px var(--tg-safe-bottom);background:rgba(248,245,240,.97);backdrop-filter:blur(16px);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,1fr)}
.nav-item{border:0;background:transparent;border-radius:12px;min-width:0;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:11px;line-height:14px;font-weight:600}
.nav-item.is-active{color:var(--action);background:rgba(198,66,48,.08)}.nav-icon{font-size:20px;line-height:20px}

.profile-page{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-behavior:smooth;padding-bottom:calc(84px + var(--tg-safe-bottom))}
.profile-hero{height:clamp(280px,calc(var(--bb-app-height) * .39),360px);min-height:280px;position:relative;overflow:hidden;background:var(--surface-alt)}
.profile-hero-scrim{background:linear-gradient(to bottom,rgba(20,15,17,.04) 40%,rgba(20,15,17,.74) 100%)}
.floating-back{position:absolute;top:calc(10px + var(--tg-safe-top));left:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}
.profile-identity{position:absolute;left:20px;right:20px;bottom:22px;color:#fff}.profile-identity p{font-size:15px;line-height:21px;margin:4px 0 0;opacity:.96}
.profile-shell{margin-top:-14px;position:relative;background:var(--canvas);border-radius:24px 24px 0 0;padding:14px 16px 32px}
.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:9px}
.profile-facts>div{min-height:50px;padding:7px 9px;border-radius:14px;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0}
.profile-facts strong{font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-facts span{font-size:10px;line-height:13px;color:var(--muted)}.profile-facts .fact-note{display:none}
.profile-intro{margin:0 0 14px;padding:13px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--border)}
.profile-intro p{margin:0;font-size:15px;line-height:21px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.profile-tabs{position:sticky;top:0;z-index:12;display:flex;overflow-x:auto;gap:2px;margin:0 -16px;padding:0 16px;border-bottom:1px solid var(--border);background:rgba(248,245,240,.97);backdrop-filter:blur(14px);scrollbar-width:none;touch-action:pan-x;user-select:none;-webkit-user-select:none}
.profile-tab{height:50px;padding:0 12px;border:0;background:transparent;color:var(--muted);font-size:15px;line-height:20px;font-weight:600;white-space:nowrap;position:relative;touch-action:manipulation}
.profile-tab.is-active{color:var(--ink)}.profile-tab.is-active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--action);border-radius:999px}
.tab-panel{padding-top:16px}

.portfolio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.portfolio-item{margin:0;border-radius:16px;overflow:hidden;background:var(--surface);border:1px solid var(--border)}
.portfolio-image{width:100%;aspect-ratio:1/1.12;object-fit:cover;display:block}.portfolio-item figcaption{padding:9px 10px;font-size:13px;line-height:18px;color:var(--muted)}
.service-list,.reviews-list{display:grid;gap:12px}.service-card,.review-card,.about-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:16px}
.service-card{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.service-card h3{font-size:17px;line-height:23px;margin:0 0 6px}.service-card p{margin:0;color:var(--muted);font-size:15px;line-height:21px}
.service-note{font-size:12px;line-height:16px;color:var(--muted);max-width:110px;text-align:right}.system-note{font-size:13px;line-height:18px;color:var(--muted);margin:4px 2px}
.review-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.review-head strong{color:var(--warning);letter-spacing:1px;font-size:16px}
.verified-label{min-height:28px;background:rgba(47,107,79,.10);color:var(--success)}.review-card p{font-size:15px;line-height:21px}
.about-card h2{font-size:21px;line-height:27px;margin:0 0 10px}.about-card p{font-size:16px;line-height:23px;margin:0}.muted{color:var(--muted)}
.about-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.about-meta span{padding:8px 10px;border-radius:12px;background:var(--surface-alt);font-size:13px;line-height:18px}
.profile-bottom-action{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:0;width:min(480px,100%);padding:8px 16px calc(8px + var(--tg-safe-bottom));background:linear-gradient(to top,var(--canvas) 78%,rgba(248,245,240,0));display:grid;gap:8px}
.action-context{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-1);flex-wrap:wrap}
.action-context strong{font-size:14px;line-height:19px}
.action-context span{font-size:12px;line-height:16px;color:var(--muted);text-align:right}
.action-context-open{border-color:rgba(47,107,79,.18);background:rgba(47,107,79,.08)}
.action-context-requests{border-color:rgba(122,83,26,.18);background:rgba(122,83,26,.08)}
.action-context-closed{background:var(--surface-alt)}
.signal-chip.status-requests{background:rgba(122,83,26,.10);color:var(--warning)}
.signal-chip.status-closed{background:#ebe6e2;color:var(--muted)}
.discovery-interaction{display:flex;gap:6px;min-width:0;align-items:stretch;overflow:hidden}
.discovery-interaction::-webkit-scrollbar{display:none}
.interaction-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border-radius:10px;font-size:12px;line-height:16px;font-weight:700;white-space:nowrap;border:1px solid transparent;min-width:0}
.interaction-status{flex:0 0 auto;max-width:42%;overflow:hidden;text-overflow:ellipsis}
.discovery-intents{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.discovery-intents.has-many{grid-template-columns:repeat(2,minmax(0,1fr))}
.discovery-intent{width:100%;height:32px;max-width:none;padding:5px 28px 5px 9px;border-color:rgba(198,66,48,.26);background:rgba(198,66,48,.09);color:var(--action);position:relative;font-family:inherit;cursor:pointer;overflow:hidden;box-shadow:0 1px 0 rgba(198,66,48,.04);justify-content:flex-start}
.discovery-intent-model{border-color:rgba(101,68,87,.24);background:rgba(101,68,87,.08);color:var(--berry)}
.discovery-intent-all{border-color:var(--border);background:var(--surface-alt);color:var(--berry)}
.discovery-intent b{flex:0 1 auto;min-width:0;font-size:12px;line-height:16px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.discovery-intent span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:15px;font-weight:600;opacity:.84}
.discovery-intent b+span:before{content:" · ";opacity:.6}
.discovery-intent svg{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9}
.interaction-open{background:rgba(47,107,79,.10);color:var(--success);border-color:rgba(47,107,79,.16)}
.interaction-requests{background:rgba(122,83,26,.10);color:var(--warning);border-color:rgba(122,83,26,.14)}
.interaction-closed{background:#ebe6e2;color:var(--muted);border-color:var(--border)}
.application-chip{background:var(--surface);color:var(--berry);border-color:var(--border);font-weight:650}
.discovery-actions-three{grid-template-columns:72px 1fr 72px}
.master-nav-button{width:100%;height:52px;border-radius:16px;background:var(--ink);color:#fff;box-shadow:none}
.master-nav-button:disabled{background:#d7d0cb;color:#8e8782;opacity:1}


.empty-inline{min-height:180px;border:1px dashed var(--border);border-radius:20px;display:grid;place-items:center;align-content:center;text-align:center;padding:24px;color:var(--muted)}
.empty-inline p{font-size:15px;line-height:21px}.empty-inline span,.system-symbol{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:var(--ink);color:#fff;font-weight:800}
.system-page{height:var(--bb-app-height);display:grid;place-items:center;padding:24px;overflow:hidden}.system-card{width:min(360px,100%);text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:28px;padding:28px;box-shadow:var(--shadow-1)}
.system-symbol{margin:0 auto 16px}.system-card h1{font-size:24px;line-height:30px;margin:0 0 8px}.system-card p{color:var(--muted);font-size:15px;line-height:21px;margin:0 0 20px}
.bb-toast{position:fixed;z-index:100;left:50%;bottom:calc(84px + var(--tg-safe-bottom));transform:translate(-50%,16px);width:min(360px,calc(100% - 32px));padding:12px 14px;border-radius:16px;background:var(--ink);color:#fff;font-size:14px;line-height:20px;opacity:0;pointer-events:none;transition:opacity 180ms var(--ease),transform 180ms var(--ease);box-shadow:var(--shadow-2)}
.bb-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.skeleton{background:linear-gradient(100deg,#eee7e2 20%,#f8f3ef 40%,#eee7e2 60%);background-size:200% 100%;animation:shimmer 1.4s infinite}.skeleton-card{height:100%;min-height:0}
.hero-skeleton{height:40%}.profile-hero-skeleton{height:340px}.skeleton-lines{padding:18px;display:grid;gap:10px}.skeleton-lines span{height:16px;border-radius:8px;background:#eee7e2}.skeleton-lines span:nth-child(2){width:72%}.skeleton-lines span:nth-child(3){width:48%}
@keyframes shimmer{to{background-position:-200% 0}}

@media(max-height:720px){
  :root{--shell-h:56px;--nav-h:60px}.top-shell{grid-template-columns:44px 1fr 44px}.brand-mark,.icon-button{width:44px;height:44px;border-radius:14px}.search-trigger{height:44px}
  .hero-media{flex-basis:clamp(220px,calc(var(--bb-app-height) * .35),280px)}.work-strip{max-height:88px;min-height:72px}.gesture-hint{display:none}.discovery-content{gap:8px;padding:10px}
}
@media(min-width:481px){
  body{display:grid;place-items:center}.discovery-page,.profile-page{height:min(var(--bb-app-height),900px);border-radius:30px;box-shadow:0 24px 80px rgba(29,26,27,.12)}
}
@media(max-width:350px){
  .identity-overlay h1,.profile-identity h1{font-size:27px;line-height:33px}.profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-facts>div{min-height:48px;padding:6px}.profile-facts strong{font-size:12px;line-height:16px}.decision-geo{font-size:14px}.profile-tab{font-size:14px;padding:0 10px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.12s!important;transition-duration:.12s!important}}


/* ---------- v0.5 discovery enrichment ---------- */
.bio-teaser{
  width:100%;
  border:1px solid var(--border);
  background:var(--surface-alt);
  border-radius:14px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:8px;
  text-align:left;
}
.bio-teaser-label{
  font-size:12px;
  line-height:16px;
  font-weight:700;
  color:var(--berry);
  white-space:nowrap;
}
.bio-teaser-text{
  min-width:0;
  font-size:13px;
  line-height:18px;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bio-teaser-more{
  display:inline-flex;
  align-items:center;
  gap:2px;
  color:var(--muted);
  font-size:12px;
  line-height:16px;
  white-space:nowrap;
}
.bio-teaser-more svg{width:16px;height:16px}

/* ---------- v0.5 profile summary ---------- */
.fact-label{
  display:block;
  margin-bottom:2px;
  color:var(--muted)!important;
  font-size:11px!important;
  line-height:14px!important;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.profile-facts strong{
  font-size:15px;
  line-height:20px;
  overflow-wrap:anywhere;
}

/* ---------- v0.5 services ---------- */
.service-card{
  display:block;
  padding:0;
  overflow:hidden;
}
.service-card-head{
  padding:16px 16px 13px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#fdfbf9);
}
.service-kicker{
  margin:0 0 3px!important;
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:16px!important;
  font-weight:600;
}
.service-card-head h3{
  margin:0;
  font-size:19px;
  line-height:25px;
  color:var(--ink);
}
.experience-chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border-radius:10px;
  background:var(--surface-alt);
  color:var(--berry);
  font-size:12px;
  line-height:16px;
  font-weight:600;
}
.service-card-body{
  padding:14px 16px 16px;
}
.service-section-label{
  margin:0 0 8px!important;
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:16px!important;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.service-description{
  margin:0!important;
  color:var(--ink)!important;
  font-size:16px!important;
  line-height:23px!important;
}
.service-items{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.service-items li{
  position:relative;
  padding-left:18px;
  color:var(--ink);
  font-size:15px;
  line-height:21px;
}
.service-items li:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--ember);
  position:absolute;
  left:2px;
  top:.55em;
}
.service-card-foot{
  min-height:42px;
  padding:9px 16px;
  border-top:1px solid var(--border);
  background:var(--surface-alt);
  display:flex;
  align-items:center;
}
.service-card-foot span{
  color:var(--muted);
  font-size:12px;
  line-height:16px;
}

/* ---------- v0.5 portfolio viewer ---------- */
.portfolio-item{
  appearance:none;
  width:100%;
  padding:0;
  text-align:left;
  color:inherit;
  cursor:pointer;
}
.portfolio-caption{
  display:block;
  padding:9px 10px;
  font-size:13px;
  line-height:18px;
  color:var(--muted);
}
.work-viewer{
  position:fixed;
  z-index:200;
  inset:0;
  width:min(480px,100%);
  height:var(--bb-app-height);
  margin:0 auto;
  background:rgba(17,15,16,.985);
  color:#fff;
  display:grid;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
}
.viewer-topbar{
  min-height:64px;
  padding:calc(8px + var(--tg-safe-top)) 14px 8px;
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
}
.viewer-icon,.viewer-control{
  width:48px;
  height:48px;
  border:0;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
}
.viewer-count{
  justify-self:center;
  color:rgba(255,255,255,.88);
  font-size:14px;
  line-height:20px;
  font-weight:600;
}
.viewer-spacer{width:48px}
.viewer-stage{
  min-height:0;
  display:grid;
  place-items:center;
  padding:8px 0;
  overflow:hidden;
  touch-action:pan-x pinch-zoom;
}
.viewer-image{
  width:100%;
  height:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}
.viewer-stage .media-fallback{
  width:min(80%,320px);
  height:min(60%,420px);
  border-radius:24px;
}
.viewer-footer{
  padding:10px 16px calc(14px + var(--tg-safe-bottom));
}
.viewer-footer>p{
  margin:0 auto 12px;
  max-width:360px;
  text-align:center;
  color:rgba(255,255,255,.86);
  font-size:14px;
  line-height:20px;
}
.viewer-controls{
  display:grid;
  grid-template-columns:48px 1fr 48px;
  gap:12px;
  align-items:center;
}
.viewer-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  min-width:0;
}
.viewer-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.28);
}
.viewer-dots span.is-active{
  width:18px;
  border-radius:999px;
  background:#fff;
}
.nav-item{
  font-size:12px;
  line-height:16px;
}
.nav-item svg{
  width:21px;
  height:21px;
  margin-bottom:1px;
}

@media(max-height:720px){
  
  .service-card-head h3{font-size:18px;line-height:24px}
}

@media(min-width:481px){
  .work-viewer{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    height:min(var(--bb-app-height),900px);
    border-radius:30px;
  }
}


/* ---------- v0.6 exact canvas + scrollbar ---------- */
html,body,#app,.bb-app,.discovery-page,.profile-page{
  background-color:#F8F5F0!important;
}
.profile-page{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.profile-page::-webkit-scrollbar{display:none;width:0;height:0}

/* ---------- v0.6 discovery explicit previous / next ---------- */
.discovery-actions-three{
  grid-template-columns:52px minmax(0,1fr) 52px;
}
.master-nav-button{
  background:var(--ink);
  color:#fff;
  box-shadow:none;
}
.master-nav-button:disabled{
  background:var(--surface-alt);
  color:var(--muted);
  opacity:.55;
}

/* ---------- v0.6 compact About teaser ---------- */
.profile-intro{
  width:100%;
  text-align:left;
  cursor:pointer;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:
    "label more"
    "text text";
  row-gap:4px;
  column-gap:8px;
}
.profile-intro-label{
  grid-area:label;
  color:var(--berry);
  font-size:12px;
  line-height:16px;
  font-weight:700;
}
.profile-intro p{
  grid-area:text;
}
.profile-intro-more{
  grid-area:more;
  display:inline-flex;
  align-items:center;
  gap:2px;
  color:var(--muted);
  font-size:12px;
  line-height:16px;
  white-space:nowrap;
}
.profile-intro-more svg{width:15px;height:15px}

/* ---------- v0.6 work viewer zoom ---------- */
.viewer-stage{
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.viewer-zoomable{
  --viewer-zoom:1;
  transform:scale(var(--viewer-zoom));
  transform-origin:center center;
  transition:transform 140ms var(--ease);
  will-change:transform;
}
.viewer-stage.is-zoomed{
  cursor:zoom-out;
  touch-action:pan-x pan-y;
}
.viewer-stage:not(.is-zoomed){
  cursor:zoom-in;
}
.viewer-zoom-hint{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  max-width:calc(100% - 32px);
  padding:6px 10px;
  border-radius:10px;
  background:rgba(17,15,16,.58);
  backdrop-filter:blur(8px);
  color:rgba(255,255,255,.82);
  font-size:11px;
  line-height:15px;
  white-space:nowrap;
  pointer-events:none;
}
.viewer-stage.is-zoomed .viewer-zoom-hint{opacity:0}

@media(max-height:720px){
  .profile-facts>div{min-height:66px;padding:8px}
}


/* ---------- v0.7 semantic location ---------- */
.geo-breakdown{display:flex;flex-wrap:wrap;gap:6px}
.geo-part{min-width:0;display:inline-flex;align-items:baseline;gap:5px;padding:6px 9px;border-radius:10px;background:var(--surface-alt);color:var(--ink)}
.geo-part-label{color:var(--muted);font-size:11px;line-height:15px;font-weight:600}
.geo-part strong{min-width:0;font-size:13px;line-height:18px;font-weight:650}
.discovery-geo{gap:8px}
.discovery-geo .geo-part{padding:6px 10px;border-radius:11px}
.discovery-geo .geo-part.city{background:rgba(198,66,48,.08)}
.discovery-geo .geo-part.metro,.discovery-geo .geo-part.workplace{background:var(--surface-alt)}

.profile-geo{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.profile-geo .geo-part{min-height:28px;padding:5px 8px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px);color:#fff}
.profile-geo .geo-part-label{color:rgba(255,255,255,.70)}
.profile-geo .geo-part strong{color:#fff;font-size:12px;line-height:16px}

.bio-teaser{min-height:42px}
.bio-teaser-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden}
.about-meta span b{font-weight:700;color:var(--berry)}
.work-strip{touch-action:pan-x}

@media(max-height:720px){
  .bio-teaser{display:grid;padding:8px 10px;min-height:38px}
  .bio-teaser-text{-webkit-line-clamp:1;font-size:12px;line-height:16px}
  .bio-teaser-label,.bio-teaser-more{font-size:11px;line-height:15px}
  .geo-part{padding:5px 8px}
  .geo-part-label{font-size:10px}
  .geo-part strong{font-size:12px;line-height:16px}
}
@media(max-width:360px){.profile-geo .geo-part{padding:4px 7px}}

/* ---------- Marketplace Bridge v1.4 ---------- */
body.bb-route-marketplace{height:var(--bb-app-height);overflow:hidden;background:var(--canvas)}
.market-page{width:100%;max-width:480px;height:var(--bb-app-height);margin:0 auto;background:var(--canvas);position:relative;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding-bottom:calc(var(--nav-h) + 22px + var(--tg-safe-bottom))}
.market-page.detail-page,.market-page.action-page,.market-page.gate-page{padding-bottom:calc(92px + var(--tg-safe-bottom))}
.market-header{min-height:calc(64px + var(--tg-safe-top));padding:calc(8px + var(--tg-safe-top)) 16px 8px;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;position:sticky;top:0;z-index:25;background:rgba(248,245,240,.96);backdrop-filter:blur(16px);border-bottom:1px solid rgba(229,222,218,.84)}
.market-header>div{min-width:0}.market-header h1{margin:0;font-size:22px;line-height:28px;letter-spacing:-.02em}.market-header p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-shell{padding:14px 16px 22px}.detail-shell,.activity-shell,.action-form{display:grid;gap:10px}
.market-page .bottom-nav{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:min(480px,100%)}

.request-type-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:16px;background:var(--surface-alt);margin-bottom:12px;position:sticky;top:calc(64px + var(--tg-safe-top));z-index:20}
.request-type-tab{height:42px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:14px;line-height:18px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px}.request-type-tab>span{min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:inline-grid;place-items:center;background:rgba(101,68,87,.08);font-size:11px;line-height:20px}.request-type-tab.is-active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}.request-type-tab.is-active>span{background:rgba(198,66,48,.10);color:var(--action)}
.request-list{display:grid;gap:10px}.request-card,.activity-card,.detail-card,.form-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:14px;box-shadow:var(--shadow-1);min-width:0}
.request-card-top,.activity-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.entity-type-chip,.request-status{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:10px;font-size:12px;line-height:16px;font-weight:700}.entity-type-chip{background:rgba(198,66,48,.09);color:var(--action)}.entity-type-chip.model{background:rgba(101,68,87,.09);color:var(--berry)}.request-status{background:var(--surface-alt);color:var(--muted);max-width:52%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.request-author{border:0;background:transparent;padding:0;margin:0 0 10px;text-align:left;font-size:17px;line-height:22px;font-weight:750;color:var(--ink);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.request-pair{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:8px;align-items:center;padding:12px;border-radius:16px;background:var(--surface-alt);margin-bottom:10px}.request-pair>div:not(.pair-arrow){min-width:0}.request-pair span,.model-request-main span{display:block;color:var(--muted);font-size:11px;line-height:15px;font-weight:650;margin-bottom:3px}.request-pair strong,.model-request-main strong{display:block;font-size:14px;line-height:19px;overflow-wrap:anywhere}.compact-pair strong{font-size:15px;line-height:20px}.model-request-main .model-request-title{font-size:16px;line-height:21px}.pair-arrow{text-align:center;color:var(--action);font-weight:800}.request-meta{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.request-meta span{padding:6px 8px;border-radius:10px;background:var(--surface-alt);color:var(--muted);font-size:12px;line-height:16px}.model-request-main{padding:12px;border-radius:16px;background:var(--surface-alt);margin-bottom:10px}
.request-card .button{height:46px;font-size:14px;border-radius:14px}.button.small{height:42px;border-radius:13px;font-size:13px;padding:0 13px}.ghost-action{background:transparent;color:var(--muted);border:1px solid var(--border)}

.detail-author-card{width:100%;min-height:64px;border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:12px 14px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"label icon" "name icon";align-items:center;text-align:left;box-shadow:var(--shadow-1)}.detail-author-card span{grid-area:label;color:var(--muted);font-size:11px;line-height:15px;font-weight:650}.detail-author-card strong{grid-area:name;font-size:17px;line-height:22px}.detail-author-card svg{grid-area:icon;color:var(--muted)}
.detail-card h2{margin:3px 0 0;font-size:19px;line-height:25px;overflow-wrap:anywhere}.barter-summary-card h2{font-size:20px;line-height:26px}.detail-inline-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.detail-inline-meta span{padding:5px 8px;border-radius:9px;background:var(--surface-alt);color:var(--muted);font-size:12px;line-height:16px}.location-priority{background:rgba(101,68,87,.045)}.detail-card p{margin:0;font-size:15px;line-height:21px}.detail-label{display:block;color:var(--muted);font-size:11px!important;line-height:15px!important;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.request-detail-pair{display:grid;gap:12px}.request-detail-pair>div+div{padding-top:12px;border-top:1px solid var(--border)}.detail-line{display:grid;gap:3px;padding:10px 0}.detail-line+.detail-line{border-top:1px solid var(--border)}.detail-line strong{font-size:14px;line-height:19px}.detail-line span{color:var(--muted);font-size:14px;line-height:19px;overflow-wrap:anywhere}.compact-detail{display:flex;align-items:center;justify-content:space-between;gap:12px}.compact-detail strong{text-align:right;font-size:14px;line-height:19px;overflow-wrap:anywhere}
.market-bottom-action{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:0;width:min(480px,100%);padding:10px 16px calc(10px + var(--tg-safe-bottom));background:linear-gradient(to top,var(--canvas) 78%,rgba(248,245,240,0))}.market-bottom-action .button:disabled,.action-form .button:disabled{opacity:.5;cursor:not-allowed;transform:none}

.action-form{padding-bottom:26px}.form-card{display:grid;gap:9px}.form-card label{font-size:14px;line-height:19px;font-weight:750}.form-card select,.form-card textarea{width:100%;border:1px solid var(--border);border-radius:14px;background:var(--canvas);color:var(--ink);font:inherit;font-size:15px;line-height:20px;padding:0 12px;outline:none}.form-card select{height:50px}.form-card textarea{min-height:96px;padding-top:12px;resize:vertical}.form-card select:focus,.form-card textarea:focus{border-color:rgba(198,66,48,.48);box-shadow:0 0 0 3px rgba(198,66,48,.08)}
.form-summary,.feature-note{border-radius:16px;padding:12px 13px;display:grid;gap:4px}.form-summary{background:rgba(47,107,79,.08);border:1px solid rgba(47,107,79,.14)}.feature-note{background:var(--surface-alt);border:1px solid var(--border)}.feature-note.warning{background:rgba(122,83,26,.08);border-color:rgba(122,83,26,.16)}.form-summary strong,.feature-note strong{font-size:13px;line-height:18px}.form-summary span,.feature-note span{color:var(--muted);font-size:12px;line-height:17px}
.gate-card{margin:18px auto;display:grid;gap:12px}.gate-card h1{margin:0}.gate-card p{margin:0 0 4px}.gate-card .system-symbol{margin:0 auto 4px}.gate-card .feature-note{text-align:left}.gate-card .button{margin-top:0}.button-link{text-decoration:none;display:flex;align-items:center;justify-content:center}.auth-choice-card,.web-auth-note,.auth-flow-note{display:grid;gap:3px;padding:12px 13px;border-radius:16px;text-align:left}.auth-choice-card,.auth-flow-note{background:rgba(47,107,79,.08);border:1px solid rgba(47,107,79,.14)}.web-auth-note{background:var(--surface-alt);border:1px solid var(--border)}.auth-choice-card strong,.web-auth-note strong,.auth-flow-note strong{font-size:13px;line-height:18px}.auth-choice-card span,.web-auth-note span,.auth-flow-note span{font-size:12px;line-height:17px;color:var(--muted)}

.activity-card p{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:19px}.activity-actions{display:flex;flex-wrap:wrap;gap:8px}
.application-chip.interaction-link,.action-context-link{cursor:pointer}.application-chip.interaction-link{font-family:inherit}.action-context-link{border:0;background:transparent;color:var(--action);display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:16px;font-weight:750}.action-context-link svg{width:15px;height:15px;flex:0 0 auto}.action-context-copy{min-width:0;display:grid;gap:2px;flex:1 1 190px}.action-context-copy span{text-align:left}.action-context-links{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.action-context-links .action-context-link{min-height:36px;padding:5px 8px;border:1px solid rgba(198,66,48,.18);border-radius:10px;background:rgba(255,255,255,.68)}.request-context-link>span{display:grid;gap:0;text-align:left!important;min-width:0}.request-context-link b{font-size:12px;line-height:15px;color:var(--action)}.request-context-link small{display:block;max-width:150px;font-size:10px;line-height:13px;color:var(--muted);font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-height:720px){
  .market-header{min-height:calc(58px + var(--tg-safe-top));grid-template-columns:44px minmax(0,1fr);padding-top:calc(6px + var(--tg-safe-top));padding-bottom:6px}.market-header h1{font-size:20px;line-height:25px}.request-type-tabs{top:calc(58px + var(--tg-safe-top))}.market-shell{padding-top:10px}.request-card,.activity-card,.detail-card,.form-card{padding:12px}.request-pair{padding:10px}.market-bottom-action{padding-top:8px;padding-bottom:calc(8px + var(--tg-safe-bottom))}
}
@media(max-width:360px){
  .request-pair{grid-template-columns:1fr}.pair-arrow{display:none}.request-type-tab{font-size:13px}.market-header p{display:none}.compact-detail{align-items:flex-start;flex-direction:column}.compact-detail strong{text-align:left}.activity-actions{display:grid;grid-template-columns:1fr 1fr}.activity-actions .button{width:100%}
}
@media(min-width:481px){.market-page{height:min(var(--bb-app-height),900px);border-radius:30px;box-shadow:0 24px 80px rgba(29,26,27,.12)}}


/* ---------- Marketplace Bridge v1.5 mobile density + directional gestures ---------- */
/* Vertical movement belongs to the current card; horizontal movement stays reserved for master navigation. */
.discovery-card{scroll-behavior:smooth}
.discovery-intent.is-compact{max-width:none;flex:0 1 auto;padding-right:26px}
.discovery-intent.is-compact b{font-size:11px;line-height:15px}
.request-context-link.is-compact small{display:none}

@media(max-width:480px){
  .profile-page{padding-bottom:calc(124px + var(--tg-safe-bottom))}
  .profile-shell{padding-top:14px}
  .profile-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
  .profile-facts>div{min-height:58px;padding:7px 8px;border-radius:14px;gap:1px}
  .profile-facts strong{font-size:14px;line-height:18px}
  .profile-facts .fact-note{display:none}
  .profile-facts .fact-label{margin-bottom:1px;font-size:10px!important;line-height:13px!important}
  .profile-intro{margin-bottom:10px;padding:10px 11px}
  .profile-intro p{font-size:14px;line-height:19px;-webkit-line-clamp:2}
  .profile-bottom-action{padding:6px 12px calc(6px + var(--tg-safe-bottom));gap:6px}
  .profile-bottom-action .button{height:48px;border-radius:15px;font-size:15px}
  .action-context{padding:8px 9px;gap:6px;flex-wrap:nowrap;border-radius:13px}
  .action-context-copy{flex:1 1 auto;min-width:84px;display:block}
  .action-context-copy strong{font-size:13px;line-height:17px}
  .action-context-copy span{display:none}
  .action-context-links{flex:0 1 auto;min-width:0;flex-wrap:nowrap;gap:5px;overflow:hidden}
  .action-context-links .action-context-link{min-height:32px;max-width:180px;padding:4px 7px;border-radius:9px}
  .request-context-link b{font-size:11px;line-height:14px}
  .request-context-link small{max-width:108px;font-size:9px;line-height:12px}
}

@media(max-height:720px){
  .discovery-card{overflow-y:auto}
  .discovery-content{flex:0 0 auto;min-height:max-content}
  .work-strip{flex:0 0 78px;min-height:78px;max-height:78px}
  .discovery-actions{margin-top:2px}
  .hero-media{flex-basis:clamp(214px,calc(var(--bb-app-height) * .34),268px)}
}

@media(max-height:660px){
  .hero-media{flex-basis:clamp(194px,calc(var(--bb-app-height) * .31),238px)}
  .discovery-content{padding:9px;gap:7px}
  .bio-teaser{min-height:36px}
}


/* ---------- Marketplace Bridge v1.6 adaptive layout + real Telegram resume ---------- */
.discovery-card{height:auto;max-height:100%}
.discovery-content{flex:0 0 auto}
.discovery-actions{margin-top:2px}
.profile-facts .fact-note{display:none!important}
.web-auth-note.warning{background:rgba(122,83,26,.08);border-color:rgba(122,83,26,.16)}
@media(max-width:480px){
  .discovery-interaction{gap:5px}
  .interaction-status{max-width:38%;padding-left:8px;padding-right:8px}
  .discovery-intents.has-many{gap:4px}
  .discovery-intent{padding-left:7px;padding-right:23px}
  .discovery-intent svg{right:5px}
  .profile-facts{gap:5px;margin-bottom:8px}
  .profile-facts>div{min-height:48px;padding:6px 7px}
}
@media(max-width:370px){
  .interaction-status{max-width:34%}
  .discovery-intent b{font-size:10px;line-height:14px}
}


/* ---------- Marketplace Bridge v1.7 stable discovery geometry + compact profile summary ---------- */
/* Discovery request triggers are intentionally short here; request intent stays in Profile/List/Detail. */
.discovery-interaction{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  overflow:visible!important;
}
.interaction-status{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.discovery-intents,
.discovery-intents.has-many{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  grid-template-columns:none!important;
}
.discovery-intent,
.discovery-intent.is-compact{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:150px!important;
  min-width:0!important;
  height:32px!important;
  padding:5px 27px 5px 9px!important;
}
.discovery-intent b{max-width:112px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.discovery-intent span{display:none!important}

/* Keep one compact About slot on every discovery card so cards do not jump in height when bio is missing. */
.bio-teaser{min-height:42px!important;max-height:42px!important;padding:8px 10px!important}
.bio-teaser-empty{cursor:default;background:rgba(244,240,236,.72)}
.bio-teaser-empty .bio-teaser-text{color:var(--muted)}
.bio-teaser-empty .bio-teaser-more{display:none}

/* Compact profile summary: one bar, not three oversized cards. */
.profile-facts-bar{
  min-height:48px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  margin:0 0 10px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
  overflow:hidden;
  box-shadow:var(--shadow-1);
}
.profile-facts-bar>div{min-width:0;padding:7px 10px;display:flex;flex-direction:column;justify-content:center;gap:1px}
.profile-facts-bar>div+div{border-left:1px solid var(--border)}
.profile-facts-bar span{font-size:9px;line-height:12px;font-weight:750;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.profile-facts-bar strong{font-size:13px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Natural card height with bounded scroll when the real phone viewport is shorter. */
.discovery-card{height:auto!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}
.discovery-content{flex:0 0 auto!important;min-height:0!important}
.discovery-stage{overflow:hidden!important}

@media(max-width:480px){
  .discovery-interaction{gap:5px!important}
  .discovery-intents,.discovery-intents.has-many{gap:5px!important}
  .discovery-intent,.discovery-intent.is-compact{max-width:126px!important;height:31px!important;padding:5px 24px 5px 8px!important}
  .discovery-intent b{max-width:94px!important;font-size:11px!important;line-height:15px!important}
  .interaction-status{height:31px!important;padding:5px 9px!important}
  .bio-teaser{grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px!important}
  .bio-teaser-text{font-size:12px!important;line-height:16px!important}
  .bio-teaser-more{font-size:11px!important}
  .profile-facts-bar{min-height:44px;margin-bottom:8px;border-radius:14px}
  .profile-facts-bar>div{padding:6px 7px}
  .profile-facts-bar span{font-size:8px;line-height:11px}
  .profile-facts-bar strong{font-size:12px;line-height:16px}
}
@media(max-width:360px){
  .discovery-intent,.discovery-intent.is-compact{max-width:112px!important}
  .discovery-intent b{max-width:80px!important;font-size:10px!important}
  .bio-teaser-more{display:none!important}
}

/* ---------- Marketplace Bridge v1.8.1 · Model Application + First Action Gate ---------- */
.form-section-title{display:grid;gap:3px}.form-section-title>strong{font-size:16px;line-height:21px}.form-section-title>span,.form-help{font-size:12px;line-height:17px;color:var(--muted)}
.form-card input[type="datetime-local"]{width:100%;height:48px;border:1px solid var(--border);border-radius:14px;background:var(--canvas);color:var(--ink);font:inherit;font-size:14px;padding:0 10px;outline:none;min-width:0}
.form-card input[type="datetime-local"]:focus{border-color:rgba(198,66,48,.48);box-shadow:0 0 0 3px rgba(198,66,48,.08)}
.time-option-list{display:grid;gap:7px}.time-option{display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:var(--canvas);cursor:pointer}.time-option:has(input:checked){border-color:rgba(198,66,48,.38);background:rgba(198,66,48,.06)}.time-option input{width:18px;height:18px;accent-color:var(--action)}.time-option span{display:grid;gap:1px;min-width:0}.time-option strong{font-size:13px;line-height:18px;white-space:normal}.time-option small{font-size:11px;line-height:15px;color:var(--muted)}
.form-divider{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;line-height:15px}.form-divider::before,.form-divider::after{content:"";height:1px;background:var(--border);flex:1}
.custom-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.custom-time-grid label{display:grid;gap:5px;font-size:12px}
.question-stack{display:grid;gap:12px}.question-stack label{display:grid;gap:6px}.question-text{display:block;font-size:13px;line-height:18px;color:var(--ink);font-weight:500}
.model-fit-card>p{margin:0;font-size:13px;line-height:18px}.model-fit-card.is-ready{border-color:rgba(47,107,79,.20)}.model-fit-card.is-blocked{border-color:rgba(122,83,26,.20)}.fit-condition-summary{padding:9px 10px;border-radius:12px;background:var(--surface-alt);font-size:12px;line-height:17px;color:var(--muted)}
.model-apply-summary .request-meta{margin:2px 0 0}.blocking-reasons span{overflow-wrap:anywhere}
.activity-counterpart-static{display:block}.activity-time{display:grid;gap:2px;margin:-2px 0 10px;padding:8px 10px;border-radius:12px;background:var(--surface-alt)}.activity-time strong{font-size:11px;line-height:15px;color:var(--muted);text-transform:uppercase}.activity-time span{font-size:13px;line-height:18px;color:var(--ink)}
@media(max-width:380px){.custom-time-grid{grid-template-columns:1fr}.time-option{padding:9px}.form-section-title>strong{font-size:15px;line-height:20px}}


/* v1.8.4 — compact model application requirements */
.fit-requirements-list{display:grid;gap:6px;margin-top:8px}
.fit-requirements-list span{display:block;padding:8px 10px;border-radius:12px;background:rgba(79,63,63,.055);font-size:13px;line-height:1.35}
.fit-condition-details{margin-top:8px;border-top:1px solid rgba(79,63,63,.1);padding-top:8px}
.fit-condition-details summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--muted,#746d6a)}
.fit-condition-details .fit-condition-summary{margin-top:8px;font-size:12px;line-height:1.4;color:var(--muted,#746d6a)}
.content-consent-card{padding-top:12px;padding-bottom:12px}
.content-consent-card label{margin:0}

/* Marketplace Bridge v1.8.4 — action-oriented Activity + booking guard */
.activity-tabs{position:sticky;top:calc(58px + var(--tg-safe-top));z-index:12;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 16px;background:rgba(248,245,240,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.activity-tab{min-width:0;border:1px solid var(--border);background:var(--surface-alt);color:var(--muted);border-radius:12px;min-height:38px;padding:7px 6px;font:inherit;font-size:12px;font-weight:700;white-space:nowrap}
.activity-tab.is-active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}
.activity-tab b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:3px;padding:0 5px;border-radius:999px;background:var(--action);color:#fff;font-size:11px}
.activity-tab span{color:var(--muted);font-weight:650}
.activity-attention-head{display:grid;gap:3px;padding:11px 12px;border-radius:16px;background:rgba(198,66,48,.08);border:1px solid rgba(198,66,48,.18)}
.activity-attention-head strong{font-size:14px;line-height:19px;color:var(--action)}
.activity-attention-head span{font-size:12px;line-height:17px;color:var(--muted)}
.activity-card{position:relative}
.activity-card.needs-action{border-color:rgba(198,66,48,.34);box-shadow:0 8px 24px rgba(198,66,48,.10)}
.activity-card.is-history{opacity:.82;box-shadow:none}
.activity-next-step{margin:-2px 0 9px;padding:8px 10px;border-radius:11px;background:rgba(68,126,103,.09);color:#315e4d;font-size:12px;line-height:16px;font-weight:750}
.activity-next-step.urgent{background:rgba(198,66,48,.09);color:var(--action)}
.activity-archive-button{margin-left:auto}
.nav-icon{position:relative;display:inline-flex}
.nav-badge{position:absolute;right:-9px;top:-8px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--action);color:#fff;border:2px solid var(--canvas);font-size:9px;line-height:12px;font-weight:800}
.global-attention-banner{position:fixed;z-index:45;left:50%;bottom:calc(var(--nav-h) + var(--tg-safe-bottom) + 10px);transform:translateX(-50%);width:min(448px,calc(100% - 28px));border:1px solid rgba(198,66,48,.22);border-radius:16px;background:rgba(255,250,247,.97);box-shadow:0 10px 28px rgba(71,50,44,.16);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ink);font:inherit;text-align:left;backdrop-filter:blur(14px)}
.global-attention-banner strong{color:var(--action);font-size:13px;line-height:18px}
.global-attention-banner span{color:var(--muted);font-size:12px;line-height:17px;white-space:nowrap}
.form-card input[type="datetime-local"]:invalid{border-color:rgba(198,66,48,.4)}
@media (max-width:420px){
  .activity-tabs{padding-left:10px;padding-right:10px}.activity-tab{font-size:11px;padding-inline:4px}.global-attention-banner{bottom:calc(var(--nav-h) + var(--tg-safe-bottom) + 7px)}
}

/* v1.8.5 — multi-window Model Application + decision/scheduling */
.custom-window-list{display:grid;gap:9px}.custom-time-row{display:grid;gap:5px;padding:10px;border:1px solid var(--border);border-radius:15px;background:var(--canvas)}
.time-row-feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px}.time-inline-error{display:none;color:var(--action);font-size:11px;line-height:15px;font-weight:700}.time-inline-error.is-visible{display:block}.time-choice-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.time-choice-footer>span{font-size:12px;color:var(--muted);white-space:nowrap}
.link-button{border:0;background:transparent;color:var(--berry);font:inherit;font-size:12px;font-weight:750;padding:4px 0;cursor:pointer}.link-button.danger{color:var(--action)}.link-button:disabled{opacity:.45;cursor:not-allowed}
.form-card input[aria-invalid="true"]{border-color:rgba(198,66,48,.7)!important;box-shadow:0 0 0 3px rgba(198,66,48,.08)}
.decision-stack{display:grid;gap:9px}.decision-time-list{display:grid;gap:7px}.decision-time-option{display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:var(--canvas);cursor:pointer}.decision-time-option:has(input:checked){border-color:rgba(198,66,48,.42);background:rgba(198,66,48,.06)}.decision-time-option input{width:18px;height:18px;accent-color:var(--action)}.decision-time-option span{display:grid;gap:1px}.decision-time-option strong{font-size:13px;line-height:18px}.decision-time-option small{font-size:11px;line-height:15px;color:var(--muted)}
.agreed-time-card{display:grid;gap:5px}.agreed-time-card>strong{font-size:18px;line-height:24px}.agreed-time-card>small{font-size:12px;line-height:17px;color:var(--muted)}.mini-time-line{padding:8px 0;border-top:1px solid var(--border);font-size:13px;line-height:18px}.mini-time-line:first-of-type{border-top:0}.empty-compact{padding:10px;border-radius:12px;background:var(--surface-alt);font-size:12px;color:var(--muted)}
.danger-outline{color:var(--action);border-color:rgba(198,66,48,.26)}.feature-note.success{background:rgba(68,126,103,.08);border-color:rgba(68,126,103,.18)}
.history-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px}.history-tools>span{font-size:11px;line-height:15px;color:var(--muted);text-align:right}.activity-card.is-hidden-history{opacity:.62;border-style:dashed}.activity-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:380px){.time-choice-footer{align-items:flex-start;flex-direction:column}.history-tools{align-items:flex-start;flex-direction:column}.history-tools>span{text-align:left}}

/* v1.8.6 — one status + one next action, agreement flow, desktop affordances */
button:not(:disabled),a[href],[data-action]:not([aria-disabled="true"]),[data-nav],[data-tab],label:has(input[type="radio"]),label:has(input[type="checkbox"]){cursor:pointer}
button:disabled,[aria-disabled="true"]{cursor:not-allowed!important}
.button,.activity-tab,.request-author,.detail-author-card,.icon-button,.nav-item,.global-attention-banner,.interaction-chip,.action-context-link{transition:background-color 140ms var(--ease),border-color 140ms var(--ease),box-shadow 140ms var(--ease),transform 140ms var(--ease),opacity 140ms var(--ease)}
@media (hover:hover) and (pointer:fine){
  .button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(29,26,27,.10)}
  .button.primary:not(:disabled):hover{background:#B93D2E}
  .button.secondary:not(:disabled):hover,.button.ghost-action:not(:disabled):hover{background:#EAE3DE;border-color:#D7CEC9}
  .activity-tab:not(:disabled):hover,.nav-item:not(:disabled):hover,.icon-button:not(:disabled):hover{background:rgba(198,66,48,.06)}
  .request-author:hover,.action-context-link:hover{color:var(--action)}
  .detail-author-card:hover,.interaction-chip:hover,.global-attention-banner:hover{border-color:rgba(198,66,48,.30);box-shadow:0 5px 16px rgba(29,26,27,.09)}
}
button:focus-visible,a:focus-visible,[data-action]:focus-visible{outline:3px solid rgba(198,66,48,.22);outline-offset:2px}

.transaction-shell{gap:10px}.transaction-party{display:grid;gap:2px}.transaction-party>strong{font-size:18px;line-height:23px}.transaction-party>span:last-child{font-size:14px;line-height:19px;color:var(--muted)}
.transaction-status{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;padding:11px 12px;border-radius:15px;border:1px solid var(--border);background:var(--surface)}
.transaction-status-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:16px;font-weight:850;background:var(--surface-alt);color:var(--muted)}
.transaction-status>div{display:grid;gap:2px;min-width:0}.transaction-status strong{font-size:14px;line-height:19px}.transaction-status span{font-size:12px;line-height:16px;color:var(--muted)}
.transaction-status.tone-success{background:rgba(47,107,79,.07);border-color:rgba(47,107,79,.20)}.transaction-status.tone-success .transaction-status-icon{background:rgba(47,107,79,.13);color:var(--success)}.transaction-status.tone-success strong{color:#285B44}
.transaction-status.tone-attention{background:rgba(198,66,48,.07);border-color:rgba(198,66,48,.22)}.transaction-status.tone-attention .transaction-status-icon{background:rgba(198,66,48,.12);color:var(--action)}.transaction-status.tone-attention strong{color:var(--action)}
.transaction-status.tone-waiting{background:rgba(122,83,26,.06);border-color:rgba(122,83,26,.15)}.transaction-status.tone-waiting .transaction-status-icon{background:rgba(122,83,26,.10);color:var(--warning)}
.transaction-status.tone-muted{opacity:.78}
.agreement-summary{display:grid;border:1px solid var(--border);border-radius:17px;background:var(--surface);overflow:hidden}
.agreement-summary>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px}.agreement-summary>div+div{border-top:1px solid var(--border)}
.agreement-summary span{font-size:11px;line-height:16px;color:var(--muted);font-weight:700;text-transform:uppercase}.agreement-summary strong{font-size:13px;line-height:18px;text-align:right;overflow-wrap:anywhere}
.compact-action-card{padding:12px}.field-label{display:grid!important;gap:6px!important}.text-input{width:100%;height:48px;border:1px solid var(--border);border-radius:14px;background:var(--canvas);color:var(--ink);font:inherit;font-size:14px;padding:0 11px;outline:none}.text-input:focus{border-color:rgba(198,66,48,.48);box-shadow:0 0 0 3px rgba(198,66,48,.08)}
.payer-choice-list{display:grid;gap:7px}.payer-choice-list label{display:grid!important;grid-template-columns:20px minmax(0,1fr);gap:9px;align-items:center;padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:var(--canvas)}.payer-choice-list label:has(input:checked){border-color:rgba(198,66,48,.36);background:rgba(198,66,48,.05)}.payer-choice-list input{width:18px;height:18px;accent-color:var(--action)}.payer-choice-list span{display:grid;gap:1px}.payer-choice-list strong{font-size:13px;line-height:18px}.payer-choice-list small{font-size:11px;line-height:15px;color:var(--muted)}
.payment-handoff-note{display:grid;gap:3px;padding:12px 13px;border-radius:15px;background:rgba(47,107,79,.07);border:1px solid rgba(47,107,79,.18)}.payment-handoff-note strong{font-size:13px;line-height:18px;color:#285B44}.payment-handoff-note span{font-size:12px;line-height:17px;color:var(--muted)}
.compact-secondary-link{height:44px!important;font-size:13px!important}
.activity-state-line{display:grid;gap:1px;margin:-2px 0 9px;padding:8px 10px;border-radius:11px;background:var(--surface-alt)}.activity-state-line strong{font-size:12px;line-height:16px}.activity-state-line span{font-size:11px;line-height:15px;color:var(--muted)}
.activity-state-line.tone-success{background:rgba(47,107,79,.08)}.activity-state-line.tone-success strong{color:#285B44}.activity-state-line.tone-attention{background:rgba(198,66,48,.08)}.activity-state-line.tone-attention strong{color:var(--action)}.activity-state-line.tone-waiting{background:rgba(122,83,26,.07)}.activity-state-line.tone-waiting strong{color:var(--warning)}
.activity-compact-meta{margin:-2px 0 10px;padding:7px 9px;border-radius:11px;background:var(--surface-alt);font-size:12px;line-height:17px;color:var(--ink)}
@media(max-width:380px){.agreement-summary>div{grid-template-columns:68px minmax(0,1fr);padding-inline:10px}.transaction-status{grid-template-columns:30px minmax(0,1fr);padding:10px}.transaction-status-icon{width:30px;height:30px}}


/* v1.8.7 — transaction typography hierarchy, wrapped location, unobstructed CTA */
.transaction-shell{
  --tx-title-size:16px;
  --tx-body-size:14px;
  --tx-meta-size:12px;
  --tx-line:20px;
}
.transaction-party{padding:12px 13px}
.transaction-party>strong{font-size:var(--tx-title-size);line-height:21px;font-weight:700;letter-spacing:-.01em}
.transaction-party>span:last-child{font-size:13px;line-height:18px;font-weight:450;color:var(--muted)}
.transaction-shell .detail-label{
  font-size:11px!important;
  line-height:15px!important;
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}
.transaction-status{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px 11px;border-radius:14px}
.transaction-status-icon{width:28px;height:28px;border-radius:9px;font-size:14px}
.transaction-status strong{font-size:13px;line-height:18px;font-weight:700}
.transaction-status span{font-size:12px;line-height:16px;font-weight:450}
.agreement-summary{border-radius:15px}
.agreement-summary>div{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:9px 11px;align-items:start}
.agreement-summary span{font-size:11px;line-height:15px;font-weight:600;text-transform:none;letter-spacing:0}
.agreement-summary strong{font-size:13px;line-height:18px;font-weight:650;text-align:right;overflow-wrap:anywhere;word-break:normal}
.transaction-shell .form-card{padding:12px;border-radius:17px;gap:8px}
.transaction-shell .form-section-title{gap:2px}
.transaction-shell .form-section-title>strong,
.transaction-shell .field-label{font-size:14px;line-height:19px;font-weight:650}
.transaction-shell .form-section-title>span,
.transaction-shell .form-help{font-size:12px;line-height:17px;font-weight:400;color:var(--muted)}
.transaction-shell .button{height:46px;border-radius:14px;font-size:14px;line-height:19px;font-weight:650}
.transaction-shell .button.small{height:40px;font-size:12px;line-height:16px}
.location-input{
  height:auto!important;
  min-height:62px!important;
  max-height:96px;
  padding:9px 11px!important;
  line-height:19px!important;
  resize:none!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
}
.payer-choice-list{gap:6px}
.payer-choice-list label{min-height:50px;padding:8px 10px;border-radius:13px}
.payer-choice-list strong{font-size:13px;line-height:18px;font-weight:650}
.payer-choice-list small{font-size:11px;line-height:15px;font-weight:400}
.transaction-primary{box-shadow:0 5px 14px rgba(198,66,48,.12)}
.transaction-primary:disabled{box-shadow:none}
.activity-state-line{padding:8px 10px;border-radius:11px}
.activity-state-line strong{font-size:12px;line-height:16px;font-weight:700}
.activity-state-line span{font-size:11px;line-height:15px;font-weight:400}
.activity-card .request-author{font-size:15px;line-height:20px;font-weight:700;margin-bottom:7px}
.activity-card p{font-size:13px;line-height:18px;margin-bottom:8px}
.activity-compact-meta{font-size:12px;line-height:16px;padding:7px 9px;margin-bottom:8px}
@media(max-width:380px){
  .agreement-summary>div{grid-template-columns:60px minmax(0,1fr);padding-inline:9px}
  .transaction-shell .form-card{padding:11px}
  .transaction-shell .button{height:44px}
}


/* v1.8.8 — restrained transaction typography and de-duplicated states */
.transaction-shell{
  --tx-title-size:16px;
  --tx-body-size:13px;
  --tx-meta-size:11px;
}
.transaction-party{padding:11px 12px}
.transaction-party>strong{
  font-size:16px;
  line-height:21px;
  font-weight:620;
  letter-spacing:-.006em;
}
.transaction-party>span:last-child{
  font-size:13px;
  line-height:18px;
  font-weight:400;
  color:var(--muted);
}
.transaction-status{
  grid-template-columns:26px minmax(0,1fr);
  gap:8px;
  padding:9px 10px;
  border-radius:13px;
}
.transaction-status-icon{
  width:26px;
  height:26px;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
}
.transaction-status strong{
  font-size:13px;
  line-height:18px;
  font-weight:620;
}
.transaction-status span{
  font-size:11.5px;
  line-height:16px;
  font-weight:400;
}
.agreement-summary{border-radius:14px}
.agreement-summary>div{
  grid-template-columns:72px minmax(0,1fr);
  gap:10px;
  padding:9px 10px;
  align-items:start;
}
.agreement-summary span{
  font-size:11px;
  line-height:15px;
  font-weight:500;
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
}
.agreement-summary strong{
  font-size:13px;
  line-height:18px;
  font-weight:500;
  text-align:right;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.transaction-shell .form-section-title>strong,
.transaction-shell .field-label{
  font-size:13.5px;
  line-height:18px;
  font-weight:600;
}
.transaction-shell .form-section-title>span,
.transaction-shell .form-help{
  font-size:11.5px;
  line-height:16px;
  font-weight:400;
}
.payer-choice-list strong{font-size:13px;line-height:18px;font-weight:580}
.payer-choice-list small{font-size:11px;line-height:15px;font-weight:400}
.transaction-shell .button{
  height:45px;
  border-radius:13px;
  font-size:14px;
  line-height:18px;
  font-weight:600;
}
.transaction-shell .button.small{font-size:12px;font-weight:550}
.transaction-primary{box-shadow:0 4px 12px rgba(198,66,48,.10)}
.transaction-stage-note{
  padding:2px 3px 0;
  color:var(--muted);
  font-size:11px;
  line-height:16px;
  font-weight:400;
}
.activity-attention-head strong{font-size:13px;line-height:18px;font-weight:620}
.activity-attention-head span{font-size:11.5px;line-height:16px;font-weight:400}
.activity-state-line strong{font-size:12px;line-height:16px;font-weight:620}
.activity-state-line span{font-size:11px;line-height:15px;font-weight:400}
.activity-card .request-author{font-size:15px;line-height:20px;font-weight:620;margin-bottom:6px}
.activity-card p{font-size:13px;line-height:18px;font-weight:400;margin-bottom:8px}
.activity-compact-meta{font-size:12px;line-height:16px;font-weight:450;padding:7px 9px;margin-bottom:8px}
.activity-card .button.small{font-size:12px;line-height:16px;font-weight:560}
.entity-type-chip,.request-status{font-weight:600}
@media(max-width:380px){
  .agreement-summary>div{grid-template-columns:62px minmax(0,1fr);gap:8px;padding-inline:9px}
  .agreement-summary strong{font-size:12.5px;line-height:17px}
  .transaction-party>strong{font-size:15.5px;line-height:20px}
}
