:root {
  color-scheme: dark;
  --bg: #070d16;
  --bg-soft: #0b1422;
  --panel: #101a29;
  --panel-2: #142135;
  --panel-hover: #18283e;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f9fc;
  --muted: #9dabc0;
  --muted-2: #718096;
  --accent: #18a8f0;
  --accent-strong: #087bd5;
  --accent-soft: rgba(24, 168, 240, 0.13);
  --success: #35c98a;
  --warning: #f5b942;
  --danger: #ff6f7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1260px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f8;
  --bg-soft: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f4f7fb;
  --panel-hover: #edf4fb;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #152034;
  --muted: #5e6b7f;
  --muted-2: #7d899a;
  --accent-soft: rgba(24, 168, 240, 0.10);
  --shadow: 0 22px 60px rgba(33, 53, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(24, 168, 240, 0.28);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 12px max(22px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(24, 168, 240, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.70rem;
}

.public-nav,
.header-actions,
.footer-links,
.member-strip-scroll,
.inline-actions,
.chip-row,
.filter-row {
  display: flex;
  align-items: center;
}

.public-nav {
  justify-content: center;
  gap: 4px;
}

.nav-link,
.member-link,
.footer-links button,
.mobile-nav button,
.account-menu button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--panel-2);
}

.header-actions {
  justify-content: flex-end;
  gap: 9px;
}

.icon-button,
.account-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover,
.account-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--panel);
}

.account-button {
  min-height: 42px;
  max-width: 170px;
  padding: 0 16px;
  overflow: hidden;
  color: white;
  background: var(--accent-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 75px 12px auto 12px;
  z-index: 999;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mobile-nav button {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  text-align: left;
  color: var(--muted);
  font-weight: 750;
}

.mobile-nav button:hover,
.mobile-nav button.active {
  color: var(--text);
  background: var(--panel-2);
}

.member-strip {
  position: sticky;
  top: 74px;
  z-index: 900;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.member-strip-scroll {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 18px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.member-strip-scroll::-webkit-scrollbar {
  display: none;
}

.member-link {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.member-link:hover,
.member-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

.ceo-link {
  color: #ffd47a;
}

.main-stage {
  width: min(calc(100% - 30px), var(--content-width));
  flex: 1;
  margin: 26px auto 0;
}

.page-panel {
  min-height: calc(100vh - 200px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.page-header h1,
.section-title,
.hero-title {
  margin: 0;
  letter-spacing: -0.035em;
}

.page-header h1 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.page-header p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
}

.page-body {
  padding: 28px 30px 34px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.muted {
  color: var(--muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: 42px;
}

.hero-title {
  max-width: 680px;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.inline-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  padding: 0 17px;
  font-weight: 800;
}

.primary-button {
  border-color: var(--accent-strong);
  color: white;
  background: var(--accent-strong);
}

.secondary-button {
  background: var(--panel-2);
}

.ghost-button {
  background: transparent;
}

.danger-button {
  border-color: rgba(255, 111, 125, 0.35);
  color: #ffd1d6;
  background: rgba(255, 111, 125, 0.10);
}

.full-width {
  width: 100%;
}

.hero-preview {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--bg-soft);
}

.preview-top,
.list-row,
.account-summary,
.profile-line,
.setting-row,
.chat-row,
.order-row,
.wallet-row {
  display: flex;
  align-items: center;
}

.preview-top {
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-pill,
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  color: #9bf0cb;
  background: rgba(53, 201, 138, 0.12);
}

.wallet-preview-card {
  padding: 22px;
  border-radius: 20px;
  color: white;
  background: #0c79c8;
}

.wallet-preview-card small {
  opacity: 0.85;
}

.wallet-preview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.preview-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.preview-list .list-row {
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.stat-card,
.setting-card,
.product-card,
.department-card,
.download-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.card,
.setting-card,
.department-card,
.download-card,
.policy-card {
  padding: 20px;
}

.card h3,
.setting-card h3,
.department-card h3,
.download-card h3,
.policy-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card p,
.setting-card p,
.department-card p,
.download-card p,
.policy-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card-button {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.card-button:hover .card,
.card-button:hover .department-card {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.icon-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 14px;
  color: white;
  background: var(--accent-strong);
  font-size: 1.25rem;
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-block + .section-block {
  margin-top: 28px;
}

.section-title {
  font-size: 1.25rem;
}

.section-copy {
  margin: 7px 0 16px;
  color: var(--muted);
}

.filter-row,
.chip-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
}

.chip {
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-2);
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: var(--text);
  border-color: rgba(24, 168, 240, 0.38);
  background: var(--accent-soft);
}

.product-card {
  overflow: hidden;
}

.product-image {
  width: 100%;
  aspect-ratio: 1.32;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: var(--bg-soft);
  font-size: 2.4rem;
}

.product-content {
  padding: 16px;
}

.product-content h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-price {
  margin-top: 11px;
  color: var(--accent);
  font-weight: 900;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.order-row,
.wallet-row,
.chat-row,
.setting-row,
.profile-line {
  justify-content: space-between;
  gap: 15px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
}

.list-row-main {
  min-width: 0;
}

.list-row-main strong,
.list-row-main span {
  display: block;
}

.list-row-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.badge {
  min-height: 27px;
  padding: 0 9px;
  color: var(--accent);
  background: var(--accent-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.field[hidden] {
  display: none !important;
}

.field > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.field input,
.field textarea,
.field select,
.search-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--bg-soft);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.85rem;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.form-error {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(14px);
}

.modal-card {
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.modal-header p:last-child {
  margin: 8px 0 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0 18px;
  padding: 5px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.segmented-control button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.segmented-control button.active {
  color: white;
  background: var(--accent-strong);
}

.account-menu {
  position: fixed;
  top: 67px;
  right: max(16px, calc((100vw - var(--content-width)) / 2));
  z-index: 3000;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-summary {
  gap: 12px;
  padding: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.account-summary small {
  display: block;
  max-width: 190px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: white;
  background: var(--accent-strong);
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu button {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border-radius: 11px;
  text-align: left;
  color: var(--muted);
  font-weight: 720;
}

.account-menu button:hover {
  color: var(--text);
  background: var(--panel-2);
}

.danger-text {
  color: var(--danger) !important;
}

.site-footer {
  width: min(calc(100% - 30px), var(--content-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px auto 0;
  padding: 18px 4px 28px;
  color: var(--muted);
  font-size: 0.80rem;
}

.site-footer > div:first-child {
  display: grid;
  gap: 3px;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links button {
  padding: 0;
  color: var(--muted);
}

.footer-links button:hover {
  color: var(--text);
}

.loading-view,
.empty-state,
.error-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8000;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.toast.error {
  color: #ffd7da;
  background: #3b151b;
}

.removedfeature-layout {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}

.removedfeature-messages {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  overflow-y: auto;
}

.message-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--panel-2);
}

.message-bubble.user {
  justify-self: end;
  color: white;
  background: var(--accent-strong);
}

.removedfeature-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.removedfeature-compose input {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
}

html[data-compact="true"] .page-header {
  padding: 20px 22px 16px;
}

html[data-compact="true"] .page-body,
html[data-compact="true"] .hero-layout {
  padding: 22px;
}

html[data-compact="true"] .card,
html[data-compact="true"] .setting-card,
html[data-compact="true"] .department-card,
html[data-compact="true"] .download-card,
html[data-compact="true"] .policy-card {
  padding: 16px;
}

@media (max-width: 1060px) {
  .public-nav {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    max-width: 620px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 10px 13px;
  }

  .brand-copy small,
  #themeQuickButton {
    display: none;
  }

  .account-button {
    max-width: 118px;
    min-height: 40px;
    padding: 0 12px;
  }

  .member-strip {
    top: 66px;
  }

  .main-stage,
  .site-footer {
    width: min(calc(100% - 18px), var(--content-width));
  }

  .main-stage {
    margin-top: 12px;
  }

  .page-panel {
    min-height: calc(100vh - 160px);
    border-radius: 20px;
  }

  .page-header {
    display: block;
    padding: 20px 18px 16px;
  }

  .page-body,
  .hero-layout {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .account-menu {
    top: 61px;
    right: 9px;
  }

  .modal-card {
    padding: 20px;
  }
}


/* CEO owner workspace */
.ceo-workspace {
  display: grid;
  gap: 16px;
}

.ceo-tabs {
  display: flex;
  gap: 7px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  scrollbar-width: thin;
}

.ceo-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.ceo-tab:hover,
.ceo-tab.active {
  color: var(--text);
  background: var(--panel-hover);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.ceo-readonly-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 168, 240, 0.24);
  border-radius: 13px;
  color: var(--muted);
  background: var(--accent-soft);
  font-size: 0.82rem;
}

.ceo-readonly-note strong {
  flex: 0 0 auto;
  color: var(--text);
}

.ceo-section-content {
  min-height: 430px;
}

.ceo-section-loading {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
}

.ceo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ceo-toolbar h2,
.ceo-panel h3 {
  margin: 0;
}

.ceo-toolbar h2 {
  font-size: 1.28rem;
}

.ceo-toolbar p,
.ceo-panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ceo-toolbar > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ceo-toolbar .search-input {
  width: min(360px, 100%);
}

.ceo-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ceo-metric-grid.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ceo-metric-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel-2);
}

.ceo-metric-card.warning {
  border-color: rgba(245, 158, 11, 0.24);
}

.ceo-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ceo-metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
}

.ceo-metric-card > strong {
  display: block;
  margin-top: 15px;
  font-size: 1.7rem;
  line-height: 1;
}

.ceo-metric-card > small {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.ceo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ceo-activity-list,
.ceo-source-grid {
  display: grid;
  gap: 8px;
}

.ceo-activity-row,
.ceo-source-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.ceo-activity-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
}

.ceo-activity-row > div,
.ceo-source-row > div {
  min-width: 0;
  flex: 1;
}

.ceo-activity-row strong,
.ceo-source-row strong,
.ceo-activity-row small,
.ceo-source-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-activity-row strong,
.ceo-source-row strong {
  font-size: 0.84rem;
}

.ceo-activity-row small,
.ceo-source-row small,
.ceo-activity-row time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.ceo-activity-row time {
  flex: 0 0 auto;
  text-align: right;
}

.ceo-status {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}

.ceo-status.success {
  color: #1d8b55;
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.10);
}

.ceo-status.warning {
  color: #ad6b00;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.10);
}

.ceo-status.danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.09);
}

.ceo-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
}

.ceo-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ceo-table th,
.ceo-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.80rem;
}

.ceo-table th {
  color: var(--muted);
  background: var(--panel);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ceo-table tbody tr:last-child td {
  border-bottom: 0;
}

.ceo-table tbody tr:hover td {
  background: var(--panel-hover);
}

.ceo-table td strong,
.ceo-table td small {
  display: block;
}

.ceo-table td small {
  max-width: 280px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.70rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceo-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.ceo-empty p {
  max-width: 520px;
  margin: 0;
}

@media (max-width: 980px) {
  .ceo-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ceo-metric-grid.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ceo-readonly-note,
  .ceo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ceo-toolbar .search-input {
    width: 100%;
  }

  .ceo-metric-grid,
  .ceo-metric-grid.compact-metrics {
    grid-template-columns: 1fr;
  }

  .ceo-activity-row {
    align-items: flex-start;
  }

  .ceo-activity-row time {
    display: none;
  }
}


/* Neo Market social, sitewide settings, verification and owner workspace */
.link-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.neo-feed { width:min(100%, 680px); margin:0 auto; display:grid; gap:22px; }
.neo-post-card { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--panel); box-shadow:0 15px 40px rgba(0,0,0,.12); }
.neo-post-header { display:flex; align-items:center; gap:12px; padding:14px 16px; }
.neo-post-header > div:nth-child(2) { display:grid; flex:1; }
.neo-post-header small { color:var(--muted); }
.post-avatar { width:45px; height:45px; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:var(--accent); color:white; font-weight:900; }
.post-avatar img { width:100%; height:100%; object-fit:cover; }
.neo-post-image { width:100%; max-height:720px; object-fit:contain; background:#02060c; display:block; }
.neo-post-copy { padding:15px 17px 7px; white-space:pre-wrap; }
.neo-post-actions { display:flex; align-items:center; gap:18px; padding:10px 16px; color:var(--muted); }
.neo-post-actions button { border:0; background:transparent; color:inherit; cursor:pointer; font-weight:800; }
.neo-comment-compose { display:grid; grid-template-columns:1fr auto; gap:10px; padding:12px 16px 16px; }
.neo-comment-compose input { min-height:44px; padding:0 13px; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--panel-2); }
.verified-mark { display:inline-grid; place-items:center; min-width:17px; height:17px; border-radius:50%; background:var(--accent); color:white; font-size:.72rem; }
.verified-mark.ceo { background:#f0b429; color:#2a1a00; }
.creator-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:22px; }
.post-preview-card { position:sticky; top:112px; align-self:start; padding:18px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--panel); }
.post-preview-media { min-height:300px; display:grid; place-items:center; margin:12px 0; overflow:hidden; border-radius:16px; background:var(--panel-2); color:var(--muted); }
.post-preview-media img { width:100%; max-height:520px; object-fit:contain; }
.upload-progress { height:5px; overflow:hidden; margin-top:16px; border-radius:999px; background:var(--panel-2); }
.upload-progress span { display:block; width:55%; height:100%; background:var(--accent); animation:neoProgress 1.2s ease-in-out infinite alternate; }
@keyframes neoProgress { to { transform:translateX(82%); } }
.reels-feed { width:min(100%, 620px); margin:22px auto 0; display:grid; gap:26px; }
.reel-card { position:relative; min-height:580px; overflow:hidden; border:1px solid var(--line); border-radius:28px; background:#02060c; }
.reel-card video { width:100%; height:min(74vh,760px); display:block; object-fit:contain; background:#000; }
.reel-overlay { position:absolute; left:0; right:0; bottom:0; padding:50px 22px 20px; color:white; background:linear-gradient(transparent,rgba(0,0,0,.84)); }
.removedfeature-console { display:grid; grid-template-columns:260px minmax(0,1fr); gap:18px; }
.removedfeature-sidebar { padding:18px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--panel); }
.removedfeature-sidebar select { width:100%; min-height:45px; margin:10px 0; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--panel-2); }
.removedfeature-compose textarea { min-height:52px; max-height:180px; resize:vertical; padding:13px; border:1px solid var(--line); border-radius:14px; color:var(--text); background:var(--panel-2); }
.message-bubble.error { border-color:rgba(255,111,125,.4); color:var(--danger); }
.verification-card { padding:20px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--panel); }
.contact-team-card { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--panel); }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:52px; padding:8px 0; border-bottom:1px solid var(--line); }
.switch-row input { width:22px; height:22px; }
.table-actions { display:flex; flex-wrap:wrap; gap:6px; }
.mini-button { min-height:31px; padding:0 9px; border:1px solid var(--line); border-radius:9px; background:var(--panel-2); color:var(--text); cursor:pointer; font-size:.75rem; font-weight:750; }
.vault-tab { color:#d69e2e !important; }
.vault-lock { min-height:460px; display:grid; place-items:center; align-content:center; gap:10px; padding:30px; text-align:center; border:1px solid var(--line); border-radius:var(--radius-xl); background:radial-gradient(circle at 50% 0%,rgba(214,158,46,.12),transparent 40%),var(--panel); }
.vault-icon { font-size:4rem; }
.security-note { margin-top:18px; color:var(--muted); font-size:.82rem; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
#phoneRecaptcha { position:fixed; z-index:9999; right:12px; bottom:12px; }
@media (max-width:900px) { .creator-layout,.removedfeature-console { grid-template-columns:1fr; } .post-preview-card { position:static; } .contact-team-card { align-items:flex-start; flex-direction:column; } }

/* Neo Chat V4 connected viewer */
.chat-row-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.web-chat-view {
  display: grid;
  gap: 14px;
}

.web-chat-messages {
  min-height: 430px;
  max-height: 62vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.web-chat-bubble {
  width: min(76%, 560px);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.web-chat-bubble.mine {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--accent-soft);
}

.web-chat-bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.web-chat-bubble small,
.web-chat-bubble time {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.web-chat-bubble p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.web-chat-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--panel-2);
}

@media (max-width: 680px) {
  .web-chat-bubble { width: 90%; }
  .web-chat-readonly { align-items: stretch; flex-direction: column; }
}

/* Neo Market owner styles */
.build-badge,
.footer-build,
.neo-live-build {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 999px;
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy .build-badge {
  margin-top: 3px;
}

.footer-build {
  margin-top: 4px;
  color: var(--muted);
}

.ceo-tabs {
  flex-wrap: wrap;
  overflow-x: visible;
}

.ceo-tab.system-tab,
.ceo-tab.vault-tab {
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}

.removedfeature-console- {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  align-items: stretch;
}

.removedfeature-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.removedfeature-brand-lockup > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #4b6bff);
  font-size: 1.15rem;
}

.removedfeature-brand-lockup div {
  display: grid;
  gap: 2px;
}

.removedfeature-brand-lockup small,
.removedfeature-tool-row span,
.removed-image-preview small,
.removedfeature-response-meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.removedfeature-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
}

.removedfeature-capability-grid span {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 0.75rem;
  font-weight: 750;
}

.removedfeature-layout- {
  min-height: 640px;
}

.removedfeature-welcome {
  max-width: min(720px, 92%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: linear-gradient(145deg, var(--panel-2), color-mix(in srgb, var(--accent) 8%, var(--panel)));
}

.removedfeature-compose- {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.removedfeature-input-stack {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.removedfeature-compose- textarea {
  width: 100%;
  min-height: 74px;
  max-height: 240px;
  resize: vertical;
}

.removedfeature-tool-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.removedfeature-tool-row .secondary-button {
  min-height: 38px;
  padding: 0 12px;
}

.removedfeature-send-button {
  min-width: 92px;
  min-height: 50px;
}

.removed-image-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 13px;
  background: var(--panel-2);
}

.removed-image-preview[hidden] {
  display: none;
}

.removed-image-preview img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
}

.removed-image-preview div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.removed-image-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.removedfeature-user-image {
  display: block;
  width: min(340px, 100%);
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.removedfeature-response-meta {
  margin-bottom: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .removedfeature-console- {
    grid-template-columns: 1fr;
  }

  .removedfeature-layout- {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .build-badge {
    display: none;
  }

  .removedfeature-compose- {
    grid-template-columns: 1fr;
  }

  .removedfeature-send-button {
    width: 100%;
  }

  .removedfeature-capability-grid {
    grid-template-columns: 1fr;
  }
}


/* Owner system additions */
:root {
  --neo-accent: #12b7ff;
  --neo-accent-2: #6d5dfc;
  --neo-background: #07111f;
  --neo-surface: #101e31;
  --neo-card: #14253b;
  --neo-text: #f6f9ff;
  --neo-muted: #a9b9cd;
  --neo-radius: 20px;
  --neo-width: 1440px;
  --neo-font-scale: 1;
  --surface: var(--panel);
  --surface-2: var(--panel-2);
  --surface-3: var(--panel-hover);
  --border: var(--line);
}
.grid-5 { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
html { font-size: calc(16px * var(--neo-font-scale)); }
body { background: var(--neo-background); color: var(--neo-text); }
.main-stage, .site-header, .member-strip, .site-footer { max-width: var(--neo-width); }
.page-panel, .card, .product-card, .setting-card, .ceo-panel, .modal-card { border-radius: var(--neo-radius); }
.counter-button { position: relative; min-width: 44px; }
.counter-button span { position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--neo-accent); color:#00101b; font-size:11px; font-weight:900; display:grid; place-items:center; }
.store-toolbar { display:grid; grid-template-columns: minmax(200px, 1fr) 220px 160px; gap:12px; margin-bottom:18px; }
.product-card { cursor:pointer; transition:transform .2s ease, border-color .2s ease; overflow:hidden; }
.product-card:hover { transform:translateY(-3px); border-color:var(--neo-accent); }
.product-card-actions { display:grid; grid-template-columns:1fr auto auto; gap:8px; padding:0 16px 16px; }
.mini-button { border:1px solid var(--border); background:var(--surface-2); color:var(--text); border-radius:12px; min-height:40px; padding:8px 12px; cursor:pointer; font-weight:800; }
.mini-button:hover { border-color:var(--neo-accent); }
.product-detail-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); gap:26px; }
.product-gallery { display:grid; gap:12px; }
.product-hero-image { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--neo-radius); background:var(--surface-2); }
.thumbnail-row { display:flex; gap:10px; overflow:auto; }
.thumbnail-row button { padding:0; border:2px solid transparent; border-radius:12px; background:none; cursor:pointer; }
.thumbnail-row img { width:72px; height:72px; object-fit:cover; border-radius:10px; }
.thumbnail-row button.active { border-color:var(--neo-accent); }
.detail-price { font-size:2rem; font-weight:950; margin:8px 0; }
.detail-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.detail-spec { padding:12px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); }
.quantity-row { display:flex; align-items:center; gap:10px; }
.quantity-row input { width:90px; }
.cart-list { display:grid; gap:14px; }
.cart-item { display:grid; grid-template-columns:90px 1fr auto; gap:16px; align-items:center; padding:14px; border:1px solid var(--border); border-radius:var(--neo-radius); background:var(--surface); }
.cart-item img { width:90px; height:90px; object-fit:cover; border-radius:14px; }
.cart-summary { position:sticky; top:96px; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:24px; }
.delivery-timeline { display:grid; gap:0; margin-top:16px; }
.delivery-step { display:grid; grid-template-columns:34px 1fr; gap:12px; min-height:72px; }
.delivery-dot { width:18px; height:18px; border-radius:50%; background:var(--surface-3); border:3px solid var(--border); margin-top:3px; position:relative; }
.delivery-step:not(:last-child) .delivery-dot::after { content:""; position:absolute; width:2px; height:58px; background:var(--border); top:15px; left:5px; }
.delivery-step.done .delivery-dot { background:var(--neo-accent); border-color:var(--neo-accent); }
.status-live { display:inline-flex; gap:7px; align-items:center; }
.status-live::before { content:""; width:9px; height:9px; border-radius:50%; background:#32d583; box-shadow:0 0 0 4px rgba(50,213,131,.16); }
.message-workspace { display:grid; grid-template-columns:300px 1fr; min-height:560px; border:1px solid var(--border); border-radius:var(--neo-radius); overflow:hidden; }
.message-sidebar { border-right:1px solid var(--border); background:var(--surface-2); padding:14px; }
.message-thread { display:flex; flex-direction:column; min-width:0; }
.message-list { flex:1; padding:20px; display:flex; flex-direction:column; gap:10px; overflow:auto; max-height:560px; }
.message-bubble { max-width:78%; padding:11px 14px; border-radius:16px; background:var(--surface-2); }
.message-bubble.mine { align-self:flex-end; background:var(--neo-accent); color:#00101b; }
.message-composer { display:grid; grid-template-columns:1fr auto; gap:10px; padding:14px; border-top:1px solid var(--border); }
.application-progress { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.application-progress span { padding:8px 12px; border-radius:999px; border:1px solid var(--border); }
.application-progress span.active { background:var(--neo-accent); color:#00101b; border-color:var(--neo-accent); }
.document-upload-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.upload-box { border:1px dashed var(--border); padding:16px; border-radius:16px; }
.ceo-owner-tabs { display:flex; gap:8px; overflow:auto; padding-bottom:4px; }
.ceo-owner-tabs button { white-space:nowrap; }
.builder-grid { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); gap:20px; }
.builder-list { display:grid; gap:10px; }
.builder-item { display:grid; grid-template-columns:1fr auto; gap:10px; padding:12px; border:1px solid var(--border); border-radius:14px; }
.builder-preview { min-height:420px; border:1px solid var(--border); border-radius:var(--neo-radius); padding:20px; background:var(--surface-2); }
.design-swatch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.design-swatch input[type="color"] { width:100%; min-height:48px; }
.nav-editor-row { display:grid; grid-template-columns:1fr 1fr auto auto; gap:8px; align-items:end; }
.dynamic-section { margin-top:20px; padding:22px; border:1px solid var(--border); border-radius:var(--neo-radius); background:var(--surface); }
.dynamic-section h2 { margin-top:0; }
.order-admin-row { display:grid; grid-template-columns:1fr 180px 120px; gap:10px; align-items:center; }
.review-documents { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.review-documents a { display:block; border:1px solid var(--border); padding:10px; border-radius:12px; overflow:hidden; }
.review-documents img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:8px; }
.danger-zone { border-color:rgba(255,78,103,.45); }
.danger-zone h3 { color:#ff6b83; }
.empty-button { width:100%; }
@media (max-width:900px) {
  .store-toolbar, .product-detail-layout, .checkout-layout, .builder-grid, .message-workspace { grid-template-columns:1fr; }
  .message-sidebar { border-right:0; border-bottom:1px solid var(--border); }
  .cart-item { grid-template-columns:70px 1fr; }
  .cart-item > :last-child { grid-column:1/-1; }
  .nav-editor-row, .order-admin-row { grid-template-columns:1fr; }
}

@media (max-width:1100px){.grid-5{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:650px){.grid-5{grid-template-columns:1fr;}}

/* Owner workspace layout, branding, history and developer engine additions */
:root {
  --neo-logo-bg: var(--neo-accent);
  --neo-logo-fg: #ffffff;
  --neo-logo-size: 42px;
  --neo-content-offset-x: 0px;
  --neo-content-offset-y: 0px;
  --neo-section-gap: 0px;
}

.brand-mark {
  width: var(--neo-logo-size);
  height: var(--neo-logo-size);
  min-width: var(--neo-logo-size);
  background: var(--neo-logo-bg);
  color: var(--neo-logo-fg);
}

.brand-mark.has-image {
  overflow: hidden;
  padding: 0;
}

.brand-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.brand-mark-name {
  width: auto;
  min-width: var(--neo-logo-size);
  max-width: 220px;
  padding: 0 14px;
  white-space: nowrap;
}

html[data-layout="wide"] {
  --neo-width: min(1760px, calc(100vw - 28px));
}

html[data-layout="full"] .site-header,
html[data-layout="full"] .member-strip,
html[data-layout="full"] .main-stage,
html[data-layout="full"] .site-footer {
  width: 100%;
  max-width: none;
}

html[data-layout="full"] .main-stage {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

html[data-layout="full"] .page-panel {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

html[data-layout="custom"] .main-stage,
html[data-layout="custom"] .site-footer {
  width: min(calc(100% - 30px), var(--neo-width));
}

html[data-header-full="true"] .site-header {
  width: 100%;
  max-width: none;
}

.main-stage {
  transform: translate(var(--neo-content-offset-x), var(--neo-content-offset-y));
}

.page-panel > * + * {
  margin-top: var(--neo-section-gap);
}

.account-button.account-photo-mode {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
}

.account-button.account-photo-mode img,
.account-button.account-photo-name-mode img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.account-button.account-photo-name-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
}

.profile-photo-editor,
.member-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo-preview {
  width: 88px;
  height: 88px;
  min-width: 88px;
  font-size: 1.6rem;
}

.small-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.owner-history-bar {
  position: sticky;
  top: 122px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.owner-history-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.owner-history-bar small {
  color: var(--muted);
}

.category-editor-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) 90px 90px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.check-stack {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.security-note,
.security-output {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--neo-accent) 44%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--neo-accent) 8%, var(--surface-2));
}

.security-output code,
.copy-field code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

@media (max-width: 1100px) {
  .category-editor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-editor-row > .inline-actions {
    grid-column: 1 / -1;
  }
  .owner-history-bar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .category-editor-row,
  .copy-field {
    grid-template-columns: 1fr;
  }
  .profile-photo-editor {
    align-items: flex-start;
    flex-direction: column;
  }
  html[data-layout="full"] .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* V2.46 Neo AI workspace additions */

/* NEO Market Online V2.45 — AI workspaces + paid modes */
.neo-ai-workspace-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--border,rgba(255,255,255,.12));position:sticky;top:0;z-index:3;background:color-mix(in srgb,var(--surface,#101e31) 92%,transparent)}
.neo-ai-workspace-tabs button{border:1px solid var(--border,rgba(255,255,255,.15));background:transparent;color:inherit;border-radius:999px;padding:9px 15px;font-weight:700;cursor:pointer}
.neo-ai-workspace-tabs button.active{background:var(--accent,#12b7ff);color:#03111d;border-color:transparent}
.neo-ai-workspace-panel[hidden]{display:none!important}
.neo-ai-workspace-panel{min-height:420px}
.neo-ai-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:18px}
.neo-ai-plan-card{border:1px solid var(--border,rgba(255,255,255,.12));border-radius:18px;padding:18px;background:color-mix(in srgb,var(--card,#14253b) 90%,transparent);display:flex;flex-direction:column;gap:12px;min-height:190px}
.neo-ai-plan-card.active{outline:2px solid var(--accent,#12b7ff);box-shadow:0 0 0 5px color-mix(in srgb,var(--accent,#12b7ff) 12%,transparent)}
.neo-ai-plan-card h3,.neo-ai-plan-card p{margin:0}
.neo-ai-plan-card button{margin-top:auto}
.neo-ai-mode-hero{max-width:720px;margin:28px auto;padding:28px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:22px;text-align:center;background:color-mix(in srgb,var(--card,#14253b) 88%,transparent)}
.neo-ai-recent-list{display:grid;gap:10px;padding:18px}
.neo-ai-recent-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:16px}
.neo-ai-recent-item>button:first-child{border:0;background:transparent;color:inherit;text-align:left;display:grid;gap:4px;cursor:pointer;padding:8px}
.neo-ai-recent-item small{opacity:.68}
@media(max-width:700px){.neo-ai-plan-grid{grid-template-columns:1fr}.neo-ai-workspace-tabs{overflow:auto;flex-wrap:nowrap}.neo-ai-recent-item{grid-template-columns:1fr}}
