/**
 * Agenuit Console — App Shell Layout System
 * 
 * This file defines the consistent app shell layout (nav + content + optional detail)
 * for the primary console dashboard routes. It consumes spacing and motion tokens
 * from `design-tokens.css`.
 * 
 * ## Layout Structure
 * 
 * ```
 * ┌──────────────────────────────────────────────────────────────┐
 * │  .app-shell                                                  │
 * │  ┌──────────┬───────────────────────────────────────────────┤
 * │  │ .shell-  │  .shell-main                                  │
 * │  │   rail   │  ┌─────────────────────────────────────────┐  │
 * │  │          │  │ .shell-topbar (sticky)                  │  │
 * │  │ (nav)    │  ├─────────────────────────────────────────┤  │
 * │  │          │  │ .shell-content                          │  │
 * │  │          │  │ ┌─────────────────┬──────────────────┐  │  │
 * │  │          │  │ │ .shell-page     │ .shell-detail    │  │  │
 * │  │          │  │ │ (primary)       │ (optional)       │  │  │
 * │  │          │  │ └─────────────────┴──────────────────┘  │  │
 * │  │          │  ├─────────────────────────────────────────┤  │
 * │  │          │  │ .shell-actbar (sticky, optional)        │  │
 * │  └──────────┴──┴─────────────────────────────────────────┘  │
 * └──────────────────────────────────────────────────────────────┘
 * ```
 * 
 * ## Spacing Rhythm (4px base unit from design-tokens.css)
 * 
 * | Context               | Token              | Value  |
 * |-----------------------|--------------------|--------|
 * | Shell outer padding   | --space-3          | 12px   |
 * | Rail width            | 248px (lg), 212px  |        |
 * | Rail padding          | --space-5 --space-4| 20/16  |
 * | Topbar height         | ~52px              |        |
 * | Topbar padding        | --space-3 --space-6| 12/24  |
 * | Content max-width     | 1080px             |        |
 * | Page padding          | --space-10 --space-10| 40   |
 * | Section margin        | --space-10         | 40px   |
 * | Card padding          | --space-5          | 20px   |
 * | Component gap         | --space-2          | 8px    |
 * 
 * ## Type Rhythm (from design-tokens.css)
 * 
 * | Element    | Size token | Line height | Weight |
 * |------------|------------|-------------|--------|
 * | h1.shell-  | --text-4xl | tight (1.1) | 400    |
 * | h2         | --text-2xl | snug (1.3)  | 400    |
 * | body       | --text-base| normal(1.6) | 400    |
 * | .eyebrow   | --text-sm  | normal      | 500    |
 * | .mono      | --text-sm  | -           | 400    |
 * 
 * ## Motion (from design-tokens.css, respects prefers-reduced-motion)
 * 
 * All transitions use motion tokens which collapse to 0ms when the user
 * prefers reduced motion.
 * 
 * @see https://github.com/aajibad1/agenuit/issues/650 (AC-1)
 */

/* ===========================================================================
 * APP SHELL — Root Layout Grid
 * Two-column grid: fixed-width rail + flexible main area.
 * 
 * Phase B (#702): Signature visual identity — calm authority, teal accents.
 * Uses --sig-* tokens from design-tokens.css for consistent identity across
 * shell and non-Situation screens.
 * =========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  gap: var(--space-2);
  background: var(--sig-ground, var(--ground));
}

/* ===========================================================================
 * SKIP LINK — Keyboard accessibility (AC-3)
 * Allows keyboard users to skip navigation and jump to main content.
 * =========================================================================== */
.shell-skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--acc);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition-property: top;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-skip-link:focus {
  top: var(--space-4);
  outline: none;
  box-shadow: 0 0 0 2px var(--acc-ring), 0 0 0 3px var(--doc);
}

/* Dark variant for immersive screens (e.g., Situation) */
.app-shell.shell-dark {
  background: #0b0e13;
}

/* ===========================================================================
 * RAIL — Navigation Sidebar
 * Fixed-width rail with navigation groups.
 * =========================================================================== */
.shell-rail {
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.shell-dark .shell-rail {
  background: transparent;
}

/* Brand/logo section */
.shell-brand {
  padding: 0 var(--space-3) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shell-brand > b {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

.shell-dark .shell-brand > b {
  color: #f0f4f8;
}

.shell-brand > span {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.shell-dark .shell-brand > span {
  color: #8e9bab;
}

/* Navigation groups */
.shell-navgrp {
  margin-bottom: var(--space-5);
}

.shell-navgrp > .shell-eyebrow {
  padding: 0 var(--space-3) var(--space-2);
}

/* Navigation item */
.shell-navitem {
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--ink-1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: var(--motion-hover-duration);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-navitem:hover {
  background: rgba(15, 20, 25, 0.045);
  color: var(--ink);
}

.shell-navitem:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--sig-live-ring, var(--acc-ring)), 0 0 0 3px var(--sig-live, var(--acc));
}

.shell-navitem:active {
  transform: scale(0.98);
}

.shell-navitem:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.shell-navitem.on {
  background: var(--doc);
  color: var(--ink);
  font-weight: var(--font-medium);
  box-shadow: var(--sh-1);
}

.shell-navitem.on:focus-visible {
  box-shadow: var(--sh-1), 0 0 0 2px var(--sig-live-ring, var(--acc-ring)), 0 0 0 3px var(--sig-live, var(--acc));
}

.shell-navitem > em {
  font-style: normal;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--sig-live-ink, var(--acc-ink, #0d7a63));
  background: var(--sig-live-soft, var(--acc-soft));
  padding: 1px 7px;
  border-radius: 99px;
}

/* Dark mode nav items */
.shell-dark .shell-navitem {
  color: #a9b5c2;
}

.shell-dark .shell-navitem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4f8;
}

.shell-dark .shell-navitem:focus-visible {
  box-shadow: 0 0 0 2px rgba(95, 227, 188, 0.2), 0 0 0 3px #5fe3bc;
}

.shell-dark .shell-navitem.on {
  background: #182027;
  color: #fff;
  box-shadow: none;
}

.shell-dark .shell-navitem.on:focus-visible {
  box-shadow: 0 0 0 2px rgba(95, 227, 188, 0.2), 0 0 0 3px #5fe3bc;
}

.shell-dark .shell-navitem > em {
  color: #5fe3bc;
  background: rgba(95, 227, 188, 0.14);
}

/* Rail footer */
.shell-railfoot {
  margin-top: auto;
  padding: var(--space-5) var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--leading-normal);
}

.shell-dark .shell-railfoot {
  color: #8e9bab;
}

/* ===========================================================================
 * MAIN — Content Area
 * Contains topbar, content, and optional action bar.
 * =========================================================================== */
.shell-main {
  overflow-y: auto;
  background: var(--doc);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.shell-dark .shell-main {
  background: #11161d;
  border-color: #1f2831;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ===========================================================================
 * TOPBAR — Sticky Header
 * Breadcrumb, search, and user avatars.
 * =========================================================================== */
.shell-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  border-radius: var(--r) var(--r) 0 0;
}

.shell-dark .shell-topbar {
  background: rgba(17, 22, 29, 0.82);
  border-bottom-color: #1f2831;
}

/* Breadcrumb */
.shell-crumb {
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 140px;
  flex: 0 0 auto;
}

.shell-crumb > b {
  font-weight: var(--font-medium);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-dark .shell-crumb {
  color: #8e9bab;
}

.shell-dark .shell-crumb > b {
  color: #f0f4f8;
}

/* Command button (search) */
.shell-cmdbtn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 7px var(--space-3);
  border: 1px solid var(--rule-1);
  border-radius: 99px;
  background: var(--doc-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
  cursor: pointer;
  transition-property: border-color, background-color, box-shadow, transform;
  transition-duration: var(--motion-hover-duration);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-cmdbtn:hover {
  border-color: var(--ink-3);
  background: var(--doc);
}

.shell-cmdbtn:focus-visible {
  outline: none;
  border-color: var(--sig-live, var(--acc));
  box-shadow: 0 0 0 2px var(--sig-live-ring, var(--acc-ring));
}

.shell-cmdbtn:active {
  transform: scale(0.98);
}

.shell-cmdbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.shell-dark .shell-cmdbtn {
  background: #182027;
  border-color: #28323d;
  color: #a9b5c2;
}

.shell-dark .shell-cmdbtn:hover {
  background: #1d262e;
  border-color: #3a4652;
}

.shell-dark .shell-cmdbtn:focus-visible {
  border-color: #5fe3bc;
  box-shadow: 0 0 0 2px rgba(95, 227, 188, 0.2);
}

/* Keyboard shortcut indicator */
.shell-kbd {
  font-family: var(--mono);
  font-size: var(--text-xs);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--doc);
  border: 1px solid var(--rule-1);
  color: var(--ink-2);
}

.shell-dark .shell-kbd {
  background: #11161d;
  border-color: #2c3540;
  color: #a9b5c2;
}

/* Avatar cluster */
.shell-avatars {
  display: flex;
}

.shell-avatars > span {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--sig-live-soft, var(--acc-soft));
  color: var(--sig-live-ink, var(--acc-ink, #0d7a63));
  border: 2px solid var(--doc);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-left: -7px;
}

.shell-avatars > span:first-child {
  margin-left: 0;
}

.shell-dark .shell-avatars > span {
  background: rgba(95, 227, 188, 0.16);
  color: #5fe3bc;
  border-color: #11161d;
}

/* ===========================================================================
 * USER MENU — Profile dropdown (AC-1…AC-3, #696)
 * Replaces decorative avatars with real Clerk user control.
 * =========================================================================== */
.shell-usermenu {
  position: relative;
}

.shell-usermenu-trigger {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--rule-1);
  background: var(--acc-soft);
  color: var(--acc-deep);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition-property: border-color, box-shadow, transform;
  transition-duration: var(--motion-hover-duration);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-usermenu-trigger:hover {
  border-color: var(--acc);
}

.shell-usermenu-trigger:focus-visible {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc-ring);
}

.shell-usermenu-trigger.open {
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc-ring);
}

.shell-usermenu-trigger:active {
  transform: scale(0.96);
}

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

.shell-usermenu-initials {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

/* Dark mode trigger */
.shell-dark .shell-usermenu-trigger {
  background: rgba(95, 227, 188, 0.16);
  color: #5fe3bc;
  border-color: #28323d;
}

.shell-dark .shell-usermenu-trigger:hover,
.shell-dark .shell-usermenu-trigger.open {
  border-color: #5fe3bc;
}

.shell-dark .shell-usermenu-trigger:focus-visible {
  border-color: #5fe3bc;
  box-shadow: 0 0 0 2px rgba(95, 227, 188, 0.2);
}

/* Dropdown menu */
.shell-usermenu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--doc);
  border: 1px solid var(--rule-1);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  z-index: 100;
  overflow: hidden;
}

.shell-usermenu-dropdown.dark {
  background: #182027;
  border-color: #28323d;
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.6);
}

.shell-usermenu-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.shell-usermenu-dropdown.dark .shell-usermenu-header {
  border-bottom-color: #28323d;
}

.shell-usermenu-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-usermenu-dropdown.dark .shell-usermenu-name {
  color: #f0f4f8;
}

.shell-usermenu-email {
  font-size: var(--text-xs);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.shell-usermenu-dropdown.dark .shell-usermenu-email {
  color: #8e9bab;
}

.shell-usermenu-divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
}

.shell-usermenu-dropdown.dark .shell-usermenu-divider {
  background: #28323d;
}

.shell-usermenu-item {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--ink-1);
  background: none;
  border: 0;
  cursor: pointer;
  transition-property: background-color, color;
  transition-duration: var(--motion-hover-duration);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-usermenu-item:hover {
  background: rgba(15, 20, 25, 0.045);
  color: var(--ink);
}

.shell-usermenu-item:focus-visible {
  outline: none;
  background: var(--acc-soft);
  color: var(--acc-deep);
}

.shell-usermenu-dropdown.dark .shell-usermenu-item {
  color: #a9b5c2;
}

.shell-usermenu-dropdown.dark .shell-usermenu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4f8;
}

.shell-usermenu-dropdown.dark .shell-usermenu-item:focus-visible {
  background: rgba(95, 227, 188, 0.14);
  color: #5fe3bc;
}

.shell-usermenu-signout {
  color: var(--oxblood, #c94a4a);
}

.shell-usermenu-signout:hover {
  background: rgba(201, 74, 74, 0.08);
  color: var(--oxblood, #c94a4a);
}

.shell-usermenu-dropdown.dark .shell-usermenu-signout {
  color: #f87171;
}

.shell-usermenu-dropdown.dark .shell-usermenu-signout:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

/* ===========================================================================
 * CONTENT — Page + Optional Detail Panel
 * =========================================================================== */
.shell-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Page area (scrollable) — AC-2: tightened for ≤3s scan density */
.shell-page {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-6) var(--space-8) var(--space-12);
}

.shell-page.narrow {
  max-width: 940px;
}

/* Detail panel (optional sidebar within content) */
.shell-detail {
  flex: 0 0 280px;
  padding: var(--space-5);
  border-left: 1px solid var(--rule);
  overflow-y: auto;
}

/* Two-column content layout (page + detail) */
.shell-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  flex: 1 1 auto;
  min-height: 0;
}

.shell-content-grid > .shell-page {
  overflow-y: auto;
}

/* ===========================================================================
 * ACTBAR — Sticky Action Bar
 * Fixed at bottom for primary actions.
 * =========================================================================== */
.shell-actbar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  padding: var(--space-4) var(--space-10);
  border-radius: 0 0 var(--r) var(--r);
}

.shell-actbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.shell-act-note {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--ink-3);
  max-width: 34ch;
}

/* ===========================================================================
 * TABS — Filter Bar
 * Horizontal tabs for filtering content.
 * =========================================================================== */
.shell-tabsbar {
  padding: var(--space-4) var(--space-10) 0;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.shell-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shell-tabs::-webkit-scrollbar {
  display: none;
}

.shell-tabs > button {
  flex: 0 0 auto;
  padding: var(--space-2) var(--space-4);
  border-radius: 99px;
  border: 1px solid var(--rule-1);
  background: var(--doc);
  font-size: var(--text-sm);
  color: var(--ink-1);
  cursor: pointer;
  transition-property: all;
  transition-duration: var(--motion-hover-duration);
  transition-timing-function: var(--motion-hover-ease);
}

.shell-tabs > button:hover {
  border-color: var(--ink-3);
}

.shell-tabs > button:focus-visible {
  outline: none;
  border-color: var(--sig-live, var(--acc));
  box-shadow: 0 0 0 2px var(--sig-live-ring, var(--acc-ring));
}

.shell-tabs > button:active {
  transform: scale(0.97);
}

.shell-tabs > button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.shell-tabs > button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: var(--font-medium);
}

.shell-tabs > button.on:focus-visible {
  box-shadow: 0 0 0 2px var(--sig-live-ring, var(--acc-ring)), 0 0 0 3px var(--sig-live, var(--acc));
}

/* ===========================================================================
 * TYPOGRAPHY UTILITIES
 * Consistent type styles using design tokens.
 * =========================================================================== */
.shell-eyebrow {
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  font-weight: var(--font-medium);
}

.shell-dark .shell-eyebrow {
  color: #8e9bab;
}

.shell-h1 {
  font-family: var(--serif);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  max-width: 21ch;
}

.shell-h1.long {
  max-width: 27ch;
}

.shell-lead {
  font-size: var(--text-md);
  color: var(--ink-1);
  max-width: 58ch;
  line-height: var(--leading-normal);
  text-wrap: pretty;
}

/* ===========================================================================
 * STATE STYLING
 * Empty, loading, error, and denied states.
 * =========================================================================== */

/* Empty state */
.shell-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: var(--ink-2);
}

.shell-empty-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.shell-empty-title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.shell-empty-text {
  font-size: var(--text-base);
  max-width: 40ch;
}

/* Loading state */
.shell-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
}

.shell-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--rule-1);
  border-top-color: var(--sig-live, var(--acc));
  border-radius: 50%;
  animation: shell-spin var(--motion-skeleton-duration) linear infinite;
}

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

/* Static fallback for reduced motion (AC-B3) */
@media (prefers-reduced-motion: reduce) {
  .shell-loading-spinner {
    animation: none;
    border-top-color: var(--sig-live, var(--acc));
    opacity: 0.6;
  }
  
  .shell-loading::after {
    content: "Loading...";
    font-size: var(--text-sm);
    color: var(--ink-2);
    margin-top: var(--space-3);
  }
}

.shell-loading-text {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* Error state */
.shell-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.shell-error-icon {
  font-size: var(--text-4xl);
  color: var(--oxblood);
  margin-bottom: var(--space-4);
}

.shell-error-title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.shell-error-text {
  font-size: var(--text-base);
  color: var(--ink-1);
  max-width: 50ch;
  margin-bottom: var(--space-4);
}

/* Denied (permission) state */
.shell-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.shell-denied-icon {
  font-size: var(--text-4xl);
  color: var(--ochre);
  margin-bottom: var(--space-4);
}

.shell-denied-title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.shell-denied-text {
  font-size: var(--text-base);
  color: var(--ink-1);
  max-width: 50ch;
}

/* ===========================================================================
 * RESPONSIVE ADJUSTMENTS
 * =========================================================================== */
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  
  .shell-page {
    padding: var(--space-5) var(--space-4) var(--space-12);
  }
  
  .shell-tabsbar {
    padding: var(--space-4) var(--space-6) 0;
  }
  
  .shell-actbar {
    padding: var(--space-4) var(--space-6);
  }
  
  .shell-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .shell-detail {
    display: none;
  }
  
  .shell-h1 {
    font-size: var(--text-3xl);
  }
  
  .shell-act-note {
    flex: 1 1 100%;
    margin-left: 0;
  }
}
