/* App shell: left sidebar on wide screens, top bar + drawer on phones. Uses only the shared tokens. */
.shell { display: flex; align-items: flex-start; min-height: 100vh; }
.shell-main { flex: 1 1 auto; min-width: 0; }
.shell-side { flex: none; width: 240px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--t-surface); border-right: 1px solid var(--t-border); display: flex; flex-direction: column; padding: 16px 12px; font-family: var(--t-font); font-size: 14px; color: var(--t-ink); }
.shell-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-size: 18px; font-weight: 700; color: var(--t-ink); text-decoration: none; }
.shell-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--t-primary); color: var(--t-on-primary); display: grid; place-items: center; font-size: 17px; flex: none; }
.shell-nav { flex: 1; }
.shell-group { margin: 14px 0 4px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.shell-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--t-ink-2); text-decoration: none; }
a.shell-item:hover { background: var(--t-primary-subtle); }
a.shell-item.cur { background: var(--t-primary-subtle); color: var(--t-primary); font-weight: 600; }
span.shell-item { color: var(--t-muted); opacity: .75; cursor: default; }
.shell-soon { font-size: 11px; font-style: normal; background: var(--t-info-bg); color: var(--t-info); border-radius: 99px; padding: 1px 8px; flex: none; }
.shell-lang { display: flex; margin-top: 12px; padding: 0 8px; }
.shell-lang button { font: inherit; min-height: 40px; min-width: 48px; border: 1px solid var(--t-border); background: transparent; color: var(--t-ink-2); cursor: pointer; padding: 6px 12px; }
.shell-lang button:first-child { border-radius: 10px 0 0 10px; }
.shell-lang button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.shell-lang button.on { background: var(--t-primary); border-color: var(--t-primary); color: var(--t-on-primary); }
.shell-bar, .shell-scrim { display: none; }

@media (max-width: 820px) {
  .shell { display: block; }
  .shell-bar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px; background: var(--t-surface); border-bottom: 1px solid var(--t-border); font-family: var(--t-font); }
  .shell-menu { font: inherit; min-height: 44px; min-width: 44px; border: 1px solid var(--t-border); border-radius: 10px; background: transparent; color: var(--t-ink); font-size: 20px; cursor: pointer; }
  .shell-bar .shell-brand { padding: 0; min-height: 44px; flex: 1; min-width: 0; font-size: 17px; }
  .shell-bar .shell-lang { margin: 0; padding: 0; }
  .shell-side { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; height: auto; width: min(280px, 85vw); transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); }
  .shell-side .shell-lang { display: none; }
  .shell.open .shell-side { transform: none; visibility: visible; }
  .shell.open .shell-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: reduce) { .shell-side { transition: none; } }
