/* Professional workspace pass. Content only; the desktop rail remains unchanged. */
:root {
  --pro-panel: #0c0c0e;
  --pro-raised: #111114;
  --pro-soft: #17171a;
  --pro-line: rgba(255,255,255,.085);
  --pro-line-strong: rgba(255,255,255,.15);
  --pro-text: #f4f4f5;
  --pro-muted: #8a8a92;
}

.workspace { background: #070708; }
.topbar { height: 74px; padding-inline: clamp(20px,3vw,42px); border-bottom: 1px solid var(--pro-line); background: rgba(7,7,8,.88); backdrop-filter: blur(18px); }
.topbar p { color: #686870; font-size: 8px; letter-spacing: .14em; }
.topbar h1 { margin-top: 4px; font-size: 20px; font-weight: 590; letter-spacing: -.035em; }
.top-actions { gap: 8px; }
.top-actions > button { border-color: var(--pro-line); background: #0d0d0f; }
.screen { max-width: 1320px; padding: 34px clamp(24px,3.2vw,46px) 72px; }
.screen:not(.active) { display: none !important; }
.screen.active { animation: pro-screen-in .26s cubic-bezier(.22,.8,.2,1) both; }

/* Home */
.home-command { min-height: 270px; padding: clamp(28px,4vw,48px); grid-template-columns: minmax(0,1.25fr) minmax(310px,.55fr); align-items: stretch; gap: 16px; border: 1px solid var(--pro-line); border-radius: 18px; background: linear-gradient(135deg,rgba(255,255,255,.035),transparent 42%),var(--pro-panel); box-shadow: none; }
.home-command-copy { align-self: center; }
.home-command-copy h2 { max-width: 680px; margin: 12px 0 12px; font-size: clamp(44px,5vw,66px); font-weight: 520; letter-spacing: -.065em; line-height: .93; }
.home-command-copy p { max-width: 460px; color: var(--pro-muted); }
.home-command-actions { margin-top: 26px; }
.home-balance { min-height: 100%; padding: 25px; border: 1px solid var(--pro-line); border-radius: 14px; background: #09090b; box-shadow: none; }
.home-balance > strong { margin-block: auto; font-size: clamp(44px,5vw,62px); font-weight: 520; letter-spacing: -.065em; }
.home-balance > button { border: 1px solid var(--pro-line); border-radius: 10px; background: var(--pro-raised); }
.home-pulse { margin-top: 10px; gap: 8px; }
.home-pulse button { min-height: 108px; padding: 17px; border-radius: 13px; background: var(--pro-panel); }
.home-pulse strong { font-size: 25px; font-weight: 560; }
.section-heading { margin: 38px 0 14px; }
.section-heading h2 { margin-top: 5px; font-size: 23px; font-weight: 570; letter-spacing: -.04em; }

/* Marketplace cards shared by Home and Marketplace. */
.listing-grid,.listing-grid.wide { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.listing-card { overflow: hidden; border: 1px solid var(--pro-line); border-radius: 14px; background: var(--pro-panel); box-shadow: none; transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.listing-card:hover { transform: translateY(-2px); border-color: var(--pro-line-strong); background: var(--pro-raised); }
.listing-media { height: 170px; background: linear-gradient(145deg,#17171a,#0a0a0c); }
.listing-media img { transition: transform .28s ease; }
.listing-card:hover .listing-media img { transform: scale(1.025); }
.listing-body { padding: 16px; }
.listing-meta span { color: #777780; font-size: 8px; }
.listing-body h3 { min-height: 40px; margin: 12px 0 16px; font-size: 16px; line-height: 1.25; }
.listing-foot strong { font-size: 15px; }

/* Discover and promotions */
.network-hero,.compact-network-hero { min-height: 210px; padding: 34px 38px; grid-template-columns: minmax(0,1fr) minmax(250px,.38fr); align-items: center; border-radius: 18px; border-color: var(--pro-line); background: linear-gradient(135deg,rgba(255,255,255,.035),transparent 48%),var(--pro-panel); }
.network-hero h2,.compact-network-hero h2 { max-width: 760px; margin: 10px 0 12px; font-size: clamp(38px,4.3vw,56px); font-weight: 540; letter-spacing: -.06em; line-height: .98; }
.network-hero p { max-width: 670px; color: var(--pro-muted); font-size: 12px; line-height: 1.55; }
.network-hero-mark { min-height: 142px; padding: 20px; border-radius: 13px; }
.network-balance-card strong { margin-block: auto; font-size: 40px; }
.compact-network-hero { grid-template-columns: minmax(0,1fr) auto; }
.network-tools { margin: 10px 0 18px; padding: 7px; grid-template-columns: 1fr 205px auto; border-radius: 13px; border-color: var(--pro-line); background: var(--pro-panel); }
.network-tools label,.network-tools select { min-height: 46px; border-radius: 9px; border-color: var(--pro-line); background: #09090b; }
.network-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.network-card { border-radius: 14px; border-color: var(--pro-line); background: var(--pro-panel); }
.network-card:hover { transform: translateY(-2px); border-color: var(--pro-line-strong); }
.network-card-media { height: 180px; }
.network-card-body { padding: 17px; }
.network-card h3 { margin: 12px 0 7px; font-size: 18px; }
.network-card p { min-height: 43px; }
.network-economics { margin: 14px 0 11px; padding: 12px 0; }
.network-actions > * { min-height: 42px; }
.distribution-list { gap: 6px; }
.distribution-row { min-height: 68px; border-radius: 11px; border-color: var(--pro-line); background: var(--pro-panel); }

/* Marketplace and storefront directory */
.page-intro { min-height: 122px; padding: 8px 0 24px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--pro-line); }
.page-intro h2 { font-size: clamp(38px,4.5vw,56px); }
.search-bar { margin-top: 12px; min-height: 58px; border-radius: 12px; }
.filter-row { margin: 12px 0 18px; }
.directory-hero { min-height: 226px; padding: 34px 38px; align-items: center; border-radius: 18px; border-color: var(--pro-line); background: linear-gradient(135deg,rgba(255,255,255,.035),transparent 48%),var(--pro-panel); }
.directory-hero h2 { margin: 9px 0 9px; font-size: clamp(42px,4.5vw,58px); font-weight: 540; letter-spacing: -.06em; }
.directory-hero-button { margin-top: 22px; }
.directory-overview { min-width: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--pro-line); border-radius: 13px; background: #09090b; }
.directory-overview > div { padding: 0; border: 0; }
.directory-overview strong { font-size: 28px; }
.directory-overview p { grid-column: 1/-1; margin: 0; padding-top: 12px; border-top: 1px solid var(--pro-line); }
.directory-tools { margin: 10px 0 18px; padding: 7px; border: 1px solid var(--pro-line); border-radius: 13px; background: var(--pro-panel); }
.storefront-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.storefront-card { border-radius: 14px; border-color: var(--pro-line); }
.storefront-art { height: 180px; }
.storefront-body { padding: 17px; }

/* Store portfolio and manager */
.store-ops-head { min-height: 180px; padding: 32px 36px; border-radius: 18px; }
.store-ops-head h2 { margin: 9px 0; font-size: clamp(40px,4.5vw,56px); font-weight: 540; letter-spacing: -.06em; }
.store-ops-grid { margin-top: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.business-card { min-height: 176px; grid-template-columns: 150px 1fr; border-radius: 14px; }
.business-cover { min-height: 100%; }
.business-body { padding: 19px; }
.business-body h3 { margin: 7px 0 6px; font-size: 21px; }
.business-body p { min-height: 34px; }
.business-metrics { margin-top: 14px; padding-top: 12px; }
.business-manage { margin-top: 11px; }
.store-detail-back { padding-inline: 0; border: 0; color: var(--pro-muted); background: transparent; }
.store-ops-panel { padding: 0; border: 0; background: transparent; }
.store-ops-panel-head { min-height: 112px; padding: 24px 26px; border: 1px solid var(--pro-line); border-radius: 15px; background: var(--pro-panel); }
.store-ops-panel-head h2 { margin-top: 7px; font-size: 32px; }
.store-ops-stats { margin-top: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.store-ops-stats article { min-height: 112px; padding: 18px; border-radius: 12px; }
.store-ops-stats article strong { font-size: 25px; }
.store-revenue-strip { margin-top: 10px; padding: 20px; border-radius: 13px; }
.subnav { margin-top: 10px; }
#storeOpsContent { margin-top: 10px; }

/* Messages */
.messenger { height: calc(100dvh - 142px); min-height: 590px; border-radius: 15px; box-shadow: none; }
.thread-column { width: 340px; }
.thread-head { min-height: 78px; }
.thread-list button { border-radius: 9px; }
.thread-list button.active { background: var(--pro-soft); }
.conversation { background: radial-gradient(circle at 60% 0,rgba(255,255,255,.025),transparent 33%),#0b0b0d; }

/* Account */
.account-intro { min-height: 136px; padding: 26px; border: 1px solid var(--pro-line) !important; border-radius: 15px; background: var(--pro-panel) !important; }
.account-intro h2 { margin: 5px 0; font-size: 30px; letter-spacing: -.05em; }
.account-grid { margin-top: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.settings-card { min-height: 270px; padding: 22px; border-radius: 14px; }
.settings-card h3 { margin: 14px 0 7px; font-size: 19px; }
.settings-card form { margin-top: 16px; }
.settings-card.span-two { min-height: auto; }
.session-row { min-height: 70px; border-radius: 10px !important; }
.session-more { width: 100%; min-height: 44px; margin-top: 8px; border: 1px dashed var(--pro-line); border-radius: 10px; color: #aaaab1; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.session-more:hover { border-style: solid; border-color: var(--pro-line-strong); color: #fff; background: var(--pro-raised); }
.session-ip { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; filter: blur(5px); transition: filter .18s ease, color .18s ease; user-select: none; }
.session-ip:hover, .session-ip:focus-visible { color: #fff; }
.session-ip.revealed { filter: none; user-select: text; }
.admin-launch { min-height: 100px !important; grid-template-columns: auto 1fr auto; align-items: center; }

@media (max-width: 1120px) {
  .listing-grid,.listing-grid.wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .network-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .storefront-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-fund-row { grid-template-columns: 42px minmax(150px,1fr) minmax(105px,.6fr) minmax(105px,.6fr) auto; }
  .store-fund-stat:nth-of-type(3) { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 68px; padding: 11px 14px; }
  .topbar > div:first-of-type { margin-left: 8px; }
  .mobile-brand { min-width: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid var(--pro-line); border-radius: 11px; background: var(--pro-panel); }
  .mobile-brand b { display: none; }
  .mobile-brand img { width: 20px; }
  .top-actions .avatar-button { display: grid; }
  .screen { padding: 14px 13px calc(100px + env(safe-area-inset-bottom)); }
  .home-command { min-height: 0; padding: 21px; grid-template-columns: 1fr; border-radius: 15px; }
  .home-command-copy h2 { font-size: 39px; }
  .home-balance { min-height: 164px; }
  .home-pulse { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-pulse button { min-height: 100px; }
  .listing-grid,.listing-grid.wide { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .listing-media { height: 128px; }
  .listing-body { padding: 12px; }
  .listing-body h3 { min-height: 36px; font-size: 14px; }
  .network-hero,.compact-network-hero,.directory-hero,.store-ops-head { min-height: 0; padding: 22px 19px; grid-template-columns: 1fr; border-radius: 15px; }
  .network-hero h2,.compact-network-hero h2,.directory-hero h2,.store-ops-head h2 { font-size: 38px; }
  .network-hero-mark,.directory-overview { display: none; }
  .network-tools,.directory-tools { margin-top: 8px; grid-template-columns: 1fr; }
  .network-grid,.storefront-grid,.store-ops-grid { grid-template-columns: 1fr; }
  .network-card { display: grid; grid-template-columns: 120px 1fr; }
  .network-card-media { height: 100%; min-height: 185px; }
  .network-card-body { padding: 14px; }
  .network-card p,.network-signals { display: none; }
  .network-economics { grid-template-columns: 1fr; }
  .network-economics > div:not(:first-child) { display: none; }
  .directory-tools select { min-height: 46px; }
  .business-card { min-height: 156px; grid-template-columns: 108px 1fr; }
  .business-body { padding: 15px; }
  .business-body p { display: none; }
  .business-metrics { grid-template-columns: repeat(2,1fr); }
  .business-metrics b:last-child { display: none; }
  .store-ops-panel-head { padding: 18px; align-items: stretch; }
  .store-ops-panel-head > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .store-ops-panel-head > div:last-child > * { min-width: 0; width: 100%; padding-inline: 10px; }
  .store-ops-panel-head > div:last-child > :first-child { grid-column: 1/-1; }
  .store-ops-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-revenue-strip { grid-template-columns: 1fr; }
  .store-revenue-strip canvas { width: 100%; }
  .messenger { height: calc(100dvh - 148px - env(safe-area-inset-bottom)); border-radius: 13px; }
  .thread-column { width: 100%; }
  .account-intro { min-height: 112px; padding: 18px; }
  .account-grid { grid-template-columns: 1fr; }
  .settings-card { min-height: auto; padding: 18px; }
  .mobile-dock { grid-template-columns: repeat(6,minmax(0,1fr)); inset-inline: 7px; bottom: calc(7px + env(safe-area-inset-bottom)); border-radius: 14px; }
  .mobile-dock button { min-height: 53px; padding-inline: 0; }
}

@media (max-width: 430px) {
  .listing-grid,.listing-grid.wide { grid-template-columns: 1fr 1fr; }
  .network-card { grid-template-columns: 104px 1fr; }
  .network-card-body { padding: 12px; }
  .network-card h3 { font-size: 15px; }
  .network-actions { display: grid; }
  .network-actions > * { width: 100%; }
  .store-ops-stats { grid-template-columns: 1fr 1fr; }
  .store-ops-stats article { min-height: 96px; padding: 14px; }
  .store-ops-stats article strong { font-size: 20px; }
  .mobile-dock button { font-size: 8px; }
  .mobile-dock button .ui-icon { width: 17px; height: 17px; }
}

@keyframes pro-screen-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
