/* src/assets/styles/acl.scss */
:root {
  color-scheme: dark;
  --bg-base: #0a0e17;
  --bg-surface: #111827;
  --bg-elevated: #1a2332;
  --bg-input: #0d1220;
  --bg-hover: rgba(86, 175, 150, 0.08);
  --bg-active: rgba(86, 175, 150, 0.14);
  --bg-glass: rgba(17, 24, 39, 0.72);
  --border: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(86, 175, 150, 0.5);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-inverse: #0a0e17;
  --accent: #6ECAB0;
  --accent-hover: #93DBC7;
  --accent-muted: rgba(86, 175, 150, 0.15);
  --accent-strong: #56AF96;
  --success: #34d399;
  --success-muted: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-muted: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-muted: rgba(248, 113, 113, 0.12);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(86, 175, 150, 0.1);
  --sidebar-width: 220px;
  --topbar-height: 64px;
  --content-max: 1400px;
  --font-sans:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  --font-mono:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}
::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}
a:hover {
  color: var(--accent-hover);
}
button {
  cursor: pointer;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
pre {
  margin: 0;
  font-family: var(--font-mono);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.15rem;
}
h3 {
  font-size: 1rem;
}
p {
  margin: 0;
}
input,
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}
select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
td {
  font-size: 0.875rem;
}
tbody tr {
  transition: background 0.12s var(--ease-out);
}
tbody tr:hover {
  background: var(--bg-hover);
}
tbody tr:last-child td {
  border-bottom: none;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.625rem;
  gap: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar {
  width: 0;
}
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-tertiary);
  transition: all 0.15s var(--ease-out);
  position: relative;
  text-decoration: none;
}
.nav-link lucide-icon,
.nav-link > lucide-icon {
  display: inline-flex !important;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transition: opacity 0.15s var(--ease-out);
}
.nav-link .nav-label {
  color: var(--text-secondary);
  transition: color 0.15s var(--ease-out);
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-link:hover lucide-icon {
  opacity: 0.85;
}
.nav-link:hover .nav-label {
  color: var(--text-primary);
}
.nav-link.active {
  background: var(--bg-active);
  color: var(--accent);
  font-weight: 600;
}
.nav-link.active lucide-icon {
  opacity: 1;
  color: var(--accent);
}
.nav-link.active .nav-label {
  color: var(--accent);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 0 2px 2px 0;
  background: var(--accent-strong);
}
.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: var(--topbar-height);
  padding: 0 1.5rem;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.content-shell {
  padding: 1.5rem;
  flex: 1;
}
.page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin-bottom: 0.25rem;
}
.page-subtitle,
.body-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 60ch;
  line-height: 1.6;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.header-actions,
.panel-actions,
.card-actions,
.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
td.table-actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}
td.table-actions > * {
  vertical-align: middle;
}
td.table-actions > * + * {
  margin-left: 1.75rem;
}
.panel,
.list-card,
.metric-card,
.dialogue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.panel:hover,
.list-card:hover,
.metric-card:hover,
.dialogue-card:hover {
  border-color: var(--border-strong);
}
.panel {
  padding: 1.25rem;
}
.panel-error {
  margin-bottom: 20px;
}
.muted-panel {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.button-primary,
.button-secondary,
.icon-button,
button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s var(--ease-out);
  cursor: pointer;
}
.button-primary lucide-icon,
.button-secondary lucide-icon,
.icon-button lucide-icon,
button[type=submit] lucide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  transform: translateY(-1px);
}
.button-primary lucide-icon svg,
.button-secondary lucide-icon svg,
.icon-button lucide-icon svg,
button[type=submit] lucide-icon svg {
  display: block;
}
.button-primary,
button[type=submit] {
  background: var(--accent-strong);
  color: white;
  box-shadow: 0 1px 3px rgba(86, 175, 150, 0.3);
}
.button-primary:hover,
button[type=submit]:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(86, 175, 150, 0.25);
  transform: translateY(-1px);
}
.button-primary:visited,
.button-primary:focus-visible {
  color: white;
}
.button-primary:disabled,
button[type=submit]:disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}
.button-secondary,
.icon-button {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.button-secondary:hover,
.icon-button:hover {
  background: var(--bg-hover);
  border-color: var(--accent-muted);
  color: var(--text-primary);
}
.button-secondary:visited,
.button-secondary:focus-visible,
.icon-button:visited,
.icon-button:focus-visible {
  color: inherit;
}
.button-ghost {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  padding-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.button-ghost lucide-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.button-ghost:hover {
  color: var(--accent);
  background: var(--bg-hover);
}
.button-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}
.button-link:hover {
  color: var(--accent-hover);
}
.danger-link {
  color: var(--danger);
}
.danger-link:hover {
  color: #fca5a5;
}
.button-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  transition: all 0.15s ease;
}
.button-danger-outline:hover {
  background: var(--danger-muted);
  border-color: var(--danger);
}
.button-danger-outline:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.context-pill,
.user-chip,
.brand-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  font-size: 0.8125rem;
}
.context-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  line-height: 1;
}
.brand-switcher {
  gap: 0.5rem;
}
.brand-switcher select {
  min-width: 140px;
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}
.subtle-pill {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}
.user-chip {
  font-weight: 500;
}
.metric-grid,
.card-grid,
.content-grid,
.diagnostic-grid {
  display: grid;
  gap: 0.75rem;
}
.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.metric-grid.compact {
  margin-bottom: 1rem;
}
.metric-card {
  padding: 1rem 1.125rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
a.metric-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      var(--accent-strong),
      transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.metric-card:hover::before {
  opacity: 1;
}
.metric-card strong {
  display: block;
  margin-top: 0.375rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background:
    linear-gradient(
      135deg,
      var(--text-primary),
      var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2 !important;
}
.metric-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trace-grid {
  align-items: start;
}
.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.list-card,
.dialogue-card {
  padding: 1rem 1.125rem;
}
.list-card-top,
.trace-headline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.tag,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.625rem;
  padding-top: 0.475rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--accent-muted);
  color: var(--accent);
}
.tag.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
}
.status-chip[data-status=completed],
.status-chip[data-status=ready] {
  background: var(--success-muted);
  color: var(--success);
}
.status-chip[data-status=failed],
.status-chip[data-status=cancelled] {
  background: var(--danger-muted);
  color: var(--danger);
}
.status-chip[data-status=draft],
.status-chip[data-status=running],
.status-chip[data-status=queued] {
  background: var(--warning-muted);
  color: var(--warning);
}
.step-counter {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-muted);
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  line-height: 1;
  margin-left: 0.375rem;
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.trace-running-state {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.875rem;
  animation: stepPulse 2s ease-in-out infinite;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -1.25rem;
  width: calc(100% + 2.5rem);
}
.table-wrap th:first-child,
.table-wrap td:first-child {
  padding-left: 1.25rem;
}
.table-wrap th:last-child,
.table-wrap td:last-child {
  padding-right: 1.25rem;
}
.table-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.inline-meta {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.inline-meta dt {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.inline-meta dd {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-primary);
}
.form-shell {
  display: grid;
  gap: 1.25rem;
}
.form-grid {
  display: grid;
  gap: 0.875rem;
}
.form-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.full-span {
  grid-column: 1/-1;
}
.stack-md,
.stack-lg {
  display: grid;
}
.stack-md {
  gap: 0.75rem;
}
.stack-lg {
  gap: 1.25rem;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}
.empty-state.small {
  padding: 1.25rem;
}
.empty-state h2,
.empty-state h3 {
  font-size: 1rem;
}
.empty-state p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 45ch;
}
.trace-timeline {
  display: grid;
  gap: 0;
  position: relative;
}
.trace-event {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.trace-event:last-child {
  padding-bottom: 0;
}
.trace-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.trace-step::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: -0.75rem;
  left: 50%;
  width: 1px;
  background: var(--border-strong);
  transform: translateX(-50%);
}
.trace-event:last-child .trace-step::after {
  display: none;
}
.trace-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.trace-body {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color 0.15s var(--ease-out);
}
.trace-body:hover {
  border-color: var(--border-strong);
}
.trace-body p {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.trace-body h3 {
  font-size: 0.875rem;
}
.trace-data {
  margin-top: 0.625rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}
.diagnostic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.diagnostic-column {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.15s var(--ease-out);
}
.diagnostic-column:hover {
  border-color: var(--border-strong);
}
.diagnostic-column h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.diagnostic-column p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.dialogue-thread {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dialogue-bubble {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  position: relative;
}
.dialogue-bubble.agent {
  align-self: flex-start;
  background: var(--surface-raised, #1a1a2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-bottom-left-radius: 0.25rem;
}
.dialogue-bubble.persona {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent, #6366f1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #6366f1) 20%, transparent);
  border-bottom-right-radius: 0.25rem;
}
.dialogue-speaker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.dialogue-bubble.agent .dialogue-speaker {
  color: var(--text-tertiary);
}
.dialogue-bubble.persona .dialogue-speaker {
  color: var(--accent, #6366f1);
}
.dialogue-bubble p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.dialogue-bubble small {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
}
.list-card h3 {
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}
.list-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.6;
}
.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-shell {
  animation: fadeIn 0.3s var(--ease-out);
}
@media (max-width: 1100px) {
  .content-grid,
  .diagnostic-grid,
  .form-grid.two-column {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
  }
  .nav-stack {
    flex-direction: row;
    gap: 0.25rem;
  }
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 0.75rem;
    align-items: stretch;
  }
  .page-header {
    flex-direction: column;
  }
  .content-shell {
    padding: 1rem;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
