/* Merchant canonical shell — Aive 대시보드 사이드바 publishing 기준 */
:root { color-scheme: light; }
.db-root, .app-layout { display: flex; min-height: 100vh; background: var(--bg); }
.db-sidebar { width: 220px; flex: 0 0 220px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; overflow-y: auto; padding: 0; position: sticky; top: 0; }
.sb-logo { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); height: 76px; }
.sb-brand { display: flex; align-items: center; margin-bottom: 4px; }
.sb-brand img { height: 22px; width: auto; object-fit: contain; }
.sb-shop { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-400); margin-top: 8px; }
.sb-shop-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); flex: 0 0 auto; }
.sb-shop-dot--none { background: var(--ink-200); }
.sb-nav { flex: 1; padding: 10px; }
.sb-sec { margin-bottom: 4px; }
.sb-sec-label { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); padding: 8px 10px 4px; }
.db-sidebar .nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--ink-700); text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); margin-bottom: 2px; }
.db-sidebar .nav-item:hover { background: var(--bg); color: var(--ink-900); }
.db-sidebar .nav-item.active { background: rgba(201,242,61,.18); color: var(--ink-900); font-weight: 700; }
.db-sidebar .nav-item[aria-disabled="true"] { color: var(--ink-300); cursor: not-allowed; }
.db-sidebar .nav-item svg { flex: 0 0 auto; width: 16px; height: 16px; }
.nav-item-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 700; background: var(--bg); color: var(--ink-400); border-radius: 4px; padding: 1px 5px; margin-left: auto; }
.sb-bottom { padding: 10px; border-top: 1px solid var(--border); }
.sb-plan { background: var(--bg); border-radius: var(--r-sm); padding: 12px; margin-bottom: 6px; }
.sb-plan-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2px; }
.sb-plan-name { font-size: 14px; font-weight: 800; color: var(--ink-900); margin-bottom: 2px; }
.sb-plan-expire { font-size: 11px; color: var(--ink-400); margin-bottom: 8px; }
.sb-plan-btn { display: block; background: var(--ink-900); color: var(--accent); text-align: center; border-radius: var(--r-sm); padding: 7px; font-size: 12px; font-weight: 700; text-decoration: none; }
.sb-plan-btn:hover { background: var(--accent); color: var(--ink-900); }
.sb-logout-form { margin: 0; }
.sb-logout { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.app-main, .db-main { min-width: 0; flex: 1; background: var(--bg); }
/* publishing shell은 legacy .app-main의 여백·폭 제한을 상속하지 않는다. */
.merchant-shell .app-main.db-main {
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.merchant-shell-backdrop { display: none; position: fixed; inset: 0; border: 0; background: rgba(10,10,20,.4); z-index: 199; }
@media (max-width: 768px) {
  .db-sidebar { position: fixed; left: -220px; top: 0; bottom: 0; z-index: 200; transition: left 240ms cubic-bezier(.22,.61,.36,1); box-shadow: var(--shadow-pop); }
  .merchant-shell.mobile-menu-open .db-sidebar, .app-layout.mobile-menu-open .db-sidebar { left: 0; }
  .merchant-shell.mobile-menu-open .merchant-shell-backdrop, .app-layout.mobile-menu-open .merchant-shell-backdrop { display: block; }
}
