/* ============================================================================
   ASCERTAIN - FORGE Visual Style Guide v2.0
   Official brand colors, typography, and effects
   ============================================================================ */

:root {
  /* Foundation Colors (90% of surface area) */
  --forge-void: #0A0A0B;
  --forge-obsidian: #141416;
  --forge-basalt: #1E1E22;
  --forge-slate: #2A2A30;

  /* Accent Colors (10% of surface area) */
  --forge-ember: #FF4D00;
  --forge-molten: #FF7A00;
  --forge-gold: #FFB800;
  --forge-amber: #FFC94D;
  --forge-gold-light: #FFCC33;
  --forge-gold-muted: #B38600;

  /* Semantic Colors */
  --forge-heat-critical: #FF2D00;
  --forge-cool-smoke: #4A4A52;
  --forge-ash: #8A8A92;

  /* Status Colors (keep for gate indicators) */
  --status-pass: #2ea043;
  --status-flag: #d29922;
  --status-block: #f85149;

  /* Glow Effects */
  --forge-glow-ember: 0 0 20px rgba(255, 77, 0, 0.4);
  --forge-glow-gold: 0 0 20px rgba(255, 184, 0, 0.4);
  --forge-glow-molten: 0 0 30px rgba(255, 122, 0, 0.5);

  /* Typography */
  --font-display: 'Inter Tight', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Animation Easings */
  --ease-forge-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-forge-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-forge-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-forge-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Component Dimensions */
  --sidebar-width: 260px;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--forge-void);
  color: #f0f0f0;
  height: 100vh;
  overflow: hidden;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============================================================================
   SIGNATURE ANIMATIONS
   ============================================================================ */

@keyframes fissure-pulse {
  0%, 100% {
    opacity: 0.6;
    filter: blur(2px);
  }
  50% {
    opacity: 1;
    filter: blur(4px);
  }
}

@keyframes ember-burst {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
  }
  50% {
    box-shadow: var(--forge-glow-gold);
  }
}

/* ============================================================================
   APP CONTAINER
   ============================================================================ */

.app-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr 300px;
  height: 100vh;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
  background-color: var(--forge-obsidian);
  border-right: 1px solid var(--forge-basalt);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  height: 100vh;
  position: relative;
  transition: transform 300ms var(--ease-forge-out);
}

/* Hamburger menu toggle - hidden on desktop */
.hamburger-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: -50px;
  width: 40px;
  height: 40px;
  background: var(--forge-obsidian);
  border: 1px solid var(--forge-basalt);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--forge-gold);
  border-radius: 2px;
  transition: all 200ms var(--ease-forge-out);
}

.hamburger-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar header - fixed at top */
.sidebar-header {
  padding: 20px;
  flex-shrink: 0;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--forge-gold);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
  animation: glow-pulse 3s ease-in-out infinite;
}

.logo p {
  margin: 5px 0 0;
  color: var(--forge-ash);
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sidebar content - scrollable middle section */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px;
  min-height: 0;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: var(--forge-void);
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--forge-basalt);
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--forge-slate);
}

/* Sidebar footer - fixed at bottom, CONSTANT height */
.sidebar-footer {
  flex-shrink: 0;
  flex-grow: 0;
  height: 280px; /* Fixed height - never changes regardless of admin toggle */
  border-top: 1px solid var(--forge-basalt);
  background-color: var(--forge-obsidian);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Admin links - text link style instead of buttons */
.admin-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--forge-ash);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 150ms var(--ease-forge-out);
}

.admin-link:hover {
  color: var(--forge-gold);
  background-color: rgba(255, 184, 0, 0.08);
}

.admin-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-link:hover svg {
  opacity: 1;
}

/* Collapsible admin section */
.admin-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.admin-section-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  color: var(--forge-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 150ms var(--ease-forge-out);
  user-select: none;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.admin-section-header:hover {
  background-color: rgba(255, 184, 0, 0.08);
}

.admin-section-header svg:first-child {
  opacity: 0.8;
}

.admin-chevron {
  margin-left: auto;
  transition: transform 200ms ease;
}

.admin-section.collapsed .admin-chevron {
  transform: rotate(-90deg);
}

.admin-section .admin-links {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 200ms ease, opacity 150ms ease;
  padding: 0 20px 15px 28px;
}

.admin-section.collapsed .admin-links {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

/* ============================================================================
   SESSIONS PANEL
   ============================================================================ */

.sessions-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 200px; /* Guaranteed minimum space for sessions */
  border-bottom: 1px solid var(--forge-basalt);
}

.sessions-header {
  flex-shrink: 0;
  padding: 16px 20px 12px;
  background: var(--forge-obsidian);
  border-bottom: 1px solid var(--forge-basalt);
}

.sessions-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--forge-gold);
  margin: 0 0 12px 0;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.sessions-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sessions-list-container {
  flex: 1;
  overflow-y: scroll; /* Always show scrollbar track */
  overflow-x: hidden;
  min-height: 0;
}

/* Custom scrollbar for sessions list */
.sessions-list-container::-webkit-scrollbar {
  width: 6px;
}

.sessions-list-container::-webkit-scrollbar-track {
  background: var(--forge-void);
}

.sessions-list-container::-webkit-scrollbar-thumb {
  background: var(--forge-basalt);
  border-radius: 3px;
}

.sessions-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--forge-slate);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.nav-section {
  margin-bottom: 30px;
}

.nav-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--forge-cool-smoke);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--forge-basalt);
  padding-bottom: 8px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--forge-ash);
  transition: all 150ms var(--ease-forge-out);
  border-left: 2px solid transparent;
}

li:hover {
  color: white;
  background-color: var(--forge-basalt);
  border-left: 2px solid var(--forge-gold);
  box-shadow: inset 0 0 20px rgba(255, 184, 0, 0.1);
}

li.active {
  background-color: var(--forge-basalt);
  color: var(--forge-gold);
  border-left: 2px solid var(--forge-gold);
  box-shadow: var(--forge-glow-gold);
}

/* ============================================================================
   STATUS PANEL
   ============================================================================ */

.status-panel {
  padding-top: 12px;
  border-top: 1px solid var(--forge-basalt);
}

.status-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: var(--forge-cool-smoke);
  font-family: var(--font-body);
}

.status-item:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.main-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  background-color: var(--forge-void);
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  max-height: calc(100vh - 200px);
}

/* ============================================================================
   MESSAGES
   ============================================================================ */

.message {
  margin-bottom: 20px;
  max-width: 80%;
}

.message.user {
  margin-left: auto;
  background-color: var(--forge-obsidian);
  padding: 15px;
  border-radius: 12px;
  color: white;
  border: 1px solid var(--forge-basalt);
  border-left: 3px solid var(--forge-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.message.ai {
  margin-right: auto;
  color: white;
  padding: 15px;
  transition: all 150ms var(--ease-forge-out);
}

.message.ai:hover {
  border-color: var(--forge-gold);
}

.message.ai.selected {
  border-color: var(--forge-gold);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 184, 0, 0.05);
}

.message.system {
  text-align: center;
  max-width: 100%;
  color: var(--forge-gold);
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
}

/* ============================================================================
   INPUT AREA
   ============================================================================ */

.input-area {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--forge-basalt);
  align-items: flex-end;
}

.input-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-action-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--forge-obsidian);
  border: 1px solid var(--forge-basalt);
  border-radius: 8px;
  color: var(--forge-ash);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms var(--ease-forge-out);
}

.input-action-btn:hover {
  background: var(--forge-basalt);
  color: var(--forge-gold);
  border-color: var(--forge-gold);
}

.input-action-btn svg {
  stroke: currentColor;
}

textarea {
  flex: 1;
  background-color: var(--forge-obsidian);
  border: 1px solid var(--forge-basalt);
  border-radius: 8px;
  padding: 15px;
  color: white;
  resize: none;
  height: 60px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 150ms var(--ease-forge-out);
}

textarea:focus {
  outline: none;
  border-color: var(--forge-gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15), var(--forge-glow-gold);
}

textarea::placeholder {
  color: var(--forge-cool-smoke);
}

/* ============================================================================
   BUTTONS - FORGE STYLE GUIDE v2.0
   ============================================================================ */

button, .tactile-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 150ms var(--ease-forge-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FF8C00 0%, #FF6200 100%);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

button:hover, .tactile-btn:hover {
  background: linear-gradient(180deg, #FFA033 0%, #FF7A1A 100%);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.4);
  transform: translateY(-1px);
}

button:active, .tactile-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.tactile-btn.small {
  padding: 8px 16px;
  font-size: 0.75rem;
  height: auto;
}

.tactile-btn.full-width {
  width: 100%;
  padding: 10px 0;
  margin-top: 8px;
}

/* ============================================================================
   INPUTS AND SELECTS
   ============================================================================ */

select, input[type="text"] {
  background-color: var(--forge-obsidian);
  border: 1px solid var(--forge-basalt);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all 150ms var(--ease-forge-out);
}

select:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--forge-gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

select {
  flex: 1;
  cursor: pointer;
}

/* ============================================================================
   TEMPER CONTROLS
   ============================================================================ */

.control-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.active-tempers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.temper-badge {
  background-color: rgba(255, 184, 0, 0.15);
  color: var(--forge-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--forge-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
  transition: all 150ms var(--ease-forge-out);
}

.temper-badge:hover {
  background-color: rgba(255, 184, 0, 0.25);
  box-shadow: var(--forge-glow-gold);
}

.remove-temper {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 150ms var(--ease-forge-out);
}

.remove-temper:hover {
  opacity: 1;
}

/* ============================================================================
   VAULT / INGOT
   ============================================================================ */

.vault-stats {
  font-size: 0.8rem;
  color: var(--forge-gold);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-body);
}

.control-stack {
  display: flex;
  flex-direction: column;
}

#vault-search {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================================
   ACCOUNTABILITY PANEL
   ============================================================================ */

.accountability-panel {
  background-color: var(--forge-obsidian);
  border-left: 1px solid var(--forge-basalt);
  padding: 20px;
  overflow-y: scroll;
  overflow-x: hidden;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  display: block;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
}

.collapsible-section {
  margin-top: 20px;
  border: 1px solid var(--forge-basalt);
  border-radius: 8px;
  overflow: visible;
  flex-shrink: 0;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--forge-basalt);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--forge-gold);
  transition: all 150ms var(--ease-forge-out);
  user-select: none;
}

.collapsible-header:hover {
  background-color: var(--forge-slate);
}

.collapsible-header .collapse-icon {
  transition: transform 200ms var(--ease-forge-out);
  font-size: 0.8rem;
}

.collapsible-header.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: none;
  overflow-y: visible;
  transition: max-height 300ms var(--ease-forge-out);
  background-color: var(--forge-obsidian);
}

.collapsible-content.collapsed {
  max-height: 0;
  overflow: hidden;
}

.gate-status {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--forge-basalt);
}

.gate-indicator {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gate-indicator.pass {
  background-color: rgba(46, 160, 67, 0.15);
  color: var(--status-pass);
  border: 1px solid var(--status-pass);
  box-shadow: 0 0 15px rgba(46, 160, 67, 0.3);
}

.gate-indicator.flag {
  background-color: rgba(210, 153, 34, 0.15);
  color: var(--status-flag);
  border: 1px solid var(--status-flag);
  box-shadow: 0 0 15px rgba(210, 153, 34, 0.3);
}

.gate-indicator.block {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--status-block);
  border: 1px solid var(--status-block);
  box-shadow: var(--forge-glow-ember);
}

.metric-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--forge-cool-smoke);
  border-bottom: 1px solid var(--forge-basalt);
  padding-bottom: 6px;
}

.metric-value {
  font-weight: 700;
  color: var(--forge-gold);
  font-family: var(--font-display);
}

/* ============================================================================
   VERDICT LIST
   ============================================================================ */

.verdict-list {
  margin-top: 15px;
  padding: 10px;
}

.verdict-item-detailed {
  background-color: var(--forge-void);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--forge-basalt);
  overflow: hidden;
  transition: all 150ms var(--ease-forge-out);
}

.verdict-item-detailed:hover {
  border-color: var(--forge-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  background-color: var(--forge-basalt);
  transition: all 150ms var(--ease-forge-out);
}

.verdict-header:hover {
  background-color: var(--forge-slate);
}

.verdict-name {
  font-weight: 700;
  color: var(--forge-gold);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.verdict-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.verdict-status.pass {
  background-color: rgba(46, 160, 67, 0.2);
  color: var(--status-pass);
  border: 1px solid var(--status-pass);
}

.verdict-status.flag {
  background-color: rgba(210, 153, 34, 0.2);
  color: var(--status-flag);
  border: 1px solid var(--status-flag);
}

.verdict-status.block {
  background-color: rgba(248, 81, 73, 0.2);
  color: var(--status-block);
  border: 1px solid var(--status-block);
}

.expand-icon {
  font-size: 0.7rem;
  color: var(--forge-cool-smoke);
  transition: transform 200ms var(--ease-forge-out);
}

.verdict-detail {
  padding: 15px;
  background-color: var(--forge-obsidian);
  border-top: 1px solid var(--forge-basalt);
  font-size: 0.85rem;
  color: var(--forge-ash);
}

.detail-row {
  margin-bottom: 10px;
  line-height: 1.6;
}

.detail-row strong {
  color: var(--forge-gold);
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flag-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  color: var(--status-flag);
}

.flag-list li {
  margin-bottom: 4px;
}

.verdict-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verdict-name {
  font-weight: 600;
  color: var(--forge-ash);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.verdict-status {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
}

.verdict-status.pass {
  background-color: rgba(46, 160, 67, 0.15);
  color: var(--status-pass);
}

.verdict-status.flag {
  background-color: rgba(210, 153, 34, 0.15);
  color: var(--status-flag);
}

.verdict-status.block {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--status-block);
}

.gate-reasoning {
  font-size: 0.75rem;
  color: var(--forge-ash);
  margin-top: 8px;
  padding: 8px;
  background-color: var(--forge-basalt);
  border-radius: 4px;
  font-style: italic;
}

/* ============================================================================
   QUANTITATIVE EVALUATION DISPLAY (De-Black-Boxing)
   ============================================================================ */

.detail-section {
  margin-bottom: 16px;
  padding: 12px;
  background-color: var(--forge-void);
  border: 1px solid var(--forge-basalt);
  border-radius: 6px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forge-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--forge-basalt);
}

.detail-row {
  font-size: 0.8rem;
  color: var(--forge-cool-smoke);
  margin-bottom: 8px;
  line-height: 1.5;
}

.detail-row strong {
  color: var(--forge-ash);
}

.detail-row code {
  font-family: var(--font-mono);
  background-color: var(--forge-basalt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--forge-gold);
}

/* Factors List */
.factors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factor-item {
  background-color: var(--forge-basalt);
  border-radius: 4px;
  padding: 10px;
  border-left: 3px solid var(--forge-gold);
}

.factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.factor-header strong {
  color: var(--forge-cool-smoke);
  font-size: 0.8rem;
}

.factor-contribution {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--status-pass);
  background-color: rgba(46, 160, 67, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Quality Score Signal Types */
.signal-positive {
  border-left-color: var(--status-pass) !important;
}

.signal-negative {
  border-left-color: var(--status-flag) !important;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 6px;
}

.signal-badge.signal-positive {
  background-color: rgba(46, 160, 67, 0.2);
  color: var(--status-pass);
  border: 1px solid var(--status-pass);
}

.signal-badge.signal-negative {
  background-color: rgba(210, 153, 34, 0.2);
  color: var(--status-flag);
  border: 1px solid var(--status-flag);
}

.factor-contribution.signal-positive {
  color: var(--status-pass);
  background-color: rgba(46, 160, 67, 0.15);
}

.factor-contribution.signal-negative {
  color: var(--status-flag);
  background-color: rgba(210, 153, 34, 0.15);
}

/* Score Interpretation */
.score-interpretation {
  font-size: 0.7rem;
  color: var(--forge-ash);
  margin-left: 8px;
  font-style: italic;
}

/* Score Breakdown */
.score-breakdown code {
  display: block;
  margin-top: 4px;
  padding: 6px 10px;
  background-color: var(--forge-basalt);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--forge-gold);
}

.factor-description {
  font-size: 0.75rem;
  color: var(--forge-ash);
  margin-bottom: 6px;
  font-style: italic;
}

.factor-stats {
  font-size: 0.7rem;
  color: var(--forge-ash);
  font-family: var(--font-mono);
}

/* Pattern Matches */
.pattern-matches {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--forge-void);
}

.match-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.match-text {
  font-family: var(--font-mono);
  background-color: var(--forge-void);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--status-flag);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-weight {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--forge-ash);
}

.match-context {
  width: 100%;
  font-size: 0.7rem;
  color: var(--forge-ash);
  font-style: italic;
  padding-left: 10px;
  border-left: 2px solid var(--forge-basalt);
}

/* Score Adjustments */
.adjustment-item {
  background-color: var(--forge-basalt);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--forge-cool-smoke);
}

.adjustment-item strong {
  color: var(--forge-gold);
}

.adjustment-reason {
  font-size: 0.7rem;
  color: var(--forge-ash);
  margin-top: 4px;
  font-style: italic;
}

/* Flag and Suggestion Lists */
.flag-list,
.suggestion-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.75rem;
  color: var(--forge-cool-smoke);
}

.flag-list li {
  color: var(--status-flag);
  margin-bottom: 4px;
}

.suggestion-list li {
  color: var(--forge-ash);
  margin-bottom: 4px;
}

/* ============================================================================
   TRAIL FEED
   ============================================================================ */

.trail-feed {
  margin-top: 40px;
  border-top: 1px solid var(--forge-basalt);
  padding-top: 15px;
}

.trail-feed h3 {
  color: var(--forge-cool-smoke);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trail-item {
  background-color: var(--forge-void);
  border: 1px solid var(--forge-basalt);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  transition: all 150ms var(--ease-forge-out);
}

.trail-item:hover {
  border-color: var(--forge-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trail-timestamp {
  color: var(--forge-gold);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.trail-decision {
  color: var(--forge-ash);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.trail-decision strong {
  color: var(--forge-gold);
}

.trail-input {
  color: var(--forge-cool-smoke);
  font-size: 0.8rem;
  line-height: 1.4;
  word-wrap: break-word;
  border-bottom: 1px solid var(--forge-basalt);
  font-family: var(--font-mono);
}

/* ============================================================================
   SETTINGS GEAR ICON
   ============================================================================ */

.settings-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 15px auto 0;
  border-radius: 50%;
  background-color: rgba(255, 184, 0, 0.15);
  color: var(--forge-gold);
  text-decoration: none;
  transition: all 300ms var(--ease-forge-out);
  cursor: pointer;
  border: 1px solid transparent;
}

.settings-gear:hover {
  background-color: var(--forge-gold);
  color: var(--forge-void);
  transform: rotate(90deg);
  box-shadow: var(--forge-glow-gold);
  border-color: var(--forge-amber);
}

.settings-gear svg {
  transition: inherit;
}

/* ============================================================================
   SESSION LIST
   ============================================================================ */

#session-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  padding-right: 14px; /* Account for scrollbar width */
}

.new-session-btn {
  background: linear-gradient(180deg, #FF8C00 0%, #FF6200 100%);
  color: #000000;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  border-left: none !important;
  transition: all 150ms var(--ease-forge-out);
}

.new-session-btn:hover {
  background: linear-gradient(180deg, #FFA033 0%, #FF7A1A 100%);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.4);
}

.session-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  border-left: 2px solid transparent;
  transition: all 150ms var(--ease-forge-out);
  position: relative;
}

.session-item:hover {
  background-color: var(--forge-basalt);
  border-left: 2px solid var(--forge-gold);
}

.session-item:hover .session-menu-btn {
  opacity: 1;
}

.session-item .session-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--forge-ash);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: all 0.2s;
  opacity: 0;
  line-height: 1;
}

.session-menu-btn:hover {
  background-color: var(--forge-gold-muted);
  color: var(--forge-gold);
}

.session-context-menu {
  position: fixed;
  background-color: #1a1a1a;
  border: 1px solid var(--forge-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 10000;
  min-width: 140px;
  padding: 4px 0;
  backdrop-filter: blur(8px);
}

.context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: background-color 0.15s;
}

.context-menu-item:hover:not([disabled]) {
  background-color: var(--forge-basalt);
}

.context-menu-item[disabled] {
  color: var(--forge-ash);
  cursor: not-allowed;
  opacity: 0.5;
}

.context-menu-item.danger {
  color: var(--status-block);
}

.context-menu-item.danger:hover {
  background-color: rgba(248, 81, 73, 0.15);
}

.context-menu-divider {
  height: 1px;
  background-color: var(--forge-border);
  margin: 4px 0;
}

.session-name {
  font-size: 0.9rem;
  color: var(--forge-ash);
  font-weight: 600;
  margin-bottom: 4px;
}

.session-item.active .session-name {
  color: var(--forge-gold);
}

.session-meta {
  font-size: 0.75rem;
  color: var(--forge-cool-smoke);
  font-family: var(--font-mono);
}

.session-item.pending-session {
  background-color: var(--forge-basalt);
  border-left: 2px solid var(--forge-amber);
  opacity: 0.9;
}

.session-item.pending-session .session-name {
  color: var(--forge-amber);
  font-style: italic;
}

/* ============================================================================
   SESSION SELECTION MODE
   ============================================================================ */

.session-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.session-actions-row .new-session-btn {
  flex: 1;
  margin-bottom: 0;
}

.session-action-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: var(--forge-basalt);
  color: var(--forge-ash);
  border: 1px solid var(--forge-slate);
  cursor: pointer;
  transition: all 150ms var(--ease-forge-out);
}

.session-action-btn:hover {
  background-color: var(--forge-slate);
  color: white;
  border-color: var(--forge-gold);
}

.session-action-btn.danger {
  color: var(--status-block);
  border-color: var(--status-block);
}

.session-action-btn.danger:hover:not([disabled]) {
  background-color: rgba(248, 81, 73, 0.15);
  box-shadow: 0 0 10px rgba(248, 81, 73, 0.3);
}

.session-action-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.session-action-btn[disabled]:hover {
  background-color: var(--forge-basalt);
  color: var(--forge-ash);
  border-color: var(--forge-slate);
}

.session-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--forge-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.session-item.selected {
  background-color: rgba(255, 184, 0, 0.1);
  border-left: 2px solid var(--forge-gold);
}

.session-item .session-info {
  flex: 1;
  min-width: 0;
}

.session-item {
  display: flex;
  align-items: center;
}

/* ============================================================================
   FORGEGATE BADGE
   ============================================================================ */

.forgegate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: all 150ms var(--ease-forge-out);
  border: 1px solid;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.forgegate-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.forgegate-badge.verdict-pass {
  background-color: rgba(46, 160, 67, 0.15);
  color: var(--status-pass);
  border-color: var(--status-pass);
}

.forgegate-badge.verdict-flag {
  background-color: rgba(210, 153, 34, 0.15);
  color: var(--status-flag);
  border-color: var(--status-flag);
}

.forgegate-badge.verdict-block {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--status-block);
  border-color: var(--status-block);
}

.badge-verdict {
  text-transform: uppercase;
  font-weight: 700;
}

.badge-issues {
  opacity: 0.8;
  font-size: 0.75rem;
}

.expand-icon {
  font-size: 0.7rem;
  transition: transform 150ms var(--ease-forge-out);
}

/* ============================================================================
   GATE DETAILS
   ============================================================================ */

.gate-details {
  margin-top: 10px;
  padding: 12px;
  background-color: var(--forge-obsidian);
  border-radius: 8px;
  border: 1px solid var(--forge-basalt);
  max-height: 400px;
  overflow-y: auto;
  transition: all 200ms var(--ease-forge-out);
}

.gate-details.hidden {
  display: none;
}

.gate-detail {
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--forge-void);
  border-radius: 6px;
  border-left: 3px solid var(--forge-cool-smoke);
  transition: all 150ms var(--ease-forge-out);
}

.gate-detail:hover {
  border-left-color: var(--forge-gold);
}

.gate-detail:last-child {
  margin-bottom: 0;
}

.gate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gate-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--forge-gold);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.gate-verdict {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
}

.gate-verdict.verdict-pass {
  background-color: rgba(46, 160, 67, 0.15);
  color: var(--status-pass);
}

.gate-verdict.verdict-flag {
  background-color: rgba(210, 153, 34, 0.15);
  color: var(--status-flag);
}

.gate-verdict.verdict-block {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--status-block);
}

.gate-meta {
  font-size: 0.75rem;
  color: var(--forge-cool-smoke);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.gate-issues {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.gate-issues li {
  padding: 6px 10px;
  margin-bottom: 4px;
  background-color: rgba(210, 153, 34, 0.1);
  border-left: 3px solid var(--status-flag);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--forge-ash);
  font-family: var(--font-body);
}

.gate-issues li:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   INJECTED INGOTS - Knowledge Context Display
   Shows users what knowledge was automatically injected into the AI context
   ============================================================================ */

.ingot-section {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 122, 0, 0.05) 100%);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
}

.ingot-section .gate-header {
  border-bottom: 1px solid rgba(255, 184, 0, 0.15);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.ingot-section .gate-name {
  color: var(--forge-gold);
}

.ingot-count {
  font-size: 0.7rem;
  padding: 2px 8px;
  background-color: rgba(255, 184, 0, 0.15);
  color: var(--forge-gold);
  border-radius: 10px;
  font-family: var(--font-mono);
}

.ingot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ingot-item {
  background-color: rgba(30, 30, 34, 0.6);
  border: 1px solid var(--forge-slate);
  border-radius: 6px;
  padding: 10px;
  transition: border-color 0.2s ease;
}

.ingot-item:hover {
  border-color: var(--forge-gold);
}

.ingot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ingot-type {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  background-color: var(--forge-molten);
  color: var(--forge-void);
  border-radius: 4px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.ingot-confidence {
  font-size: 0.7rem;
  color: var(--forge-ash);
  font-family: var(--font-mono);
}

.ingot-preview {
  font-size: 0.8rem;
  color: #d0d0d0;
  line-height: 1.4;
  font-family: var(--font-body);
}

.ingot-tags {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--forge-cool-smoke);
  font-style: italic;
}

/* ============================================================================
   CKD VERIFIED FACTS SECTION
   Shows users what facts from the Common Knowledge Database were verified
   Uses teal/cyan to distinguish from INGOTs (gold/orange)
   ============================================================================ */

.ckd-section {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 150, 136, 0.05) 100%);
  border: 1px solid rgba(0, 188, 212, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
}

.ckd-section .gate-header {
  border-bottom: 1px solid rgba(0, 188, 212, 0.15);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.ckd-section .gate-name {
  color: #4dd0e1;
}

.ckd-count {
  font-size: 0.7rem;
  padding: 2px 8px;
  background-color: rgba(0, 188, 212, 0.15);
  color: #4dd0e1;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.ckd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ckd-item {
  background-color: rgba(30, 30, 34, 0.6);
  border: 1px solid var(--forge-slate);
  border-radius: 6px;
  padding: 10px;
  transition: border-color 0.2s ease;
}

.ckd-item:hover {
  border-color: #4dd0e1;
}

.ckd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ckd-category {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  background-color: #00838f;
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ckd-confidence {
  font-size: 0.7rem;
  color: var(--forge-ash);
  font-family: var(--font-mono);
}

.ckd-content {
  font-size: 0.8rem;
  color: #d0d0d0;
  line-height: 1.4;
  font-family: var(--font-body);
}

.ckd-source {
  margin-top: 6px;
  font-size: 0.65rem;
  color: #4dd0e1;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ckd-source::before {
  content: '✓';
  font-style: normal;
}

/* ============================================================================
   CLICKABLE CITATIONS
   ============================================================================ */

.citation-ref {
  cursor: pointer;
  color: var(--forge-gold);
  font-weight: 600;
  transition: all 150ms var(--ease-forge-out);
  padding: 0 2px;
  border-radius: 2px;
}

.citation-ref:hover {
  background-color: rgba(255, 184, 0, 0.2);
  text-shadow: 0 0 8px rgba(255, 184, 0, 0.5);
}

.citation-ref sup {
  font-size: 0.75rem;
}

.citation-panel {
  margin-top: 12px;
  background-color: var(--forge-basalt);
  border: 1px solid var(--forge-gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 184, 0, 0.1);
}

.citation-panel.hidden {
  display: none;
}

.citation-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: var(--forge-slate);
  border-bottom: 1px solid var(--forge-basalt);
}

.citation-panel-title {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--forge-gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.citation-panel-close {
  cursor: pointer;
  color: var(--forge-cool-smoke);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 150ms var(--ease-forge-out);
}

.citation-panel-close:hover {
  color: var(--forge-gold);
}

.citation-panel-content {
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.citation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: var(--forge-obsidian);
  border: 1px solid transparent;
  transition: all 150ms var(--ease-forge-out);
}

.citation-item:last-child {
  margin-bottom: 0;
}

.citation-item:hover {
  border-color: var(--forge-gold);
  background-color: rgba(255, 184, 0, 0.05);
}

.citation-item.highlighted {
  border-color: var(--forge-gold);
  background-color: rgba(255, 184, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
}

.citation-number {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--forge-gold);
  font-size: 0.8rem;
  min-width: 24px;
}

.citation-source {
  color: var(--forge-ash);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* --- Provenance Citation Items --- */

.citation-item.citation-provenance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: var(--forge-obsidian);
  border: 1px solid transparent;
  transition: all 150ms var(--ease-forge-out);
}

.citation-item.citation-provenance:hover {
  border-color: rgba(255, 184, 0, 0.4);
}

.citation-item.citation-provenance.highlighted {
  border-color: var(--forge-gold);
  background-color: rgba(255, 184, 0, 0.06);
}

.citation-provenance-body {
  flex: 1;
  min-width: 0;
}

.citation-provenance-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e0e0e0;
  line-height: 1.3;
}

.citation-provenance-ref {
  font-size: 0.78rem;
  color: var(--forge-cool-smoke);
  margin-top: 3px;
  word-break: break-all;
}

.citation-provenance-ref a {
  color: var(--forge-gold);
  text-decoration: none;
  opacity: 0.85;
}

.citation-provenance-ref a:hover {
  opacity: 1;
  text-decoration: underline;
}

.citation-provenance-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}

.citation-provenance-type,
.citation-provenance-category,
.citation-provenance-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--forge-cool-smoke);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.citation-provenance-category {
  color: var(--forge-gold);
  opacity: 0.9;
}

.citation-provenance-type::after,
.citation-provenance-category::after {
  content: '\00b7';
  margin-left: 8px;
  opacity: 0.4;
}

.citation-provenance-id::after {
  content: none;
}

/* ============================================================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - TABLET
   ============================================================================ */

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: var(--sidebar-width) 1fr;
  }

  .accountability-panel {
    display: none;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger-toggle {
    display: flex;
  }

  .sidebar.open .hamburger-toggle {
    right: 15px;
  }

  .main-content {
    padding: 15px;
    padding-top: 60px;
  }

  .input-area {
    flex-direction: column;
    gap: 10px;
  }

  .input-actions {
    justify-content: flex-end;
    width: 100%;
  }

  textarea {
    height: 80px;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}
