:root {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-input: #0f172a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #8b5cf6;
  --border-reddit: #ff4500;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --reddit-orange: #ff4500;
  --reddit-orange-glow: rgba(255, 69, 0, 0.25);
  --gemini-purple: #8b5cf6;
  --gemini-blue: #38bdf8;
  --gemini-glow: rgba(139, 92, 246, 0.25);
  
  --nta-color: #10b981;
  --yta-color: #ef4444;
  --esh-color: #f59e0b;
  --nah-color: #0ea5e9;
  --info-color: #a855f7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 16px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reddit-badge {
  background: #ff4500;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-divider {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gemini-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084fc;
}

.gemini-sparkle {
  width: 14px;
  height: 14px;
  animation: pulse-spin 6s infinite linear;
}

@keyframes pulse-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.header-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f8fafc 0%, #cbd5e1 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Status Pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-glow {
  animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(139, 92, 246, 0.65); }
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-icon-only:hover {
  background: var(--bg-card-hover);
}

.btn-text-link {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.btn-text-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.btn-sparkle-icon {
  width: 16px;
  height: 16px;
}

/* Court Grid */
.court-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* Docket Panel */
.docket-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  gap: 12px;
  min-height: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.count-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.feed-source-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.feed-source-tag.live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feed-source-tag.cache {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Timeframe Filter Tabs */
.timeframe-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-card);
  color: #f8fafc;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  gap: 8px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--gemini-purple);
  box-shadow: 0 0 0 2px var(--gemini-glow);
}

.search-icon {
  font-size: 0.85rem;
  opacity: 0.6;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Sort, Filter & Pre-Grade Toolbar (2 Clean Rows) */
.docket-sort-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.docket-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.sort-controls-group,
.verdict-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.sort-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-right: 2px;
}

.sort-chip,
.verdict-filter-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sort-chip:hover,
.verdict-filter-chip:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.sort-chip.active {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
}

.verdict-filter-chip.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.verdict-filter-chip.yta.active {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.verdict-filter-chip.esh.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.verdict-filter-chip.nta.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.btn-pregrade-status {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-pregrade-status:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.25);
}

.btn-pregrade-status:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* Posts List */
.posts-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.posts-list::-webkit-scrollbar {
  width: 6px;
}

.posts-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Post Item Card */
.post-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.post-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.post-item.active {
  border-color: var(--gemini-purple);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(45, 30, 75, 0.4) 100%);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.post-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-item-author {
  color: #38bdf8;
  font-weight: 500;
}

.post-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-judged-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
}

.post-judged-pill.nta {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.post-judged-pill.yta {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.post-judged-pill.esh {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.post-judged-pill.nah {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.post-judged-pill.info {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.post-judged-pill.ungraded {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

.post-meter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 0;
}

.post-mini-meter-track {
  width: 64px;
  height: 5px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-mini-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.post-mini-meter-label {
  font-size: 0.71rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.post-item-excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Right Column: The Bench */
.bench-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-y: auto;
  min-height: 0;
}

.bench-panel::-webkit-scrollbar {
  width: 6px;
}

.bench-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  gap: 12px;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 460px;
  font-size: 0.9rem;
}

.starter-suggestions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.suggestions-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 600px;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--gemini-purple);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* Active Case View */
.case-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.case-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-author {
  color: #38bdf8;
  font-weight: 600;
}

.case-flair {
  background: rgba(255, 69, 0, 0.15);
  color: #ff6b3d;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.72rem;
}

.reddit-external-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.reddit-external-link:hover {
  color: #ff4500;
}

.active-case-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.post-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-content-body {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  white-space: pre-line;
  background: rgba(15, 23, 42, 0.4);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-reddit);
}

.post-content-body.collapsed {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Judge Controls Card */
.judge-controls-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(49, 31, 82, 0.5) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.persona-dropdown {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.persona-dropdown:focus {
  border-color: var(--gemini-purple);
}

/* Judgment Chamber */
.judgment-chamber {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Streaming Indicator */
.streaming-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.streaming-sparkles {
  font-size: 1.1rem;
  animation: sparkle-bounce 1.5s infinite ease-in-out;
}

@keyframes sparkle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.streaming-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
}

/* Verdict Card */
.verdict-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.verdict-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4500 0%, #8b5cf6 50%, #38bdf8 100%);
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.verdict-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verdict-label-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.verdict-badge {
  font-size: 1.5rem;
  font-weight: 900;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.verdict-badge.nta {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 2px solid #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.verdict-badge.yta {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.verdict-badge.esh {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.verdict-badge.nah {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  border: 2px solid #0ea5e9;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.verdict-badge.info {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Snopes-Style Analog Asshole-o-Meter */
.analog-meter-wrap {
  flex: 1;
  min-width: 320px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meter-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-icon {
  font-size: 1.1rem;
}

.meter-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.meter-style-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.btn-meter-customize {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-meter-customize:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Analog Gauge Housing */
.analog-gauge-housing {
  background: radial-gradient(circle at 50% 120%, #172033 0%, #0c1220 70%, #080d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.analog-gauge-housing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

/* Gauge SVG Container */
.analog-gauge-svg-wrap {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 360 / 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

.analog-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Gauge Elements inside SVG */
.gauge-sector-path {
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.gauge-sector-path:hover {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(255,255,255,0.4));
}

.gauge-sector-path.active-sector {
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}

.analog-needle-g {
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 0px 0px;
}

.gauge-arc-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  fill: #ffffff;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.gauge-tick-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  fill: #64748b;
  user-select: none;
}

/* Digital Readout Display */
.gauge-digital-readout {
  margin-top: -6px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  width: 100%;
}

.readout-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.readout-score-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.5px;
}

.readout-score-unit {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.meter-humiliation-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  max-width: 96%;
  word-break: break-word;
  line-height: 1.3;
}

/* 5 Customizable Zone Pills */
.gauge-zones-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 100%;
}

.zone-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.zone-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.zone-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
}

.zone-label-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: normal;
  line-height: 1.18;
  min-height: 2.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  word-break: break-word;
}

/* Zone Color Specifics */
.zone-pill.zone-0.active-zone {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.zone-pill.zone-0.active-zone .zone-label-text {
  color: #10b981;
  font-weight: 800;
}

.zone-pill.zone-1.active-zone {
  border-color: #84cc16;
  background: rgba(132, 204, 22, 0.15);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.25);
}
.zone-pill.zone-1.active-zone .zone-label-text {
  color: #84cc16;
  font-weight: 800;
}

.zone-pill.zone-2.active-zone {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.zone-pill.zone-2.active-zone .zone-label-text {
  color: #f59e0b;
  font-weight: 800;
}

.zone-pill.zone-3.active-zone {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}
.zone-pill.zone-3.active-zone .zone-label-text {
  color: #f97316;
  font-weight: 800;
}

.zone-pill.zone-4.active-zone {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}
.zone-pill.zone-4.active-zone .zone-label-text {
  color: #ef4444;
  font-weight: 800;
}

/* Meter Customizer Modal Styles */
.meter-customizer-card {
  max-width: 580px;
}

.meter-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.preset-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pill-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
}

.preset-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.zone-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.zone-tag-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  min-width: 75px;
  text-align: center;
}

.zone-tag-badge.zone-0 {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.zone-tag-badge.zone-1 {
  background: rgba(132, 204, 22, 0.2);
  color: #84cc16;
  border: 1px solid rgba(132, 204, 22, 0.4);
}

.zone-tag-badge.zone-2 {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.zone-tag-badge.zone-3 {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.zone-tag-badge.zone-4 {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.zone-text-input {
  flex: 1;
}

/* Structured Verdict Sections */
.verdict-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verdict-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.verdict-section-block.op-receipts-block {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
}

.op-receipts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-tag.receipts-tag {
  color: #fbbf24;
}

.op-receipts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.op-receipts-list.collapsed {
  display: none;
}

.receipt-quote-item {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #fef3c7;
  line-height: 1.5;
}

.receipt-quote-badge {
  font-weight: 700;
  color: #fbbf24;
  margin-right: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.verdict-section-block.jury-sentiment-block {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.07) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.section-title-tag.sentiment-tag {
  color: #38bdf8;
}

.verdict-section-block.savage-quotes-block {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.section-title-tag.savage-quotes-tag {
  color: #fb7185;
}

.verdict-section-block.peanut-gallery-block {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.section-title-tag.peanut-tag {
  color: #c084fc;
}

.verdict-section-block.highlight-roast {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(55, 30, 80, 0.3) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.verdict-section-block.advice-block {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.section-title-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.2px;
}

.section-title-tag.roast-tag {
  color: #c084fc;
}

.section-title-tag.advice-tag {
  color: #38bdf8;
}

.section-content-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.section-content-text p {
  margin-bottom: 12px;
}

.section-content-text p:last-child {
  margin-bottom: 0;
}

.section-content-text strong {
  color: #ffffff;
}

.section-content-text blockquote {
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid #fb7185;
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fce7f3;
  font-style: italic;
}

.section-content-text ul, .section-content-text ol {
  padding-left: 20px;
  margin: 10px 0;
}

.section-content-text li {
  margin-bottom: 6px;
}

.roast-body {
  font-size: 0.95rem;
}

.advice-body {
  font-style: italic;
  font-weight: 500;
  color: #e0f2fe;
}

/* Verdict Footer Actions */
.verdict-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  position: relative;
}

.toast-indicator {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 600;
  animation: fade-in-out 2s forwards;
}

@keyframes fade-in-out {
  0% { opacity: 0; transform: translateX(6px); }
  20% { opacity: 1; transform: translateX(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-large {
  max-width: 820px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

/* Form controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gemini-purple);
  box-shadow: 0 0 0 2px var(--gemini-glow);
}

.form-textarea {
  resize: vertical;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.form-divider span {
  padding: 0 12px;
}

/* Hall of Shame List */
.hall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hall-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.hall-item:hover {
  border-color: var(--gemini-purple);
}

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

.hall-item-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.hall-item-snippet {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Toast */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--gemini-purple);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2000;
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hidden {
  display: none !important;
}

/* Sentiment Chamber */
.sentiment-chamber {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.sentiment-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.sentiment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #f43f5e 100%);
}

.sentiment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

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

.section-title-tag.sentiment-tag {
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 700;
}

.sentiment-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.sentiment-body blockquote {
  background: rgba(15, 23, 42, 0.75);
  border-left: 3px solid #38bdf8;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #f1f5f9;
  font-style: italic;
}

.sentiment-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.sentiment-body li {
  margin-bottom: 6px;
}

/* Jury Voting Analytics & Sentiment Momentum Hub */
.verdict-section-block.jury-analytics-block {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.section-title-tag.analytics-tag {
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.momentum-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.momentum-badge.nta-lead {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.momentum-badge.yta-lead {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.momentum-badge.even-lead {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.momentum-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.analytics-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: stretch;
}

.pie-chart-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
}

.panel-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.subhead-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subhead-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subhead-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.voter-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
}

.donut-chart-wrapper {
  width: 190px;
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.donut-chart-container {
  width: 100%;
  height: 100%;
}

.donut-slice {
  transition: stroke-width 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.donut-slice:hover {
  stroke-width: 26 !important;
  filter: drop-shadow(0 0 6px currentColor);
}

.donut-center-pct {
  font-size: 24px;
  font-weight: 900;
  fill: #ffffff;
  font-family: 'Inter', sans-serif;
}

.donut-center-verdict {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

.donut-center-verdict.nta { fill: #10b981; }
.donut-center-verdict.yta { fill: #ef4444; }
.donut-center-verdict.esh { fill: #f59e0b; }
.donut-center-verdict.nah { fill: #0ea5e9; }
.donut-center-verdict.info { fill: #a855f7; }

.donut-center-sub {
  font-size: 9px;
  font-weight: 600;
  fill: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  cursor: default;
}

.legend-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.legend-row-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  font-weight: 700;
  color: #f1f5f9;
}

.legend-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.momentum-graph-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 0;
  position: relative;
}

.momentum-axis-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.legend-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.legend-chip.nta {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.legend-chip.zero {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.legend-chip.yta {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.momentum-chart-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: visible;
}

.momentum-chart-container {
  width: 100%;
  height: 100%;
}

.momentum-svg-graph {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.zero-baseline-line {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
}

.guide-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 2 4;
  stroke-width: 1;
}

.axis-label-text {
  font-size: 10px;
  fill: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.data-point-circle {
  transition: r 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.data-point-circle:hover {
  r: 7 !important;
  filter: drop-shadow(0 0 6px currentColor);
}

.op-pin-ring {
  animation: op-ping 2s infinite ease-in-out;
}

@keyframes op-ping {
  0%, 100% { r: 7px; opacity: 0.9; }
  50% { r: 12px; opacity: 0.35; }
}

.graph-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 100;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translate(-50%, -100%) translateY(-12px);
  transition: opacity 0.15s ease;
}

.graph-tooltip.hidden {
  display: none !important;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

.tooltip-author {
  font-weight: 700;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.tooltip-author.is-op {
  color: #fbbf24;
}

.tooltip-time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.tooltip-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
}

.tooltip-vote-badge {
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

.tooltip-vote-badge.nta {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tooltip-vote-badge.yta {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.tooltip-vote-badge.esh {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.tooltip-vote-badge.nah {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.tooltip-vote-badge.info {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.tooltip-vote-badge.op_receipt {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.tooltip-score {
  font-weight: 700;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
}

.tooltip-quote {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
}

.momentum-timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 1024px) {
  .court-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .app-container {
    height: auto;
  }
  .posts-list {
    max-height: 400px;
  }
}

.docket-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-scan-more {
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-scan-more:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}

.btn-scan-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-load-more-docket {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-load-more-docket:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
  color: #f0f9ff;
}

.btn-load-more-docket:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Balanced Verdict Header Left Column (Official Ruling + Summary + Crowd Telemetry) */
.verdict-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 500px);
  align-items: stretch;
  gap: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

@media (max-width: 1260px) {
  .verdict-header {
    grid-template-columns: 1fr;
  }
}

.verdict-ruling-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(17, 24, 39, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
}

.verdict-badge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.verdict-archetype-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.verdict-archetype-label {
  font-size: 1.02rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.verdict-summary-callout {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.65);
  border-left: 3px solid #8b5cf6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  flex: 1;
  justify-content: center;
}

.callout-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c084fc;
}

.verdict-oneliner-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
}

.verdict-crowd-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.crowd-stat-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crowd-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.crowd-stat-val {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Docked Featured Comment / OP Receipt Bar Below Momentum Graph */
.featured-comment-bar {
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 3px solid #38bdf8;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-comment-bar.is-op-spotlight {
  border-color: rgba(245, 158, 11, 0.4);
  border-left-color: #fbbf24;
}

.featured-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}

.featured-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-comment-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
}

.featured-comment-bar.is-op-spotlight .featured-comment-kicker {
  color: #fbbf24;
}

.featured-comment-author {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #e2e8f0;
}

.featured-comment-quote {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.4;
}

/* Compact CTA Banner for Pre-Grade Mode */
.pregrade-roast-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.28) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.pregrade-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pregrade-cta-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f3e8ff;
}

.pregrade-cta-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.pregrade-cta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.controls-right-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ================= 1. MULTI-SUBREDDIT DRAMA SELECTOR ================= */

.subreddit-selector-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.subreddit-select-badge {
  appearance: none;
  background: rgba(139, 92, 246, 0.16);
  color: #ddd6fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 22px 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  cursor: pointer;
  transition: all 0.18s ease;
  background-image: linear-gradient(45deg, transparent 50%, #c4b5fd 50%),
    linear-gradient(135deg, #c4b5fd 50%, transparent 50%);
  background-position: calc(100% - 11px) 52%, calc(100% - 7px) 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.subreddit-select-badge:hover,
.subreddit-select-badge:focus {
  outline: none;
  background-color: rgba(139, 92, 246, 0.28);
  border-color: #a78bfa;
  color: #ffffff;
}

.subreddit-select-badge option {
  background: #0f172a;
  color: #f8fafc;
}

/* ================= 2. BEAT THE COURT (BLIND PREDICTION MODE) ================= */

.btn-blind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.btn-blind-toggle:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.7);
}

.btn-blind-toggle.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.blind-streak-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.blind-guess-card {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.32) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blind-guess-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.blind-guess-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}

.blind-stats-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.blind-guess-prompt {
  font-size: 0.8rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.blind-controls-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blind-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blind-verdict-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blind-verdict-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.blind-verdict-btn:hover {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.3);
}

.blind-verdict-btn.active.yta,
.blind-verdict-btn.active[data-guess-verdict="YTA"] {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border-color: #ef4444;
}

.blind-verdict-btn.active.nta,
.blind-verdict-btn.active[data-guess-verdict="NTA"] {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border-color: #10b981;
}

.blind-verdict-btn.active.esh,
.blind-verdict-btn.active[data-guess-verdict="ESH"] {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-color: #f59e0b;
}

.blind-verdict-btn.active.nah,
.blind-verdict-btn.active[data-guess-verdict="NAH"] {
  background: rgba(14, 165, 233, 0.22);
  color: #7dd3fc;
  border-color: #0ea5e9;
}

.blind-slider-wrap {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blind-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: #cbd5e1;
}

.blind-slider-header strong {
  font-family: 'JetBrains Mono', monospace;
  color: #fbbf24;
}

.blind-score-slider {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}

.btn-reveal-verdict {
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.blind-result-banner {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blind-result-banner.win {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(6, 78, 59, 0.25);
}

.blind-result-banner.miss {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(120, 53, 15, 0.25);
}

.blind-result-headline {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f8fafc;
}

.blind-result-detail {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
}

.verdict-badge.blind-masked {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px dashed rgba(251, 191, 36, 0.6);
}

/* ================= 3. SPLIT VERDICT FILTER & BADGES ================= */

.verdict-filter-chip.split {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.35);
}

.verdict-filter-chip.split.active {
  background: rgba(236, 72, 153, 0.22);
  color: #fbcfe8;
  border-color: #ec4899;
}

.post-split-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.split-verdict-banner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(168, 85, 247, 0.22) 100%);
  color: #fbcfe8;
  border: 1px solid rgba(236, 72, 153, 0.5);
  letter-spacing: 0.02em;
}

/* ================= 4. DRAMA CATEGORY LEADERBOARD BAR & PILLS ================= */

.drama-category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.55);
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.category-chip:hover {
  border-color: rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.category-chip.active {
  background: rgba(139, 92, 246, 0.24);
  color: #ede9fe;
  border-color: #8b5cf6;
}

.category-chip-avg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fca5a5;
}

.post-item-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.post-tag-pill {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.active-case-tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* ================= 5. OP RECEIPT IMPACT METER BANNER ================= */

.receipt-impact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.receipt-impact-banner.grave {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.32) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(239, 68, 68, 0.55);
}

.receipt-impact-banner.vindicated {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.32) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.55);
}

.receipt-impact-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.receipt-impact-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
}

.receipt-impact-banner.grave .receipt-impact-tag {
  color: #fca5a5;
}

.receipt-impact-banner.vindicated .receipt-impact-tag {
  color: #6ee7b7;
}

.receipt-impact-headline {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.receipt-impact-detail {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
}

.btn-jump-receipts {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-jump-receipts:hover {
  background: rgba(251, 191, 36, 0.28);
  color: #ffffff;
}

/* ================= 6. FILE AN APPEAL (OP DEFENSE LAWYER MODE) ================= */

.btn-appeal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-appeal:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.26);
  border-color: #fbbf24;
  color: #ffffff;
}

.btn-appeal:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.appeal-block {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.appeal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.appeal-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appeal-counsel-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.appeal-streaming-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.78rem;
  color: #fde68a;
}

.appeal-body h3 {
  color: #fbbf24;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

/* ================= 7. DECLUTTERED COMPACT COURTROOM UI ================= */

.app-container {
  padding: 12px 18px;
  gap: 12px;
}

.app-header {
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.header-branding-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 1.15rem;
}

.header-actions {
  gap: 8px;
}

.docket-panel {
  padding: 12px;
  gap: 8px;
}

.docket-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.docket-top-row .timeframe-tabs {
  flex: 1;
}

.docket-controls-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-box-compact {
  padding: 6px 10px;
}

.search-box-compact input {
  font-size: 0.8rem;
}

.docket-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: nowrap;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
}

.docket-filter-line .verdict-filter-chip {
  font-size: 0.67rem;
  padding: 2px 6px;
}

.docket-selects-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.compact-select {
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 16px 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  max-width: 108px;
  text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 5px) 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.compact-select:hover,
.compact-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--text-primary);
}

/* Compact 2-Line Docket Cards */
.posts-list {
  gap: 6px;
}

.post-item {
  padding: 9px 11px;
  gap: 3px;
  border-radius: 8px;
}

.post-item-row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.post-item-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-top-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.post-judged-pill {
  font-size: 0.65rem;
  padding: 2px 7px;
  white-space: nowrap;
}

.post-delta-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.post-delta-pill.new {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.post-delta-pill.edited {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.post-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Unified Case Card Footer Action Bar */
.case-card {
  padding: 14px 18px;
  gap: 10px;
}

.case-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-link-subtle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-link-subtle:hover {
  color: #38bdf8;
}

.active-case-title {
  font-size: 1.12rem;
}

.case-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.case-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-dropdown {
  padding: 6px 10px;
  font-size: 0.78rem;
}

/* Streamlined Verdict Header & Analog Gauge */
.verdict-card {
  padding: 16px 18px;
  gap: 14px;
}

.verdict-header {
  padding-bottom: 12px;
  gap: 14px;
  align-items: center;
}

.analog-meter-wrap {
  min-width: 260px;
  max-width: 340px;
}

.analog-gauge-housing {
  padding: 8px 10px 6px;
}

.analog-gauge-svg-wrap {
  max-width: 310px;
}

.btn-meter-gear {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
}

.btn-meter-gear:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 41, 59, 0.95);
}

.gauge-digital-readout {
  margin-top: -10px;
  margin-bottom: 2px;
}

.pregrade-roast-cta {
  padding: 10px 14px;
}

/* ============================================================================
   8. EDITORIAL BROADSHEET / TABLOID COURTROOM REDESIGN (HUMAN PASS)
   Warm newsprint (#F6F2EA), archival dossier cream (#FBF9F4), carbon ink (#141413),
   flat 1px hairline ledger dividers (#D6CFC2), Newsreader serif headlines,
   rubber-stamp verdicts, and zero neon/purple/nested-card AI tropes.
   ============================================================================ */

:root {
  --bg-main: #F5F1E8;
  --bg-surface: #FBF9F4;
  --bg-card: #FBF9F4;
  --bg-card-hover: #EFEAD8;
  --bg-input: #F0EBE0;
  --bg-manila: #ECE5D5;

  --border-subtle: #D5CEC0;
  --border-ink: #141413;
  --border-focus: #141413;
  --border-reddit: #C8281D;

  --text-primary: #141413;
  --text-secondary: #3D3B37;
  --text-muted: #6E6A61;

  --reddit-orange: #C8281D;
  --reddit-orange-glow: transparent;
  --gemini-purple: #141413;
  --gemini-blue: #1D568A;
  --gemini-glow: transparent;

  --nta-color: #156841;
  --yta-color: #C8281D;
  --esh-color: #B85D0C;
  --nah-color: #1D568A;
  --info-color: #6B3FA0;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-full: 3px;

  --shadow-sm: none;
  --shadow-md: 3px 3px 0px #141413;
  --shadow-lg: 5px 5px 0px #141413;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(20, 20, 19, 0.035) 1px, transparent 0);
  background-size: 18px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars for Paper Theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #EDE7DA;
}
::-webkit-scrollbar-thumb {
  background: #BDB4A2;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: #8C8373;
}

/* Masthead Header */
.app-container {
  max-width: 1680px;
  padding: 10px 22px 14px;
  gap: 12px;
}

.app-header {
  background: var(--bg-surface);
  border: none;
  border-top: 3px solid var(--border-ink);
  border-bottom: 3px double var(--border-ink);
  border-radius: 0;
  padding: 10px 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-cluster {
  gap: 14px;
}

.header-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1;
}

.subreddit-select-badge {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  background-color: var(--bg-manila);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  padding: 4px 26px 4px 10px;
  box-shadow: 1.5px 1.5px 0 var(--border-ink);
  background-image: linear-gradient(45deg, transparent 50%, #141413 50%),
    linear-gradient(135deg, #141413 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.subreddit-select-badge:hover,
.subreddit-select-badge:focus {
  background-color: #E3DAC6;
  border-color: var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
}

.subreddit-select-badge option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Tactile Print Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.btn-primary,
.btn-primary.btn-glow {
  background: var(--border-ink);
  color: #FBF9F4;
  border: 1.5px solid var(--border-ink);
  box-shadow: 2px 2px 0 #C8281D;
}

.btn-primary:hover:not(:disabled),
.btn-primary.btn-glow:hover:not(:disabled) {
  background: #C8281D;
  border-color: var(--border-ink);
  color: #FFFFFF;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-ink);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  box-shadow: 1.5px 1.5px 0 var(--border-ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-manila);
  border-color: var(--border-ink);
  color: var(--text-primary);
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--border-ink);
}

.btn-blind-toggle {
  background: #FDF3E1;
  color: #8F4205;
  border: 1.5px solid #8F4205;
  box-shadow: 1.5px 1.5px 0 #8F4205;
}

.btn-blind-toggle.active {
  background: #8F4205;
  color: #FDF3E1;
  border-color: #141413;
  box-shadow: 2px 2px 0 #141413;
}

.btn-appeal {
  background: #FBF4E4;
  color: #7C3A08;
  border: 1px solid #7C3A08;
  box-shadow: 1.5px 1.5px 0 #7C3A08;
}

.btn-appeal:hover:not(:disabled) {
  background: #F5E6C4;
  color: #141413;
  border-color: #141413;
}

.btn-icon-only {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  box-shadow: 1.5px 1.5px 0 var(--border-ink);
}

.btn-icon-only:hover {
  background: var(--bg-manila);
  color: var(--text-primary);
}

/* Main 2-Column Newspaper Ledger Grid */
.court-grid {
  grid-template-columns: 420px 1fr;
  gap: 18px;
}

/* Left Column: Continuous Editorial Ledger */
.docket-panel {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 0;
  padding: 0;
  gap: 0;
  box-shadow: 3px 3px 0 rgba(20, 20, 19, 0.12);
}

.docket-top-row {
  padding: 8px 12px;
  background: var(--bg-manila);
  border-bottom: 1px solid var(--border-ink);
}

.timeframe-tabs {
  background: transparent;
  border: none;
  padding: 0;
  gap: 2px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: 2px;
  padding: 4px 9px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(20, 20, 19, 0.06);
}

.tab-btn.active {
  background: var(--border-ink);
  color: #FBF9F4;
  box-shadow: none;
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 2px 7px;
}

.docket-controls-compact {
  padding: 8px 12px;
  background: #F4EFE4;
  border-bottom: 1.5px solid var(--border-ink);
  gap: 7px;
}

.search-box {
  background: var(--bg-surface);
  border: 1px solid #B8B0A0;
  border-radius: 2px;
  padding: 5px 10px;
}

.search-box:focus-within {
  border-color: var(--border-ink);
  box-shadow: 1.5px 1.5px 0 var(--border-ink);
}

.search-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 1;
}

.search-box input {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 0.8rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.docket-filter-line {
  background: transparent;
  border: none;
  padding: 0;
}

.verdict-filter-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 2px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid #C2B9A7;
  padding: 2px 7px;
}

.verdict-filter-chip:hover {
  border-color: var(--border-ink);
  color: var(--text-primary);
}

.verdict-filter-chip.active {
  background: var(--border-ink);
  color: #FBF9F4;
  border-color: var(--border-ink);
}

.verdict-filter-chip.yta.active {
  background: var(--yta-color);
  color: #FFFFFF;
  border-color: var(--yta-color);
}

.verdict-filter-chip.nta.active {
  background: var(--nta-color);
  color: #FFFFFF;
  border-color: var(--nta-color);
}

.verdict-filter-chip.esh.active {
  background: var(--esh-color);
  color: #FFFFFF;
  border-color: var(--esh-color);
}

.verdict-filter-chip.split {
  color: #7A2E5C;
  border-color: #C9A3B9;
  background: #F9EFF5;
}

.verdict-filter-chip.split.active {
  background: #7A2E5C;
  color: #FFFFFF;
  border-color: #7A2E5C;
}

.compact-select {
  font-family: var(--font-mono);
  background-color: var(--bg-surface);
  border: 1px solid #B8B0A0;
  color: var(--text-primary);
  border-radius: 2px;
  font-size: 0.67rem;
  background-image: linear-gradient(45deg, transparent 50%, #141413 50%),
    linear-gradient(135deg, #141413 50%, transparent 50%);
}

.compact-select:hover,
.compact-select:focus {
  border-color: var(--border-ink);
  color: var(--text-primary);
}

/* Flat Hairline Ledger Rows for Docket List */
.posts-list {
  flex: 1;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  gap: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .court-grid {
    grid-template-columns: 380px 1fr;
    height: calc(100vh - 76px);
  }
  .app-container {
    height: 100vh;
  }
}

@media (max-width: 820px) {
  .court-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .app-container {
    height: auto;
  }
  .posts-list {
    max-height: 420px !important;
  }
}

.post-item {
  background: var(--bg-surface);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 9px 12px;
  gap: 3px;
  transition: background-color 0.1s ease;
}

.post-item::before {
  display: none !important;
}

.post-item:hover {
  background: #F3EDE0;
  border-color: var(--border-subtle);
  border-left-color: #8C8373;
  transform: none;
}

.post-item.active {
  background: var(--bg-manila);
  border-bottom-color: var(--border-subtle);
  border-left: 4px solid var(--border-ink);
  box-shadow: none;
}

.post-item-title {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.post-item-sub {
  font-family: var(--font-sans);
  font-size: 0.71rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Rubber-Stamp Verdict Pills in Docket */
.post-judged-pill {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-judged-pill.yta {
  background: #FCECEB;
  color: #B82318;
  border: 1px solid #D97770;
}

.post-judged-pill.nta {
  background: #E8F5EE;
  color: #156841;
  border: 1px solid #6BB38E;
}

.post-judged-pill.esh {
  background: #FDF1E2;
  color: #A65108;
  border: 1px solid #DDA064;
}

.post-judged-pill.nah {
  background: #E9F2FA;
  color: #1D568A;
  border: 1px solid #7BAAD4;
}

.post-split-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 2px;
  background: #F7EAF2;
  color: #7A2E5C;
  border: 1px solid #C489AC;
  padding: 1px 5px;
}

.post-delta-pill.new {
  background: #E8F5EE;
  color: #156841;
  border: 1px solid #6BB38E;
  border-radius: 2px;
}

.post-delta-pill.edited {
  background: #E9F2FA;
  color: #1D568A;
  border: 1px solid #7BAAD4;
  border-radius: 2px;
}

/* Right Column: Published Case Dossier Sheet (Single Outer Ink Frame) */
.bench-panel {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 0;
  padding: 0;
  gap: 0;
  box-shadow: 3px 3px 0 rgba(20, 20, 19, 0.12);
}

.case-view {
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 0;
}

/* Story Article Header & Body (Flat Dossier Section, not a floating box) */
.case-card {
  background: var(--bg-surface);
  border: none;
  border-bottom: 2px solid var(--border-ink);
  border-radius: 0;
  padding: 12px 18px 10px;
  box-shadow: none;
  gap: 7px;
}

.case-meta-bar {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.case-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.case-author,
.case-date,
.case-flair {
  white-space: nowrap;
  flex-shrink: 0;
}

.case-author {
  color: var(--text-primary);
  font-weight: 600;
}

.case-flair {
  background: var(--bg-manila);
  color: var(--text-secondary);
  border: 1px solid #C5BCA9;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 1px 6px;
}

.active-case-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.case-drama-tag {
  font-family: var(--font-mono) !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  background: #F4EFE4 !important;
  color: var(--text-secondary) !important;
  border: 1px solid #C5BCA9 !important;
  border-radius: 2px !important;
  padding: 1px 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.case-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-link-subtle,
.reddit-external-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.btn-link-subtle:hover,
.reddit-external-link:hover {
  color: var(--yta-color);
}

.active-case-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 0;
}

.post-content-body {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border-ink);
  border-radius: 0;
  padding: 2px 0 2px 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-height: none;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}

.post-content-body.collapsed {
  max-height: 136px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 68%, transparent 100%);
}

.post-content-body.collapsed::after {
  background: linear-gradient(to bottom, transparent, var(--bg-surface) 92%);
  height: 32px;
}

.btn-text-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--yta-color);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 0;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.btn-text-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.case-action-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.controls-right-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.persona-dropdown {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--bg-manila);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  padding: 4px 10px;
  min-width: 212px;
  max-width: 240px !important;
}

/* Refresh Button Timestamp Stamp */
.btn-refresh-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  text-transform: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.btn-refresh-stamp .btn-icon {
  display: inline-block;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-refresh-stamp.is-refreshing .btn-icon {
  animation: spin-refresh-glyph 0.8s linear infinite;
}

@keyframes spin-refresh-glyph {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.refresh-timestamp-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-refresh-stamp:hover .refresh-timestamp-label {
  color: var(--text-primary);
}

.tooltip-score,
.featured-comment-bar .tooltip-score {
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
}

.tooltip-vote-badge.op_receipt {
  background: #FBF1DF !important;
  color: #8F4205 !important;
  border: 1px solid #C89B57 !important;
  border-radius: 2px !important;
  font-family: var(--font-mono) !important;
}

/* Verdict & Ruling Dossier Body (Zero Rainbow Bars or Nested Dark Boxes) */
.verdict-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  padding: 14px 18px 18px;
  box-shadow: none;
  gap: 14px;
}

.verdict-card::before {
  display: none !important;
}

.verdict-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 235px !important;
  gap: 16px !important;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-ink);
  align-items: center;
}

.verdict-ruling-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 9px;
  min-width: 0;
}

.verdict-badge-row {
  gap: 10px;
  align-items: center;
}

/* Authentic Physical Court Ink Rubber-Stamp Verdict Badge */
.verdict-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 2px;
  transform: rotate(-2deg);
  text-transform: uppercase;
  box-shadow: none;
}

.verdict-badge.yta {
  background: #FCECEB;
  color: #C8281D;
  border: 2.5px solid #C8281D;
  box-shadow: inset 0 0 0 1px rgba(200, 40, 29, 0.25);
}

.verdict-badge.nta {
  background: #E8F5EE;
  color: #156841;
  border: 2.5px solid #156841;
  box-shadow: inset 0 0 0 1px rgba(21, 104, 65, 0.25);
}

.verdict-badge.esh {
  background: #FDF1E2;
  color: #B85D0C;
  border: 2.5px solid #B85D0C;
  box-shadow: inset 0 0 0 1px rgba(184, 93, 12, 0.25);
}

.verdict-badge.nah {
  background: #E9F2FA;
  color: #1D568A;
  border: 2.5px solid #1D568A;
}

.verdict-archetype-label {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--text-primary);
}

.split-verdict-banner {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: #F7EAF2;
  color: #7A2E5C;
  border: 1px solid #7A2E5C;
  border-radius: 2px;
  padding: 3px 8px;
}

/* Editorial Pull-Quote Summary */
.verdict-summary-callout {
  background: #F3EFE4;
  border: none;
  border-left: 3px solid var(--yta-color);
  border-radius: 0;
  padding: 10px 14px;
}

.verdict-oneliner-text {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

/* Flat Ledger Telemetry Strip */
.verdict-crowd-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-ink);
  background: var(--bg-surface);
}

.crowd-stat-pill {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-ink);
  border-radius: 0;
  padding: 7px 12px;
}

.crowd-stat-pill:last-child {
  border-right: none;
}

.crowd-stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.crowd-stat-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.crowd-stat-val.yta { color: var(--yta-color); }
.crowd-stat-val.nta { color: var(--nta-color); }
.crowd-stat-val.esh { color: var(--esh-color); }

/* Mechanical / Editorial Gauge Housing (No Dark Slate Box!) */
.analog-meter-wrap {
  background: transparent;
  border: none;
  padding: 0;
  min-width: 210px !important;
  max-width: 235px !important;
  width: 235px !important;
}

.analog-gauge-housing {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

.analog-gauge-svg-wrap {
  max-width: 235px !important;
  width: 100% !important;
}

.btn-meter-gear {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: auto;
  height: auto;
  padding: 2px 7px;
  background: var(--bg-manila);
  color: var(--text-secondary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  top: 0;
  right: 0;
}

.btn-meter-gear:hover {
  background: var(--border-ink);
  color: #FBF9F4;
  border-color: var(--border-ink);
}

.gauge-arc-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  fill: #FBF9F4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(20, 20, 19, 0.55);
  stroke-width: 1.5px;
}

.gauge-tick-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--text-primary);
}

.gauge-sector-path.active-sector {
  filter: none;
}

.readout-score-badge {
  background: var(--bg-manila);
  border: 1.5px solid var(--border-ink);
  border-radius: 2px;
  padding: 3px 12px;
  box-shadow: 2px 2px 0 var(--border-ink);
}

.readout-score-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yta-color);
  text-shadow: none;
}

.readout-score-unit {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

/* Newspaper Data Graphics: Jury Census & Sentiment Timeline */
.verdict-section-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 16px 0;
  box-shadow: none;
}

.jury-analytics-block {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-ink);
  padding: 4px 0 18px;
}

.section-title-tag,
.analytics-tag,
.roast-tag,
.savage-quotes-tag,
.advice-tag,
.appeal-tag,
.receipts-tag {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  letter-spacing: -0.01em;
  text-transform: none;
}

.momentum-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 3px 9px;
}

.momentum-badge.yta-lead {
  background: #FCECEB;
  color: #C8281D;
  border: 1px solid #C8281D;
}

.momentum-badge.nta-lead {
  background: #E8F5EE;
  color: #156841;
  border: 1px solid #156841;
}

.receipt-impact-banner {
  background: #FDF4E7;
  border: 1px solid #B85D0C;
  border-left: 4px solid #B85D0C;
  border-radius: 0;
  padding: 10px 14px;
}

.receipt-impact-tag {
  font-family: var(--font-mono);
  color: #8F4205;
}

.receipt-impact-headline {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-primary);
}

.receipt-impact-detail {
  color: var(--text-secondary);
}

.btn-jump-receipts {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  color: #8F4205;
  border: 1px solid #8F4205;
  border-radius: 2px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 10px;
}

.pie-chart-panel,
.momentum-graph-panel {
  background: #F5F1E6;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 12px 14px;
}

.subhead-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.voter-count-badge {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.donut-center-pct {
  font-family: var(--font-mono);
  fill: var(--text-primary);
  font-weight: 800;
}

.donut-center-verdict {
  font-family: var(--font-mono);
  font-weight: 800;
}
.donut-center-verdict.yta { fill: var(--yta-color); }
.donut-center-verdict.nta { fill: var(--nta-color); }
.donut-center-verdict.esh { fill: var(--esh-color); }

.donut-center-sub {
  font-family: var(--font-mono);
  fill: var(--text-muted);
}

.legend-row {
  border-bottom: 1px dotted var(--border-subtle);
  padding: 3px 0;
}

.legend-label {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

.legend-val {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.momentum-chart-wrapper {
  background: var(--bg-surface);
  border: 1px solid #D8D0C0;
  border-radius: 0;
}

.guide-line {
  stroke: #E2DACB;
  stroke-dasharray: 3 3;
}

.zero-baseline-line {
  stroke: #8C8373;
  stroke-width: 1.25;
}

.axis-label-text,
.time-label {
  font-family: var(--font-mono);
  fill: var(--text-muted);
  color: var(--text-muted);
}

.featured-comment-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-ink);
  border-radius: 0;
  margin-top: 8px;
  padding: 8px 12px;
}

.featured-comment-bar.is-op-spotlight {
  background: #FDF5E8;
  border-color: #D9A566;
  border-left: 3px solid #B85D0C;
}

.featured-comment-kicker {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.featured-comment-author {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.featured-comment-quote {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Pre-Grade Call-to-Action Strip */
.pregrade-roast-cta {
  background: var(--bg-manila);
  border: 1px solid var(--border-ink);
  border-radius: 0;
  padding: 10px 14px;
}

.pregrade-cta-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* Editorial Opinion & Gallery Columns */
.highlight-roast,
.savage-quotes-block,
.advice-block,
.appeal-block,
.op-receipts-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-ink);
  border-radius: 0;
  padding: 16px 0;
}

.section-content-text {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.section-content-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.section-content-text blockquote,
.savage-quotes-body blockquote {
  background: #F4EFE4;
  border-left: 3px solid var(--border-ink);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 0;
}

.advice-block {
  background: #F4EFE4;
  border: 1px solid var(--border-ink);
  border-left: 4px solid var(--border-ink);
  padding: 14px 18px;
}

/* Beat the Court: Blind Prediction Card */
.blind-guess-card {
  background: #FAF3E3;
  border: 1.5px solid var(--border-ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--border-ink);
  padding: 14px 18px;
}

.blind-kicker {
  font-family: var(--font-mono);
  color: var(--yta-color);
}

.blind-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.blind-stats-badge {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
}

.blind-verdict-btn {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
}

.blind-slider-val {
  font-family: var(--font-mono);
  color: var(--yta-color);
}

/* Modals & Floating Tooltips */
.modal-overlay {
  background: rgba(20, 20, 19, 0.55);
  backdrop-filter: blur(2px);
}

.modal-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-ink);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--border-ink);
}

.modal-header,
.modal-footer {
  background: var(--bg-manila);
  border-color: var(--border-ink);
}

.modal-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  background: #FFFFFF;
  border: 1px solid var(--border-ink);
  color: var(--text-primary);
  border-radius: 2px;
}

.graph-tooltip {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--border-ink);
  color: var(--text-primary);
}

.tooltip-author { color: var(--text-primary); font-family: var(--font-mono); }
.tooltip-quote { color: var(--text-secondary); font-family: var(--font-serif); }

/* Specificity Overrides for Clean Editorial Surfaces */
.btn,
.btn-sm {
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 0.69rem;
}

.docket-controls-compact .compact-select {
  max-width: 90px;
  font-size: 0.62rem;
  padding: 2px 14px 2px 5px;
  background-position: calc(100% - 8px) 52%, calc(100% - 4px) 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.docket-filter-line .verdict-filter-chip {
  font-size: 0.62rem;
  padding: 2px 5px;
}

.verdict-crowd-strip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.1fr) !important;
}

.crowd-stat-pill {
  min-width: 0;
  padding: 6px 9px !important;
}

.crowd-stat-val {
  font-size: 0.74rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meter-wrap,
.meter-wrap.analog-meter-wrap,
.analog-gauge-housing,
.analog-gauge-svg-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.verdict-section-block,
.verdict-section-block.jury-analytics-block,
.verdict-section-block.highlight-roast,
.verdict-section-block.savage-quotes-block,
.verdict-section-block.op-receipts-block,
.verdict-section-block.appeal-block {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 0 !important;
}

.verdict-section-block.advice-block {
  background: #F3EFE4 !important;
  border: 1px solid var(--border-ink) !important;
  border-left: 4px solid var(--border-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
}

/* Eliminate all remaining dark-mode / neon specificity leftovers */
.btn-glow {
  animation: none !important;
}

.persona-dropdown {
  min-width: 0 !important;
  max-width: 240px !important;
  padding: 4px 20px 4px 8px !important;
  font-size: 0.68rem !important;
}

.controls-right-btns .btn-sm {
  padding: 4px 8px !important;
  font-size: 0.66rem !important;
}

.section-title-tag,
.section-title-tag.analytics-tag,
.section-title-tag.roast-tag,
.section-title-tag.savage-quotes-tag,
.section-title-tag.advice-tag,
.section-title-tag.appeal-tag,
.section-title-tag.receipts-tag {
  color: var(--text-primary) !important;
  font-family: var(--font-serif) !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
}

.receipt-impact-banner,
.receipt-impact-banner.grave,
.receipt-impact-banner.vindicated,
.receipt-impact-banner.neutral {
  background: #FDF3E6 !important;
  border: 1px solid #B85D0C !important;
  border-left: 4px solid #C8281D !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.receipt-impact-tag,
.receipt-impact-banner.grave .receipt-impact-tag {
  color: #C8281D !important;
  background: #FCECEB !important;
  border: 1px solid #D97770 !important;
  font-family: var(--font-mono) !important;
  border-radius: 2px !important;
}

.receipt-impact-headline {
  color: var(--text-primary) !important;
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
}

.receipt-impact-detail {
  color: var(--text-secondary) !important;
}

.blind-step-label {
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
}

.blind-verdict-btn {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-ink) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
}

.blind-verdict-btn.yta.active {
  background: var(--yta-color) !important;
  color: #FFFFFF !important;
  border-color: var(--border-ink) !important;
  box-shadow: 2px 2px 0 var(--border-ink) !important;
}

.blind-verdict-btn.nta.active {
  background: var(--nta-color) !important;
  color: #FFFFFF !important;
  border-color: var(--border-ink) !important;
  box-shadow: 2px 2px 0 var(--border-ink) !important;
}

.blind-verdict-btn.esh.active {
  background: var(--esh-color) !important;
  color: #FFFFFF !important;
  border-color: var(--border-ink) !important;
  box-shadow: 2px 2px 0 var(--border-ink) !important;
}

.blind-verdict-btn.nah.active {
  background: var(--nah-color) !important;
  color: #FFFFFF !important;
  border-color: var(--border-ink) !important;
  box-shadow: 2px 2px 0 var(--border-ink) !important;
}

.global-toast {
  background: var(--border-ink) !important;
  color: #FBF9F4 !important;
  border: 1.5px solid var(--border-ink) !important;
  border-radius: 2px !important;
  box-shadow: 4px 4px 0 #C8281D !important;
  font-family: var(--font-mono) !important;
  font-size: 0.76rem !important;
}








/* ============================================================================
   9. TWO-FOCUS STAGE (DRAWER <-> CASE), TWO-DRAWER CABINET, SPINE & LEDGER
   body[data-view="drawer"]  : cabinet has the floor, desk hidden
   body[data-view="case"]    : cabinet collapses to a 56px spine, desk has the floor
   body[data-spoilers="off"] : pending folders sealed (no verdicts, no score sorting)
   ============================================================================ */

.court-grid {
  transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Browsing: full-width cabinet --- */
body[data-view="drawer"] .court-grid {
  grid-template-columns: minmax(0, 1fr) 0;
}
body[data-view="drawer"] .bench-panel,
body[data-view="drawer"] .cabinet-spine {
  display: none;
}
body[data-view="drawer"] .cabinet {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* --- Adjudicating: spine + desk --- */
body[data-view="case"] .court-grid {
  grid-template-columns: 56px minmax(0, 1fr);
}
body[data-view="case"] .cabinet {
  display: none;
}
body[data-view="case"] .cabinet-spine {
  display: flex;
}

/* --- Cabinet: two drawers --- */
.cabinet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.drawer {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-ink);
  box-shadow: 3px 3px 0 rgba(20, 20, 19, 0.12);
  min-height: 0;
  flex: 0 0 auto;
}
.drawer.open {
  flex: 1 1 auto;
}
.drawer:not(.open) .drawer-body {
  display: none;
}

.drawer-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: var(--bg-manila);
  border: none;
  border-bottom: 1.5px solid var(--border-ink);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
}
.drawer:not(.open) .drawer-plate {
  border-bottom: none;
  background: #E3DAC6;
}
.drawer-plate:hover {
  background: #E3DAC6;
}
.drawer-plate-name {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.drawer-plate-name::before {
  content: '▣ ';
  color: #8C8373;
}
.drawer-plate-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.drawer-body .docket-top-row,
.drawer-body .docket-controls-compact {
  flex: 0 0 auto;
}
.drawer-body .posts-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.closed-filter-line {
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-empty {
  color: var(--text-muted) !important;
  font-style: italic;
  cursor: default !important;
}
.drawer-empty:hover {
  background: var(--bg-surface) !important;
  border-left-color: transparent !important;
}

/* Scorecard stamps on closed folders */
.scorecard-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}
.scorecard-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 7px;
  border: 1px solid #C5BCA9;
  border-radius: 2px;
  background: #F4EFE4;
  font-family: var(--font-mono);
  line-height: 1.2;
}
.scorecard-stamp .stamp-k {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scorecard-stamp .stamp-v {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
}
.scorecard-stamp.yta { border-color: #D97770; background: #FCECEB; }
.scorecard-stamp.yta .stamp-v { color: #B82318; }
.scorecard-stamp.nta { border-color: #6BB38E; background: #E8F5EE; }
.scorecard-stamp.nta .stamp-v { color: #156841; }
.scorecard-stamp.esh { border-color: #DDA064; background: #FDF1E2; }
.scorecard-stamp.esh .stamp-v { color: #A65108; }
.scorecard-stamp.nah { border-color: #7BAAD4; background: #E9F2FA; }
.scorecard-stamp.nah .stamp-v { color: #1D568A; }
.scorecard-stamp.delta { border-style: dashed; }

/* --- Spine (case view) --- */
.cabinet-spine {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  padding: 8px 4px;
  background: var(--bg-manila);
  border: 1.5px solid var(--border-ink);
  box-shadow: 3px 3px 0 rgba(20, 20, 19, 0.12);
  min-height: 0;
}
.spine-btn {
  width: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px 0;
  box-shadow: 1.5px 1.5px 0 var(--border-ink);
}
.spine-btn:hover:not(:disabled) {
  background: #E3DAC6;
}
.spine-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.spine-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  margin-bottom: 4px;
}
.spine-back-label {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spine-ticks {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
.spine-tick {
  width: 26px;
  height: 4px;
  background: #C9B896;
  border-radius: 1px;
  cursor: pointer;
  flex: 0 0 auto;
}
.spine-tick:hover { background: #8C8373; }
.spine-tick.closed { background: #6BB38E; }
.spine-tick.current {
  width: 40px;
  height: 7px;
  background: var(--border-ink);
}
.spine-position {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding-top: 4px;
}

/* --- Masthead: Spoilers toggle + streak badge --- */
.judge-streak-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-ink);
  border-radius: 2px;
  background: var(--bg-manila);
  font-family: var(--font-mono);
}
.judge-streak-badge .streak-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.judge-streak-badge .streak-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-spoilers-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-spoilers-toggle .spoiler-eye {
  font-size: 0.8rem;
  opacity: 0.45;
}
.btn-spoilers-toggle.active {
  background: #FDF3E1;
  color: #8F4205;
  border-color: #8F4205;
  box-shadow: 1.5px 1.5px 0 #8F4205;
}
.btn-spoilers-toggle.active .spoiler-eye {
  opacity: 1;
  color: #C8281D;
}

.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-sound-toggle .sound-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}
.btn-sound-toggle.active {
  background: #F4EFE4;
  color: #141413;
  border-color: #141413;
}
.btn-sound-toggle.active .sound-icon {
  opacity: 1;
  color: #166534;
}
.btn-sound-toggle[data-sound="off"] {
  opacity: 0.72;
  color: var(--text-secondary);
}
.btn-sound-toggle[data-sound="off"] .sound-waves {
  opacity: 0.16;
}

/* --- Sealed state: no score-leaking controls while unspoiled --- */
body[data-spoilers="off"] .verdict-filter-group,
body[data-spoilers="off"] #sort-select {
  display: none !important;
}
.case-view.sealed #btn-pass-judgment,
.case-view.sealed #btn-file-appeal,
.case-view.sealed #pregrade-roast-cta,
.case-view.sealed #split-verdict-banner {
  display: none !important;
}

/* --- Close-out bar --- */
.case-closeout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 2px;
  border-top: 2px solid var(--border-ink);
  margin-top: 6px;
}

/* --- Court Record tabs --- */
.hall-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.hall-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border: 1px solid #C2B9A7;
  border-radius: 2px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.hall-tab.active {
  background: var(--border-ink);
  color: #FBF9F4;
  border-color: var(--border-ink);
}

@media (max-width: 820px) {
  body[data-view="case"] .court-grid {
    grid-template-columns: 1fr;
  }
  body[data-view="case"] .cabinet-spine {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 6px 8px;
  }
  .cabinet-spine .spine-ticks { flex-direction: row; }
  .spine-tick { width: 4px; height: 22px; }
  .spine-tick.current { width: 7px; height: 30px; }
}

/* Paper-theme result banner (overrides dark-theme colors from section 2) */
.blind-result-banner {
  background: #F4EFE4 !important;
  border: 1.5px solid var(--border-ink) !important;
  border-radius: 2px !important;
  padding: 10px 14px !important;
}
.blind-result-banner.win {
  background: #E8F5EE !important;
  border-color: #156841 !important;
  box-shadow: 2px 2px 0 #156841 !important;
}
.blind-result-banner.miss {
  background: #FCECEB !important;
  border-color: #C8281D !important;
  box-shadow: 2px 2px 0 #C8281D !important;
}
.blind-result-headline {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}
.blind-result-detail {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--text-secondary) !important;
  margin-top: 4px;
}
.blind-stats-badge {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-ink) !important;
  font-family: var(--font-mono) !important;
  border-radius: 2px !important;
}
/* Drawer plate already carries the count */
body[data-view="drawer"] #post-count-badge { display: none !important; }


/* ============================================================================
   10. MANILA FOLDERS IN A FILING CABINET DRAWER + OPEN FOLDER ON THE DESK
   ============================================================================ */

:root {
  --font-hand: 'Kalam', 'Caveat', 'Segoe Print', cursive;
  --manila: #EFE4CE;
  --manila-lit: #F7EFE0;
  --manila-edge: #C9B896;
  --manila-shadow: rgba(90, 70, 40, 0.18);
  --well: #D8D0C0;
  --well-dark: #C6BDAB;
  --label-paper: #FCFBF7;
}

/* --- Drawer housing: recessed well with side rails --- */
.drawer {
  background: var(--well);
  border-color: #3A3732;
}
.drawer-plate {
  background: linear-gradient(#F1EBDD, #E3DAC6);
  border-bottom-color: #3A3732;
}
.drawer:not(.open) .drawer-plate {
  background: linear-gradient(#E9E1CF, #D8CFBB);
}
.drawer-plate-name::before { content: ''; }
.drawer-plate-name {
  position: relative;
  padding-left: 18px;
}
.drawer-plate-name::after {
  /* label-holder bracket */
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  border: 1.5px solid #3A3732;
  border-radius: 1px;
  background: var(--label-paper);
}
.drawer-body {
  background:
    linear-gradient(to right, var(--well-dark) 0, transparent 10px),
    linear-gradient(to left,  var(--well-dark) 0, transparent 10px),
    var(--well);
}
.drawer-body .docket-top-row,
.drawer-body .docket-controls-compact {
  background: var(--bg-surface);
  border-bottom: 1px solid #B8AE9A;
}
.drawer-body .posts-list {
  padding: 14px 14px 22px;
  gap: 0;
  background: transparent;
}

/* --- Manila folders --- */
.post-item.folder {
  position: relative;
  background: transparent;
  border: none;
  border-left: none;
  padding: 0;
  margin-top: 14px;
  gap: 0;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.post-item.folder:first-child { margin-top: 2px; }
.post-item.folder:hover { background: transparent; border-left-color: transparent; transform: translateY(-2px); }
.post-item.folder.active { background: transparent; border-left: none; box-shadow: none; transform: translateY(-4px); }

/* 1/3-cut tab, staggered left / center / right */
.folder-tab {
  position: relative;
  display: inline-block;
  max-width: 70%;
  background: var(--manila);
  border: 1px solid var(--manila-edge);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 5px 12px 3px;
  margin-bottom: -1px;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.6) inset;
  z-index: 2;
}
.post-item.folder.tab-0 .folder-tab { margin-left: 0.5%; }
.post-item.folder.tab-1 .folder-tab { margin-left: 19.25%; }
.post-item.folder.tab-2 .folder-tab { margin-left: 38%; }
.post-item.folder.tab-3 .folder-tab { margin-left: 56.75%; }
.post-item.folder.tab-4 .folder-tab { margin-left: 75.5%; }

/* Handwritten adhesive label on the tab */
.folder-label {
  display: block;
  font-family: var(--font-hand) !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: #1F2A44 !important;         /* blue-black marker ink */
  background: var(--label-paper);
  border-top: 2px solid #C8281D;
  border-bottom: 1px solid #DAD3C4;
  padding: 2px 8px 1px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  transform: rotate(-0.3deg);
}
.post-item.folder.tab-1 .folder-label { transform: rotate(0.25deg); }
.post-item.folder.tab-2 .folder-label { transform: rotate(-0.2deg); }
.post-item.folder.tab-3 .folder-label { transform: rotate(0.2deg); }
.post-item.folder.tab-4 .folder-label { transform: rotate(-0.25deg); }

/* Folder face */
.folder-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--manila);
  border: 1px solid var(--manila-edge);
  border-radius: 0 4px 4px 4px;
  padding: 9px 12px;
  box-shadow: 0 2px 0 var(--manila-edge), 0 4px 8px var(--manila-shadow);
  z-index: 1;
}
.post-item.folder.tab-0 .folder-body { border-radius: 0 4px 4px 4px; }
.post-item.folder.tab-1 .folder-body,
.post-item.folder.tab-2 .folder-body,
.post-item.folder.tab-3 .folder-body,
.post-item.folder.tab-4 .folder-body { border-radius: 4px; }
.post-item.folder:hover .folder-body { background: var(--manila-lit); }
.post-item.folder.active .folder-tab,
.post-item.folder.active .folder-body {
  background: var(--manila-lit);
  border-color: var(--border-ink);
}
.post-item.folder.active .folder-body {
  box-shadow: 0 2px 0 var(--border-ink), 0 6px 12px var(--manila-shadow);
}
.folder-body .post-item-sub {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: #5B5547;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: 0;
}
.folder-body .post-top-badges { flex: 0 0 auto; }

/* Closed folders carry scorecard + outcome stamp */
.closed-folder .folder-body { flex-wrap: wrap; }
.closed-folder .scorecard-row { margin: 0; flex: 1 1 auto; }
.closed-folder .outcome-stamp {
  font-size: 0.6rem !important;
  letter-spacing: 0.12em !important;
  transform: rotate(-6deg);
  border-width: 2px !important;
  box-shadow: none !important;
}
.closed-folder .folder-foot {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  color: #6E6A61;
  padding: 3px 4px 0;
}

/* --- The desk: open folder --- */
body[data-view="case"] .bench-panel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.35), transparent 60%),
    var(--manila);
  border-color: var(--manila-edge);
  box-shadow: 0 3px 0 var(--manila-edge), 0 10px 24px var(--manila-shadow);
  position: relative;
  padding: 0 0 14px;
}
.case-view {
  position: relative;
  padding: 0 14px 0;
}
.desk-folder-tab {
  display: inline-block;
  max-width: 70%;
  margin: 10px 0 0 6px;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  font-weight: 700;
  color: #1F2A44;
  background: var(--label-paper);
  border: 1px solid var(--manila-edge);
  border-bottom: none;
  border-top: 2px solid #C8281D;
  border-radius: 6px 6px 0 0;
  padding: 4px 14px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: rotate(-0.4deg);
  position: relative;
  z-index: 2;
}
.desk-fasteners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 18px;
  margin: -1px 0 0;
  background: var(--manila-lit);
  border: 1px solid var(--manila-edge);
  border-bottom: none;
  border-radius: 0 4px 0 0;
  position: relative;
  z-index: 1;
}
.desk-fasteners .prong {
  width: 46px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(#D9B35B, #9C7A2A);
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.desk-fasteners .prong-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8C8373;
}
/* Deposition sheet pinned inside the folder */
body[data-view="case"] .case-card,
body[data-view="case"] .judgment-chamber {
  background: var(--bg-surface);
  border: 1px solid #D5CEC0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 6px rgba(90,70,40,0.12);
}
body[data-view="case"] .case-card {
  border-radius: 0 0 2px 2px;
  border-top: none;
  margin-bottom: 10px;
}
body[data-view="case"] .judgment-chamber { padding: 0; }
body[data-view="case"] .verdict-card { background: transparent; }

/* --- Handoff: folder lifts and slides into the cabinet --- */
@keyframes file-folder {
  0%   { transform: translate(0, 0) rotate(0deg);   opacity: 1; }
  35%  { transform: translate(0, -16px) rotate(-1deg); opacity: 1; }
  100% { transform: translate(-140px, -10px) rotate(-3deg) scale(0.96); opacity: 0; }
}
.bench-panel.filing {
  animation: file-folder 0.42s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  pointer-events: none;
}
@keyframes plate-tick {
  0% { background: #FDF3E1; }
  100% { background: linear-gradient(#E9E1CF, #D8CFBB); }
}
.drawer-plate.tick { animation: plate-tick 0.7s ease-out; }

/* Spine takes the cabinet palette with Pendaflex olive-green hanging folder ticks */
.cabinet-spine { background: #262B22; border-color: #3A3732; }
.spine-tick { background: #5B6E43; }
.spine-tick.closed { background: #88A866; }

@media (max-width: 820px) {
  .folder-tab { max-width: 80%; }
  .post-item.folder.tab-1 .folder-tab,
  .post-item.folder.tab-2 .folder-tab,
  .post-item.folder.tab-3 .folder-tab,
  .post-item.folder.tab-4 .folder-tab { margin-left: 0; }
}


/* ============================================================================
   11. SHINGLED FILING CABINET DRAWER + HOVER FINGER-RIFFLING PHYSICS
   ============================================================================ */

/* Fix Masthead spacing & keep AITA COURT on 1 line */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
.header-title {
  white-space: nowrap !important;
  font-size: 1.38rem !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
.header-actions .btn-sm {
  padding: 4px 8px !important;
  font-size: 0.67rem !important;
  white-space: nowrap;
}

/* Brushed-Brass Drawer Pulls & Stamped Index Frame (no checkbox square) */
.drawer-plate {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 7px 16px !important;
  background: linear-gradient(180deg, #DFD7C5 0%, #CFC5B0 100%) !important;
  border-bottom: 2px solid #2C2925 !important;
}
.drawer-plate-name {
  padding-left: 0 !important;
}
.drawer-plate-name::after,
.drawer-plate-name::before {
  display: none !important;
  content: none !important;
}
.drawer-plate-frame {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: #FBF9F2;
  border: 1.5px solid #4A443A;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.15);
}
.drawer-pull-grip {
  justify-self: center;
  width: 84px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid #4A3918;
  background: linear-gradient(180deg, #EBD086 0%, #BE943B 55%, #8D691D 100%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
}
.drawer-plate:hover .drawer-pull-grip {
  background: linear-gradient(180deg, #F4DC99 0%, #CCA146 55%, #9B7523 100%);
}
.drawer-plate-count {
  justify-self: end;
  font-weight: 600;
  color: #3D3932 !important;
}

/* Unified 1-Row Metal Divider Rail inside Pending Drawer */
.docket-rail-unified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: #ECE6D8;
  border-bottom: 1.5px solid #3A3732;
  flex-wrap: wrap;
}
.docket-rail-unified .timeframe-tabs {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 2px;
  background: #D6CEBE;
  padding: 2px;
  border: 1px solid #8C8373;
  border-radius: 2px;
}
.docket-rail-unified .tab-btn {
  padding: 4px 12px !important;
  font-size: 0.68rem !important;
}
.docket-rail-unified .rail-search {
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0 !important;
  padding: 4px 10px !important;
  background: #FBF9F4 !important;
  border: 1px solid #8C8373 !important;
}
.docket-spoilers-subbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #F5EFE2;
  border-bottom: 1px solid #BFB6A4;
}
.spoilers-subbar-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
body[data-spoilers="off"] .docket-spoilers-subbar {
  display: none !important;
}

/* Deep Recessed Steel Cabinet Well + Polished Side Hanging Rails (Pendaflex Drawer) */
.drawer-body .posts-list.folder-stack {
  display: block !important;
  position: relative;
  padding: 16px 24px 124px !important;
  background:
    linear-gradient(90deg,
      #52564D 0px, #D8DCD2 4px, #8E9488 8px, #2A2E25 12px, rgba(0, 0, 0, 0.48) 18px,
      transparent 30px,
      transparent calc(100% - 30px),
      rgba(0, 0, 0, 0.48) calc(100% - 18px), #2A2E25 calc(100% - 12px), #8E9488 calc(100% - 8px), #D8DCD2 calc(100% - 4px), #52564D 100%),
    repeating-linear-gradient(180deg, #1E2419 0px, #1E2419 33px, #151A12 34px) !important;
  box-shadow: inset 0 10px 22px rgba(0, 0, 0, 0.55) !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Shingled Folder Slot: 34px pitch at rest -> ~14 staggered readable tabs visible at once! */
.folder-stack .post-item.folder {
  display: block !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}

.folder-stack .folder-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 118px;
  pointer-events: auto;
}

/* 1/5-Cut (5-Column) Molded Plastic Pendaflex Index Tabs across the Hanging Rods */
.folder-stack .folder-tab {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 24%;
  max-width: 24% !important;
  min-width: 165px;
  min-height: 29px;
  background: linear-gradient(180deg, rgba(242, 246, 236, 0.96) 0%, rgba(214, 222, 204, 0.94) 100%) !important;
  border: 1.5px solid #6D7F58 !important;
  border-bottom: none !important;
  border-radius: 5px 5px 0 0 !important;
  padding: 3px 6px 2px !important;
  margin-bottom: -1px;
  box-shadow:
    0 -3px 7px rgba(10, 14, 7, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  z-index: 2;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.folder-stack .post-item.folder.tab-0 .folder-tab { margin-left: 0.5% !important; }
.folder-stack .post-item.folder.tab-1 .folder-tab { margin-left: 19.25% !important; }
.folder-stack .post-item.folder.tab-2 .folder-tab { margin-left: 38% !important; }
.folder-stack .post-item.folder.tab-3 .folder-tab { margin-left: 56.75% !important; }
.folder-stack .post-item.folder.tab-4 .folder-tab { margin-left: 75.5% !important; }

/* Paper Insert Label Tucked Inside the 1/5-Cut Plastic Tab */
.folder-stack .folder-label {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-hand) !important;
  font-size: 0.91rem !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  max-height: 1.26em;
  color: #162038 !important;
  background: #FFFFFF;
  border-top: 2px solid #C8281D;
  border-bottom: 1px solid #D8D2C5;
  border-left: 1px solid #E2DDD0;
  border-right: 1px solid #E2DDD0;
  border-radius: 1px;
  padding: 1px 6px 0px !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1 !important;
  overflow: hidden;
  white-space: normal !important;
}

/* When your finger parts this folder open, allow 2 lines on the tab label + brighten classic olive-green cardstock! */
.folder-stack .post-item.folder.riffle-focus .folder-label {
  -webkit-line-clamp: 2 !important;
  max-height: 2.52em;
  background: #FFFFFF;
}
.folder-stack .post-item.folder.riffle-focus .folder-tab {
  background: linear-gradient(180deg, #FFFFFF 0%, #EBF0E4 100%) !important;
  border-color: #B4CA92 !important;
  box-shadow:
    0 -5px 12px rgba(8, 12, 5, 0.52),
    inset 0 1px 0 #FFFFFF !important;
}
.folder-stack .post-item.folder.riffle-focus .folder-body {
  background:
    linear-gradient(180deg,
      #788F56 0px,
      #596E3E 4px,
      #4A5E32 10px,
      #3E5029 55%,
      #314020 100%) !important;
  border-color: #9EB57C !important;
  border-top-color: #C2D6A2 !important;
}

.folder-tab-stamp {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.folder-tab-stamp.yta { background: #FCECEB; color: #B82318; border: 1px solid #D97770; }
.folder-tab-stamp.nta { background: #E8F5EE; color: #156841; border: 1px solid #6BB38E; }
.folder-tab-stamp.esh { background: #FDF1E2; color: #A65108; border: 1px solid #DDA064; }
.folder-tab-stamp.nah { background: #E9F2FA; color: #1D568A; border: 1px solid #7BAAD4; }
.folder-tab-stamp.new { background: #E8F5EE; color: #156841; border: 1px solid #6BB38E; }

/* Classic Pendaflex Olive-Green Hanging Folder Body + Top Rod Sleeve + Side Rail Hooks */
.folder-stack .folder-body {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  height: 88px;
  padding: 8px 14px 8px !important;
  background:
    linear-gradient(180deg,
      #687D4B 0px,
      #4D5F36 4px,
      #3E4E2B 9px,
      #334123 52%,
      #27331A 100%) !important;
  border: 1px solid #1E2814 !important;
  border-top: 2px solid #8BA16B !important;
  border-radius: 2px 3px 3px 3px !important;
  box-shadow:
    0 -3px 8px rgba(8, 12, 5, 0.45),
    inset 0 1px 0 rgba(212, 228, 184, 0.35),
    inset 0 5px 0 rgba(25, 34, 16, 0.28) !important;
  z-index: 1;
}
/* White/Metallic Pendaflex Hanging Rod Hooks resting on the left and right cabinet rails */
.folder-stack .folder-body::before,
.folder-stack .folder-body::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 14px;
  height: 6px;
  background: linear-gradient(180deg, #F7F8F4 0%, #D5D9CE 62%, #8F9686 100%);
  border: 1px solid #262E1E;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.folder-stack .folder-body::before {
  left: -14px;
  border-radius: 2px 0 0 2px;
}
.folder-stack .folder-body::after {
  right: -14px;
  border-radius: 0 2px 2px 0;
}
.folder-stack .post-item.folder.tab-1 .folder-body,
.folder-stack .post-item.folder.tab-2 .folder-body,
.folder-stack .post-item.folder.tab-3 .folder-body,
.folder-stack .post-item.folder.tab-4 .folder-body {
  border-radius: 3px !important;
}
.folder-stack .folder-body .post-item-sub {
  color: #DCE3CE !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
.folder-stack .closed-folder .folder-foot {
  color: #D2DAC3 !important;
}

.folder-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Typewritten Index Excerpt inside the Folder Face (fades in crisply as folder parts open) */
.folder-peek-excerpt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.38;
  color: #2B2925;
  background: rgba(252, 251, 247, 0.78);
  border-left: 2.5px solid #C8281D;
  padding: 4px 9px;
  border-radius: 1px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.16s ease, background-color 0.16s ease;
}
.folder-stack .post-item.folder.riffle-focus .folder-peek-excerpt {
  opacity: 1;
  background: #FCFBF7;
}

/* Closed folders need slightly taller peek space when parted */
.closed-list.folder-stack .folder-sheet {
  height: 122px;
}
.closed-list.folder-stack .folder-body {
  height: 92px;
}

/* ============================================================================
   SEALED CASE VIEW FIX: Zero Scroll Leaks & Clean Stamp Pad Layout
   ============================================================================ */
.case-view.sealed .verdict-header,
.case-view.sealed #jury-analytics-block,
.case-view.sealed #case-post-reveal-bar,
.case-view.sealed #pregrade-roast-cta,
.case-view.sealed #roast-block,
.case-view.sealed #savage-quotes-block,
.case-view.sealed #advice-block,
.case-view.sealed #appeal-block {
  display: none !important;
}

.post-reveal-bar-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.blind-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-closeout-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blind-action-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bench-scorecard-stamps .scorecard-stamp {
  padding: 5px 11px;
}
.bench-scorecard-stamps .scorecard-stamp .stamp-k {
  font-size: 0.6rem;
}
.bench-scorecard-stamps .scorecard-stamp .stamp-v {
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .folder-stack .folder-tab {
    width: 82% !important;
    max-width: 82% !important;
  }
  .folder-stack .post-item.folder.tab-1 .folder-tab,
  .folder-stack .post-item.folder.tab-2 .folder-tab,
  .folder-stack .post-item.folder.tab-3 .folder-tab,
  .folder-stack .post-item.folder.tab-4 .folder-tab {
    margin-left: 0% !important;
  }
}


/* ============================================================================
   12. 3D FOLDER PULL-FROM-DRAWER & SWING-OPEN-ON-DESK FLIGHT CHOREOGRAPHY
   ============================================================================ */

.folder-flight-stage {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
  overflow: visible;
}

.court-grid.flight-snap {
  transition: none !important;
}

.folder-flight-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 54% 48%, rgba(20, 16, 10, 0.16), rgba(20, 16, 10, 0.04));
  opacity: 0;
}

.folder-flight-actor {
  position: fixed;
  top: 0;
  left: 0;
  perspective: 1600px;
  perspective-origin: 38% 48%;
  transform-style: preserve-3d;
  will-change: transform, width, height, left, top, opacity;
}

/* Empty slot left behind in the drawer when you pull a folder out */
.post-item.folder.folder-pulled-ghost {
  opacity: 0.14 !important;
  filter: grayscale(0.4);
  transition: opacity 0.15s ease !important;
}

/* Hide real bench panel until the 3D cover swings open to reveal it seamlessly */
.bench-panel.awaiting-folder-open {
  opacity: 0 !important;
}
.bench-panel.settling-folder-open {
  transition: opacity 0.18s ease-out;
  opacity: 1 !important;
}

/* --- Back Leaf: 1/3-Cut Manila Tab + Pinned Deposition Sheet --- */
.flight-back-leaf {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateZ(-2px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.35), transparent 65%),
    #EFE4CE;
  border: 1.5px solid #9E865E;
  border-radius: 0 5px 5px 5px;
  padding: 0 14px 14px;
  box-shadow:
    0 24px 48px rgba(20, 15, 8, 0.30),
    0 4px 12px rgba(20, 15, 8, 0.16);
  overflow: visible;
  backface-visibility: hidden;
}
.flight-back-leaf.tab-1,
.flight-back-leaf.tab-2,
.flight-back-leaf.tab-3,
.flight-back-leaf.tab-4 {
  border-radius: 5px;
}

.flight-back-tab {
  position: absolute;
  top: -30px;
  left: 0.5%;
  width: 24%;
  min-width: 165px;
  height: 31px;
  margin: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #F8EFE0 0%, #EFE4CE 100%);
  border: 1.5px solid #9E865E;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  padding: 4px 10px 3px;
  box-shadow:
    0 -3px 6px rgba(30, 22, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 2;
}
.flight-back-tab.tab-0 { left: 0.5%; }
.flight-back-tab.tab-1 { left: 19.25%; }
.flight-back-tab.tab-2 { left: 38%; }
.flight-back-tab.tab-3 { left: 56.75%; }
.flight-back-tab.tab-4 { left: 75.5%; }

.flight-back-tab-label {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1B2640;
  background: #FCFBF7;
  border-top: 2.5px solid #C8281D;
  border-bottom: 1px solid #DCD4C4;
  border-left: 1px solid #E6DFD1;
  border-right: 1px solid #E6DFD1;
  padding: 1px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-fasteners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 18px;
  background: #F7EFE0;
  border: 1px solid #C9B896;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}
.flight-fasteners .prong {
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #E2BE68, #9C7A2A);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.flight-fasteners .prong-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: #8C8373;
}

.flight-paper-sheet {
  flex: 1 1 auto;
  background: #FBF9F4;
  border: 1px solid #D5CEC0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 #FFFFFF;
}
.flight-paper-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6E6A61;
  border-bottom: 1px solid #D5CEC0;
  padding-bottom: 6px;
}
.flight-paper-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.18;
  color: #141413;
}
.flight-paper-excerpt {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.58;
  color: #3D3B37;
  border-left: 2px solid #141413;
  padding-left: 14px;
  white-space: pre-line;
  overflow: hidden;
}

/* --- Hinged 3D Front Cover (rotates around left folder spine) --- */
.flight-front-cover {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 4;
}

.flight-cover-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flight-cover-tab {
  display: none;
}

.flight-cover-label {
  flex: 1 1 auto;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1B2640;
  background: #FCFBF7;
  border-top: 2.5px solid #C8281D;
  border-bottom: 1px solid #DCD4C4;
  padding: 1px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-cover-body {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -25deg,
      rgba(140, 110, 65, 0.025) 0px,
      rgba(140, 110, 65, 0.025) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(165deg, #F5EBDA 0%, #E7D8BA 55%, #DECBA7 100%);
  border: 1.5px solid #9E865E;
  border-radius: 0 5px 5px 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 4px 0 10px rgba(80, 60, 30, 0.12),
    0 18px 36px rgba(20, 15, 8, 0.28);
  padding: 18px;
  overflow: hidden;
}

.flight-cover-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border: 2px double rgba(58, 48, 34, 0.45);
  border-radius: 2px;
  background: rgba(252, 248, 238, 0.36);
  text-align: center;
}
.flight-emblem-kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6B5D47;
}
.flight-emblem-docket {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2B241B;
}
.flight-emblem-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #5B503F;
  text-transform: uppercase;
}

.flight-filed-stamp {
  position: absolute;
  right: 12%;
  bottom: 18%;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border: 3px solid #156841;
  color: #156841;
  background: rgba(232, 245, 238, 0.88);
  border-radius: 3px;
  transform: rotate(-11deg);
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.flight-filed-stamp.miss {
  border-color: #C8281D;
  color: #C8281D;
  background: rgba(252, 236, 235, 0.88);
}

/* Inner Backside of Front Cover (visible when cover swings open past -90deg!) */
.flight-cover-inside {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(90deg, #E8D9BC 0%, #F2E7D1 88%, #D8C5A2 100%);
  border: 1.5px solid #A68F68;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  box-shadow: -12px 14px 28px rgba(20, 15, 8, 0.22);
}
.flight-inside-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 12px;
  background: linear-gradient(90deg, transparent, rgba(80, 58, 28, 0.22));
}
.flight-inside-stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(74, 62, 44, 0.55);
  border: 1px dashed rgba(74, 62, 44, 0.35);
  padding: 4px 10px;
}


/* ============================================================================
   13. PAPERS, PLEASE RUBBER STAMP RACK, HELD CURSOR STAMP & WET INK LAYER
   ============================================================================ */

/* Give unstamped desk bottom breathing room above the docked stamp rack */
body[data-view="case"][data-stamp-rack="open"] .bench-panel {
  margin-bottom: 108px;
}

.case-card {
  position: relative;
  overflow: hidden;
}

/* Subtle paper target glow & hidden OS pointer while holding a rubber stamp over the deposition */
body[data-holding-stamp] #deposition-paper-card {
  cursor: none;
  border-color: #6B5D47;
  box-shadow:
    inset 0 0 0 1px rgba(182, 147, 73, 0.35),
    0 6px 18px rgba(20, 15, 8, 0.12);
}
body[data-holding-stamp] #deposition-paper-card a,
body[data-holding-stamp] #deposition-paper-card button {
  cursor: pointer;
}

/* Paper & Courtroom UI shake when a rubber stamp slams down ("WHOOMP") */
@keyframes paper-stamp-thud {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  20%  { transform: translate3d(0, 6px, 0) scale(0.993) rotate(-0.35deg); }
  45%  { transform: translate3d(-2px, -2.5px, 0) scale(1.002) rotate(0.22deg); }
  70%  { transform: translate3d(1.5px, 1.5px, 0) scale(0.999) rotate(-0.1deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
.case-card.stamp-thud {
  animation: paper-stamp-thud 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes court-ui-whoomp-shake {
  0%   { transform: translate3d(0, 0, 0); }
  16%  { transform: translate3d(0, 5px, 0) rotate(-0.22deg); }
  34%  { transform: translate3d(-3px, -3px, 0) rotate(0.18deg); }
  52%  { transform: translate3d(2.5px, 2px, 0) rotate(-0.12deg); }
  72%  { transform: translate3d(-1.5px, -1px, 0) rotate(0.06deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.court-grid.stamp-ui-shake {
  animation: court-ui-whoomp-shake 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Wet Rubber-Ink Stamp Layer Pinned Inside .case-card --- */
.deposition-stamp-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

@keyframes wet-ink-imprint {
  0% {
    opacity: 0.99;
    transform: translate(-50%, -50%) rotate(var(--stamp-angle, -6deg)) scale(1.12);
  }
  38% {
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(var(--stamp-angle, -6deg)) scale(0.985);
  }
  100% {
    opacity: 0.89;
    transform: translate(-50%, -50%) rotate(var(--stamp-angle, -6deg)) scale(1);
  }
}

.stamp-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.deposition-stamp-mark {
  position: absolute;
  left: 72%;
  top: 96px;
  transform: translate(-50%, -50%) rotate(var(--stamp-angle, -6deg));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 242px;
  padding: 6px 14px 6px;
  border: 4.5px solid currentColor;
  border-radius: 5px;
  outline: 1.5px solid currentColor;
  outline-offset: -7px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  text-align: center;
  mix-blend-mode: multiply;
  opacity: 0.89;
  user-select: none;
  pointer-events: none;
  filter: url(#wet-ink-roughness);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 14px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.22);
  /* Authentic uneven rubber-pad ink grain & dry-fiber striations */
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22) 0%, transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(0, 0, 0, 0.08) 0%, transparent 32%),
    repeating-linear-gradient(
      -17deg,
      rgba(255, 255, 255, 0.16) 0px,
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px,
      transparent 4px
    );
}
.deposition-stamp-mark::before,
.deposition-stamp-mark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  pointer-events: none;
}
.deposition-stamp-mark::before {
  top: -7px;
  left: 14%;
  box-shadow: 175px 3px 0 -1px currentColor, -10px 42px 0 -2px currentColor;
}
.deposition-stamp-mark::after {
  bottom: -6px;
  right: 18%;
  box-shadow: -150px -2px 0 -1.5px currentColor, 12px -38px 0 -2px currentColor;
}
.deposition-stamp-mark.fresh-slam {
  animation: wet-ink-imprint 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.deposition-stamp-mark.yta {
  color: #AE1B11;
  background-color: rgba(196, 33, 21, 0.09);
  border-radius: 3px;
}
.deposition-stamp-mark.nta {
  color: #0E5C36;
  background-color: rgba(17, 98, 59, 0.085);
  border-radius: 9px;
}
.deposition-stamp-mark.esh {
  color: #9A4504;
  background-color: rgba(180, 86, 8, 0.09);
  border-style: double;
  border-width: 6px;
}
.deposition-stamp-mark.nah {
  color: #15497A;
  background-color: rgba(24, 78, 128, 0.085);
  border-radius: 7px;
}

.stamp-mark-kicker {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.15;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  margin-bottom: 3px;
  width: 100%;
}
.stamp-mark-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 1px 4px;
}
.stamp-mark-crest {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.92;
}
.stamp-mark-code {
  font-size: 2.38rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 0.98;
  padding-left: 0.16em;
  text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.12);
}
.stamp-mark-sub {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.15;
  border-top: 1.5px solid currentColor;
  border-bottom: 1px dashed currentColor;
  padding: 3px 0 2px;
  margin-top: 2px;
  width: 100%;
}
.stamp-mark-docket {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  padding-top: 3px;
  opacity: 0.88;
  width: 100%;
}

/* --- Docked Bottom Desk Rubber Stamp Rack --- */
.stamp-rack {
  position: fixed;
  left: 56px;
  right: 0;
  bottom: 0;
  z-index: 1250;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.stamp-rack.hidden {
  display: flex !important;
  transform: translateY(125%);
  opacity: 0;
  pointer-events: none;
}
body[data-view="drawer"] .stamp-rack {
  transform: translateY(125%);
  opacity: 0;
  pointer-events: none;
}

.stamp-rack-tray {
  pointer-events: auto;
  width: 100%;
  max-width: 1090px;
  display: grid;
  grid-template-columns: minmax(175px, 1fr) auto minmax(155px, 0.85fr);
  align-items: end;
  gap: 16px;
  padding: 10px 22px 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 235, 195, 0.02) 0px,
      rgba(255, 235, 195, 0.02) 14px,
      rgba(0, 0, 0, 0.04) 14px,
      rgba(0, 0, 0, 0.04) 29px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0px, transparent 3px),
    linear-gradient(180deg, #3A2E23 0%, #241C15 55%, #19130E 100%);
  border: 2px solid #120E0A;
  border-top: 3.5px solid #C8A458;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow:
    0 -12px 32px rgba(12, 9, 5, 0.45),
    inset 0 1px 0 rgba(255, 240, 198, 0.28),
    inset 0 -4px 10px rgba(0, 0, 0, 0.55);
}

.stamp-rack-plaque {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 12px;
  background:
    linear-gradient(180deg, #231B14 0%, #16110D 100%);
  border: 1.5px solid #8F7237;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 179, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
.stamp-rack-kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #E6C57A;
}
.stamp-rack-hint {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.3;
  color: #EFE6D5;
}

/* 4 Physical Rubber Stamp Wells */
.stamp-rack-wells {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.stamp-slot-btn {
  position: relative;
  width: 126px;
  height: 112px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  outline: none;
}

/* Recessed Cast-Brass & Felt Ink Pad Well sitting in the mahogany tray */
.stamp-ink-well {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, #120E0B 0%, #1D1712 100%);
  border: 2px solid #695331;
  border-top-color: #3E301C;
  border-bottom-color: #9C7D46;
  border-radius: 6px;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.85),
    0 2px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ink-well-bezel {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(218, 184, 108, 0.22);
  border-radius: 4px;
  pointer-events: none;
}
.ink-well-pad {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 13px;
  border-radius: 3px;
  opacity: 0.94;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.55),
    0 0 6px rgba(0, 0, 0, 0.35);
}
.stamp-slot-btn.yta .ink-well-pad {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, #E33426 0%, #9E1B11 65%, #5C0E08 100%);
}
.stamp-slot-btn.nta .ink-well-pad {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, #239B60 0%, #12613A 65%, #09351F 100%);
}
.stamp-slot-btn.esh .ink-well-pad {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, #E07914 0%, #964906 65%, #522602 100%);
}
.stamp-slot-btn.nah .ink-well-pad {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, #2E80CE 0%, #184E82 65%, #0C2947 100%);
}

.ink-well-return {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F8EED8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.16s ease;
}

/* Upright Physical Rubber Stamp (Lathe-Turned Hardwood Pear Knob + Knurled Brass Collar + Coiled Spring Plunger + Riveted Brass Mount + Vulcanized Die) */
.stamp-piece {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 114px;
  margin-bottom: 5px;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.16s ease, filter 0.18s ease;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}
.stamp-slot-btn:hover:not(.is-picked-up) .stamp-piece,
.stamp-slot-btn:focus-visible:not(.is-picked-up) .stamp-piece {
  transform: translateY(-9px) rotate(-1.5deg);
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.68));
}

/* When picked up into your hand, the stamp lifts out of its ink well! */
.stamp-slot-btn.is-picked-up .stamp-piece {
  transform: translateY(-44px) scale(0.9);
  opacity: 0;
  pointer-events: none;
}
.stamp-slot-btn.is-picked-up .ink-well-return {
  opacity: 1;
}
.stamp-slot-btn.is-picked-up .stamp-ink-well {
  border-color: #E5C168;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.8),
    0 0 0 1.5px rgba(229, 193, 104, 0.55),
    0 0 12px rgba(229, 193, 104, 0.28);
}

/* Turned Lacquered Hardwood Pear Handle */
.stamp-knob {
  position: relative;
  width: 48px;
  height: 34px;
  border-radius: 24px 24px 13px 13px;
  border: 1.5px solid #120D09;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset -6px -5px 9px rgba(0, 0, 0, 0.55),
    inset 5px 4px 8px rgba(255, 255, 255, 0.28),
    0 2px 3px rgba(0, 0, 0, 0.45);
}
.stamp-slot-btn.yta .stamp-knob {
  background: radial-gradient(circle at 32% 24%, #F25C4E 0%, #B82218 54%, #6E110B 85%, #3D0805 100%);
}
.stamp-slot-btn.nta .stamp-knob {
  background: radial-gradient(circle at 32% 24%, #3CBE7E 0%, #167247 54%, #0B4228 85%, #052415 100%);
}
.stamp-slot-btn.esh .stamp-knob {
  background: radial-gradient(circle at 32% 24%, #F59B3D 0%, #B25609 54%, #6B3204 85%, #3B1A01 100%);
}
.stamp-slot-btn.nah .stamp-knob {
  background: radial-gradient(circle at 32% 24%, #57A3EB 0%, #1F609E 54%, #10375E 85%, #081D33 100%);
}

.stamp-knob-crown {
  position: absolute;
  top: 3px;
  left: 10px;
  width: 16px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Inset Porcelain & Brass Keycap Medallion [1-4] */
.stamp-keycap {
  position: relative;
  z-index: 2;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDF7 0%, #EADBC0 75%, #C8B28B 100%);
  border: 1.5px solid #8C6D2E;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  color: #1F1811;
  line-height: 1;
}

.stamp-knob-neck {
  position: absolute;
  bottom: -4px;
  width: 26px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(255, 255, 255, 0.18) 42%, rgba(0, 0, 0, 0.72));
  border-left: 1px solid #120D09;
  border-right: 1px solid #120D09;
}

/* Knurled Machined Brass Ferrule Collar */
.stamp-ferrule {
  margin-top: 3px;
  width: 24px;
  height: 6px;
  border-radius: 1.5px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(42, 32, 11, 0.42) 0px,
      rgba(42, 32, 11, 0.42) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(90deg, #6B5016 0%, #DFC26F 32%, #FFF0B8 50%, #B8923B 72%, #594110 100%);
  border: 1px solid #261C08;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Telescoping Steel & Coiled Brass Plunger Shaft */
.stamp-stem {
  width: 14px;
  height: 11px;
  background:
    repeating-linear-gradient(
      180deg,
      #2A2111 0px,
      #2A2111 1.5px,
      #E5C878 1.5px,
      #9E7C2F 3.5px
    );
  border-left: 1.5px solid #241B0B;
  border-right: 1.5px solid #241B0B;
  box-shadow: inset 2px 0 3px rgba(255, 255, 255, 0.35), inset -2px 0 3px rgba(0, 0, 0, 0.55);
}

/* Cast-Brass Stamp Housing with Rivets & Recessed Celluloid Index Window */
.stamp-head {
  position: relative;
  width: 100%;
  padding: 4px 6px 4px;
  background:
    radial-gradient(circle at 7px 6px, #FFF2C2 0 1.2px, #594314 1.5px 2.3px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 7px) 6px, #FFF2C2 0 1.2px, #594314 1.5px 2.3px, transparent 2.5px),
    linear-gradient(180deg, #DEC06E 0%, #B5903B 26%, #74591E 62%, #473612 100%);
  border: 1.5px solid #1C150B;
  border-top: 2px solid #F6E09D;
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 248, 214, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stamp-index-window {
  width: 100%;
  padding: 2px 4px 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #FAF3E3 0%, #E7D8BA 100%);
  border: 1px solid #3A2C12;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 240, 195, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stamp-head-kicker {
  font-family: var(--font-mono);
  font-size: 0.39rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #6B5B45;
  line-height: 1;
  margin-bottom: 1px;
}

.stamp-head-code {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.02;
  padding-left: 0.14em;
}
.stamp-slot-btn.yta .stamp-head-code { color: #B41F15; }
.stamp-slot-btn.nta .stamp-head-code { color: #11623B; }
.stamp-slot-btn.esh .stamp-head-code { color: #A14C06; }
.stamp-slot-btn.nah .stamp-head-code { color: #184E80; }

.stamp-head-sub {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #3D3328;
  line-height: 1.05;
}

/* Vulcanized Grey-Black Rubber Cushion & Ink-Loaded Die Base */
.stamp-rubber-die {
  width: 94%;
  height: 6px;
  background: linear-gradient(180deg, #2D2A27 0%, #181614 65%);
  border-left: 1px solid #0E0C0A;
  border-right: 1px solid #0E0C0A;
  border-bottom: 2.5px solid #8A1C14;
  border-radius: 0 0 2px 2px;
}
.stamp-slot-btn.yta .stamp-rubber-die { border-bottom-color: #C8281D; }
.stamp-slot-btn.nta .stamp-rubber-die { border-bottom-color: #19804F; }
.stamp-slot-btn.esh .stamp-rubber-die { border-bottom-color: #CA670A; }
.stamp-slot-btn.nah .stamp-rubber-die { border-bottom-color: #246BB0; }

/* Right Corner Court Voice Selector */
.stamp-rack-bench {
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stamp-rack-bench-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #C9B486;
}
.stamp-rack-persona {
  background: #F4ECDC !important;
  border: 1.5px solid #BD9B52 !important;
  color: #1D1914 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 5px 8px !important;
  border-radius: 3px !important;
}

/* --- Floating Held Rubber Stamp & Ink Aiming Reticle --- */
.held-stamp-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 1550;
  pointer-events: none;
  will-change: transform;
}

.held-stamp-reticle {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) rotate(var(--reticle-angle, -6deg));
  min-width: 236px;
  padding: 6px 14px 5px;
  border: 2.5px dashed currentColor;
  border-radius: 5px;
  outline: 1px solid currentColor;
  outline-offset: -5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.56;
  background: rgba(255, 252, 244, 0.36);
  box-shadow: 0 2px 10px rgba(20, 15, 8, 0.08);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.held-stamp-reticle.yta { color: #B41F15; }
.held-stamp-reticle.nta { color: #11623B; }
.held-stamp-reticle.esh { color: #A14C06; }
.held-stamp-reticle.nah { color: #184E80; }

.reticle-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: currentColor;
  border-style: solid;
  pointer-events: none;
}
.reticle-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.reticle-corner.tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; }
.reticle-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; }
.reticle-corner.br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

.reticle-kicker {
  font-size: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: 100%;
}
.reticle-code {
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.02;
  padding-left: 0.16em;
}
.reticle-sub {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  border-top: 1px solid currentColor;
  padding-top: 2px;
  width: 100%;
}
.reticle-docket {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 2px;
  opacity: 0.85;
}

.held-stamp-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Hovering 42px above the reticle in ¾ perspective so you can read the aiming seal below */
  transform: translate(-50%, calc(-50% - 42px)) rotate(-5deg);
  filter: drop-shadow(12px 30px 18px rgba(20, 15, 8, 0.38));
  transition: transform 0.09s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.09s ease;
}
.held-stamp-cursor.is-slamming .held-stamp-body {
  transform: translate(-50%, calc(-50% - 4px)) rotate(-6deg) scale(0.96);
  filter: drop-shadow(2px 4px 5px rgba(20, 15, 8, 0.52));
}
.held-stamp-cursor.is-slamming .held-stem {
  height: 4px;
}

.held-knob {
  position: relative;
  width: 58px;
  height: 38px;
  border-radius: 29px 29px 14px 14px;
  border: 1.5px solid #140F0B;
  box-shadow:
    inset -6px -5px 9px rgba(0, 0, 0, 0.5),
    inset 5px 4px 8px rgba(255, 255, 255, 0.28);
}
.held-stamp-body.yta .held-knob { background: radial-gradient(circle at 32% 24%, #F25C4E 0%, #B82218 54%, #6E110B 85%, #3D0805 100%); }
.held-stamp-body.nta .held-knob { background: radial-gradient(circle at 32% 24%, #3CBE7E 0%, #167247 54%, #0B4228 85%, #052415 100%); }
.held-stamp-body.esh .held-knob { background: radial-gradient(circle at 32% 24%, #F59B3D 0%, #B25609 54%, #6B3204 85%, #3B1A01 100%); }
.held-stamp-body.nah .held-knob { background: radial-gradient(circle at 32% 24%, #57A3EB 0%, #1F609E 54%, #10375E 85%, #081D33 100%); }

.held-knob-crown {
  position: absolute;
  top: 4px;
  left: 12px;
  width: 20px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
}
.held-knob-neck {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(255, 255, 255, 0.2) 45%, rgba(0, 0, 0, 0.7));
}

.held-ferrule {
  margin-top: 3px;
  width: 28px;
  height: 7px;
  border-radius: 1.5px;
  background:
    repeating-linear-gradient(90deg, rgba(42, 32, 11, 0.42) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #6B5016 0%, #DFC26F 32%, #FFF0B8 50%, #B8923B 72%, #594110 100%);
  border: 1px solid #261C08;
}
.held-stem {
  width: 16px;
  height: 14px;
  background:
    repeating-linear-gradient(
      180deg,
      #2A2111 0px,
      #2A2111 1.5px,
      #E5C878 1.5px,
      #9E7C2F 3.5px
    );
  border-left: 1.5px solid #241B0B;
  border-right: 1.5px solid #241B0B;
  transition: height 0.08s ease;
}
.held-block {
  width: 100%;
  padding: 5px 8px;
  background:
    radial-gradient(circle at 8px 7px, #FFF2C2 0 1.4px, #594314 1.7px 2.6px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 8px) 7px, #FFF2C2 0 1.4px, #594314 1.7px 2.6px, transparent 2.8px),
    linear-gradient(180deg, #DEC06E 0%, #B5903B 28%, #74591E 65%, #473612 100%);
  border: 2px solid #1C1610;
  border-top: 2.5px solid #F6E09D;
  border-radius: 5px 5px 2px 2px;
  text-align: center;
}
.held-index-window {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #FAF3E3 0%, #E7D8BA 100%);
  border: 1px solid #3A2C12;
  border-radius: 2px;
}
.held-block-kicker {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #6B5B45;
  line-height: 1;
}
.held-block-code {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.02;
  padding-left: 0.14em;
}
.held-stamp-body.yta .held-block-code { color: #B41F15; }
.held-stamp-body.nta .held-block-code { color: #11623B; }
.held-stamp-body.esh .held-block-code { color: #A14C06; }
.held-stamp-body.nah .held-block-code { color: #184E80; }

.held-block-sub {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #3D3328;
  line-height: 1.05;
}
.held-rubber-die {
  width: 94%;
  height: 7px;
  background: linear-gradient(180deg, #2D2A27 0%, #181614 65%);
  border-left: 1px solid #0E0C0A;
  border-right: 1px solid #0E0C0A;
  border-bottom: 3px solid #C8281D;
  border-radius: 0 0 2px 2px;
}
.held-stamp-body.yta .held-rubber-die { border-bottom-color: #C8281D; }
.held-stamp-body.nta .held-rubber-die { border-bottom-color: #19804F; }
.held-stamp-body.esh .held-rubber-die { border-bottom-color: #CA670A; }
.held-stamp-body.nah .held-rubber-die { border-bottom-color: #246BB0; }

@media (max-width: 900px) {
  .stamp-rack {
    left: 0;
    padding: 0 6px;
  }
  .stamp-rack-tray {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 8px 10px;
  }
  .stamp-rack-plaque,
  .stamp-rack-bench {
    display: none;
  }
  .stamp-slot-btn {
    width: 78px;
    height: 82px;
  }
  .stamp-piece {
    width: 72px;
  }
}

/* ============================================================
   SWORN AFFIDAVIT DEPOSITION STYLING & HANDWRITTEN SIGNATURE
   ============================================================ */
body[data-view="case"] #deposition-paper-card {
  padding: 10px 20px 10px 48px;
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(
      90deg,
      transparent 0 32px,
      rgba(178, 44, 34, 0.24) 32px 33px,
      transparent 33px 36px,
      rgba(178, 44, 34, 0.14) 36px 37px,
      transparent 37px
    );
}

.affidavit-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 1px;
}

.affidavit-court-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.affidavit-court-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #4A4034;
}

.affidavit-doc-badge {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #141413;
  background: #F4EFE4;
  border: 1.5px solid #141413;
  padding: 1px 6px;
  border-radius: 2px;
}

.affidavit-caption-grid {
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 10px;
  align-items: center;
  padding: 3px 8px;
  background: rgba(244, 239, 228, 0.55);
  border-top: 1.5px solid #2A2520;
  border-bottom: 1.5px solid #2A2520;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #362E25;
}

.affidavit-caption-party {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 12px;
  border-right: 1px solid #C8BDA7;
}

.affidavit-party-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.affidavit-party-row strong {
  color: #141413;
  font-weight: 700;
}

.affidavit-ss {
  color: #7D705D;
  font-weight: 700;
  flex-shrink: 0;
}

.affidavit-caption-docket {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}

.affidavit-docket-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
}

.affidavit-docket-k {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #7D705D;
}

.affidavit-oath-lead {
  margin: 1px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.28;
  color: #3E352B;
}

.affidavit-oath-lead strong {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #141413;
}

body[data-view="case"] .active-case-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.22;
}

body[data-view="case"] .post-content-body {
  border-left: none;
  padding: 1px 0 0;
  counter-reset: affidavit-clause;
  white-space: normal;
}

body[data-view="case"] .post-content-body.collapsed {
  max-height: 245px;
}

.affidavit-para {
  position: relative;
  counter-increment: affidavit-clause;
  padding-left: 24px;
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.38;
  color: #1D1A16;
}

.affidavit-para:last-child {
  margin-bottom: 1px;
}

.affidavit-para::before {
  content: counter(affidavit-clause) ".";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #82735F;
}

/* --- Sworn Jurat & Handwritten Ink Signature Block --- */
.affidavit-signature-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1.5px dashed #C8BDA7;
}

.affidavit-jurat {
  display: flex;
  align-items: center;
  gap: 9px;
}

.affidavit-notary-seal {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(154, 42, 34, 0.56);
  outline: 1px dashed rgba(154, 42, 34, 0.42);
  outline-offset: -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-9deg);
  color: rgba(154, 42, 34, 0.76);
  font-family: var(--font-mono);
  user-select: none;
}

.notary-ring-top,
.notary-ring-bot {
  font-size: 0.33rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.notary-ring-mid {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(154, 42, 34, 0.45);
  border-bottom: 1px solid rgba(154, 42, 34, 0.45);
  padding: 0 2px;
  margin: 1px 0;
}

.affidavit-jurat-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.affidavit-jurat-lead {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2C251D;
}

.affidavit-jurat-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.76rem;
  line-height: 1.28;
  color: #5C5142;
}

.affidavit-sig-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.affidavit-sig-line-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px 3px 4px;
  border-bottom: 1.5px solid #1E1B16;
  overflow: visible;
}

.affidavit-sig-x {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #7D705D;
  flex-shrink: 0;
}

.affidavit-signature-ink {
  font-family: var(--font-hand);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 4px 6px 2px 2px;
  color: #163059;
  display: inline-block;
  transform: rotate(var(--sig-tilt, -1.2deg));
  transform-origin: center bottom;
  letter-spacing: 0.01em;
  text-shadow: 0 0 1px rgba(22, 48, 89, 0.24);
  white-space: nowrap;
  overflow: visible;
}

.affidavit-sig-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #766957;
}

@media (max-width: 780px) {
  body[data-view="case"] #deposition-paper-card {
    padding: 12px 14px 12px 26px;
    background-image:
      linear-gradient(
        90deg,
        transparent 0 14px,
        rgba(178, 44, 34, 0.22) 14px 15px,
        transparent 15px
      );
  }
  .affidavit-caption-grid,
  .affidavit-signature-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .affidavit-caption-party {
    border-right: none;
    padding-right: 0;
  }
  .affidavit-caption-docket {
    text-align: left;
    flex-direction: row;
    gap: 14px;
  }
}

/* --- Exhibit B: Handheld Microcassette Verbal Testimony Player --- */
.affidavit-title-tape-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 3px;
}

.affidavit-title-tape-row .active-case-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.verbal-testimony-controls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
}

.btn-verbal-rewind {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #F8F4EA 0%, #EAE1CE 100%);
  border: 1.5px solid #2A2520;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #2A2520;
  cursor: pointer;
  color: #2B251E;
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-verbal-rewind:hover {
  background: linear-gradient(180deg, #FFFDF8 0%, #F4ECDA 100%);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #2A2520;
}

.btn-verbal-rewind:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #2A2520;
}

.btn-verbal-rewind[data-tape-state="playing"],
.btn-verbal-rewind[data-tape-state="paused"],
.btn-verbal-rewind[data-has-progress="true"] {
  background: linear-gradient(180deg, #FDF6E6 0%, #F3E3C2 100%);
  border-color: #8A4F0D;
  box-shadow: 2px 2px 0 #7C470E;
  color: #141413;
}

.btn-verbal-rewind[data-tape-state="playing"]:hover,
.btn-verbal-rewind[data-tape-state="paused"]:hover,
.btn-verbal-rewind[data-has-progress="true"]:hover {
  background: linear-gradient(180deg, #FFFBF0 0%, #F8EBD0 100%);
  border-color: #9A2218;
  box-shadow: 3px 3px 0 #9A2218;
}

.rewind-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #8A4F0D;
}

.btn-verbal-rewind[data-tape-state="playing"] .rewind-icon-svg {
  color: #9A2218;
}

.rewind-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rewind-btn-title {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141413;
  white-space: nowrap;
}

.rewind-btn-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: #6B5F4F;
  white-space: nowrap;
}

.btn-verbal-testimony {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: linear-gradient(180deg, #FBF8F1 0%, #EFE9DA 100%);
  border: 1.5px solid #2A2520;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #2A2520;
  cursor: pointer;
  color: #141413;
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-verbal-testimony:hover {
  background: linear-gradient(180deg, #FFFDF8 0%, #F5EFE0 100%);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #2A2520;
}

.btn-verbal-testimony:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #2A2520;
}

.btn-verbal-testimony[data-tape-state="playing"] {
  background: linear-gradient(180deg, #FDF6E8 0%, #F7E8CA 100%);
  border-color: #9A2218;
  box-shadow: 2px 2px 0 #9A2218;
}

.btn-verbal-testimony[data-tape-state="paused"] {
  background: linear-gradient(180deg, #FBF2DE 0%, #EFE0BE 100%);
  border-color: #925614;
  box-shadow: 2px 2px 0 #7C470E;
}

.btn-verbal-testimony[data-tape-state="loading"] {
  background: linear-gradient(180deg, #F8F3E6 0%, #ECE2CD 100%);
  cursor: progress;
}

/* Vertical silver pocket microcassette housing matching handheld dictaphone */
.mini-recorder-shell {
  position: relative;
  width: 31px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5px 2.5px 3px;
  border-radius: 3px;
  background: linear-gradient(145deg, #ECEEF0 0%, #C6CCD2 58%, #AEB5BC 100%);
  border: 1.5px solid #2C2925;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(40, 40, 40, 0.25),
    1px 1px 0 rgba(0, 0, 0, 0.18);
}

/* Tiny red play-rec bracket button on side edge */
.mini-recorder-shell::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 7px;
  width: 3px;
  height: 7px;
  background: #C8281D;
  border: 1px solid #2C2925;
  border-left: none;
  border-radius: 0 1px 1px 0;
}

.mini-recorder-led {
  position: absolute;
  top: 2.5px;
  right: 2.5px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #5E5A54;
}

.btn-verbal-testimony[data-tape-state="playing"] .mini-recorder-led {
  background: #E12D1F;
  box-shadow: 0 0 5px #E12D1F;
}

.btn-verbal-testimony[data-tape-state="paused"] .mini-recorder-led {
  background: #D97706;
  box-shadow: 0 0 4px rgba(217, 119, 6, 0.75);
}

.btn-verbal-testimony[data-tape-state="loading"] .mini-recorder-led {
  background: #D97706;
  animation: tapeLedPulse 0.65s ease-in-out infinite alternate;
}

.mini-recorder-window {
  position: relative;
  width: 20px;
  height: 24px;
  margin-top: 1px;
  background: linear-gradient(180deg, #E2E6EA 0%, #CFD5DC 100%);
  border: 1px solid #4A4D52;
  border-radius: 1.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* Red microcassette center label strip behind the spools */
.mini-cassette-red-band {
  position: absolute;
  inset: 0 2.5px;
  background: linear-gradient(90deg, #B82319 0%, #DC3529 50%, #9E1B12 100%);
  opacity: 0.92;
  pointer-events: none;
}

.mini-tape-bridge {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 4.5px;
  width: 1.5px;
  background: #231E19;
  opacity: 0.72;
  pointer-events: none;
}

.mini-tape-reel {
  position: relative;
  z-index: 1;
  width: 10.5px;
  height: 10.5px;
  display: block;
  transform-origin: center center;
}

.btn-verbal-testimony[data-tape-state="playing"] .mini-tape-reel.reel-left {
  animation: tapeReelSpin 1.35s linear infinite;
}

.btn-verbal-testimony[data-tape-state="playing"] .mini-tape-reel.reel-right {
  animation: tapeReelSpin 1.05s linear infinite;
}

.btn-verbal-testimony[data-tape-state="loading"] .mini-tape-reel.reel-left,
.btn-verbal-testimony[data-tape-state="loading"] .mini-tape-reel.reel-right {
  animation: tapeReelSpin 0.55s linear infinite;
}

/* Perforated speaker dot grille in lower housing */
.mini-recorder-grille {
  width: 20px;
  height: 11px;
  margin-top: 1px;
  background-image: radial-gradient(#3D4147 0.75px, transparent 0.8px);
  background-size: 3.2px 3.2px;
  opacity: 0.85;
}

.tape-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 108px;
}

.tape-btn-title {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141413;
  white-space: nowrap;
}

.btn-verbal-testimony[data-tape-state="playing"] .tape-btn-title {
  color: #9A2218;
}

.btn-verbal-testimony[data-tape-state="paused"] .tape-btn-title {
  color: #8A4F0D;
}

.tape-btn-meta {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: #6B5F4F;
  white-space: nowrap;
}

/* Word-by-word synchronized courtroom transcript highlighter */
.affidavit-word {
  border-radius: 2px;
  transition: background-color 0.08s ease, color 0.08s ease, box-shadow 0.08s ease;
}

.affidavit-word.is-tape-word-spoken,
#affidavit-oath-author.is-tape-word-spoken {
  background-color: rgba(214, 174, 88, 0.14);
  border-bottom: 1px dotted rgba(154, 108, 31, 0.36);
}

.affidavit-word.is-tape-word-active,
#affidavit-oath-author.is-tape-word-active {
  background: linear-gradient(180deg, rgba(253, 224, 71, 0.68) 0%, rgba(245, 184, 46, 0.82) 100%);
  color: #110E0A;
  box-shadow:
    0 0 0 2px rgba(245, 184, 46, 0.45),
    0 1px 0 rgba(154, 34, 24, 0.65);
  border-radius: 2.5px;
}

.affidavit-word.is-tape-word-active.is-tape-word-paused,
#affidavit-oath-author.is-tape-word-active.is-tape-word-paused {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.48) 0%, rgba(217, 119, 6, 0.56) 100%);
  box-shadow:
    0 0 0 2px rgba(180, 83, 9, 0.42),
    0 1px 0 rgba(124, 71, 14, 0.75);
}

@keyframes tapeReelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tapeLedPulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .affidavit-title-tape-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================================
 * GOOGLE SIGN-IN BENCH IDENTITY & PERSISTENT ADJUDICATION LEDGER BANNER
 * ============================================================================ */

.judge-auth-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-color: #141413;
  background: #FBF8F1;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.btn-google-auth:hover {
  background: #F1EAD8;
}

.btn-google-auth[data-auth-state="google"] {
  background: #E9F3EC;
  border-color: #156841;
  color: #114B2F;
}

.btn-google-auth[data-auth-state="google"]:hover {
  background: #DCECE1;
}

.google-g-icon {
  flex-shrink: 0;
  display: block;
}

.auth-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #156841;
  box-shadow: 0 0 0 2px rgba(21, 104, 65, 0.2);
  flex-shrink: 0;
}

.btn-google-signout {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  color: #6B5F4F;
  border-color: #BDB29E;
  background: #F6F0E4;
}

.btn-google-signout:hover {
  color: #9A2218;
  border-color: #9A2218;
  background: #FBECE9;
}

.ledger-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #FBF6EA 0%, #F3EBDC 100%);
  border: 1px solid #C8BC9E;
  border-left: 3px solid #B85D0C;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.ledger-auth-banner[data-auth-state="google"] {
  background: linear-gradient(180deg, #EEF6F0 0%, #E4F0E7 100%);
  border-color: #9AC2A9;
  border-left: 3px solid #156841;
}

.hall-auth-banner {
  margin: 0 0 10px 0;
}

.ledger-auth-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ledger-auth-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A4B08;
}

.ledger-auth-banner[data-auth-state="google"] .ledger-auth-kicker {
  color: #156841;
}

.ledger-auth-status {
  font-size: 0.72rem;
  color: #2B261F;
  line-height: 1.3;
}

.btn-ledger-auth {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #141413;
  background: #FFFFFF;
  border: 1.5px solid #141413;
  border-radius: 3px;
  box-shadow: 1px 1px 0 #141413;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.14s ease;
}

.btn-ledger-auth:hover {
  background: #F4EFE4;
  transform: translateY(-1px);
}

.btn-ledger-auth:active {
  transform: translateY(0);
}

.ledger-auth-banner[data-auth-state="google"] .btn-ledger-auth {
  color: #6B5F4F;
  border-color: #9E9482;
  box-shadow: none;
  background: #FBF9F4;
}

.ledger-auth-banner[data-auth-state="google"] .btn-ledger-auth:hover {
  color: #9A2218;
  border-color: #9A2218;
  background: #FBECE9;
}

