/* Section shell (app/nav.py + section_base.html) — one config-driven shell +
   left jobs rail per section. Its own file (not inside system.css) so it's
   guaranteed top-level, and external per Rule 8 (no inline styles). */
.sx-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.sx-wrap.sx-norail { grid-template-columns: 1fr; }
@media (max-width: 820px) { .sx-wrap { grid-template-columns: 1fr; } }
.sx-rail { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 10px; position: sticky; top: 56px; }
.sx-action { display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-fg); padding: 10px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.sx-action:hover { background: var(--accent-hover); color: var(--accent-fg); text-decoration: none; }
.sx-rail nav { display: flex; flex-direction: column; gap: 1px; }
.sx-rail nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-dim); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.sx-rail nav a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.sx-rail nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sx-rail nav a .sx-icon { font-size: 15px; line-height: 1; width: 18px; text-align: center; }
.sx-rail nav a .sx-badge { margin-left: auto; background: var(--bg-3); color: var(--text-dim); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.sx-rail nav a.active .sx-badge { background: var(--accent); color: var(--accent-fg); }
.sx-rail-group { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.sx-rail nav a.sx-rail-sub { padding-left: 22px; }

/* Owner "view my shop" toggle — cockpit button + the shop-view banner */
.view-shop-form { margin: 0; }
.view-shop-btn { background: var(--accent); color: var(--accent-fg); border: none; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.view-shop-btn:hover { background: var(--accent-hover); }
.shop-view-banner { position: sticky; top: 0; z-index: 210; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 18px; background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid var(--accent); font-size: 13.5px; font-weight: 500; }
.shop-view-banner form { margin: 0; }
.shop-view-exit { background: var(--accent); color: var(--accent-fg); border: none; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.shop-view-exit:hover { filter: brightness(1.06); }
