.workspace-body { background: #efeee9; }
.workspace-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px; background: #11110f; color: #fff; display: flex; flex-direction: column; }
.sidebar-brand { color: #fff; padding: 0 12px 30px; }
.side-nav { display: grid; gap: 6px; }
.side-nav a, .side-logout { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 12px; background: transparent; color: #c9c9c4; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.side-nav a:hover, .side-logout:hover { color: #fff; background: #282824; }
.side-nav span { width: 22px; color: #d7ff5f; text-align: center; }
.side-nav-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid #31312d; }
.side-nav-bottom form { margin: 0; }
.workspace-main { max-width: none; min-width: 0; margin: 0; padding: 0 48px 60px; }
.workspace-main .dashboard-head { padding-top: 58px; }
.workspace-main .dashboard-head h1 { margin-bottom: 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.shop-grid.large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.shop-card h3, .shop-card p { margin: 0; }
.shop-card p, .shop-card small { color: var(--muted); }
.shop-card .pill { margin-left: auto; }
.shop-card { flex-wrap: wrap; }
.shop-card-content { min-width: 0; flex: 1; }
.shop-card.is-inactive, .account-row.is-inactive { opacity: .62; }
.card-actions { width: 100%; display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-actions a, .row-actions a { color: var(--ink); font-size: 13px; font-weight: 750; }
.card-actions form, .row-actions form { margin: 0; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.account-row { gap: 20px; }
.shop-logo { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--violet); color: var(--ink); font-weight: 900; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.large-logo { width: 62px; height: 62px; flex-basis: 62px; border-radius: 18px; }
.buyer-brand { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 22px; }
.buyer-brand h2, .buyer-brand p { margin: 0; }
.pay-purpose { color: #c8c8c3; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 28px; }
.empty-state p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.feature-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px; background: var(--acid); font-size: 32px; }
.table-panel { max-width: 1000px; }

@media (max-width: 1000px) {
  .workspace-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 24px 12px; }
  .sidebar-brand { font-size: 0; padding: 0 4px 26px; }
  .sidebar-brand::before { content: "S"; font-size: 26px; }
  .side-nav a, .side-logout { justify-content: center; font-size: 0; }
  .side-nav span { font-size: 18px; }
  .workspace-main { padding-left: 28px; padding-right: 28px; }
  .shop-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .workspace-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: 70px; padding: 8px 10px; flex-direction: row; }
  .sidebar-brand, .side-nav-bottom { display: none; }
  .side-nav { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .side-nav a:nth-child(n+5) { display: none; }
  .side-nav a { display: grid; place-items: center; gap: 1px; padding: 5px; font-size: 10px; }
  .side-nav span { font-size: 18px; }
  .workspace-main { padding: 0 18px 92px; }
  .shop-grid, .shop-grid.large { grid-template-columns: 1fr; }
}
