:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0e;
  --panel2: #131315;
  --line: #252527;
  --text: #f4f4f0;
  --muted: #8e8e90;
  --accent: #d7ff43;
  --rail: 232px;
  --radius: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
.ui-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
#main:focus { outline: none; }
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
}
.app-shell {
  min-height: 100vh;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: #080808;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand,
.mobile-brand {
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.08em;
}
.brand span,
.mobile-brand span {
  color: var(--accent);
}
.rail-nav {
  display: grid;
  gap: 5px;
  margin-top: 52px;
}
.nav-link,
.account-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  color: #888;
  text-align: left;
  font-weight: 650;
}
.nav-link svg,
.account-link svg {
  width: 19px;
  height: 19px;
}
.nav-link:hover,
.nav-link.active {
  background: #151516;
  color: #fff;
}
.nav-link.active:before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-link b {
  margin-left: auto;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.account-link {
  margin-top: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 14px;
}
.account-link:hover {
  background: #151516;
}
.account-link strong,
.account-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-link strong {
  font-size: 14px;
}
.account-link small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.avatar,
.avatar-button {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #090909;
  font-weight: 850;
}
.avatar {
  width: 38px;
  height: 38px;
}
.workspace {
  margin-left: var(--rail);
  min-height: 100vh;
}
.topbar {
  height: 105px;
  padding: 27px clamp(24px, 4vw, 58px) 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10;
}
.topbar p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.topbar h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
.icon-button,
.avatar-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.icon-button {
  display: grid;
  place-items: center;
  background: #0c0c0d;
  border-radius: 50%;
}
.icon-button:hover {
  border-color: #666;
}
.icon-button svg {
  width: 17px;
}
.avatar-button {
  border: 0;
}
.mobile-brand {
  display: none;
  border: 0;
  background: none;
}
.screen {
  display: none;
  padding: clamp(28px, 4vw, 58px);
  max-width: 1510px;
  margin: auto;
}
.screen.active {
  display: block;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.7fr) repeat(2, minmax(180px, 0.65fr));
  gap: 14px;
}
.ink-panel {
  background: var(--accent);
  color: #080808;
}
.balance-panel {
  border-radius: var(--radius);
  padding: 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.ink-panel .kicker {
  color: #344000;
}
.balance-panel strong,
.money-hero strong {
  font-size: clamp(45px, 6vw, 82px);
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: 30px 0 8px;
}
.balance-panel p,
.money-hero p {
  margin: 0;
  opacity: 0.65;
}
.light-button,
.solid-button,
.outline-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 750;
}
.light-button {
  margin-top: auto;
  padding: 11px 15px;
  background: #0a0a0a;
  color: white;
  border-radius: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.light-button svg,
.text-button svg,
.solid-button svg {
  width: 15px;
}
.metric-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.metric-panel span,
.metric-panel small {
  color: var(--muted);
}
.metric-panel strong {
  margin: auto 0 6px;
  font-size: 57px;
  letter-spacing: -0.06em;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 58px 0 20px;
}
.section-heading.compact {
  margin-top: 50px;
}
.section-heading h2,
.store-header h2,
.thread-head h2,
.account-intro h2 {
  margin: 5px 0 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}
.text-button {
  background: none;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 7px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.listing-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}
.listing-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s;
}
.listing-card:hover {
  transform: translateY(-3px);
  border-color: #48484b;
}
.listing-media {
  aspect-ratio: 1.18;
  background: linear-gradient(145deg, #202023, #101011);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-media svg {
  width: 32px;
  color: #555;
}
.listing-body {
  padding: 17px;
}
.listing-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.listing-body h3 {
  font-size: 15px;
  margin: 12px 0 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.listing-foot strong {
  font-size: 16px;
}
.listing-foot span {
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  grid-column: 1/-1;
  min-height: 170px;
  border: 1px dashed #29292b;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 30px;
}
.search-bar {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #555;
}
.search-bar > span svg {
  width: 24px;
}
.search-bar input {
  border: 0;
  outline: 0;
  background: none;
  color: white;
  font-size: clamp(20px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -0.03em;
  min-width: 0;
}
.search-bar input::placeholder {
  color: #555;
}
.solid-button {
  background: var(--accent);
  color: #080808;
  border-radius: 11px;
  padding: 11px 16px;
}
.filter-row {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}
.filter {
  border: 1px solid var(--line);
  background: #0b0b0c;
  color: #999;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.filter.active {
  color: #090909;
  background: white;
  border-color: white;
}
.store-header,
.account-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.store-header p,
.account-intro p {
  margin: 8px 0 0;
  color: var(--muted);
}
.store-actions {
  display: flex;
  gap: 9px;
}
.store-actions select {
  background: #111;
  border: 1px solid var(--line);
  color: white;
  border-radius: 11px;
  padding: 10px 35px 10px 13px;
}
.subnav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 40px 0 24px;
}
.subnav button {
  position: relative;
  border: 0;
  background: none;
  color: #777;
  padding: 0 0 13px;
  cursor: pointer;
  font-weight: 700;
}
.subnav button.active {
  color: white;
}
.subnav button.active:after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--accent);
}
.data-row {
  display: grid;
  grid-template-columns: 50px minmax(180px, 1fr) 130px 120px auto;
  align-items: center;
  gap: 16px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.data-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #171719;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.data-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.data-main strong,
.data-main small {
  display: block;
}
.data-main small,
.data-row > span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.row-action {
  border: 1px solid var(--line);
  background: none;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.table-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.messenger {
  height: calc(100vh - 105px - clamp(56px, 8vw, 116px));
  min-height: 570px;
  display: grid;
  grid-template-columns: 330px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #080808;
}
.thread-column {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.thread-head {
  height: 96px;
  padding: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.thread-list {
  height: calc(100% - 96px);
  overflow: auto;
}
.thread {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #171719;
  background: none;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}
.thread:hover,
.thread.active {
  background: #131315;
}
.thread-copy {
  min-width: 0;
}
.thread-copy strong,
.thread-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-copy span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.thread time {
  color: #666;
  font-size: 9px;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.conversation-empty {
  margin: auto;
  text-align: center;
  max-width: 340px;
  color: var(--muted);
}
.conversation-empty > span svg {
  width: 42px;
}
.conversation-empty h3 {
  color: white;
}
.conversation-head {
  height: 77px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.message-stream {
  flex: 1;
  padding: 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: min(75%, 520px);
  padding: 10px 13px;
  border-radius: 15px;
  background: #18181a;
  font-size: 14px;
  line-height: 1.45;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--accent);
  color: #080808;
}
.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 14px;
}
.composer input {
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: white;
  padding: 11px 13px;
  outline: 0;
}
.money-hero {
  border-radius: var(--radius);
  padding: 30px;
  min-height: 240px;
}
.money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.action-card,
.settings-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.icon-tile {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #1d1d20;
  border-radius: 10px;
  color: var(--accent);
}
.icon-tile svg {
  width: 18px;
}
.action-card h3,
.settings-card h3 {
  margin: 24px 0 6px;
}
.action-card > p,
.settings-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
form label {
  display: grid;
  gap: 7px;
  color: #aaa;
  font-size: 11px;
  margin: 13px 0;
}
input,
textarea {
  width: 100%;
  background: #101012;
  border: 1px solid #303033;
  color: white;
  border-radius: 10px;
  padding: 11px 12px;
  outline: 0;
}
input:focus,
textarea:focus {
  border-color: #777;
}
.action-card form .solid-button,
.settings-card form .solid-button {
  margin-top: 6px;
}
.deposit-box {
  margin-top: 18px;
  background: #070708;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  word-break: break-all;
}
.deposit-box small,
.deposit-box strong {
  display: block;
}
.deposit-box small {
  color: var(--muted);
  margin-bottom: 7px;
}
.activity-list {
  border-top: 1px solid var(--line);
}
.activity-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
}
.activity-row strong,
.activity-row small {
  display: block;
}
.activity-row small {
  color: var(--muted);
  margin-top: 3px;
}
.account-intro {
  justify-content: flex-start;
}
.account-intro .large {
  width: 70px;
  height: 70px;
  font-size: 24px;
}
.account-intro .danger {
  margin-left: auto;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.span-two {
  grid-column: 1/-1;
}
.outline-button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
}
.danger {
  color: #ff8b8b;
}
.session-list {
  margin-bottom: 16px;
}
.session-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.session-row span {
  color: var(--muted);
  font-size: 12px;
}
.code-block {
  white-space: pre-wrap;
  background: #070708;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 10px;
  margin: 14px 0;
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.mobile-dock {
  display: none;
}
dialog {
  width: min(480px, calc(100% - 30px));
  background: #101011;
  color: white;
  border: 1px solid #303033;
  border-radius: 20px;
  padding: 27px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 11px;
  border: 0;
  background: none;
  color: #999;
  font-size: 25px;
  cursor: pointer;
}
dialog h2 {
  margin-top: 0;
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  background: #f2f2ed;
  color: #090909;
  border-radius: 10px;
  padding: 12px 15px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: none;
}
#toast.error {
  background: #ff8b8b;
}
.mobile-brand {
  cursor: pointer;
}
@media (max-width: 1050px) {
  .listing-grid,
  .listing-grid.wide {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
  .hero-grid .metric-panel:last-child {
    grid-column: 2;
  }
  .data-row {
    grid-template-columns: 50px 1fr 100px auto;
  }
  .data-row > span:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --rail: 0px;
  }
  .rail {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 80px;
    padding: 15px 18px;
  }
  .topbar > div:first-of-type {
    margin-left: 14px;
  }
  .mobile-brand {
    display: block;
  }
  .topbar p {
    display: none;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .top-actions .avatar-button {
    display: none;
  }
  .screen {
    padding: 24px 16px 98px;
  }
  .mobile-dock {
    display: grid;
    position: fixed;
    z-index: 30;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(20, 20, 21, 0.94);
    border: 1px solid #303033;
    border-radius: 17px;
    padding: 6px;
    backdrop-filter: blur(16px);
  }
  .mobile-dock button {
    border: 0;
    background: none;
    color: #777;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 11px;
    font-size: 9px;
  }
  .mobile-dock button svg {
    width: 18px;
  }
  .mobile-dock button.active {
    background: #2a2a2c;
    color: white;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .balance-panel {
    grid-column: 1/-1;
    min-height: 230px;
  }
  .metric-panel {
    min-height: 135px;
  }
  .hero-grid .metric-panel:last-child {
    grid-column: auto;
  }
  .metric-panel strong {
    font-size: 42px;
  }
  .listing-grid,
  .listing-grid.wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .listing-body {
    padding: 12px;
  }
  .listing-body h3 {
    margin-bottom: 12px;
  }
  .listing-meta span:last-child {
    display: none;
  }
  .section-heading {
    margin-top: 42px;
  }
  .search-bar {
    height: 62px;
  }
  .search-bar .solid-button {
    padding: 9px 11px;
  }
  .store-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-actions {
    width: 100%;
  }
  .store-actions select {
    min-width: 0;
    flex: 1;
  }
  .data-row {
    grid-template-columns: 45px 1fr auto;
    padding: 12px 0;
  }
  .data-row > span {
    display: none;
  }
  .messenger {
    height: calc(100vh - 80px - 122px);
    grid-template-columns: 1fr;
  }
  .messenger.chat-open .thread-column {
    display: none;
  }
  .messenger:not(.chat-open) .conversation {
    display: none;
  }
  .thread-column {
    border: 0;
  }
  .money-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .money-hero {
    min-height: 200px;
  }
  .account-intro {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .account-intro .danger {
    margin-left: 0;
  }
  .top-actions {
    margin-left: auto;
  }
  .bubble {
    max-width: 87%;
  }
}
@media (max-width: 420px) {
  .listing-grid,
  .listing-grid.wide {
    grid-template-columns: 1fr 1fr;
  }
  .listing-foot span {
    display: none;
  }
  .balance-panel strong,
  .money-hero strong {
    font-size: 49px;
  }
}

/* Landing-aligned violet system */
:root {
  --bg: #070708;
  --panel: #0d0d0f;
  --panel2: #121215;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f6;
  --muted: #85858e;
  --accent: #8d7cff;
  --accent-soft: rgba(141, 124, 255, 0.12);
  --radius: 18px;
}
body {
  background:
    radial-gradient(
      900px 500px at 82% -12%,
      rgba(115, 86, 255, 0.16),
      transparent 66%
    ),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 44%);
}
.rail {
  background: rgba(8, 8, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
}
.brand,
.mobile-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.brand span,
.mobile-brand span {
  color: #73737c;
  font-weight: 620;
}
.nav-link {
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 580;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(141, 124, 255, 0.09);
}
.nav-link.active:before {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(141, 124, 255, 0.65);
}
.account-link:hover {
  background: rgba(141, 124, 255, 0.08);
}
.avatar,
.avatar-button {
  color: #c7c0ff;
  background: #24222e;
  border: 1px solid rgba(141, 124, 255, 0.2);
}
.topbar {
  background: rgba(7, 7, 8, 0.8);
  border-color: rgba(255, 255, 255, 0.065);
}
.topbar h1 {
  font-weight: 540;
  letter-spacing: -0.055em;
}
.screen {
  position: relative;
  z-index: 1;
}
.ink-panel {
  color: var(--text);
  border: 1px solid rgba(141, 124, 255, 0.18);
  background:
    radial-gradient(
      600px 280px at 100% 110%,
      rgba(125, 97, 255, 0.24),
      transparent 70%
    ),
    #0c0c0f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}
.ink-panel .kicker {
  color: #a99fff;
}
.balance-panel strong,
.money-hero strong {
  font-weight: 520;
}
.balance-panel p,
.money-hero p {
  color: #85858e;
  opacity: 1;
}
.light-button {
  color: #09090a;
  background: #f5f5f6;
  border-radius: 9px;
}
.light-button:hover {
  background: #fff;
}
.solid-button {
  color: #fff;
  background: linear-gradient(180deg, #9b8cff, #7565e5);
  border: 1px solid rgba(194, 185, 255, 0.32);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(111, 87, 230, 0.14);
}
.solid-button:hover {
  filter: brightness(1.08);
}
.metric-panel,
.listing-card,
.action-card,
.settings-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30%),
    var(--panel);
  border-color: var(--line);
}
.metric-panel strong {
  font-weight: 520;
}
.kicker {
  color: #7d758f;
}
.section-heading h2,
.store-header h2,
.thread-head h2,
.account-intro h2 {
  font-weight: 540;
  letter-spacing: -0.06em;
}
.listing-card:hover {
  border-color: rgba(141, 124, 255, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}
.listing-media {
  background: linear-gradient(145deg, #17161e, #0e0e10);
}
.search-bar {
  border-color: rgba(255, 255, 255, 0.15);
}
.search-bar input {
  font-weight: 540;
}
.filter.active {
  color: #e4e0ff;
  background: rgba(141, 124, 255, 0.14);
  border-color: rgba(141, 124, 255, 0.28);
}
.subnav button.active:after {
  box-shadow: 0 0 16px rgba(141, 124, 255, 0.7);
}
.messenger {
  background: #0b0b0d;
  border-color: var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}
.thread:hover,
.thread.active {
  background: rgba(141, 124, 255, 0.08);
}
.bubble.mine {
  color: #fff;
  background: linear-gradient(145deg, #8d7cff, #7161df);
}
.icon-tile,
.session-icon {
  color: #bdb7ec;
  background: #24222e;
  border: 1px solid rgba(141, 124, 255, 0.12);
}
.code-block {
  color: #bcb4ff;
  border-color: rgba(141, 124, 255, 0.18);
  background: #0a090d;
}
.mobile-dock button.active {
  color: #fff;
  background: rgba(141, 124, 255, 0.18);
}
.session-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.session-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.session-icon svg {
  width: 16px;
}
.session-copy {
  min-width: 0;
}
.session-copy strong,
.session-copy small {
  display: block;
}
.session-copy small,
.session-row time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.session-row time {
  text-align: right;
}
@media (max-width: 600px) {
  .session-row {
    grid-template-columns: 36px 1fr;
  }
  .session-row time {
    grid-column: 2;
    text-align: left;
    margin-top: -5px;
  }
}

/* Messaging, wallet, and page refinement */
.thread-head {
  height: 88px;
}
.thread-search {
  height: 52px;
  margin: 0;
  padding: 0 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  color: #696972;
}
.thread-search svg {
  width: 15px;
}
.thread-search input {
  padding: 7px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.thread-list {
  height: calc(100% - 140px);
}
.inbox-switch {
  height: 42px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: #0b0b0d;
}
.inbox-switch button {
  border: 0;
  border-radius: 7px;
  color: #6f6f79;
  background: transparent;
  font: 600 9px inherit;
  cursor: pointer;
}
.inbox-switch button.active {
  color: #fff;
  background: rgba(141, 124, 255, 0.14);
}
.inbox-switch b {
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: #7565dc;
  font-size: 8px;
}
.thread-list {
  height: calc(100% - 182px);
}
.support-thread .thread-avatar .avatar {
  color: #d4cfff;
  background: #252131;
}
.support-meta {
  color: #89839f !important;
}
.support-status {
  padding: 3px 6px;
  border: 1px solid rgba(141, 124, 255, 0.22);
  border-radius: 99px;
  color: #aaa3e6 !important;
  font-size: 7px !important;
  text-transform: uppercase;
}
.ticket-context {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #6f6f79;
  font-size: 9px;
}
.ticket-context strong {
  color: #aaa3e6;
}
.ticket-close {
  margin-left: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8c8c95;
  background: #121215;
  font-size: 9px;
}
.ticket-composer textarea {
  min-height: 43px;
  max-height: 120px;
  resize: vertical;
}
.ticket-composer {
  grid-template-columns: 1fr auto;
}
@media (max-width: 760px) {
  .thread-list {
    height: calc(100% - 180px);
  }
  .ticket-context {
    display: none;
  }
  .conversation-head .ticket-close {
    margin-left: auto;
  }
}
.thread {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 13px 15px;
}
.thread-avatar {
  position: relative;
  display: block;
  width: max-content;
}
.thread-avatar > i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #111114;
  border-radius: 50%;
  background: #8d7cff;
  box-shadow: 0 0 10px rgba(141, 124, 255, 0.7);
}
.thread-name {
  display: flex !important;
  align-items: center;
  gap: 7px;
}
.thread-name strong {
  min-width: 0;
  flex: 1;
}
.thread-name b {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: #7969e8;
  font-size: 9px;
}
.thread time {
  align-self: start;
  margin-top: 4px;
}
.conversation-head {
  height: 76px;
}
.conversation-person {
  display: grid;
  gap: 3px;
}
.conversation-person small {
  color: var(--muted);
  font-size: 10px;
}
.message-stream {
  padding: 28px 24px 10px;
}
.message-unit {
  max-width: min(75%, 520px);
  display: grid;
  justify-items: start;
  gap: 4px;
}
.message-unit.mine {
  align-self: flex-end;
  justify-items: end;
}
.message-unit .bubble {
  max-width: 100%;
}
.message-unit small {
  padding: 0 4px;
  color: #64646d;
  font-size: 9px;
}
.typing-state {
  height: 24px;
  padding: 3px 24px;
  color: #968bec;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
.typing-state.visible {
  opacity: 1;
}
.composer {
  padding: 12px 14px 14px;
  background: rgba(13, 13, 15, 0.88);
}
.composer input {
  height: 43px;
  border-color: rgba(255, 255, 255, 0.09);
  background: #111114;
}
.composer .solid-button {
  min-width: 74px;
}
.money-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 40px;
  align-items: stretch;
}
.money-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.money-hero-copy strong {
  margin-top: auto;
}
.balance-visual {
  min-width: 0;
  padding: 17px 18px 6px;
  border: 1px solid rgba(141, 124, 255, 0.16);
  border-radius: 13px;
  background: rgba(5, 5, 8, 0.32);
}
.balance-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #aaa5d1;
  font-size: 10px;
}
.balance-chart-head b {
  color: #bfb7ff;
  font-weight: 650;
}
#balanceChart {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 12px;
}
.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 15, 0.72);
  overflow: hidden;
}
.wallet-metrics > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.wallet-metrics > div:last-child {
  border: 0;
}
.wallet-metrics span,
.wallet-metrics strong {
  display: block;
}
.wallet-metrics span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.wallet-metrics strong {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 560;
}
.store-header,
.account-intro {
  padding: 5px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}
.search-bar {
  padding: 0 4px;
}
.data-row:hover,
.activity-row:hover {
  background: rgba(141, 124, 255, 0.025);
}
.action-card,
.settings-card {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}
@media (max-width: 900px) {
  .money-hero {
    grid-template-columns: 1fr;
  }
  .balance-visual {
    min-height: 220px;
  }
  .money-hero-copy strong {
    margin-top: 35px;
  }
}
@media (max-width: 760px) {
  .message-unit {
    max-width: 88%;
  }
  .thread-search {
    height: 50px;
  }
  .thread-list {
    height: calc(100% - 138px);
  }
  .money-hero {
    padding: 22px;
    gap: 24px;
  }
  .wallet-metrics {
    grid-template-columns: 1fr;
  }
  .wallet-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wallet-metrics > div:last-child {
    border-bottom: 0;
  }
  .balance-visual {
    padding: 14px 10px 0;
  }
  #balanceChart {
    height: 150px;
  }
  .store-header,
  .account-intro {
    padding-bottom: 22px;
  }
}

/* Storefront discovery */
.metric-button {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.metric-button:hover {
  border-color: rgba(141, 124, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(141, 124, 255, 0.1), transparent 55%),
    var(--panel);
}
.directory-hero {
  min-height: 245px;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(141, 124, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(
      600px 300px at 90% 120%,
      rgba(125, 97, 255, 0.25),
      transparent 70%
    ),
    #0c0c0f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}
.directory-hero h2 {
  margin: 10px 0 7px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.92;
}
.directory-hero p {
  margin: 0;
  color: var(--muted);
}
.directory-tools {
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
}
.directory-search {
  margin: 0;
  height: 45px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0f;
  color: var(--muted);
}
.directory-search svg {
  width: 16px;
}
.directory-search input {
  padding: 0;
  border: 0;
  background: transparent;
}
.directory-tools select {
  min-width: 145px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #ddd;
  background: #0d0d0f;
}
.storefront-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.storefront-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--panel);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.storefront-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 124, 255, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.storefront-art {
  position: relative;
  aspect-ratio: 1.75;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(141, 124, 255, 0.22),
      transparent 34%
    ),
    linear-gradient(145deg, #18171e, #0d0d10);
}
.storefront-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.storefront-art > b {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: #c9c2ff;
  background: #24222e;
  font-size: 23px;
}
.storefront-art > i {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: #aaa5d1;
  background: rgba(9, 9, 12, 0.72);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.storefront-body {
  padding: 18px;
  display: grid;
}
.storefront-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.storefront-title strong {
  font-size: 17px;
  letter-spacing: -0.035em;
}
.storefront-title em {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #7969e8;
  font-size: 10px;
  font-style: normal;
}
.storefront-description {
  height: 40px;
  margin-top: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.storefront-stats {
  margin-top: 17px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.storefront-stats span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #8e8e97;
  font-size: 9px;
}
.storefront-foot {
  margin-top: 18px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.storefront-foot small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #65656e;
  white-space: nowrap;
}
.storefront-foot b {
  color: #aaa1f3;
  font-size: 11px;
}
.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.store-actions {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .storefront-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .mobile-dock {
    grid-template-columns: repeat(6, 1fr);
  }
  .directory-hero {
    min-height: 220px;
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }
  .directory-tools {
    grid-template-columns: 1fr auto;
  }
  .directory-tools .solid-button {
    grid-column: 1/-1;
  }
  .storefront-grid {
    grid-template-columns: 1fr;
  }
  .store-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }
  .store-actions select {
    grid-column: 1/-1;
  }
  .store-actions .outline-button,
  .store-actions .solid-button {
    text-align: center;
  }
  .metric-panel strong {
    font-size: 38px;
  }
}

.admin-launch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}
.admin-launch h3 {
  margin: 0;
}
.admin-launch p {
  margin: 5px 0 0;
}
.admin-launch > b {
  color: #b7afff;
  font-size: 11px;
}
@media (max-width: 760px) {
  .top-actions .avatar-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
  }
  .top-actions #refreshBtn {
    display: none;
  }
  .admin-launch {
    grid-template-columns: auto 1fr;
  }
  .admin-launch > b {
    grid-column: 2;
  }
}

/* Block-based store studio */
.is-hidden {
  display: none !important;
}
.builder-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 4px 0 22px;
}
.builder-topbar h2 {
  margin: 7px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 520;
  letter-spacing: -0.065em;
}
.builder-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.builder-top-actions select {
  min-width: 150px;
  height: 39px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #0d0d0f;
}
.builder-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.builder-tabs button {
  position: relative;
  padding: 12px 1px;
  color: var(--muted);
  font: 600 11px/1 inherit;
}
.builder-tabs button.active {
  color: #eee;
}
.builder-tabs button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(141, 124, 255, 0.7);
}
.builder-empty {
  min-height: 430px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.builder-empty h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.builder-empty p {
  max-width: 420px;
  color: var(--muted);
}
.builder-workspace {
  min-width: 0;
  height: calc(100vh - 196px);
  min-height: 610px;
  display: grid;
  grid-template-columns: 210px minmax(400px, 1fr) 250px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #09090b;
}
.block-library,
.builder-inspector {
  min-width: 0;
  overflow: auto;
  background: #0c0c0e;
}
.block-library {
  border-right: 1px solid var(--line);
}
.builder-inspector {
  border-left: 1px solid var(--line);
}
.builder-pane-head {
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
}
.builder-pane-head span,
.builder-pane-head small {
  display: block;
}
.builder-pane-head span {
  font-size: 12px;
  font-weight: 700;
}
.builder-pane-head small {
  margin-top: 4px;
  color: #696971;
  font-size: 9px;
}
.block-list {
  padding: 9px;
}
.block-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 31px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  margin-bottom: 6px;
  padding: 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #ddd;
  background: transparent;
  cursor: grab;
}
.block-list button:hover {
  border-color: rgba(141, 124, 255, 0.2);
  background: rgba(141, 124, 255, 0.07);
}
.block-list button > span {
  grid-row: 1/3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #aaa1f3;
  background: #201e2a;
}
.block-list svg {
  width: 14px;
}
.block-list b {
  font-size: 10px;
}
.block-list small {
  color: #676770;
  font-size: 8px;
}
.builder-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #101013;
}
.stage-toolbar {
  height: 47px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #8c8c94;
  font-size: 9px;
}
.stage-toolbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-toolbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d7cff;
  box-shadow: 0 0 11px #8d7cff;
}
.stage-toolbar button {
  padding: 7px 10px;
  border-radius: 7px;
  color: #72727b;
  font-size: 9px;
}
.stage-toolbar button.active {
  color: #ddd;
  background: #202024;
}
.store-canvas-wrap {
  min-height: 0;
  flex: 1;
  padding: 24px;
  overflow: auto;
}
.store-canvas {
  --builder-accent: #8d7cff;
  --builder-overlay: #070708;
  position: relative;
  width: 100%;
  max-width: 980px;
  min-height: 100%;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  color: #f5f5f6;
  background-color: var(--builder-overlay);
  background-size: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transition: max-width 0.2s;
}
.store-canvas.mobile-preview {
  max-width: 390px;
}
.canvas-blocks {
  position: relative;
  z-index: 2;
}
.canvas-particles {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
}
.store-canvas[data-particles="grid"] .canvas-particles {
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--particle-color) 22%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--particle-color) 22%, transparent) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
}
.store-canvas[data-particles="dust"] .canvas-particles,
.store-canvas[data-particles="stars"] .canvas-particles {
  background-image:
    radial-gradient(circle, var(--particle-color) 1px, transparent 1.5px),
    radial-gradient(circle, var(--particle-color) 1px, transparent 1.5px);
  background-size:
    47px 47px,
    73px 73px;
  background-position:
    0 0,
    18px 22px;
}
.store-canvas[data-particles="orbs"] .canvas-particles {
  background:
    radial-gradient(circle at 15% 25%, var(--particle-color), transparent 17%),
    radial-gradient(circle at 85% 65%, var(--particle-color), transparent 20%);
  filter: blur(28px);
}
.canvas-block {
  position: relative;
  min-height: 46px;
  padding: 26px 32px;
  border: 1px solid transparent;
  transition:
    border-color 0.14s,
    background 0.14s;
}
.canvas-block:hover,
.canvas-block.selected {
  z-index: 3;
  border-color: color-mix(in srgb, var(--builder-accent) 70%, transparent);
  background: rgba(141, 124, 255, 0.035);
}
.canvas-block.selected {
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--builder-accent) 26%, transparent);
}
.block-handle,
.block-label {
  position: absolute;
  top: 6px;
  opacity: 0;
  transition: opacity 0.14s;
}
.canvas-block:hover .block-handle,
.canvas-block:hover .block-label,
.canvas-block.selected .block-handle,
.canvas-block.selected .block-label {
  opacity: 1;
}
.block-handle {
  left: 7px;
  color: #aaa1f3;
  cursor: grab;
}
.block-label {
  right: 7px;
  padding: 3px 5px;
  border-radius: 4px;
  color: #b7afea;
  background: #211f2a;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mock-brand,
.mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mock-brand strong,
.mock-footer strong {
  font-size: 14px;
  letter-spacing: -0.04em;
}
.mock-brand span,
.mock-footer span {
  color: #777780;
  font-size: 8px;
}
.mock-copy small {
  color: var(--builder-accent);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.mock-copy h3 {
  max-width: 720px;
  margin: 8px 0;
  font-size: clamp(25px, 5vw, 61px);
  font-weight: 520;
  letter-spacing: -0.07em;
  line-height: 0.94;
}
.mock-copy p {
  max-width: 520px;
  margin: 0;
  color: #9a9aa3;
  font-size: 11px;
  line-height: 1.65;
}
.mock-copy b {
  display: inline-block;
  margin-top: 17px;
  padding: 8px 11px;
  border-radius: 6px;
  color: #09090a;
  background: #f2f2f3;
  font-size: 8px;
}
.type-text .mock-copy h3,
.type-products .mock-copy h3 {
  font-size: 28px;
}
.type-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
}
.mock-feature-art {
  aspect-ratio: 1.25;
  border-radius: 9px;
  background:
    radial-gradient(
      circle at 70% 20%,
      color-mix(in srgb, var(--builder-accent) 65%, transparent),
      transparent 40%
    ),
    #17171c;
}
.mock-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 18px;
}
.mock-products.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.mock-products.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.mock-products span {
  display: grid;
  gap: 4px;
}
.mock-products i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #4f4f58;
  background: #17171b;
  font-style: normal;
}
.mock-products b {
  font-size: 8px;
}
.mock-products small {
  color: #777780;
  font-size: 7px;
}
.type-marquee {
  padding: 12px 0;
  overflow: hidden;
  border-top-color: rgba(255, 255, 255, 0.09);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.mock-marquee {
  white-space: nowrap;
  color: #b9b4d9;
  font-size: 8px;
  letter-spacing: 0.17em;
}
.canvas-block hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.canvas-drop-end {
  position: relative;
  z-index: 2;
  margin: 8px;
  padding: 14px;
  border: 1px dashed rgba(141, 124, 255, 0.2);
  border-radius: 8px;
  color: #635f7a;
  text-align: center;
  font-size: 8px;
}
.style-card {
  margin: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}
.style-poster {
  padding-top: 68px;
  padding-bottom: 68px;
  background: linear-gradient(110deg, rgba(141, 124, 255, 0.08), transparent);
}
.builder-inspector label {
  display: grid;
  gap: 7px;
  padding: 11px 14px;
  color: #777780;
  font-size: 9px;
}
.builder-inspector input:not([type="file"]),
.builder-inspector select,
.builder-inspector textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #ddd;
  background: #111114;
  font: inherit;
}
.builder-inspector input[type="color"] {
  height: 36px;
  padding: 4px;
}
.builder-inspector input[type="file"] {
  max-width: 100%;
  font-size: 8px;
}
.builder-inspector textarea {
  resize: vertical;
}
.wide-button {
  width: calc(100% - 28px);
  margin: 5px 14px 12px;
}
.store-data-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0f;
}
.table-tools {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.table-tools h3 {
  margin: 5px 0 0;
}
.data-thumb img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 7px;
}
.data-main {
  display: grid;
  gap: 4px;
}
.data-main small {
  color: var(--muted);
}
@media (max-width: 1120px) {
  .builder-workspace {
    grid-template-columns: 180px minmax(360px, 1fr);
  }
  .builder-inspector {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 180px 1fr;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .builder-inspector #environmentInspector,
  .builder-inspector #blockInspector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
  .builder-inspector .is-hidden {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .builder-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .builder-top-actions {
    width: 100%;
  }
  .builder-top-actions select {
    width: 100%;
  }
  .builder-workspace {
    height: auto;
    min-height: 0;
    display: block;
  }
  .block-library {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .block-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .builder-stage {
    height: 620px;
  }
  .builder-inspector {
    display: block;
  }
  .builder-inspector #environmentInspector,
  .builder-inspector #blockInspector {
    display: block;
  }
  .store-canvas-wrap {
    padding: 12px;
  }
  .canvas-block {
    padding: 22px 18px;
  }
  .type-feature {
    grid-template-columns: 1fr;
  }
  .mock-products.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Store experience refinement */
.directory-hero {
  min-height: 360px;
  padding: 42px;
  align-items: stretch;
  background:
    radial-gradient(
      650px 360px at 82% 115%,
      rgba(125, 97, 255, 0.31),
      transparent 70%
    ),
    linear-gradient(145deg, #0c0c0f, #0a0a0c);
}
.directory-hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.directory-hero h2 {
  max-width: 680px;
  margin: 14px 0 14px;
  font-size: clamp(54px, 7vw, 92px);
}
.directory-hero p {
  max-width: 600px;
  font-size: 14px;
  line-height: 1.65;
}
.directory-hero-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 27px;
  padding: 0 19px;
  text-decoration: none;
}
.directory-overview {
  min-width: 280px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: end;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(8, 8, 11, 0.5);
  backdrop-filter: blur(12px);
}
.directory-overview > div {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.directory-overview strong,
.directory-overview span {
  display: block;
}
.directory-overview strong {
  font-size: 40px;
  font-weight: 520;
  letter-spacing: -0.06em;
}
.directory-overview span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.directory-overview p {
  grid-column: 1/-1;
  margin: 0;
  color: #9a96b5;
  font-size: 11px;
}
.directory-tools {
  margin: 24px 0 28px;
  grid-template-columns: minmax(0, 1fr) 180px 150px;
}
.directory-search {
  height: 54px;
  padding: 0 17px;
  border-radius: 12px;
}
.directory-search input {
  font-size: 13px;
}
.directory-tools select {
  min-height: 54px;
  border-radius: 12px;
}
.directory-search-button {
  min-height: 54px;
}
.storefront-grid {
  gap: 18px;
}
.storefront-card {
  border-radius: 20px;
}
.storefront-art {
  aspect-ratio: 1.55;
}
.storefront-art > b {
  width: 74px;
  height: 74px;
  border-radius: 21px;
  font-size: 27px;
}
.storefront-art > i {
  top: 15px;
  right: 15px;
  padding: 7px 10px;
}
.storefront-body {
  padding: 23px;
}
.storefront-title strong {
  font-size: 21px;
}
.storefront-description {
  height: 46px;
  margin-top: 11px;
  font-size: 13px;
}
.storefront-stats {
  gap: 8px;
}
.storefront-stats span {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10px;
}
.storefront-stats span b {
  color: #d8d5ea;
}
.storefront-foot {
  margin-top: 22px;
  padding-top: 17px;
}
.storefront-foot b {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.storefront-foot b span {
  font-size: 15px;
}
.builder-topbar {
  align-items: center;
  padding-bottom: 26px;
}
.builder-subtitle {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.builder-top-actions {
  justify-content: flex-end;
}
.store-switcher {
  min-width: 185px;
  display: grid;
  gap: 5px;
  margin: 0;
}
.store-switcher span {
  color: #777780;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.builder-top-actions .store-switcher select {
  width: 100%;
  height: 46px;
  border-radius: 11px;
}
.store-action-button {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.builder-tabs {
  align-items: stretch;
  gap: 4px;
}
.builder-tabs button {
  min-width: 132px;
  padding: 14px 15px;
  text-align: left;
  border-radius: 10px 10px 0 0;
}
.builder-tabs button:hover {
  background: rgba(255, 255, 255, 0.025);
}
.builder-tabs button b,
.builder-tabs button small {
  display: block;
}
.builder-tabs button b {
  font-size: 12px;
}
.builder-tabs button small {
  margin-top: 4px;
  color: #686871;
  font-size: 8px;
  font-weight: 500;
}
.builder-tabs > span {
  margin-left: auto;
  align-self: center;
  padding: 7px 10px;
  border-radius: 99px;
  color: #74747c;
  background: #111114;
  font-size: 9px;
}
.builder-tabs > span.dirty {
  color: #c6bdff;
  background: rgba(141, 124, 255, 0.11);
}
.builder-workspace {
  height: calc(100vh - 229px);
  min-height: 650px;
  grid-template-columns: 240px minmax(460px, 1fr) 300px;
  border-radius: 18px;
}
.builder-pane-head {
  padding: 20px 18px;
}
.builder-pane-head span {
  font-size: 13px;
}
.builder-pane-head small {
  margin-top: 6px;
  font-size: 9px;
}
.block-list {
  padding: 12px;
}
.block-list button {
  grid-template-columns: 40px 1fr;
  gap: 4px 11px;
  margin-bottom: 8px;
  padding: 13px;
  border-radius: 11px;
}
.block-list button > span {
  width: 39px;
  height: 39px;
  border-radius: 9px;
}
.block-list button b {
  font-size: 11px;
}
.block-list button small {
  font-size: 9px;
  line-height: 1.35;
}
.stage-toolbar {
  height: 56px;
  padding: 0 18px;
  font-size: 10px;
}
.stage-toolbar button {
  min-height: 34px;
  padding: 0 12px;
}
.store-canvas-wrap {
  padding: 32px;
}
.canvas-drop-end {
  margin: 12px;
  padding: 18px;
  font-size: 9px;
}
.builder-inspector label {
  gap: 8px;
  padding: 13px 17px;
  font-size: 10px;
}
.builder-inspector input:not([type="file"]),
.builder-inspector select,
.builder-inspector textarea {
  min-height: 42px;
  padding: 10px 11px;
  border-radius: 9px;
}
.wide-button {
  width: calc(100% - 34px);
  min-height: 43px;
  margin: 7px 17px 15px;
}
.inspector-actions {
  padding: 14px 13px 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.inspector-actions button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #a9a9b1;
  background: #111114;
  font-size: 9px;
}
.inspector-actions button:last-child {
  grid-column: 1/-1;
}
.inspector-actions button:hover {
  color: #fff;
  border-color: rgba(141, 124, 255, 0.35);
}
#productBlockFields {
  padding: 4px 0 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1250px) {
  .builder-workspace {
    grid-template-columns: 205px minmax(420px, 1fr) 260px;
  }
  .directory-overview {
    min-width: 250px;
  }
}
@media (max-width: 1000px) {
  .directory-hero {
    min-height: 420px;
    flex-direction: column;
  }
  .directory-overview {
    width: 100%;
    min-width: 0;
  }
  .builder-workspace {
    grid-template-columns: 190px minmax(390px, 1fr);
  }
  .builder-inspector {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 190px 1fr;
  }
  .builder-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .builder-top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .directory-hero {
    min-height: 440px;
    padding: 26px;
  }
  .directory-hero h2 {
    font-size: 58px;
  }
  .directory-tools {
    grid-template-columns: 1fr;
  }
  .directory-tools select,
  .directory-search-button {
    width: 100%;
  }
  .directory-overview {
    padding: 20px;
  }
  .builder-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .store-switcher {
    grid-column: 1/-1;
  }
  .store-action-button {
    width: 100%;
  }
  #saveStoreDesignBtn {
    grid-column: 1/-1;
  }
  .builder-tabs {
    overflow-x: auto;
  }
  .builder-tabs button {
    min-width: 112px;
  }
  .builder-tabs > span {
    display: none;
  }
  .builder-workspace {
    display: block;
  }
  .builder-inspector {
    display: block;
  }
  .block-list button {
    grid-template-columns: 36px 1fr;
  }
  .store-canvas-wrap {
    padding: 14px;
  }
}

/* Freeform store builder */
.library-label {
  display: block;
  padding: 9px 10px 7px;
  color: #696971;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.library-label.presets {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.block-list button.preset-block {
  border-color: rgba(141, 124, 255, 0.15);
  background: rgba(141, 124, 255, 0.045);
}
.block-list button.preset-block > span {
  color: #d4ceff;
  background: #29253a;
}
.inspector-section-label {
  display: block;
  margin-top: 10px;
  padding: 12px 17px 5px;
  color: #777181;
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.block-inspector > .inspector-section-label:first-of-type {
  border-top: 0;
}
.builder-inspector output {
  float: right;
  color: #aaa4d2;
}
.builder-inspector input[type="range"] {
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}
.mock-cart {
  margin-top: 20px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.mock-cart span {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 9px;
}
.mock-cart i {
  grid-row: 1/3;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #25252a;
}
.mock-cart b,
.mock-cart small {
  font-size: 8px;
}
.mock-cart small {
  color: #777780;
}
.mock-cart > strong {
  font-size: 10px;
}
.mock-cart button {
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #0a0a0b;
  background: #eee;
  font-size: 8px;
}
.mock-custom-image {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
}
.mock-custom-image.empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #6c6c74;
  font-size: 9px;
}
.mock-custom-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #09090a;
  background: #f3f3f4;
  font-size: 10px;
  font-weight: 700;
}
.mock-spacer-label {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #5f5f68;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.canvas-block.type-spacer {
  border-style: dashed;
}
.canvas-block.type-image {
  overflow: hidden;
}
.canvas-block.type-button {
  display: flex;
  align-items: center;
}
.canvas-block.type-button[style*="text-align:center"] {
  justify-content: center;
}
.canvas-block.type-button[style*="text-align:right"] {
  justify-content: flex-end;
}

/* Full-screen grid editor */
body.store-editor-mode {
  overflow: hidden;
}
body.store-editor-mode .rail,
body.store-editor-mode .topbar,
body.store-editor-mode .mobile-dock {
  display: none !important;
}
body.store-editor-mode .workspace {
  margin: 0;
}
body.store-editor-mode #main {
  height: 100vh;
}
body.store-editor-mode .studio-screen {
  max-width: none;
  height: 100vh;
  padding: 0;
  margin: 0;
}
.studio-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #08080a;
}
.studio-bar {
  position: relative;
  z-index: 40;
  min-height: 64px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto minmax(150px, 220px) 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #27272b;
  background: #0d0d10;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.studio-brand > button {
  padding: 0;
  border: 0;
  color: #fff;
  background: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.06em;
  cursor: pointer;
}
.studio-brand > button span {
  color: var(--accent);
}
.studio-brand > i {
  width: 1px;
  height: 22px;
  background: #303034;
}
.studio-brand > strong {
  font-size: 12px;
  white-space: nowrap;
}
.studio-store-select {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6f6f78;
  font-size: 9px;
}
.studio-store-select select {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 29px 0 10px;
  border: 1px solid #2b2b30;
  border-radius: 8px;
  color: #ddd;
  background: #141417;
}
.studio-modes {
  justify-self: center;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #28282c;
  border-radius: 9px;
  background: #09090b;
}
.studio-modes button {
  min-height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #6f6f78;
  background: none;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.studio-modes button.active {
  color: #fff;
  background: #232329;
}
.studio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.studio-actions > span {
  padding: 6px 8px;
  border-radius: 99px;
  color: #797981;
  background: #151518;
  font-size: 8px;
}
.studio-actions > span.dirty {
  color: #d1caff;
  background: rgba(141, 124, 255, 0.13);
}
.studio-plain,
.studio-save {
  min-height: 37px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.studio-plain {
  border: 1px solid #2d2d32;
  color: #aaa;
  background: #111114;
}
.studio-save {
  border: 1px solid rgba(181, 170, 255, 0.35);
  color: #fff;
  background: #7868e7;
}
.grid-editor {
  position: relative;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 82px 1fr;
  background: #0b0b0e;
}
.element-tray {
  position: relative;
  z-index: 20;
  padding: 13px 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid #27272b;
  background: #0d0d10;
}
.element-tray > span {
  padding: 7px 2px 9px;
  color: #616169;
  font-size: 7px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.element-tray button {
  min-height: 60px;
  padding: 7px 3px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #7f7f88;
  background: transparent;
  cursor: grab;
}
.element-tray button:hover {
  color: #fff;
  border-color: #34343a;
  background: #17171b;
}
.element-tray button b {
  font-size: 13px;
}
.element-tray button small {
  font-size: 8px;
}
.element-tray .tray-settings {
  margin-top: auto;
  cursor: pointer;
}
.grid-stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.grid-stage-head {
  height: 47px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242429;
  background: #101013;
}
.grid-stage-head p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #686871;
  font-size: 9px;
}
.grid-stage-head p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d7cff;
}
.grid-stage-head > div {
  display: flex;
  gap: 4px;
}
.grid-stage-head button {
  min-height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #686871;
  background: none;
  font-size: 8px;
}
.grid-stage-head button.active {
  color: #ddd;
  background: #232328;
}
.grid-scroll {
  min-height: 0;
  flex: 1;
  padding: 22px;
  overflow: auto;
  background: #121216;
}
.design-grid {
  --grid-row: 40px;
  position: relative;
  width: 100%;
  max-width: 1280px;
  min-height: calc(var(--grid-rows, 28) * var(--grid-row));
  margin: 0 auto;
  border: 1px solid #34343a;
  background-color: var(--builder-overlay, #070708);
  background-position: center;
  background-size: cover;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
  transition: max-width 0.2s;
}
.design-grid:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: calc(100% / 12) var(--grid-row);
}
.design-grid.mobile-preview {
  max-width: 390px;
}
.grid-items {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(var(--grid-rows, 28), var(--grid-row));
  pointer-events: none;
}
.grid-item {
  position: relative;
  grid-column: var(--gx) / span var(--gw);
  grid-row: var(--gy) / span var(--gh);
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--block-radius);
  color: var(--block-color);
  background: var(--block-bg);
  pointer-events: auto;
}
.grid-item:hover,
.grid-item.selected {
  z-index: 5;
  border-color: #8d7cff;
  box-shadow:
    0 0 0 1px rgba(141, 124, 255, 0.42),
    0 12px 35px rgba(0, 0, 0, 0.25);
}
.grid-item.dragging,
.grid-item.resizing {
  z-index: 10;
  opacity: 0.88;
}
.grid-drag-handle {
  position: absolute;
  z-index: 4;
  left: 7px;
  top: 7px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #aaa4da;
  background: rgba(10, 10, 12, 0.78);
  opacity: 0;
  cursor: grab;
}
.grid-item:hover .grid-drag-handle,
.grid-item.selected .grid-drag-handle {
  opacity: 1;
}
.grid-type {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #8d879e;
  background: rgba(9, 9, 11, 0.78);
  font-size: 7px;
  text-transform: uppercase;
  opacity: 0;
}
.grid-item:hover .grid-type,
.grid-item.selected .grid-type {
  opacity: 1;
}
.grid-delete {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #777780;
  background: #111114;
  opacity: 0;
}
.grid-item:hover .grid-delete,
.grid-item.selected .grid-delete {
  opacity: 1;
}
.grid-resize {
  position: absolute;
  z-index: 6;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  border: 0;
  background: linear-gradient(
    135deg,
    transparent 45%,
    #8d7cff 46%,
    #8d7cff 55%,
    transparent 56%,
    transparent 68%,
    #8d7cff 69%
  );
  opacity: 0;
  cursor: nwse-resize;
}
.grid-item:hover .grid-resize,
.grid-item.selected .grid-resize {
  opacity: 1;
}
.grid-item [contenteditable] {
  outline: 0;
}
.grid-item [contenteditable]:hover {
  box-shadow: inset 0 -1px rgba(141, 124, 255, 0.5);
}
.grid-item [contenteditable]:focus {
  border-radius: 4px;
  background: rgba(141, 124, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(141, 124, 255, 0.09);
}
.grid-item h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 46px);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 1;
}
.grid-item p {
  max-width: 620px;
  margin: 12px 0 0;
  color: color-mix(in srgb, currentColor 64%, transparent);
  font-size: clamp(10px, 1.1vw, 14px);
  line-height: 1.6;
}
.grid-product-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.grid-product-head > span {
  padding: 5px 7px;
  border: 1px solid rgba(141, 124, 255, 0.28);
  border-radius: 99px;
  color: #bdb5ff;
  font-size: 7px;
  text-transform: uppercase;
}
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 22px;
}
.grid-products.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-products.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-products i {
  display: grid;
  gap: 5px;
  font-style: normal;
}
.grid-products i > b {
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #4e4e58;
  background: #19191e;
}
.grid-products i > span {
  font-size: 8px;
}
.grid-products i > small {
  color: #777780;
  font-size: 7px;
}
.type-button,
.type-basket_button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-button .grid-button-label,
.type-basket_button .grid-bag-label {
  font-size: 11px;
  font-weight: 650;
}
.type-basket_button {
  gap: 8px;
}
.type-basket_button .bag-symbol {
  display: none;
}
.type-basket_button > b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 7px;
}
.type-image {
  padding: 0;
}
.type-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-image-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #71717a;
}
.grid-image-empty span {
  margin-top: 5px;
  font-size: 8px;
}
.type-spacer {
  border-style: dashed;
  background: transparent !important;
}
.grid-space-label {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #5d5d65;
  font-size: 8px;
}
.grid-empty-hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 380px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px dashed rgba(141, 124, 255, 0.28);
  border-radius: 8px;
  color: #7d7791;
  background: rgba(10, 10, 12, 0.72);
  font-size: 9px;
}
.selection-popover,
.canvas-popover {
  position: absolute;
  z-index: 35;
  right: 17px;
  top: 64px;
  width: 230px;
  padding: 14px;
  border: 1px solid #34343a;
  border-radius: 12px;
  background: rgba(14, 14, 17, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}
.selection-popover > div,
.canvas-popover > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.selection-popover > div button,
.canvas-popover > div button {
  border: 0;
  color: #777780;
  background: none;
  font-size: 18px;
}
.selection-popover label,
.canvas-popover label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: #74747c;
  font-size: 8px;
}
.selection-popover input,
.selection-popover select,
.canvas-popover input,
.canvas-popover select {
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #303036;
  border-radius: 7px;
  color: #ddd;
  background: #111114;
  font-size: 9px;
}
.selection-popover input[type="color"],
.canvas-popover input[type="color"] {
  padding: 3px;
}
.selection-delete,
.canvas-popover > button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid #3a3034;
  border-radius: 7px;
  color: #e28f99;
  background: #171113;
  font-size: 9px;
}
.store-editor-mode .store-data-panel {
  height: calc(100vh - 64px);
  margin: 0;
  padding: 30px 6vw;
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: #0a0a0c;
}
@media (max-width: 900px) {
  .studio-bar {
    grid-template-columns: auto 1fr auto;
  }
  .studio-store-select {
    display: none;
  }
  .studio-modes {
    justify-self: start;
  }
  .grid-editor {
    grid-template-columns: 70px 1fr;
  }
}
@media (max-width: 650px) {
  body.store-editor-mode {
    overflow: auto;
  }
  .studio-bar {
    min-height: 106px;
    padding: 9px;
    grid-template-columns: 1fr auto;
  }
  .studio-brand {
    grid-column: 1;
  }
  .studio-modes {
    grid-row: 2;
    grid-column: 1;
  }
  .studio-actions {
    grid-row: 1/3;
    grid-column: 2;
    display: grid;
  }
  .studio-actions > span {
    text-align: center;
  }
  .studio-actions .studio-plain {
    display: none;
  }
  .grid-editor {
    min-height: calc(100vh - 106px);
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .element-tray {
    padding: 7px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #27272b;
  }
  .element-tray > span {
    display: none;
  }
  .element-tray button {
    min-width: 58px;
    min-height: 52px;
  }
  .element-tray .tray-settings {
    margin: 0 0 0 auto;
  }
  .grid-stage-head p {
    display: none;
  }
  .grid-stage-head {
    justify-content: flex-end;
  }
  .grid-scroll {
    padding: 10px;
  }
  .selection-popover,
  .canvas-popover {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
  }
  .design-grid {
    min-width: 720px;
  }
  .design-grid.mobile-preview {
    min-width: 360px;
  }
  .grid-item h2 {
    font-size: 22px;
  }
}
.brand-simple-head { max-width: 680px; margin: 8px 0 24px; }
.brand-simple-head h3 { margin: 9px 0 8px; font-size: clamp(28px,4vw,42px); letter-spacing: -.055em; }
.brand-simple-head p { margin: 0; color: var(--muted); line-height: 1.65; }
.simple-brand-limited { max-width: 860px; grid-template-columns: 1fr 1fr; }
.simple-brand-limited > label { min-width: 0; }
.simple-brand-limited input[type="color"] { width: 100%; height: 52px; padding: 5px; }
.wallpaper-control { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; }
.wallpaper-control > span { min-height: 80px; padding: 15px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: #b8b4cb; background-color: #111115; background-position: center; background-size: cover; font-size: 9px; }
.wallpaper-control input[type="file"] { min-width: 0; }
.store-proof-options { margin: 0; padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 13px; }
.store-proof-options legend { padding: 0 7px; color: #87838f; font-size: 9px; }
.field-optional { color: #65656e; font-weight: 500; }
.friendly-onboarding { width: min(610px,80vw); }
.goal-choice-grid { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-choice-grid label { position: relative; min-height: 190px; padding: 22px; display: flex; align-items: flex-start; flex-direction: column; border: 1px solid #292930; border-radius: 16px; background: #101014; cursor: pointer; }
.goal-choice-grid input { position: absolute; right: 18px; top: 18px; accent-color: #8d7cff; }
.goal-choice-grid label > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #b8aff6; background: rgba(141,124,255,.1); }
.goal-choice-grid strong { margin: 22px 0 8px; font-size: 15px; }
.goal-choice-grid small { color: #777780; line-height: 1.55; }
.goal-choice-grid label:has(input:checked) { border-color: rgba(141,124,255,.65); background: rgba(141,124,255,.08); box-shadow: inset 0 0 0 1px rgba(141,124,255,.12); }
.friendly-onboarding form > .solid-button { width: 100%; justify-content: center; }
.home-pulse strong:has(.ui-icon) { color: #b8afff; }
.home-pulse strong .ui-icon { width: 26px; height: 26px; }
@media(max-width:650px){.simple-brand-limited,.store-proof-options,.goal-choice-grid{grid-template-columns:1fr}.wallpaper-control{grid-template-columns:1fr}.friendly-onboarding{width:auto}.goal-choice-grid label{min-height:160px}}

/* Keep global navigation available while editing */
body.store-editor-mode .rail {
  display: flex !important;
}
body.store-editor-mode .workspace {
  margin-left: var(--rail);
}
body.store-editor-mode .topbar,
body.store-editor-mode .mobile-dock {
  display: none !important;
}
.studio-bar {
  grid-template-columns: auto auto minmax(140px, 210px) 1fr auto;
}
.studio-quick-nav {
  display: flex;
  gap: 3px;
}
.studio-quick-nav button {
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: #777780;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}
.studio-quick-nav button:hover {
  color: #fff;
  background: #1b1b20;
}
@media (max-width: 1050px) {
  .studio-quick-nav {
    display: none;
  }
  .studio-bar {
    grid-template-columns: auto minmax(140px, 210px) 1fr auto;
  }
}
@media (max-width: 760px) {
  body.store-editor-mode .rail {
    display: none !important;
  }
  body.store-editor-mode .workspace {
    margin-left: 0;
  }
  .studio-bar {
    grid-template-columns: 1fr auto;
  }
}

/* Responsive storefront canvas */
.design-grid {
  --grid-columns: 12;
  --grid-row: 40px;
  touch-action: none;
}
.design-grid.mobile-preview {
  width: 390px;
  max-width: 390px;
  min-width: 390px;
  border-radius: 26px;
  box-shadow:
    0 0 0 8px #08080a,
    0 30px 90px rgba(0, 0, 0, 0.55);
}
.design-grid:before {
  background-size: calc(100% / var(--grid-columns)) var(--grid-row);
}
.grid-items {
  grid-template-columns: repeat(var(--grid-columns), 1fr);
}
.grid-item {
  padding: var(--block-padding);
  border: var(--block-border);
  border-radius: var(--block-radius);
  color: var(--block-color);
  background-color: var(--block-bg);
  background-image: var(--block-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--block-shadow);
  opacity: var(--block-opacity);
  font-family: var(--block-font);
  font-size: var(--block-size);
  font-weight: var(--block-weight);
  line-height: var(--block-line);
  letter-spacing: var(--block-spacing);
  text-align: var(--block-align);
  font-style: var(--block-style);
  text-decoration: var(--block-decoration);
  touch-action: none;
  user-select: none;
}
.grid-item [contenteditable] {
  user-select: text;
}
.grid-item h2 {
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}
.grid-item p {
  font-size: 0.44em;
  line-height: 1.55;
  text-align: inherit;
}
.type-button,
.type-basket_button {
  font-size: var(--block-size);
}
.type-shape {
  padding: 0;
}
.shape-preview {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}
.shape-circle {
  border-radius: 50%;
}
.shape-pill {
  border-radius: 999px;
}
.shape-triangle {
  width: 0;
  height: 0;
  margin: auto;
  border-left: clamp(25px, 5vw, 90px) solid transparent;
  border-right: clamp(25px, 5vw, 90px) solid transparent;
  border-bottom: clamp(45px, 8vw, 150px) solid currentColor;
}
.grid-resize {
  position: absolute !important;
  z-index: 12;
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #8d7cff !important;
  opacity: 0;
  touch-action: none;
}
.grid-item:hover .grid-resize,
.grid-item.selected .grid-resize {
  opacity: 1;
}
.grid-resize-nw {
  left: -7px !important;
  top: -7px !important;
  right: auto !important;
  bottom: auto !important;
  cursor: nwse-resize;
}
.grid-resize-ne {
  right: -7px !important;
  top: -7px !important;
  left: auto !important;
  bottom: auto !important;
  cursor: nesw-resize;
}
.grid-resize-sw {
  left: -7px !important;
  bottom: -7px !important;
  right: auto !important;
  top: auto !important;
  cursor: nesw-resize;
}
.grid-resize-se {
  right: -7px !important;
  bottom: -7px !important;
  left: auto !important;
  top: auto !important;
  cursor: nwse-resize;
}
.grid-drag-handle {
  opacity: 1;
  width: 31px;
  height: 31px;
  font-size: 15px;
  touch-action: none;
}
.grid-item.selected {
  outline: 2px solid #8d7cff;
  outline-offset: 1px;
}
.device-switch {
  padding: 4px;
  border: 1px solid #303037;
  border-radius: 9px;
  background: #09090b;
}
.device-switch button {
  min-width: 104px;
}
.selection-popover {
  top: 76px;
  bottom: 18px;
  width: 292px;
  max-height: calc(100% - 94px);
  overflow: auto;
  padding: 0;
  border-radius: 14px;
}
.inspector-head {
  position: sticky;
  z-index: 3;
  top: 0;
  padding: 14px;
  margin: 0 !important;
  border-bottom: 1px solid #303038;
  background: #111116;
}
.inspector-head span {
  display: grid;
  gap: 3px;
}
.inspector-head small {
  color: #777780;
  font-size: 8px;
}
.inspector-group {
  padding: 13px 14px;
  border-bottom: 1px solid #29292f;
}
.inspector-group > b {
  display: block;
  margin-bottom: 10px;
  color: #a9a3cf;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.selection-popover > label {
  margin: 12px 14px;
}
.inspector-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.format-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 9px 0;
}
.format-row button {
  min-height: 30px;
  border: 1px solid #303038;
  border-radius: 6px;
  color: #888;
  background: #17171c;
}
.format-row button.active {
  color: #fff;
  border-color: #8d7cff;
  background: #282338;
}
.inline-toggle {
  float: right;
  color: #aaa;
}
.inline-toggle input {
  width: auto;
}
.upload-control {
  padding: 9px;
  border: 1px dashed #3a3944;
  border-radius: 7px;
  color: #aaa !important;
  background: #18171d;
  cursor: pointer;
}
.upload-control input {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
}
.selection-delete {
  width: calc(100% - 28px);
  margin: 12px 14px 16px;
}
.selection-popover input,
.selection-popover select {
  width: 100%;
}
.selection-popover input[type="color"] {
  height: 36px;
}
.selection-popover input[type="checkbox"] {
  width: auto;
}
@media (max-width: 1100px) {
  .selection-popover {
    left: auto;
    right: 10px;
    width: 270px;
  }
  .element-tray {
    width: 72px;
  }
  .studio-actions > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .selection-popover {
    position: fixed;
    top: 86px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: none;
  }
  .design-grid.mobile-preview {
    min-width: 360px;
    width: 360px;
  }
  .device-switch button {
    min-width: 82px;
    padding: 0 7px;
  }
}
.grid-item {
  background: var(--block-image), var(--block-bg);
  background-position: center;
  background-size: cover;
}

/* Square-cell interaction geometry */
.design-grid {
  max-width: 960px;
}
.grid-item {
  cursor: grab;
}
.grid-item.dragging,
.grid-item.resizing {
  cursor: grabbing;
  will-change: grid-column, grid-row;
}
.canvas-interacting,
.canvas-interacting * {
  cursor: grabbing !important;
  user-select: none !important;
}
.grid-resize-nw {
  left: 3px !important;
  top: 3px !important;
}
.grid-resize-ne {
  right: 3px !important;
  top: 3px !important;
}
.grid-resize-sw {
  left: 3px !important;
  bottom: 3px !important;
}
.grid-resize-se {
  right: 3px !important;
  bottom: 3px !important;
}
.grid-resize {
  width: 16px !important;
  height: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.grid-item [contenteditable] {
  cursor: text;
}
.grid-item img {
  pointer-events: none;
}
.grid-item.dragging,
.grid-item.resizing {
  outline: 2px solid #c9c2ff;
  box-shadow: 0 0 0 4px rgba(141, 124, 255, 0.18);
}

/* Store operations */
.store-ops-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.store-ops-head h2 {
  margin: 7px 0 8px;
  font-size: 46px;
  letter-spacing: -0.065em;
}
.store-ops-head p {
  margin: 0;
  color: var(--muted);
}
.store-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.store-ops-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  background: #0d0d10;
  text-align: left;
  cursor: pointer;
}
.store-ops-card > span {
  height: 110px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(141, 124, 255, 0.22),
      transparent 36%
    ),
    #17171d;
}
.store-ops-card > span b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #d7d1ff;
  background: #292633;
}
.store-ops-card > div {
  padding: 17px;
}
.store-ops-card small {
  color: #666670;
}
.store-ops-card h3 {
  margin: 8px 0 5px;
  font-size: 19px;
}
.store-ops-card p {
  height: 34px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.store-ops-card footer {
  margin-top: 18px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.store-ops-card footer em {
  padding: 5px 7px;
  border-radius: 99px;
  color: #898993;
  background: #19191e;
  font-size: 8px;
  font-style: normal;
}
.store-ops-card footer strong {
  margin-left: auto;
  color: #b9b1ff;
  font-size: 10px;
}
.store-ops-card:hover,
.store-ops-card.active {
  border-color: #8174e8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}
.store-ops-panel {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b0b0e;
}
.store-ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.store-ops-panel-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
}
.store-ops-panel-head > div:last-child {
  display: flex;
  gap: 8px;
}
.store-ops-panel-head a {
  text-decoration: none;
}
.store-ops-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}
.store-ops-stats article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111114;
}
.store-ops-stats span {
  color: var(--muted);
  font-size: 9px;
}
.store-ops-stats strong {
  display: block;
  margin-top: 13px;
  font-size: 28px;
}
.studio-save.secondary {
  color: #d3cdff;
  background: #29243e;
}
.studio-bar {
  grid-template-columns: auto minmax(150px, 220px) 1fr auto !important;
}
@media (max-width: 900px) {
  .store-ops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .store-ops-head,
  .store-ops-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-ops-grid {
    grid-template-columns: 1fr;
  }
  .store-ops-stats {
    grid-template-columns: 1fr;
  }
  .store-ops-panel-head > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Dedicated editor chrome: no marketplace navigation or branding. */
body.store-editor-mode .rail,
body.store-editor-mode .topbar,
body.store-editor-mode .mobile-dock {
  display: none !important;
}
body.store-editor-mode .workspace {
  margin-left: 0 !important;
}
.studio-quick-nav {
  display: none !important;
}
.studio-bar {
  grid-template-columns: minmax(150px, 220px) 1fr auto !important;
}

@media (max-width: 760px) {
  .thread-list {
    height: calc(100% - 180px);
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .studio-bar {
    grid-template-columns: 1fr auto !important;
  }
}
.tray-drag-ghost {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  padding: 9px 12px;
  border: 1px solid #8d7cff;
  border-radius: 9px;
  color: #fff;
  background: #24202f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  transform: translate(-999px, -999px);
}
.palette-dragging,
.palette-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.design-grid.drop-ready {
  border-color: #8d7cff;
  box-shadow:
    0 0 0 3px rgba(141, 124, 255, 0.2),
    0 35px 90px rgba(0, 0, 0, 0.38);
}
@media (max-width: 650px) {
  .studio-bar {
    min-height: 106px;
    padding: 8px;
    grid-template-columns: 1fr !important;
    gap: 7px;
  }
  .studio-brand,
  .studio-store-select {
    display: none;
  }
  .studio-modes {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
  }
  .studio-modes button {
    min-width: 0;
    flex: 1;
  }
  .studio-actions {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    display: flex;
  }
  .studio-actions .studio-plain {
    display: inline-flex;
  }
  .studio-actions #openStorefrontBtn {
    display: none;
  }
  .studio-actions button {
    min-width: 0;
    flex: 1;
    padding: 0 7px;
  }
  .studio-actions #exitBuilderBtn {
    flex: 1.35;
  }
  .element-tray {
    width: 100% !important;
  }
  .grid-editor {
    min-height: calc(100vh - 106px);
  }
}

/* Global design tokens and click-to-place tools. */
.element-tray button.active {
  color: #fff;
  border-color: var(--builder-accent, #8d7cff);
  background: color-mix(in srgb, var(--builder-accent, #8d7cff) 18%, #17171b);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--builder-accent, #8d7cff) 25%, transparent);
}
.design-grid {
  color: var(--builder-text);
  background-color: var(--builder-bg, #070708);
  font-family: var(--builder-font);
}
.design-grid.placement-active,
.design-grid.placement-active .grid-item {
  cursor: crosshair;
}
.design-grid.placement-active {
  border-color: var(--builder-accent, #8d7cff);
  box-shadow:
    0 0 0 3px
      color-mix(in srgb, var(--builder-accent, #8d7cff) 18%, transparent),
    0 35px 90px rgba(0, 0, 0, 0.38);
}
.grid-products i > b,
.grid-image-empty {
  border-radius: var(--builder-radius, 14px);
  background: var(--builder-surface, #121216);
}
.grid-item.type-products {
  color: var(--builder-text) !important;
  background: transparent !important;
}
.type-search,
.type-basket_button {
  padding: 4px !important;
  border-color: transparent !important;
  background: transparent !important;
}
.grid-search,
.grid-bag-chip {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--builder-text) 13%, transparent);
  border-radius: var(--builder-radius, 14px);
  color: var(--builder-text);
  background: color-mix(in srgb, var(--builder-surface) 94%, transparent);
}
.grid-search {
  gap: 9px;
  padding: 0 14px;
}
.grid-search > span:first-child {
  color: var(--builder-accent);
  font-size: 17px;
}
.grid-search-placeholder {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--builder-text) 58%, transparent);
  white-space: nowrap;
}
.grid-bag-chip {
  width: auto;
  max-width: 100%;
  height: 36px;
  margin: auto;
  padding: 0 7px 0 12px;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}
.grid-bag-chip > b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--builder-accent);
  font-size: 8px;
}

/* Stable canvas frame: permanent store header above the square-cell grid. */
.design-grid {
  --sitebar-height: 58px;
  max-width: 840px;
  min-height: calc(
    var(--sitebar-height) + var(--grid-rows, 18) * var(--grid-row)
  );
  overflow: hidden;
}
.design-grid:before {
  top: var(--sitebar-height);
}
.grid-items {
  inset: var(--sitebar-height) 0 0;
}
.grid-empty-hint {
  top: calc(var(--sitebar-height) + 280px);
}
.designer-sitebar {
  position: absolute;
  z-index: 12;
  inset: 0 0 auto;
  height: var(--sitebar-height);
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--builder-text) 11%, transparent);
  color: var(--builder-text);
  background: color-mix(in srgb, var(--builder-bg) 88%, transparent);
  backdrop-filter: blur(16px);
}
.designer-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--builder-text) 14%, transparent);
  border-radius: var(--builder-radius);
  color: var(--builder-text);
  background: var(--builder-surface);
  cursor: pointer;
}
.designer-logo input {
  display: none;
}
.designer-logo span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
}
.designer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.designer-sitebar > input {
  min-width: 0;
  width: min(260px, 45%);
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--builder-text);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.designer-sitebar > input:hover,
.designer-sitebar > input:focus {
  border-color: color-mix(in srgb, var(--builder-accent) 42%, transparent);
  background: color-mix(in srgb, var(--builder-surface) 75%, transparent);
}
.designer-bag {
  min-height: 32px;
  margin-left: auto;
  padding: 0 6px 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--builder-text) 13%, transparent);
  border-radius: var(--builder-radius);
  color: var(--builder-text);
  background: var(--builder-surface);
  font-size: 10px;
}
.designer-bag b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--builder-accent);
  font-size: 7px;
}
.grid-item {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.grid-item > * {
  max-width: 100%;
}
.grid-item h2,
.grid-item p {
  max-width: 100%;
  overflow: hidden;
}
.type-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-image-empty {
  min-width: 0;
  min-height: 0;
}
.grid-products {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.grid-products i {
  min-width: 0;
  overflow: hidden;
}
.grid-products i > span,
.grid-products i > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-products .grid-product-head {
  min-width: 0;
}
.type-products .grid-product-head h2 {
  min-width: 0;
}

/* Store creation modes and simple brand editor. */
.store-mode-intro {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.store-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-mode-card {
  min-height: 152px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #303036;
  border-radius: 14px;
  color: #ddd;
  background: #141417;
  text-align: left;
  cursor: pointer;
}
.store-mode-card:hover {
  border-color: #776bdd;
  background: #191722;
}
.store-mode-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #d8d2ff;
  background: #29253b;
}
.store-mode-card strong {
  margin-top: 18px;
  font-size: 14px;
}
.store-mode-card p {
  margin: 6px 0 0;
  color: #888892;
  font-size: 10px;
  line-height: 1.45;
}
.store-mode-card small {
  margin-top: auto;
  padding-top: 12px;
  color: #666670;
  font-size: 9px;
}
.dialog-back {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  color: #85858f;
  background: none;
  font-size: 10px;
  cursor: pointer;
}
.simple-brand-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.simple-brand-form label:first-child,
.simple-brand-form label:nth-child(2),
.simple-brand-form .span-all {
  grid-column: 1/-1;
}
.brand-logo-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-preview {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #17171c;
  font-weight: 800;
}
.brand-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.simple-brand-form .solid-button {
  grid-column: 1/-1;
  min-height: 44px;
}
.ops-mode-pill {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 8px;
  border-radius: 99px;
  color: #9d96bd;
  background: #1a1822;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 650px) {
  .store-mode-grid,
  .simple-brand-form {
    grid-template-columns: 1fr;
  }
  .simple-brand-form label {
    grid-column: 1 !important;
  }
  .design-grid {
    max-width: 360px;
  }
  .designer-sitebar {
    padding-inline: 10px;
  }
  .designer-sitebar > input {
    width: 50%;
    font-size: 12px;
  }
}
.domain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #303033;
  border-radius: 10px;
  background: #101012;
  overflow: hidden;
}
.domain-field:focus-within {
  border-color: #8173e8;
}
.domain-field input {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.domain-field span {
  padding: 0 13px 0 8px;
  color: #a9a3c8;
  font-weight: 750;
}
.domain-field + small {
  color: #6f6f78;
  line-height: 1.4;
}
.store-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  align-items: start;
}
.store-settings-form,
.danger-zone {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d0f;
}
.store-settings-form h3,
.danger-zone h3 {
  margin: 7px 0 18px;
}
.store-settings-form .solid-button {
  min-height: 44px;
  margin-top: 10px;
}
.danger-zone {
  border-color: #48272c;
}
.danger-zone p,
.dialog-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.danger-zone .outline-button {
  margin-top: 10px;
}
.destructive-button {
  width: 100%;
  min-height: 44px;
  background: #ff7979;
  color: #210608;
}
.destructive-button:disabled {
  opacity: 0.55;
}
.simple-brand-form input[type="file"] {
  min-height: 48px;
  padding: 10px;
}
.simple-brand-form input[type="color"] {
  min-height: 48px;
  padding: 5px;
}
.store-ops-panel-head > div:last-child {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .store-settings-grid {
    grid-template-columns: 1fr;
  }
  .domain-field span {
    font-size: 12px;
  }
  .store-ops-panel-head > div:last-child {
    width: 100%;
  }
  .store-ops-panel-head > div:last-child a {
    flex: 1;
    text-align: center;
  }
  .subnav {
    gap: 17px;
    overflow-x: auto;
  }
  .subnav button {
    white-space: nowrap;
  }
}
.product-editor-form {
  display: grid;
  gap: 14px;
  max-height: min(72vh, 860px);
  overflow: auto;
  padding-right: 5px;
}
.product-editor-section,
.product-editor-more {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}
.product-editor-section header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
}
.product-editor-section header b {
  font-size: 15px;
}
.product-editor-section header small {
  color: var(--muted);
  font-size: 11px;
}
.product-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
}
.product-editor-more summary {
  cursor: pointer;
  font-weight: 700;
}
.product-editor-more[open] summary {
  margin-bottom: 6px;
}
.product-editor-form textarea {
  resize: vertical;
}
.product-editor-form .dialog-actions {
  position: sticky;
  bottom: 0;
  padding: 22px 0 2px;
  background: linear-gradient(transparent, var(--panel) 30%);
}
@media (max-width: 650px) {
  .product-price-row {
    grid-template-columns: 1fr;
  }
  .product-editor-section {
    padding: 14px;
  }
  .product-editor-section header {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-editor-form {
    max-height: 75vh;
  }
}
.product-relations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.product-relations > span {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-relations label {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101013;
  font-size: 11px;
}
.product-relations input {
  width: 15px !important;
  min-height: 15px !important;
  margin: 0;
  accent-color: #8d7cff;
}
.commerce-command {
  margin-bottom: 14px;
  padding: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(141, 124, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(141, 124, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, #111017, #0c0c0f);
}
.commerce-command.compact {
  align-items: center;
}
.commerce-command h3 {
  margin: 8px 0 7px;
  font-size: 28px;
  letter-spacing: -0.045em;
}
.commerce-command p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.command-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.command-grid,
.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.command-grid article,
.growth-grid article,
.command-panel,
.analytics-chart,
.analytics-lower > section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d10;
}
.command-grid span,
.growth-grid span {
  color: var(--muted);
  font-size: 10px;
}
.command-grid strong,
.growth-grid strong {
  display: block;
  margin: 13px 0 7px;
  font-size: 27px;
  letter-spacing: -0.04em;
}
.command-grid small,
.growth-grid p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.growth-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.growth-grid p {
  min-height: 30px;
}
.growth-grid button {
  padding: 0;
  border: 0;
  color: #b9b1ff;
  background: none;
  font-size: 10px;
  cursor: pointer;
}
.command-columns,
.analytics-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.command-panel h3 {
  margin: 8px 0 14px;
}
.command-panel button {
  width: 100%;
  min-height: 47px;
  padding: 0;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  background: none;
  text-align: left;
  cursor: pointer;
}
.command-panel button i {
  color: #a99cff;
  font-style: normal;
}
.command-panel button b {
  color: var(--muted);
  font-size: 9px;
}
.command-panel p,
.analytics-lower p {
  color: var(--muted);
  font-size: 11px;
}
.analytics-chart {
  margin: 12px 0;
}
.analytics-chart header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.analytics-chart h3 {
  margin: 7px 0 0;
}
.analytics-chart header > strong {
  font-size: 24px;
}
.analytics-chart svg {
  width: 100%;
  height: 220px;
  margin-top: 18px;
  overflow: visible;
}
.analytics-chart svg polyline {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: analyticsLineDraw 900ms cubic-bezier(.22,.75,.2,1) forwards;
}
@keyframes analyticsLineDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-chart svg polyline { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}
.analytics-lower > section > .kicker {
  display: block;
  margin-bottom: 14px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--muted);
  font-size: 10px;
}
.funnel-row i {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #7767e8 var(--funnel),
    #202026 var(--funnel)
  );
}
.funnel-row b,
.referrer-row b {
  color: var(--text);
  text-align: right;
}
.referrer-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
@media (max-width: 850px) {
  .command-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .growth-grid {
    grid-template-columns: 1fr;
  }
  .commerce-command {
    align-items: flex-start;
    flex-direction: column;
  }
  .command-actions {
    width: 100%;
  }
  .command-actions button {
    flex: 1;
  }
}
@media (max-width: 650px) {
  .product-relations,
  .command-grid,
  .command-columns,
  .analytics-lower {
    grid-template-columns: 1fr;
  }
  .commerce-command {
    padding: 19px;
  }
  .commerce-command h3 {
    font-size: 23px;
  }
  .command-actions {
    flex-direction: column;
  }
  .analytics-chart svg {
    height: 150px;
  }
}
.analytics-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.analytics-overview article,
.commerce-insight {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d10;
}
.analytics-overview span,
.analytics-overview small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.analytics-overview strong {
  display: block;
  margin: 13px 0 6px;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.commerce-insight {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(141, 124, 255, 0.12), #0d0d10 55%);
}
.commerce-insight h3 {
  margin: 8px 0;
}
.commerce-insight p {
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .analytics-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .analytics-overview {
    grid-template-columns: 1fr;
  }
}

.chart-range { display:flex; gap:4px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.chart-range button { border:0; border-radius:999px; padding:6px 10px; color:#85838e; background:transparent; font:600 11px/1 system-ui,sans-serif; cursor:pointer; }
.chart-range button:hover,.chart-range button.active { color:#f4f2ff; background:#29243f; }
.balance-chart-head .chart-range { margin:0 0 0 auto; }
.balance-chart-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
@media (max-width:650px) { .balance-chart-head .chart-range { order:3; width:100%; margin:0; } .store-revenue-strip .chart-range { margin-bottom:4px; } }

/* Commerce workspace — product-first, focused and original to MZZ. */
.store-ops-head { align-items: end; padding: clamp(20px,4vw,44px); border: 1px solid rgba(141,124,255,.2); border-radius: 24px; background: radial-gradient(circle at 88% 8%,rgba(141,124,255,.2),transparent 36%),linear-gradient(135deg,rgba(141,124,255,.075),transparent 55%),#0b0b0e; }
.store-ops-head h2 { max-width: 680px; margin: 9px 0; font-size: clamp(40px,5vw,68px); line-height: .95; }
.store-ops-head p { max-width: 630px; line-height: 1.6; }
.store-ops-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.business-card { min-width: 0; padding: 0; display: grid; grid-template-columns: 160px 1fr; overflow: hidden; border: 1px solid #28282f; border-radius: 20px; color: inherit; background: #0d0d11; text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.business-card:hover { transform: translateY(-2px); border-color: rgba(141,124,255,.5); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.business-cover { position: relative; min-height: 245px; display: grid; place-items: center; background: radial-gradient(circle at 68% 24%,rgba(141,124,255,.34),transparent 36%),linear-gradient(145deg,#211b30,#0b0b0e); }
.business-cover i { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: #dedaff; background: rgba(255,255,255,.07); font-size: 22px; font-style: normal; }
.business-cover em { position: absolute; top: 14px; left: 14px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: #c9c2ff; background: rgba(4,4,7,.6); font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.business-body { min-width: 0; padding: 22px; display: flex; flex-direction: column; }
.business-body > small { color: #8179aa; font-size: 9px; }
.business-body h3 { margin: 8px 0 6px; font-size: 24px; letter-spacing: -.04em; }
.business-body > p { min-height: 42px; margin: 0; color: #85858e; font-size: 10px; line-height: 1.55; }
.business-metrics { margin-top: auto; padding: 17px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; border-block: 1px solid #25252b; }
.business-metrics b { min-width: 0; color: #dad8e1; font-size: 12px; }
.business-metrics small { display: block; margin-bottom: 6px; color: #64646d; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.business-manage { padding-top: 15px; display: flex; justify-content: space-between; color: #aaa1ec; font-size: 10px; font-weight: 750; }
.store-zero { grid-column: 1/-1; min-height: 350px; padding: clamp(25px,5vw,58px); display: grid; grid-template-columns: auto minmax(0,630px); align-items: end; gap: clamp(30px,7vw,110px); border: 1px dashed rgba(141,124,255,.34); border-radius: 23px; background: radial-gradient(circle at 10% 90%,rgba(141,124,255,.16),transparent 30%),#0b0b0e; }
.store-zero > span { color: rgba(169,157,255,.24); font-size: clamp(82px,15vw,170px); font-weight: 800; line-height: .8; letter-spacing: -.1em; }
.store-zero small { color: #9188c2; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.store-zero h3 { margin: 12px 0 10px; font-size: clamp(34px,5vw,58px); line-height: .96; letter-spacing: -.06em; }
.store-zero p { margin: 0 0 24px; color: #85858e; line-height: 1.65; }
.store-detail-screen { max-width: 1540px; }
.store-detail-back { margin: 0 0 14px; padding: 8px 0; border: 0; color: #8e87bc; background: transparent; font-size: 10px; cursor: pointer; }
.store-ops-panel { margin: 0; padding: clamp(18px,3vw,32px); border-radius: 23px; background: linear-gradient(180deg,rgba(141,124,255,.035),transparent 220px),#0b0b0e; }
.store-ops-panel-head h2 { font-size: clamp(32px,4vw,50px); letter-spacing: -.055em; }
.store-ops-stats { grid-template-columns: repeat(4,1fr); }
.store-ops-stats article { min-height: 126px; display: flex; flex-direction: column; justify-content: flex-end; border-color: #26262c; background: #0f0f13; }
.store-ops-stats article small { margin-top: 8px; color: #666670; font-size: 8px; }
.store-revenue-strip { margin-top: 10px; padding: 20px; display: grid; grid-template-columns: 170px minmax(0,1fr) 150px; align-items: center; gap: 20px; border: 1px solid #26262d; border-radius: 16px; background: #0e0e12; }
.store-revenue-strip h3 { margin: 7px 0 0; font-size: 18px; }
.store-revenue-strip canvas { width: 100%; min-width: 0; }
.store-revenue-total { text-align: right; }
.store-revenue-total span,.store-revenue-total small { display: block; color: #686871; font-size: 8px; }
.store-revenue-total strong { display: block; margin: 9px 0 5px; color: #c5beff; font-size: 22px; }

@media (max-width: 980px) {
  .store-ops-grid { grid-template-columns: 1fr; }
  .store-ops-stats { grid-template-columns: repeat(2,1fr); }
  .store-revenue-strip { grid-template-columns: 1fr; }
  .store-revenue-total { text-align: left; }
}
@media (max-width: 650px) {
  .store-ops-head { align-items: stretch; }
  .store-ops-head .solid-button { justify-content: center; }
  .business-card { grid-template-columns: 105px 1fr; }
  .business-cover { min-height: 250px; }
  .business-body { padding: 17px; }
  .business-metrics { grid-template-columns: 1fr 1fr; }
  .business-metrics b:last-child { display: none; }
  .store-zero { min-height: 390px; grid-template-columns: 1fr; gap: 34px; }
  .store-zero > span { align-self: start; }
  .store-ops-panel-head > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .store-ops-panel-head > div:last-child a { justify-content: center; }
}

/* MZZ Network workspace */
.rail-nav {
  margin-top: 28px;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }
.nav-group { display: grid; gap: 3px; }
.nav-group > small {
  padding: 0 12px 4px;
  color: #595961;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-group .nav-link { padding-block: 9px; font-size: 12px; }
.network-screen { max-width: 1540px; }
.network-hero {
  min-height: 320px;
  padding: clamp(28px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .55fr);
  align-items: end;
  gap: 28px;
  border: 1px solid rgba(141,124,255,.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(141,124,255,.24), transparent 34%),
    linear-gradient(135deg, rgba(141,124,255,.09), transparent 48%), #0b0b0e;
  overflow: hidden;
}
.network-hero h2 { max-width: 760px; margin: 12px 0 18px; font-size: clamp(44px, 6vw, 82px); line-height: .94; letter-spacing: -.07em; }
.network-hero p { max-width: 670px; margin: 0; color: #a3a3aa; line-height: 1.65; }
.network-hero-mark { min-height: 190px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: rgba(5,5,7,.6); }
.network-hero-mark span,.network-hero-mark small { color: #9c94c8; font-size: 10px; }
.network-hero-mark strong { color: #a99dff; font-size: 92px; line-height: .8; letter-spacing: -.08em; }
.network-balance-card { justify-content: flex-end; gap: 10px; }
.network-balance-card strong { font-size: clamp(34px,4vw,56px); letter-spacing: -.06em; line-height: 1; }
.network-balance-card button { width: fit-content; margin-top: 7px; padding: 0; border: 0; color: #c9c2ff; background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.compact-network-hero { min-height: 230px; grid-template-columns: 1fr auto; align-items: center; }
.compact-network-hero h2 { font-size: clamp(38px, 5vw, 68px); }
.network-tools { margin: 18px 0 24px; padding: 10px; display: grid; grid-template-columns: 1fr 210px auto; gap: 9px; border: 1px solid #25252b; border-radius: 16px; background: #0d0d11; }
.network-tools label { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #24242a; border-radius: 11px; background: #09090c; }
.network-tools label svg { width: 17px; color: #77727f; }
.network-tools input,.network-tools select { width: 100%; border: 0; outline: 0; color: #eeeef2; background: transparent; }
.network-tools select { padding: 0 12px; border: 1px solid #24242a; border-radius: 11px; background: #09090c; }
.network-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.network-grid > .empty-state { grid-column: 1/-1; }
.network-card { min-width: 0; overflow: hidden; border: 1px solid #25252c; border-radius: 20px; background: #0c0c10; transition: transform .18s ease,border-color .18s ease; }
.network-card:hover { transform: translateY(-2px); border-color: rgba(141,124,255,.38); }
.network-card-media { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#17131f,#0a0a0d); }
.network-card-media img { width: 100%; height: 100%; object-fit: cover; }
.network-card-media > span { color: #8d7cff; }
.network-card-media svg { width: 36px; height: 36px; }
.network-mode { position: absolute; left: 14px; top: 14px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #d8d4ef; background: rgba(8,8,11,.78); backdrop-filter: blur(12px); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.network-card-body { padding: 20px; }
.network-supplier,.network-signals,.network-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.network-supplier span { color: #ada4e5; font-size: 10px; font-weight: 750; }
.network-supplier small,.network-signals { color: #696971; font-size: 8px; }
.network-card h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: -.035em; }
.network-card p { min-height: 48px; margin: 0; overflow: hidden; color: #8c8c94; font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.network-economics { margin: 18px 0 14px; padding: 13px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border-block: 1px solid #232329; }
.network-economics div { min-width: 0; }
.network-economics span,.network-economics strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.network-economics span { margin-bottom: 5px; color: #676770; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.network-economics strong { color: #d8d6df; font-size: 10px; white-space: nowrap; }
.network-signals { justify-content: flex-start; margin-bottom: 16px; }
.network-signals span + span:before { content: "·"; margin-right: 10px; }
.network-actions > * { flex: 1; justify-content: center; min-height: 42px; }
.distribution-list { display: grid; gap: 8px; }
.distribution-row { min-height: 72px; padding: 12px 15px; display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 13px; border: 1px solid #25252b; border-radius: 14px; background: #0d0d11; }
.distribution-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #aaa1e5; background: rgba(141,124,255,.1); }
.distribution-icon svg { width: 17px; }
.distribution-row strong,.distribution-row small { display: block; }
.distribution-row small { margin-top: 4px; color: #74747c; font-size: 9px; }
.distribution-row a { color: #aaa1e5; text-decoration: none; font-size: 10px; }
.status-pill { padding: 6px 9px; border-radius: 99px; color: #b6b6bd; background: #1b1b20; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.status-pill.active { color: #c8c1ff; background: rgba(141,124,255,.14); }
.status-pill.pending { color: #e7c980; background: rgba(230,183,76,.12); }
.network-onboarding { width: min(700px,80vw); }
.network-onboarding h2 { margin-bottom: 8px; font-size: clamp(34px,5vw,56px); letter-spacing: -.06em; }
.network-onboarding fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.network-onboarding legend,.network-channel-options > span { margin-bottom: 10px; color: #85858e; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.choice-grid.categories { grid-template-columns: repeat(4,1fr); }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { min-height: 48px; display: grid; place-items: center; border: 1px solid #2a2a31; border-radius: 11px; color: #8e8e97; background: #101014; font-size: 10px; font-weight: 700; text-transform: capitalize; cursor: pointer; }
.choice-grid input:checked + span { border-color: rgba(141,124,255,.65); color: #e4e0ff; background: rgba(141,124,255,.16); box-shadow: inset 0 0 0 1px rgba(141,124,255,.15); }
.network-onboarding form > .solid-button { width: 100%; min-height: 48px; margin-top: 24px; justify-content: center; }
.network-product-section { border-color: rgba(141,124,255,.25); background: linear-gradient(135deg,rgba(141,124,255,.06),transparent 45%); }
#networkListingFields.is-disabled { opacity: .35; pointer-events: none; }
.network-channel-options { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.network-channel-options > span { width: 100%; }
.network-channel-options label { display: flex; align-items: center; gap: 6px; color: #9a9aa2; font-size: 9px; text-transform: capitalize; }
.message-context { width: min(330px,78%); margin: 0 0 6px; padding: 11px 13px; display: grid; gap: 4px; border: 1px solid rgba(141,124,255,.24); border-radius: 12px; color: inherit; background: rgba(141,124,255,.08); text-decoration: none; }
.message-unit.mine .message-context { margin-left: auto; }
.message-context span { color: #9f95de; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.message-context strong { font-size: 11px; }
.message-context small { color: #777780; font-size: 8px; text-transform: capitalize; }

/* Keep the design preview honest: the announcement strip follows its own colour control. */
.preview-announcement { color: #fff; background: linear-gradient(110deg,var(--preview-announcement, var(--preview-accent)),var(--preview-gradient-to,#171320)); }

@media (max-width: 1120px) {
  .network-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .nav-group > small { display: none; }
  .rail-nav { margin-top: 0; overflow: visible; }
  .network-hero,.compact-network-hero { min-height: 0; padding: 27px 21px; grid-template-columns: 1fr; border-radius: 21px; }
  .network-hero h2 { font-size: 47px; }
  .network-hero-mark { display: none; }
  .network-tools { grid-template-columns: 1fr; }
  .network-tools select { min-height: 46px; }
  .network-grid { grid-template-columns: 1fr; }
  .network-card-media { height: 190px; }
  .choice-grid,.choice-grid.categories { grid-template-columns: repeat(2,1fr); }
  .network-onboarding { width: auto; }
  .distribution-row { grid-template-columns: 42px 1fr auto; }
  .distribution-row a { display: none; }
}
.canvas-check {
  min-height: 38px;
  display: flex !important;
  align-items: center !important;
  gap: 9px;
}
.canvas-check input {
  width: 16px !important;
  min-height: 16px !important;
  margin: 0;
}
.grid-item.type-categories,
.grid-item.type-announcement {
  display: flex;
  align-items: center;
}
.grid-category-preview {
  width: 100%;
  display: flex;
  gap: 7px;
  overflow: hidden;
}
.grid-category-preview span,
.grid-category-preview b {
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--block-color) 14%, transparent);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}
.grid-category-preview b {
  border-color: var(--builder-accent);
  background: color-mix(in srgb, var(--builder-accent) 17%, transparent);
}
.grid-announcement {
  width: 100%;
  text-align: center;
  font-size: inherit;
}
.grid-faq-preview {
  width: 100%;
  display: grid;
  margin-top: 12px;
}
.grid-faq-preview span {
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--block-color) 13%, transparent);
  font-size: 11px;
}
.grid-newsletter-preview {
  margin-top: 13px;
  padding: 9px 9px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--block-color) 14%, transparent);
  border-radius: var(--builder-radius);
  font-size: 10px;
}
.grid-newsletter-preview b {
  padding: 6px 9px;
  border-radius: calc(var(--builder-radius) * 0.7);
  color: #fff;
  background: var(--builder-accent);
}
.element-tray {
  overflow-y: auto;
}
.element-tray button {
  flex: none;
}
.simple-brand-form select {
  min-height: 48px;
}
.simple-brand-form .canvas-check {
  grid-column: auto;
}

/* 2026 commerce workspace: task-first hierarchy and professional editor chrome. */
.home-command {
  min-height: 390px;
  padding: clamp(28px, 4.6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 48px;
  overflow: hidden;
  border: 1px solid rgba(158, 143, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(
      700px 420px at 82% 15%,
      rgba(126, 97, 255, 0.28),
      transparent 64%
    ),
    linear-gradient(145deg, #111017, #09090c 60%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}
.home-command-copy h2 {
  max-width: 790px;
  margin: 17px 0 20px;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.91;
}
.home-command-copy > p {
  max-width: 650px;
  margin: 0;
  color: #9a9aa3;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.65;
}
.home-command-actions {
  margin-top: 34px;
  display: flex;
  gap: 9px;
}
.home-command-actions .solid-button,
.home-command-actions .outline-button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.home-balance {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 19px;
  background: rgba(8, 8, 11, 0.68);
  backdrop-filter: blur(18px);
}
.home-balance > span,
.home-balance > p {
  color: #888893;
  font-size: 10px;
}
.home-balance > strong {
  display: block;
  margin: 22px 0 9px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 520;
  letter-spacing: -0.065em;
}
.home-balance > p {
  margin: 0;
}
.home-balance > button {
  width: 100%;
  min-height: 45px;
  margin-top: 28px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ddd;
  background: #17171c;
  font-size: 11px;
  cursor: pointer;
}
.home-balance > button:hover {
  border-color: #8d7cff;
  background: #201d2d;
}
.home-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.home-pulse button {
  min-height: 138px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), #0d0d10;
  text-align: left;
  cursor: pointer;
}
.home-pulse button:hover {
  border-color: rgba(141, 124, 255, 0.38);
  background: #111016;
}
.home-pulse span,
.home-pulse small {
  color: var(--muted);
  font-size: 10px;
}
.home-pulse strong {
  margin: auto 0 5px;
  font-size: 31px;
  font-weight: 540;
  letter-spacing: -0.05em;
}
.home-services-heading {
  margin-top: 74px;
}
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.home-service-grid article {
  min-height: 240px;
  padding: 25px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #0c0c0f;
}
.home-service-grid article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(141, 124, 255, 0.22);
  border-radius: 12px;
  color: #bdb5ff;
  background: rgba(141, 124, 255, 0.08);
  font-size: 10px;
}
.home-service-grid small {
  color: #9187ca;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-service-grid h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.home-service-grid p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.home-service-grid article > button {
  grid-column: 2;
  margin-top: 24px;
  padding: 0;
  border: 0;
  color: #bdb5ff;
  background: none;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.home-service-grid article:hover {
  border-color: rgba(141, 124, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(141, 124, 255, 0.06), transparent 48%), #0c0c0f;
}
body.store-editor-mode {
  background: #09090c;
}
.studio-bar {
  min-height: 72px !important;
  padding: 10px 16px !important;
  grid-template-columns: minmax(150px, 190px) minmax(180px, 280px) 1fr auto !important;
  gap: 12px !important;
}
.studio-brand strong {
  font-size: 15px;
  letter-spacing: -0.025em;
}
.studio-store-select {
  height: 44px;
  padding: 0 6px 0 12px;
  border: 1px solid #2b2b31;
  border-radius: 10px;
  background: #121216;
}
.studio-store-select select {
  height: 32px;
  border: 0;
  background: transparent;
}
.studio-modes {
  min-height: 44px;
  padding: 5px;
}
.studio-modes button {
  min-height: 34px;
  padding-inline: 18px;
  font-size: 10px;
}
.studio-actions {
  gap: 8px;
}
.studio-plain,
.studio-save {
  min-height: 42px;
  padding: 0 14px;
  font-size: 10px;
}
.studio-actions > span {
  min-width: 54px;
  text-align: center;
}
.grid-editor {
  grid-template-columns: 232px minmax(0, 1fr) !important;
  background: #0a0a0d;
}
.element-tray {
  width: auto !important;
  padding: 0 !important;
  display: block !important;
  overflow-y: auto;
  border-color: #25252b;
  background: #0e0e12;
}
.element-tray > header {
  padding: 20px 17px 16px;
  border-bottom: 1px solid #24242a;
}
.element-tray > header span,
.element-group > span {
  display: block;
  color: #77727f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.element-tray > header strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}
.element-tray > header small {
  display: block;
  margin-top: 5px;
  color: #686873;
  font-size: 9px;
  line-height: 1.45;
}
.element-group {
  padding: 14px 10px 4px;
}
.element-group > span {
  padding: 0 7px 7px;
}
.element-tray button {
  width: 100%;
  min-height: 51px !important;
  margin: 0 0 4px;
  padding: 7px !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  place-items: initial !important;
  align-items: center !important;
  gap: 9px !important;
  border-radius: 9px !important;
  text-align: left !important;
}
.element-tray button > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2c34;
  border-radius: 8px;
  color: #bcb4f5;
  background: #17171d;
  font-size: 12px !important;
}
.element-tray button > span {
  min-width: 0;
}
.element-tray button strong,
.element-tray button small {
  display: block;
}
.element-tray button strong {
  color: #c8c8ce;
  font-size: 10px;
}
.element-tray button small {
  margin-top: 3px;
  color: #62626d;
  font-size: 8px !important;
}
.element-tray button:hover,
.element-tray button.active {
  border-color: rgba(141, 124, 255, 0.28);
  background: rgba(141, 124, 255, 0.08);
}
.element-tray button:hover > b,
.element-tray button.active > b {
  border-color: rgba(141, 124, 255, 0.44);
  background: #272238;
}
.element-tray .tray-settings {
  position: sticky;
  bottom: 0;
  margin: 12px 10px 10px;
  width: calc(100% - 20px);
  border: 1px solid #2d2d34;
  background: #141419;
}
.grid-stage-head {
  height: 56px;
  padding: 0 18px;
}
.grid-stage-head p {
  font-size: 10px;
}
.device-switch button {
  min-width: 116px;
  min-height: 34px;
  font-size: 9px;
}
.grid-scroll {
  padding: 32px;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(141, 124, 255, 0.05),
      transparent 40%
    ),
    #121216;
}
.design-grid {
  border-color: #3a3a43;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.48);
}
.selection-popover {
  position: absolute;
  right: 22px;
  top: 78px;
  bottom: 22px;
  width: 320px;
  max-height: none;
  border-color: #393944;
  border-radius: 16px;
  background: rgba(15, 15, 20, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}
.selection-popover label,
.selection-popover input,
.selection-popover select,
.selection-popover textarea {
  font-size: 10px;
}
.inspector-head {
  padding: 17px;
}
.inspector-group {
  padding: 15px 16px;
}
.grid-item.selected {
  outline-color: #a899ff;
  box-shadow: 0 0 0 4px rgba(141, 124, 255, 0.14);
}
@media (max-width: 1050px) {
  .home-command {
    grid-template-columns: 1fr;
  }
  .home-balance {
    max-width: 520px;
  }
  .home-pulse {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-bar {
    grid-template-columns: 1fr auto !important;
  }
  .studio-store-select {
    display: none;
  }
  .studio-modes {
    justify-self: start;
  }
  .studio-actions {
    grid-column: 2;
    grid-row: 1/3;
  }
  .grid-editor {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }
}
@media (max-width: 760px) {
  .home-command {
    min-height: 0;
    padding: 28px 21px;
    border-radius: 21px;
  }
  .home-command-copy h2 {
    font-size: 48px;
  }
  .home-command-actions {
    display: grid;
  }
  .home-command-actions > * {
    justify-content: center;
  }
  .home-balance {
    max-width: none;
  }
  .home-pulse,
  .home-service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-service-grid article {
    min-height: 220px;
    padding: 19px;
    grid-template-columns: 38px 1fr;
    gap: 0 12px;
  }
  .home-service-grid article > span {
    width: 36px;
    height: 36px;
  }
  .studio-bar {
    min-height: 126px !important;
    grid-template-columns: 1fr !important;
  }
  .studio-brand,
  .studio-store-select {
    display: none;
  }
  .studio-modes {
    width: 100%;
    justify-self: stretch;
  }
  .studio-modes button {
    min-width: 0;
    flex: 1;
  }
  .studio-actions {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    display: flex;
  }
  .studio-actions > * {
    flex: 1;
  }
  .studio-actions .studio-plain {
    display: inline-flex;
  }
  .grid-editor {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .element-tray {
    padding: 8px !important;
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid #27272d;
  }
  .element-tray > header,
  .element-group > span {
    display: none;
  }
  .element-group {
    padding: 0;
    display: flex;
    gap: 6px;
  }
  .element-tray button {
    min-width: 74px !important;
    width: 74px !important;
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }
  .element-tray button > b {
    width: 28px;
    height: 28px;
  }
  .element-tray button span small {
    display: none;
  }
  .element-tray .tray-settings {
    position: static;
    min-width: 74px;
    width: 74px;
    margin: 0;
  }
  .grid-stage-head {
    height: 50px;
  }
  .grid-scroll {
    padding: 12px;
  }
  .selection-popover {
    position: fixed;
  }
}
@media (max-width: 520px) {
  .home-pulse,
  .home-service-grid {
    grid-template-columns: 1fr;
  }
  .home-command-copy h2 {
    font-size: 43px;
  }
  .home-service-grid article {
    min-height: 200px;
  }
}
/* Store converter: Telegram setup and an accurate preview of the customer menu. */
.bot-integrations{display:block!important;margin-top:24px}
.bot-integrations form{display:grid;gap:12px;margin-top:16px;max-width:560px}
.bot-integrations>p{max-width:680px;color:var(--muted,#8f8f9b);line-height:1.55}
.bot-integration-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line,#2a2a30)}
.bot-integration-row small{color:var(--muted,#8f8f9b)}
.bot-menu-form{padding:18px 0 4px;border-top:1px solid var(--line,#2a2a30)}
.bot-menu-form h4{margin:0 0 12px;font-size:15px}
.bot-label-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bot-menu-preview{margin:20px 0 4px;padding:16px;border:1px solid rgba(141,124,255,.25);border-radius:14px;background:linear-gradient(140deg,rgba(141,124,255,.08),rgba(8,8,12,.55))}
.bot-menu-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.bot-menu-preview-head strong{font-size:13px}.bot-menu-preview-head code{color:#bdb2ff;font-size:11px}
.bot-menu-preview-screen{max-width:460px;padding:15px;border:1px solid #30303a;border-radius:13px;background:#08080b}
.bot-menu-preview-screen>strong{display:block;margin-bottom:5px}.bot-menu-preview-screen>p{margin:0 0 13px;color:#9a9aa5;font-size:12px}
.bot-menu-preview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bot-menu-preview-actions span{padding:9px 10px;border:1px solid #343440;border-radius:8px;color:#e9e8f2;background:#14141b;text-align:center;font-size:11px}
@media(max-width:650px){.bot-label-grid{grid-template-columns:1fr}.bot-integration-row{grid-template-columns:1fr auto}.bot-integration-row small{grid-column:1}.bot-integration-row button{grid-column:2;grid-row:1 / span 2}}

/* Store cards use a full-width themed art panel when no banner is available. */
.screen[data-screen="storefronts"] .storefront-art{width:100%;aspect-ratio:2.05;min-height:150px;background:linear-gradient(145deg,color-mix(in srgb,var(--store-accent,#8d7cff) 55%,#101016),#050507 86%)!important}
.screen[data-screen="storefronts"] .storefront-art-icon{width:76px;height:76px;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 10px 24px color-mix(in srgb,var(--store-accent,#8d7cff) 35%,transparent))}
.screen[data-screen="storefronts"] .storefront-art-icon>.ui-icon{width:100%!important;height:100%!important;color:currentColor!important;opacity:1!important}
.screen[data-screen="storefronts"] .storefront-art-icon>.ui-icon>svg{width:100%!important;height:100%!important;stroke:currentColor!important;stroke-width:1.35!important}
.report-context{display:block;margin-top:7px;color:var(--muted,#8e8b98);font-size:11px;line-height:1.4}.report-action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.09);color:var(--muted,#8e8b98);font-size:12px}.report-action-button{min-height:30px;padding:0 11px;font-size:11px}.report-action-button:disabled{opacity:.55;cursor:wait}@media(max-width:640px){.report-action-row{align-items:flex-start;flex-direction:column;gap:8px}}
