/* Styling variables and themes */
:root {
  --bg-outer: #060606;
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --text: #ffffff;
  --text-muted: #707070;
  --text-dim: #404040;
  --border: #1e1e1e;
  --border-subtle: #161616;
  --hover: #161616;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.06);
  --accent-soft: rgba(255, 255, 255, 0.04);
  --danger: #888888;
  --danger-glow: rgba(255, 255, 255, 0.04);

  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.1s ease;
  --transition-normal: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-glow: none;
}

[data-theme="light"] {
  --bg-outer: #f0f2f5;
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --text: #000000;
  --text-muted: #8c8c8c;
  --text-dim: #c0c0c0;
  --border: #e2e8f0;
  --border-subtle: #f0f2f5;
  --hover: #f8fafc;
  --accent: #000000;
  --accent-glow: rgba(0, 0, 0, 0.06);
  --accent-soft: rgba(0, 0, 0, 0.03);
  --danger: #666666;
  --danger-glow: rgba(0, 0, 0, 0.04);

  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-glow: none;
}

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

body {
  background-color: var(--bg-outer);
  color: var(--text);
  font-family: var(--font-sans);
  height: 100vh;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}


/* Overall Layout Frame */
.app-layout {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--bg);
  height: 100%;
  max-height: calc(100vh - 48px);
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

/* Top Grid Header */
.app-header {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.header-cell {
  padding: 12px 20px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.header-cell:last-child {
  border-right: none;
}

.logo {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

/* Search cell input */
.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-indicator {
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-right: 10px;
  font-size: 0.78rem;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
}

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

/* Dual Mode Switcher */
.mode-cell {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  gap: 12px;
}

.clickable {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  user-select: none;
}

.clickable.active {
  color: var(--text);
  font-weight: 700;
  border-bottom: 1.5px solid var(--text);
}

.clickable:hover:not(.active) {
  color: var(--text);
}

.separator {
  color: var(--border);
}

/* Inner Body Grid Grid */
.main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex-grow: 1;
  overflow: hidden;
  height: 0;
}

/* Sidebar nav */
.app-sidebar {
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#sidebar-categories-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sidebar-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  transition: color var(--transition-fast);
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  color: var(--text);
}

.sidebar-nav-item.active {
  font-weight: 700;
}

.sidebar-nav-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Dynamic progress details */
.progress-number {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.progress-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Main checklist content area */
.app-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* Lock content area vertical scrolling */
}

/* ──────────────────────────────────────────────────────────────
   DYNAMIC ITEMS GRID - World-class responsive layout
   ────────────────────────────────────────────────────────────── */

/* Vertical scrolling wrapper for category sections */
#sections-target {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

/* Custom scrollbar styling */
#sections-target::-webkit-scrollbar {
  width: 6px;
}
#sections-target::-webkit-scrollbar-track {
  background: transparent;
}
#sections-target::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0;
}
#sections-target::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hero section inside content */
.hero-section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.hero-title-prefix {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.4;
}

/* ── Category Section ── */
.category-section {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  animation: categoryFadeIn 0.4s ease both;
}

@keyframes categoryFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-section:nth-child(1) { animation-delay: 0s; }
.category-section:nth-child(2) { animation-delay: 0.06s; }
.category-section:nth-child(3) { animation-delay: 0.12s; }
.category-section:nth-child(4) { animation-delay: 0.18s; }
.category-section:nth-child(5) { animation-delay: 0.24s; }

.category-section-header {
  padding: 14px 28px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
}

.category-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-section-title::before {
  content: '—';
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.category-section-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Masonry Subcategory Grid ── */
.category-section-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  background-color: var(--bg);
  padding: 0;
}

/* ── Subcategory Card ── */
.subcategory-section {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: background-color var(--transition-normal);
  animation: subcardSlideIn 0.35s ease both;
}

@keyframes subcardSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategory-section:nth-child(1) { animation-delay: 0.05s; }
.subcategory-section:nth-child(2) { animation-delay: 0.1s; }
.subcategory-section:nth-child(3) { animation-delay: 0.15s; }
.subcategory-section:nth-child(4) { animation-delay: 0.2s; }
.subcategory-section:nth-child(5) { animation-delay: 0.25s; }
.subcategory-section:nth-child(6) { animation-delay: 0.3s; }

.subcategory-section:hover {
  background-color: var(--hover);
}

/* Scrollable container for items inside a single column */
.subcategory-rows-container {
  flex-grow: 1;
  overflow-y: auto;
}

.subcategory-section-header {
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.subcategory-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 8px;
}

/* ── Checklist Row ── */
.checklist-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 9px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  user-select: none;
  position: relative;
}

.checklist-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0px;
  background: var(--text);
  transition: width var(--transition-smooth);
}

.checklist-row:last-child {
  border-bottom: none;
}

.checklist-row:hover {
  background-color: var(--hover);
}

.checklist-row:hover::before {
  width: 3px;
}

.checklist-row.checked::before {
  width: 3px;
  background: var(--text-muted);
  opacity: 0.4;
}

.checklist-row:active {
  transform: scale(0.995);
}

/* ── Checkbox ── */
.row-checkbox {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  margin-right: 12px;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-dim);
  border-radius: 0;
  transition: all var(--transition-smooth);
  color: transparent;
  position: relative;
}

.checklist-row:hover .row-checkbox {
  border-color: var(--text-muted);
}

.checklist-row.checked .row-checkbox {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Checkmark via pseudo-element */
.checklist-row.checked .row-checkbox::after {
  content: '✓';
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
}

.row-text {
  font-size: 0.82rem;
  color: var(--text);
  transition: all var(--transition-normal);
  line-height: 1.3;
}

.checklist-row.checked .row-text {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.row-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
}

.row-badge-suggested {
  color: var(--text-muted);
  border-color: var(--border);
}

.delete-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border-radius: 0;
  cursor: pointer;
}

.checklist-row:hover .delete-item-btn {
  display: flex;
}

.delete-item-btn:hover {
  color: var(--text);
  background: var(--accent-glow);
}

/* ── CLI Custom Add form ── */
.cli-add-form {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  transition: background-color var(--transition-normal);
}

.cli-add-form:focus-within {
  background-color: var(--hover);
}

.cli-prompt {
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  user-select: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.cli-add-form:focus-within .cli-prompt {
  opacity: 1;
}

.cli-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  outline: none;
}

.cli-input::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ── Density toggle in category header ── */
.density-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 12px;
}

.density-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
  line-height: 1;
}

.density-btn:first-child {
  border-radius: 0;
}

.density-btn:last-child {
  border-radius: 0;
}

.density-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.density-btn:hover:not(.active) {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Compact density mode — tighter rows */
.category-section-body.density-compact .checklist-row {
  padding: 5px 24px;
}
.category-section-body.density-compact .row-text {
  font-size: 0.76rem;
}

/* ── Progress bar inline ── */
.inline-progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-track {
  width: 60px;
  height: 3px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--text);
  border-radius: 0;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Empty state ── */
.empty-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 12px;
  animation: fadeIn 0.4s ease;
}

.empty-search-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.empty-search-text {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer Toolbar controls */
.app-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background-color: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.footer-btn {
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  user-select: none;
}

.footer-btn:last-child {
  border-right: none;
}

.footer-btn:hover {
  color: var(--text);
  background-color: var(--hover);
}

.footer-btn.danger:hover {
  color: var(--text);
  background-color: var(--hover);
}

/* Modal styling matching Brutalist pointer.ai look */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg);
  border: 1px solid var(--text); /* Solid bold outline */
  padding: 36px;
  width: 100%;
  max-width: 480px;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 0;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text);
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-label-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.modal-label-row:hover {
  background-color: var(--hover);
  border-color: var(--text-muted);
}

.modal-label-row.selected {
  border-color: var(--text);
  background-color: var(--hover);
}

.modal-radio {
  margin-top: 3px;
  accent-color: var(--text);
}

.modal-option-info {
  display: flex;
  flex-direction: column;
}

.modal-option-hdr {
  font-weight: 700;
  font-size: 0.88rem;
}

.modal-option-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.m-btn {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.m-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.m-btn-primary {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

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

/* Toast style */
.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  border-radius: var(--radius-sm);
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE ADJUSTMENTS
   ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  body {
    padding: 0;
    height: 100vh;
  }
  .app-layout {
    height: 100%;
    max-height: 100vh;
    border: none;
    border-radius: 0;
  }
  .app-header {
    grid-template-columns: 1fr;
  }
  .header-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    height: 100%;
  }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    height: auto;
    overflow-y: visible;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .app-sidebar .sidebar-section {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .app-sidebar .sidebar-section:last-child {
    display: none; /* Hide progress number on mobile sidebar to save vertical height */
  }
  #sidebar-categories-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    width: 100%;
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar for category tabs scroll */
  }
  #sidebar-categories-nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar-nav-item {
    padding: 4px 10px;
    border: 1px solid transparent;
  }
  .sidebar-nav-item.active {
    border: 1px solid var(--text);
    border-radius: 0;
  }
  .sidebar-nav-count {
    margin-left: 6px;
  }
  .hero-section {
    padding: 16px 20px;
  }
  .category-section-header {
    padding: 12px 20px;
  }
  .category-section-body {
    grid-template-columns: 1fr;
  }
  .subcategory-section-header {
    padding: 8px 20px;
  }
  .checklist-row {
    padding: 8px 20px;
  }
  .cli-add-form {
    padding: 8px 20px;
  }
  .app-footer {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-btn {
    padding: 10px;
    border-bottom: 1px solid var(--border);
  }
  .density-toggle {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .category-section-body {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* PDF Print templates */
#print-template {
  display: none;
}

@media print {
  body {
    background-color: white !important;
    color: black !important;
    padding: 0 !important;
  }
  .app-layout, .modal-overlay, .toast {
    display: none !important;
  }
  #print-template {
    display: block !important;
  }
}

/* High-end PDF document templates */
.pdf-doc {
  font-family: var(--font-sans);
  color: #000;
  background-color: #fff;
  padding: 10px;
}

.pdf-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #000;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.pdf-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pdf-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #555;
  margin-top: 4px;
}

.pdf-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #555;
  line-height: 1.4;
}

.pdf-meta-bold {
  font-weight: 700;
  color: #000;
}

.pdf-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pdf-cat-box {
  page-break-inside: avoid;
  break-inside: avoid;
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 12px;
}

.pdf-cat-hdr {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
  margin-bottom: 8px;
}

.pdf-sub-hdr {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #666;
  margin-top: 8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdf-row {
  display: flex;
  align-items: center;
  font-size: 9.5px;
  color: #222;
}

.pdf-chk {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #555;
}

.pdf-txt {
  flex-grow: 1;
}

.pdf-row.checked .pdf-txt {
  text-decoration: line-through;
  color: #888;
}

.pdf-tag {
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  padding: 1px 3px;
  border: 0.5px solid #ccc;
  margin-left: 6px;
  color: #666;
}
