:root {
  --bg: #0f0f0f;
  --bg-raised: #1a1a1a;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --border: #333;
  --border-2: #444;
  --text: #e5e5e5;
  --text-sub: #888;
  --accent: #60a5fa;
  --success: #4ade80;
  --danger: #f87171;
  --info: #60a5fa;
  --warning: #fbbf24;
  --purple: #a78bfa;
  --pink: #f472b6;
  --orange: #fb923c;
  --teal: #2dd4bf;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* ===== HEADER ===== */
.header {
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  margin-bottom: 8px;
}

.header p {
  color: var(--text-sub);
  font-size: 14px;
}

/* ===== CONTROLS ===== */
.controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms;
}

.search-box input:focus {
  border-color: var(--accent);
}

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

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 16px;
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 36px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f0f0f;
  font-weight: 600;
}

.result-count {
  color: var(--text-sub);
  font-size: 13px;
  padding: 0 4px;
}

/* ===== GRID ===== */
.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: background 150ms;
}

.card:hover {
  background: var(--surface-2);
}

.card-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card-body {
  padding: 16px;
}

.card-category {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  font-feature-settings: "palt";
}

.card-usecase {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.card-toggle {
  width: 100%;
  height: 36px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms;
}

.card-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.card-details {
  display: none;
  padding: 0 16px 16px;
}

.card-details.open {
  display: block;
}

.detail-section {
  margin-bottom: 12px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.detail-content {
  font-size: 13px;
  line-height: 1.6;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  font-size: 13px;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-sub);
}

.detail-list.checklist li::before {
  content: "☐";
  color: var(--accent);
}

.ng-text {
  color: var(--danger);
  font-size: 13px;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-sub);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ===== PREVIEW ILLUSTRATIONS ===== */

/* Compare */
.preview-compare {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-compare .side {
  flex: 1;
  height: 70%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-compare .side-a {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.preview-compare .side-b {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.preview-compare .vs {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

.preview-compare .label {
  font-size: 12px;
  font-weight: 600;
}

.preview-compare .side-a .label { color: var(--accent); }
.preview-compare .side-b .label { color: var(--orange); }

.preview-compare .bar {
  width: 60%;
  height: 4px;
  border-radius: 2px;
  opacity: 0.5;
}

.preview-compare .side-a .bar { background: var(--accent); }
.preview-compare .side-b .bar { background: var(--orange); }

/* Before After */
.preview-ba {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.preview-ba .block {
  flex: 1;
  height: 70%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-ba .before {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.preview-ba .after {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.preview-ba .arrow {
  color: var(--text-sub);
  font-size: 18px;
  flex-shrink: 0;
}

.preview-ba .tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.preview-ba .before .tag { color: var(--danger); }
.preview-ba .after .tag { color: var(--success); }

.preview-ba .line {
  width: 50%;
  height: 3px;
  border-radius: 2px;
  opacity: 0.4;
}

.preview-ba .before .line { background: var(--danger); }
.preview-ba .after .line { background: var(--success); }

/* Story */
.preview-story {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding-bottom: 10px;
}

.preview-story .stage {
  flex: 1;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.preview-story .stage span {
  font-size: 10px;
  font-weight: 600;
}

.preview-story .s1 {
  height: 30%;
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.preview-story .s1 span { color: var(--danger); }

.preview-story .s2 {
  height: 50%;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.preview-story .s2 span { color: var(--warning); }

.preview-story .s3 {
  height: 70%;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.preview-story .s3 span { color: var(--accent); }

.preview-story .s4 {
  height: 90%;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.preview-story .s4 span { color: var(--success); }

.preview-story .arrow-up {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 24px;
  opacity: 0.3;
}

/* Causal */
.preview-causal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.preview-causal .node {
  width: 60%;
  height: 28%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.preview-causal .cause {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: var(--orange);
}

.preview-causal .effect {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
}

.preview-causal .arrow-down {
  color: var(--text-sub);
  font-size: 16px;
}

/* Steps */
.preview-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.preview-steps .step {
  flex: 1;
  height: 50%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.preview-steps .step .num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.preview-steps .step .bar {
  width: 50%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
}

.preview-steps .step-arrow {
  color: var(--text-sub);
  font-size: 12px;
  flex-shrink: 0;
}

/* Bullets */
.preview-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 70%;
  height: auto;
}

.preview-bullets .bullet {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-bullets .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.preview-bullets .line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

/* Three Elements */
.preview-three {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-three .elem {
  flex: 1;
  height: 65%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-three .e1 {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.preview-three .e2 {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.preview-three .e3 {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.preview-three .icon {
  font-size: 18px;
}

.preview-three .elem-bar {
  width: 50%;
  height: 3px;
  border-radius: 2px;
  opacity: 0.4;
}

.preview-three .e1 .icon { color: var(--accent); }
.preview-three .e1 .elem-bar { background: var(--accent); }
.preview-three .e2 .icon { color: var(--purple); }
.preview-three .e2 .elem-bar { background: var(--purple); }
.preview-three .e3 .icon { color: var(--teal); }
.preview-three .e3 .elem-bar { background: var(--teal); }

/* Pyramid */
.preview-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-pyramid .tier {
  height: 22%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.preview-pyramid .t1 {
  width: 30%;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warning);
}

.preview-pyramid .t2 {
  width: 55%;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--accent);
}

.preview-pyramid .t3 {
  width: 80%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--success);
}

/* Hierarchy */
.preview-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-hierarchy .h-node {
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.preview-hierarchy .h-root {
  width: 40%;
  height: 18%;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
}

.preview-hierarchy .h-line {
  width: 1px;
  height: 8px;
  background: var(--border-2);
}

.preview-hierarchy .h-children {
  display: flex;
  gap: 8px;
  width: 80%;
}

.preview-hierarchy .h-child {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.preview-hierarchy .h-sub-line {
  width: 1px;
  height: 6px;
  background: var(--border-2);
  margin: 0 auto;
}

.preview-hierarchy .h-grandchildren {
  display: flex;
  gap: 4px;
  width: 90%;
}

.preview-hierarchy .h-grandchild {
  flex: 1;
  height: 22px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Radial */
.preview-radial {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-radial .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  z-index: 2;
}

.preview-radial .satellite {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  z-index: 2;
}

.preview-radial .sat-line {
  position: absolute;
  background: var(--border);
  z-index: 1;
}

/* NG/OK */
.preview-ngok {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-ngok .panel {
  flex: 1;
  height: 70%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-ngok .ng-panel {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.preview-ngok .ok-panel {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.preview-ngok .mark {
  font-size: 22px;
  font-weight: 600;
}

.preview-ngok .ng-panel .mark { color: var(--danger); }
.preview-ngok .ok-panel .mark { color: var(--success); }

.preview-ngok .panel-line {
  width: 50%;
  height: 3px;
  border-radius: 2px;
  opacity: 0.4;
}

.preview-ngok .ng-panel .panel-line { background: var(--danger); }
.preview-ngok .ok-panel .panel-line { background: var(--success); }

/* Misconception */
.preview-misconception {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.preview-misconception .mis-block {
  flex: 1;
  height: 60%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-misconception .wrong {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  text-decoration: line-through;
}

.preview-misconception .right {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-misconception .wrong .m-label { color: var(--danger); font-size: 10px; font-weight: 600; }
.preview-misconception .right .m-label { color: var(--success); font-size: 10px; font-weight: 600; }

.preview-misconception .m-arrow {
  color: var(--text-sub);
  font-size: 16px;
  flex-shrink: 0;
}

/* Problem Solution */
.preview-ps {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.preview-ps .ps-block {
  flex: 1;
  height: 55%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.preview-ps .prob {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.preview-ps .cause {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.preview-ps .solve {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-ps .ps-label {
  font-size: 9px;
  font-weight: 600;
}

.preview-ps .prob .ps-label { color: var(--danger); }
.preview-ps .cause .ps-label { color: var(--warning); }
.preview-ps .solve .ps-label { color: var(--success); }

.preview-ps .ps-arrow {
  color: var(--text-sub);
  font-size: 12px;
  flex-shrink: 0;
}

/* Timeline */
.preview-timeline {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.preview-timeline .tl-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-2);
}

.preview-timeline .tl-blocks {
  display: flex;
  width: 100%;
  justify-content: space-around;
  position: relative;
  z-index: 2;
}

.preview-timeline .tl-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preview-timeline .tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-timeline .tl-label {
  font-size: 9px;
  font-weight: 600;
}

.preview-timeline .tl-past .tl-dot { background: var(--text-sub); }
.preview-timeline .tl-past .tl-label { color: var(--text-sub); }
.preview-timeline .tl-now .tl-dot { background: var(--accent); box-shadow: 0 0 8px rgba(96,165,250,0.4); }
.preview-timeline .tl-now .tl-label { color: var(--accent); }
.preview-timeline .tl-future .tl-dot { background: var(--success); }
.preview-timeline .tl-future .tl-label { color: var(--success); }

/* Improve */
.preview-improve {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-improve .imp-col {
  flex: 1;
  height: 75%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.preview-improve .imp-bad {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.preview-improve .imp-good {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-improve .imp-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-improve .imp-icon {
  font-size: 10px;
  flex-shrink: 0;
}

.preview-improve .imp-bad .imp-icon { color: var(--danger); }
.preview-improve .imp-good .imp-icon { color: var(--success); }

.preview-improve .imp-line {
  height: 3px;
  border-radius: 2px;
  opacity: 0.3;
}

.preview-improve .imp-bad .imp-line { background: var(--danger); }
.preview-improve .imp-good .imp-line { background: var(--success); }

.preview-improve .imp-arrow {
  color: var(--text-sub);
  font-size: 16px;
  flex-shrink: 0;
}

/* Levels */
.preview-levels {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding-bottom: 8px;
}

.preview-levels .lv {
  flex: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  gap: 4px;
}

.preview-levels .lv1 {
  height: 40%;
  background: rgba(136, 136, 136, 0.15);
  border: 1px solid rgba(136, 136, 136, 0.3);
}

.preview-levels .lv2 {
  height: 65%;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.preview-levels .lv3 {
  height: 90%;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.preview-levels .lv-label {
  font-size: 9px;
  font-weight: 600;
}

.preview-levels .lv1 .lv-label { color: var(--text-sub); }
.preview-levels .lv2 .lv-label { color: var(--accent); }
.preview-levels .lv3 .lv-label { color: var(--warning); }

/* Options A/B/C */
.preview-options {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-options .opt {
  flex: 1;
  height: 75%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}

.preview-options .opt.recommended {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
}

.preview-options .opt-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.preview-options .opt.recommended .opt-label {
  color: var(--accent);
}

.preview-options .opt-bar {
  width: 50%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}

.preview-options .opt.recommended .opt-bar {
  background: var(--accent);
  opacity: 0.4;
}

.preview-options .opt-badge {
  position: absolute;
  top: -8px;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

/* Pros Cons */
.preview-proscons {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-proscons .pc-col {
  flex: 1;
  height: 70%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-proscons .pros {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-proscons .cons {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.preview-proscons .pc-title {
  font-size: 10px;
  font-weight: 600;
}

.preview-proscons .pros .pc-title { color: var(--success); }
.preview-proscons .cons .pc-title { color: var(--danger); }

.preview-proscons .pc-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.preview-proscons .pros .pc-item { color: var(--success); }
.preview-proscons .cons .pc-item { color: var(--danger); }

/* Checklist */
.preview-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 65%;
}

.preview-checklist .chk-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-checklist .chk-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-checklist .chk-box.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.preview-checklist .chk-box.checked::after {
  content: "✓";
  color: var(--bg);
  font-size: 9px;
  font-weight: 600;
}

.preview-checklist .chk-line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

/* Flowchart */
.preview-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-flow .fl-start {
  width: 50px;
  height: 22px;
  border-radius: 11px;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
}

.preview-flow .fl-arrow {
  font-size: 10px;
  color: var(--text-sub);
}

.preview-flow .fl-diamond {
  width: 50px;
  height: 50px;
  transform: rotate(45deg);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-flow .fl-diamond span {
  transform: rotate(-45deg);
  font-size: 9px;
  color: var(--warning);
  font-weight: 600;
}

.preview-flow .fl-branch {
  display: flex;
  gap: 16px;
  align-items: center;
}

.preview-flow .fl-end {
  width: 40px;
  height: 20px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-sub);
}

.preview-flow .fl-label {
  font-size: 8px;
  color: var(--text-sub);
}

/* Cycle */
.preview-cycle {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-cycle .cy-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 600;
  z-index: 2;
}

.preview-cycle .cy-node {
  position: absolute;
  width: 44px;
  height: 28px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
  z-index: 2;
}

.preview-cycle .cy-arrow {
  position: absolute;
  color: var(--text-sub);
  font-size: 14px;
  z-index: 1;
}

/* Matrix */
.preview-matrix {
  position: relative;
  width: 80%;
  height: 80%;
}

.preview-matrix .mx-axis-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-2);
}

.preview-matrix .mx-axis-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-2);
}

.preview-matrix .mx-quad {
  position: absolute;
  width: 46%;
  height: 46%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
}

.preview-matrix .mx-q1 {
  top: 2%;
  right: 2%;
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.preview-matrix .mx-q2 {
  top: 2%;
  left: 2%;
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent);
}

.preview-matrix .mx-q3 {
  bottom: 2%;
  left: 2%;
  background: rgba(136, 136, 136, 0.1);
  color: var(--text-sub);
}

.preview-matrix .mx-q4 {
  bottom: 2%;
  right: 2%;
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
}

.preview-matrix .mx-label {
  position: absolute;
  font-size: 8px;
  color: var(--text-sub);
}

.preview-matrix .mx-label-top { top: -14px; left: 50%; transform: translateX(-50%); }
.preview-matrix .mx-label-right { right: -8px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }

/* Bottleneck */
.preview-bottleneck {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.preview-bottleneck .bn-block {
  flex: 1;
  height: 40%;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.preview-bottleneck .bn-block.bottleneck {
  background: rgba(248, 113, 113, 0.15);
  border: 2px solid rgba(248, 113, 113, 0.5);
  height: 25%;
  position: relative;
}

.preview-bottleneck .bn-block.bottleneck::after {
  content: "!";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.preview-bottleneck .bn-arrow {
  color: var(--text-sub);
  font-size: 10px;
  flex-shrink: 0;
}

/* Priority */
.preview-priority {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80%;
  align-items: flex-start;
}

.preview-priority .pri-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.preview-priority .pri-num {
  font-size: 12px;
  font-weight: 600;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.preview-priority .pri-bar {
  height: 16px;
  border-radius: 4px;
}

.preview-priority .p1 .pri-num { color: var(--warning); }
.preview-priority .p1 .pri-bar { background: rgba(251, 191, 36, 0.3); width: 100%; }
.preview-priority .p2 .pri-num { color: var(--accent); }
.preview-priority .p2 .pri-bar { background: rgba(96, 165, 250, 0.25); width: 75%; }
.preview-priority .p3 .pri-num { color: var(--text-sub); }
.preview-priority .p3 .pri-bar { background: rgba(136, 136, 136, 0.2); width: 50%; }
.preview-priority .p4 .pri-num { color: var(--text-sub); }
.preview-priority .p4 .pri-bar { background: rgba(136, 136, 136, 0.12); width: 30%; }

/* Decompose */
.preview-decompose {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.preview-decompose .dec-whole {
  width: 35%;
  height: 65%;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.preview-decompose .dec-arrow {
  color: var(--text-sub);
  font-size: 16px;
  flex-shrink: 0;
}

.preview-decompose .dec-parts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.preview-decompose .dec-part {
  height: 20px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ===== NEW PATTERNS (26-52) ===== */

/* Number Impact */
.preview-number-impact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.preview-number-impact .big-number {
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preview-number-impact .big-unit {
  font-size: 18px;
  color: var(--accent);
  opacity: 0.7;
}

.preview-number-impact .num-caption {
  font-size: 10px;
  color: var(--text-sub);
}

/* Percentage */
.preview-percentage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.preview-percentage .donut {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-percentage .donut-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  z-index: 2;
}

.preview-percentage .donut-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid var(--surface-2);
}

.preview-percentage .donut-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  transform: rotate(-90deg);
}

.preview-percentage .pct-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-percentage .pct-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--text-sub);
}

.preview-percentage .pct-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Ranking */
.preview-ranking {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 80%;
}

.preview-ranking .rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-ranking .rank-num {
  font-size: 14px;
  font-weight: 600;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.preview-ranking .rank-bar {
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 8px;
  font-weight: 600;
}

.preview-ranking .r1 .rank-num { color: var(--warning); }
.preview-ranking .r1 .rank-bar {
  width: 100%;
  background: rgba(251, 191, 36, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--warning);
}

.preview-ranking .r2 .rank-num { color: var(--text); opacity: 0.7; }
.preview-ranking .r2 .rank-bar {
  width: 82%;
  background: rgba(200, 200, 200, 0.12);
  border: 1px solid rgba(200, 200, 200, 0.2);
  color: var(--text-sub);
}

.preview-ranking .r3 .rank-num { color: var(--orange); opacity: 0.7; }
.preview-ranking .r3 .rank-bar {
  width: 65%;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.2);
  color: var(--orange);
}

.preview-ranking .r4 .rank-num { color: var(--text-sub); }
.preview-ranking .r4 .rank-bar {
  width: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.preview-ranking .r5 .rank-num { color: var(--text-sub); }
.preview-ranking .r5 .rank-bar {
  width: 38%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

/* Bar Chart */
.preview-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 85%;
  height: 80%;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.preview-bar-chart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preview-bar-chart .bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
}

.preview-bar-chart .bar-label {
  font-size: 8px;
  color: var(--text-sub);
}

.preview-bar-chart .b1 .bar-fill { height: 90%; background: var(--accent); opacity: 0.6; }
.preview-bar-chart .b2 .bar-fill { height: 65%; background: var(--purple); opacity: 0.6; }
.preview-bar-chart .b3 .bar-fill { height: 80%; background: var(--teal); opacity: 0.6; }
.preview-bar-chart .b4 .bar-fill { height: 45%; background: var(--orange); opacity: 0.6; }
.preview-bar-chart .b5 .bar-fill { height: 30%; background: var(--pink); opacity: 0.6; }

/* Venn */
.preview-venn {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-venn .venn-circle {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.preview-venn .venn-a {
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
}

.preview-venn .venn-b {
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
  color: var(--pink);
}

.preview-venn .venn-overlap {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: var(--warning);
  font-weight: 600;
  z-index: 3;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Correlation Map */
.preview-corr-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-corr-map .corr-node {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  z-index: 2;
}

.preview-corr-map .corr-main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(96, 165, 250, 0.2);
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  color: var(--accent);
}

.preview-corr-map .corr-sub {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-sub);
}

.preview-corr-map .corr-line {
  position: absolute;
  background: var(--border);
  z-index: 1;
  height: 1px;
  transform-origin: left center;
}

.preview-corr-map .corr-line.thick {
  height: 2px;
  background: rgba(96, 165, 250, 0.3);
}

/* Spectrum */
.preview-spectrum {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 85%;
}

.preview-spectrum .spec-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, rgba(248, 113, 113, 0.4), rgba(251, 191, 36, 0.4), rgba(74, 222, 128, 0.4));
  position: relative;
}

.preview-spectrum .spec-marker {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 20px;
  border-radius: 3px;
  background: var(--accent);
  border: 2px solid var(--bg);
  transform: translateX(-50%);
}

.preview-spectrum .spec-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.preview-spectrum .spec-label {
  font-size: 9px;
  font-weight: 600;
}

.preview-spectrum .spec-left { color: var(--danger); }
.preview-spectrum .spec-right { color: var(--success); }

.preview-spectrum .spec-tag {
  font-size: 8px;
  color: var(--accent);
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
}

/* Nested */
.preview-nested {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.preview-nested .nest-outer {
  width: 80%;
  height: 80%;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-nested .nest-mid {
  width: 65%;
  height: 70%;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-nested .nest-inner {
  width: 55%;
  height: 60%;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-nested .nest-label {
  font-size: 8px;
  font-weight: 600;
  position: absolute;
}

.preview-nested .nest-outer > .nest-label {
  top: 4px;
  left: 8px;
  color: var(--accent);
}

.preview-nested .nest-mid > .nest-label {
  top: 4px;
  left: 6px;
  color: var(--purple);
}

.preview-nested .nest-inner .nest-label {
  color: var(--warning);
  position: static;
}

/* Gap */
.preview-gap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 70%;
  height: 100%;
}

.preview-gap .gap-ideal {
  width: 100%;
  height: 30%;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
}

.preview-gap .gap-space {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 20%;
  color: var(--danger);
  position: relative;
  width: 100%;
}

.preview-gap .gap-line {
  width: 1px;
  height: 100%;
  background: var(--danger);
  opacity: 0.4;
}

.preview-gap .gap-label {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg);
  padding: 0 6px;
}

.preview-gap .gap-reality {
  width: 100%;
  height: 30%;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--danger);
}

/* Reverse */
.preview-reverse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 75%;
  height: 100%;
}

.preview-reverse .rev-old {
  width: 100%;
  height: 28%;
  border-radius: 6px;
  background: rgba(136, 136, 136, 0.08);
  border: 1px solid rgba(136, 136, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-sub);
  text-decoration: line-through;
  position: relative;
}

.preview-reverse .rev-x {
  position: absolute;
  right: 8px;
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
  text-decoration: none;
}

.preview-reverse .rev-arrow {
  font-size: 16px;
  color: var(--warning);
}

.preview-reverse .rev-new {
  width: 100%;
  height: 32%;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  border: 1.5px solid rgba(74, 222, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

/* Quote */
.preview-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 75%;
}

.preview-quote .quote-mark {
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}

.preview-quote .quote-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.preview-quote .quote-line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

.preview-quote .quote-source {
  font-size: 9px;
  color: var(--text-sub);
  margin-top: 4px;
}

.preview-quote .quote-dash {
  width: 16px;
  height: 1px;
  background: var(--border-2);
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

/* Formula */
.preview-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-formula .fm-elem {
  width: 22%;
  height: 45%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.preview-formula .fm-a {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--accent);
}

.preview-formula .fm-b {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--purple);
}

.preview-formula .fm-result {
  width: 26%;
  height: 50%;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  border: 1.5px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.preview-formula .fm-op {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-sub);
  flex-shrink: 0;
}

/* Schedule */
.preview-schedule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 80%;
}

.preview-schedule .sch-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-schedule .sch-time {
  font-size: 8px;
  color: var(--text-sub);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.preview-schedule .sch-block {
  height: 14px;
  border-radius: 3px;
  flex: 1;
}

.preview-schedule .sch-work {
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.preview-schedule .sch-break {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-schedule .sch-focus {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.preview-schedule .sch-free {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Analogy */
.preview-analogy {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-analogy .ana-block {
  width: 30%;
  height: 55%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-analogy .ana-hard {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.preview-analogy .ana-easy {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.preview-analogy .ana-icon {
  font-size: 18px;
}

.preview-analogy .ana-text {
  font-size: 9px;
  font-weight: 600;
}

.preview-analogy .ana-hard .ana-text { color: var(--purple); }
.preview-analogy .ana-easy .ana-text { color: var(--success); }

.preview-analogy .ana-eq {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-sub);
}

/* Q&A */
.preview-qa {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 75%;
}

.preview-qa .qa-pair {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-qa .qa-q {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(96, 165, 250, 0.08);
  border-radius: 4px;
}

.preview-qa .qa-a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 4px;
}

.preview-qa .qa-badge {
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.preview-qa .qa-q .qa-badge { color: var(--accent); }
.preview-qa .qa-a .qa-badge { color: var(--success); }

.preview-qa .qa-line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

/* Diagnosis / Type Classification */
.preview-diagnosis {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 0 4px;
}

.preview-diagnosis .diag-type {
  flex: 1;
  height: 75%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-diagnosis .diag-icon {
  font-size: 18px;
}

.preview-diagnosis .diag-name {
  font-size: 9px;
  font-weight: 600;
}

.preview-diagnosis .diag-check {
  font-size: 7px;
  opacity: 0.7;
}

.preview-diagnosis .dt1 {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.preview-diagnosis .dt1 .diag-icon,
.preview-diagnosis .dt1 .diag-name { color: var(--accent); }
.preview-diagnosis .dt1 .diag-check { color: var(--accent); }

.preview-diagnosis .dt2 {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.preview-diagnosis .dt2 .diag-icon,
.preview-diagnosis .dt2 .diag-name { color: var(--success); }
.preview-diagnosis .dt2 .diag-check { color: var(--success); }

.preview-diagnosis .dt3 {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.preview-diagnosis .dt3 .diag-icon,
.preview-diagnosis .dt3 .diag-name { color: var(--warning); }
.preview-diagnosis .dt3 .diag-check { color: var(--warning); }

/* Zoom In */
.preview-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.preview-zoom .zoom-whole {
  width: 45%;
  height: 75%;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.preview-zoom .zoom-row {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.preview-zoom .zoom-target {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.preview-zoom .zoom-line {
  width: 20px;
  height: 0;
  border-top: 1px dashed var(--accent);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 10px;
}

.preview-zoom .zoom-detail {
  width: 38%;
  height: 55%;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.08);
  border: 2px solid rgba(96, 165, 250, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
}

.preview-zoom .zoom-detail-line {
  width: 70%;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.3;
}

.preview-zoom .zoom-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--accent);
}

/* Progress */
.preview-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 80%;
}

.preview-progress .prog-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  font-weight: 600;
}

.preview-progress .prog-current { color: var(--accent); }
.preview-progress .prog-goal { color: var(--text-sub); }

.preview-progress .prog-track {
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.preview-progress .prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 7px;
  background: var(--accent);
  opacity: 0.6;
}

.preview-progress .prog-marker {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 26px;
  background: var(--accent);
  border-radius: 2px;
}

.preview-progress .prog-pct {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Scale Comparison */
.preview-scale {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding-bottom: 12px;
}

.preview-scale .scale-box {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.preview-scale .scale-big {
  width: 120px;
  height: 100px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.preview-scale .scale-small {
  width: 44px;
  height: 38px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.preview-scale .scale-label {
  font-size: 9px;
  font-weight: 600;
}

.preview-scale .scale-big .scale-label { color: var(--danger); }
.preview-scale .scale-small .scale-label { color: var(--accent); }

.preview-scale .scale-num {
  font-size: 14px;
  font-weight: 600;
}

.preview-scale .scale-big .scale-num { color: var(--danger); }
.preview-scale .scale-small .scale-num { color: var(--accent); }

/* Map / Layout */
.preview-map {
  position: relative;
  width: 85%;
  height: 80%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.preview-map .map-item {
  position: absolute;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
}

.preview-map .map-a {
  top: 10%;
  left: 8%;
  width: 35%;
  height: 35%;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
}

.preview-map .map-b {
  top: 10%;
  right: 8%;
  width: 40%;
  height: 25%;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--purple);
}

.preview-map .map-c {
  bottom: 10%;
  left: 15%;
  width: 30%;
  height: 30%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: var(--success);
}

.preview-map .map-d {
  bottom: 12%;
  right: 10%;
  width: 28%;
  height: 22%;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--warning);
}

/* Stack / Layers */
.preview-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 65%;
  height: 85%;
}

.preview-stack .stack-layer {
  width: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
}

.preview-stack .sl5 {
  height: 16%;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
  color: var(--pink);
}

.preview-stack .sl4 {
  height: 18%;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--warning);
}

.preview-stack .sl3 {
  height: 18%;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--teal);
}

.preview-stack .sl2 {
  height: 20%;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--purple);
}

.preview-stack .sl1 {
  height: 22%;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--accent);
}

/* Definition */
.preview-definition {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 75%;
}

.preview-definition .def-term {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.preview-definition .def-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-definition .def-line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

.preview-definition .def-example {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.06);
  border-left: 3px solid rgba(74, 222, 128, 0.3);
}

.preview-definition .def-ex-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 2px;
}

.preview-definition .def-ex-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(74, 222, 128, 0.15);
}

/* Selection Guide */
.preview-sel-guide {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 85%;
}

.preview-sel-guide .sg-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-sel-guide .sg-condition {
  flex: 1;
  height: 22px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--warning);
}

.preview-sel-guide .sg-arrow {
  font-size: 10px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.preview-sel-guide .sg-recommend {
  flex: 1;
  height: 22px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--accent);
}

.preview-sel-guide .sg-header {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.preview-sel-guide .sg-h {
  flex: 1;
  font-size: 8px;
  color: var(--text-sub);
  text-align: center;
}

/* Chronicle / Timeline */
.preview-chronicle {
  position: relative;
  width: 90%;
  height: 70%;
}

.preview-chronicle .chr-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-2);
}

.preview-chronicle .chr-events {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  height: 100%;
  align-items: center;
}

.preview-chronicle .chr-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preview-chronicle .chr-event:nth-child(even) {
  flex-direction: column-reverse;
}

.preview-chronicle .chr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.preview-chronicle .chr-year {
  font-size: 8px;
  font-weight: 600;
  color: var(--accent);
}

.preview-chronicle .chr-desc {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

/* Bidirectional */
.preview-bidir {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.preview-bidir .bidir-node {
  width: 28%;
  height: 50%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.preview-bidir .bidir-a {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent);
}

.preview-bidir .bidir-b {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.preview-bidir .bidir-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.preview-bidir .bidir-arr {
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-bidir .bidir-arr-r {
  color: var(--accent);
}

.preview-bidir .bidir-arr-l {
  color: var(--success);
}

.preview-bidir .bidir-arr-label {
  font-size: 7px;
  color: var(--text-sub);
}

/* Summary Card */
.preview-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 75%;
}

.preview-summary .sum-conclusion {
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.preview-summary .sum-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.preview-summary .sum-point {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-summary .sum-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-sub);
  width: 14px;
  flex-shrink: 0;
}

.preview-summary .sum-line {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}

.preview-summary .sum-cta {
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 9px;
  font-weight: 600;
  color: var(--success);
  text-align: center;
}

/* Persona Comparison */
.preview-persona {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.preview-persona .persona-side {
  flex: 1;
  height: 80%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.preview-persona .persona-good {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.preview-persona .persona-bad {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.preview-persona .persona-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.preview-persona .persona-good .persona-avatar {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.preview-persona .persona-bad .persona-avatar {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.preview-persona .persona-title {
  font-size: 9px;
  font-weight: 600;
}

.preview-persona .persona-good .persona-title { color: var(--success); }
.preview-persona .persona-bad .persona-title { color: var(--danger); }

.preview-persona .persona-traits {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.preview-persona .persona-trait {
  height: 3px;
  border-radius: 2px;
  opacity: 0.4;
}

.preview-persona .persona-good .persona-trait { background: var(--success); }
.preview-persona .persona-bad .persona-trait { background: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .header {
    padding: 32px 16px 24px;
  }

  .header h1 {
    font-size: 22px;
  }

  .controls {
    padding: 16px 16px 0;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
