/**
 * AI & Agentic Threat Model Stylesheet (All Frameworks 2026 Edition)
 * Inspired by KubeDaily Design System & Draw.io Corporate Reference Architecture
 */

/* Container & Sections */
.threat-model-section {
  width: 100%;
  background: #070d18;
  color: #EDF5FC;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 3rem 1.25rem 6rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.tm-container {
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.tm-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tm-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tm-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(39, 197, 217, 0.12);
  border: 1px solid rgba(39, 197, 217, 0.35);
  color: #27C5D9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
}

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

@keyframes tmPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px #27C5D9); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.tm-edition-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #A8BED0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 9999px;
}

.tm-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #EDF5FC;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto 1.25rem;
  max-width: 1100px;
}

.tm-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #A8BED0;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.tm-subtitle strong {
  color: #EDF5FC;
}

.tm-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tm-btn-primary, .tm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tm-btn-primary {
  background: linear-gradient(135deg, #27C5D9 0%, #1e90ff 100%);
  color: #070d18;
  border: none;
  box-shadow: 0 4px 14px rgba(39, 197, 217, 0.35);
}

.tm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 197, 217, 0.5);
}

.tm-btn-secondary {
  background: #142236;
  color: #EDF5FC;
  border: 1px solid #35516C;
}

.tm-btn-secondary:hover {
  background: #1B2C43;
  border-color: #27C5D9;
  transform: translateY(-2px);
}

/* Multi-Sheet Tab Navigation */
.tm-sheet-tabs-container {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.tm-sheet-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: #35516C transparent;
}

.tm-sheet-tabs-scroll::-webkit-scrollbar {
  height: 6px;
}

.tm-sheet-tabs-scroll::-webkit-scrollbar-thumb {
  background: #35516C;
  border-radius: 4px;
}

.tm-sheet-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #101c2c;
  border: 1px solid #233950;
  color: #A8BED0;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tm-sheet-tab:hover {
  background: #16263b;
  border-color: #3d5e82;
  color: #EDF5FC;
}

.tm-sheet-tab.active {
  background: #1B2C43;
  border-color: #27C5D9;
  color: #EDF5FC;
  box-shadow: 0 0 14px rgba(39, 197, 217, 0.25);
}

.sheet-tab-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(39, 197, 217, 0.15);
  color: #27C5D9;
}

.tm-sheet-tab.active .sheet-tab-num {
  background: #27C5D9;
  color: #0B1220;
}

/* Viewport & Canvas Card */
.tm-viewport-card {
  position: relative;
  background: #0B1220;
  border: 1px solid #233950;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 3.5rem;
}

/* Toolbar */
.tm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #101C2D;
  border-bottom: 1px solid #233950;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-toolbar-left, .tm-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-current-sheet-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #27C5D9;
  letter-spacing: 0.02em;
}

.tm-filter-pills {
  display: flex;
  gap: 6px;
}

.tm-pill {
  background: #152438;
  border: 1px solid #28415c;
  color: #A8BED0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-pill:hover {
  background: #1C314C;
  color: #EDF5FC;
}

.tm-pill.active {
  background: rgba(39, 197, 217, 0.18);
  border-color: #27C5D9;
  color: #27C5D9;
  font-weight: 700;
}

.tm-depth-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tm-control-label {
  font-size: 0.75rem;
  color: #7995AF;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 4px;
}

.tm-depth-btn {
  background: #152438;
  border: 1px solid #28415c;
  color: #A8BED0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.tm-depth-btn.active {
  background: #4AD49E;
  color: #070d18;
  border-color: #4AD49E;
}

.tm-zoom-controls {
  display: flex;
  gap: 4px;
}

.tm-btn-icon {
  background: #152438;
  border: 1px solid #28415c;
  color: #A8BED0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-btn-icon:hover {
  background: #1C314C;
  color: #EDF5FC;
  border-color: #3d5e82;
}

/* Canvas Area */
.tm-canvas-wrapper {
  position: relative;
  height: 780px;
  background: #0B1220;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.tm-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  transition: transform 0.08s ease-out;
}

#diagramSvgTarget {
  width: 2000px;
  height: 1430px;
}

#diagramSvgTarget svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* SVG Interactive Nodes */
.interactive-node {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.interactive-node:hover rect {
  filter: drop-shadow(0 0 12px #27C5D9);
}

.node-active rect {
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 16px #4AD49E) !important;
}

.flow-edge {
  transition: stroke-width 0.2s ease, stroke-opacity 0.2s ease, filter 0.2s ease;
}

/* Floating Legend */
.tm-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(16, 28, 45, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #233950;
  border-radius: 12px;
  padding: 14px 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tm-legend-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7995AF;
  margin-bottom: 2px;
}

.tm-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #EDF5FC;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tm-legend-item:hover {
  transform: translateX(4px);
}

.tm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.tm-hint-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 28, 45, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(39, 197, 217, 0.3);
  color: #A8BED0;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 5;
}

/* Slide-Over Inspector Drawer */
.tm-drawer {
  position: absolute;
  top: 0;
  right: -580px;
  width: 560px;
  height: 100%;
  background: #0E1826;
  border-left: 1px solid #28415c;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.65);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-drawer.open {
  right: 0;
}

.tm-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  background: #142236;
  border-bottom: 1px solid #28415c;
}

.tm-drawer-title-group {
  flex: 1;
  padding-right: 14px;
}

.tm-drawer-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tm-badge-tb, .tm-badge-type, .tm-badge-sev {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.tm-badge-tb {
  background: rgba(39, 197, 217, 0.15);
  color: #27C5D9;
  border-color: rgba(39, 197, 217, 0.35);
}

.tm-badge-type {
  background: rgba(255, 255, 255, 0.08);
  color: #A8BED0;
}

.tm-badge-sev {
  background: rgba(254, 101, 119, 0.18);
  color: #FE6577;
  border-color: rgba(254, 101, 119, 0.35);
}

.tm-drawer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #EDF5FC;
  margin: 0;
  line-height: 1.25;
}

.tm-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #28415c;
  color: #A8BED0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-drawer-close:hover {
  background: #FE6577;
  color: #0B1220;
  border-color: #FE6577;
}

/* Drawer Tabs */
.tm-drawer-tabs {
  display: flex;
  background: #101c2d;
  border-bottom: 1px solid #28415c;
  overflow-x: auto;
}

.tm-dtab {
  flex: 1;
  padding: 12px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #7995AF;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tm-dtab:hover {
  color: #EDF5FC;
}

.tm-dtab.active {
  color: #27C5D9;
  border-bottom-color: #27C5D9;
  background: rgba(39, 197, 217, 0.06);
}

.tm-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Drawer Panels & Cards */
.drawer-summary-card {
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.drawer-summary-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #27C5D9;
  margin: 0 0 8px;
}

.drawer-summary-card p {
  font-size: 0.9rem;
  color: #A8BED0;
  line-height: 1.55;
  margin: 0;
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.meta-box {
  background: #101c2d;
  border: 1px solid #233950;
  border-radius: 8px;
  padding: 10px 12px;
}

.meta-lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #7995AF;
  font-weight: 700;
  margin-bottom: 4px;
}

.meta-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #EDF5FC;
}

.drawer-section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7995AF;
  font-weight: 800;
  margin: 22px 0 10px;
}

.drawer-flow-box, .drawer-mitigation-box {
  background: #101C2D;
  border: 1px solid #233950;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #EDF5FC;
}

.drawer-flow-box code {
  color: #4AD49E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.drawer-invariants-list {
  padding-left: 20px;
  margin: 0;
  color: #A8BED0;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.drawer-threat-card {
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-threat-card:hover {
  border-color: #27C5D9;
  transform: translateY(-2px);
}

.threat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.threat-id-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(39, 197, 217, 0.15);
  color: #27C5D9;
  padding: 2px 7px;
  border-radius: 4px;
}

.threat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-critical {
  background: rgba(254, 101, 119, 0.2);
  color: #FE6577;
  border: 1px solid rgba(254, 101, 119, 0.4);
}

.badge-high {
  background: rgba(239, 200, 92, 0.2);
  color: #EFC85C;
  border: 1px solid rgba(239, 200, 92, 0.4);
}

.badge-medium {
  background: rgba(74, 212, 158, 0.2);
  color: #4AD49E;
  border: 1px solid rgba(74, 212, 158, 0.4);
}

.drawer-threat-card h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #EDF5FC;
  margin: 0 0 6px;
}

.drawer-threat-card p {
  font-size: 0.84rem;
  color: #A8BED0;
  line-height: 1.45;
  margin: 0 0 8px;
}

.threat-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stride-tag, .family-tag {
  font-size: 0.72rem;
  color: #7995AF;
  background: #101c2d;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-code-block {
  background: #070d18;
  border: 1px solid #233950;
  border-radius: 8px;
  padding: 14px;
  color: #4AD49E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
}

.drawer-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-llm { background: rgba(39, 197, 217, 0.15); color: #27C5D9; }
.tag-agentic { background: rgba(184, 163, 255, 0.15); color: #B8A3FF; }
.tag-mcp { background: rgba(254, 101, 119, 0.15); color: #FE6577; }

/* 30-Threat Register Section */
.tm-section-block {
  margin-bottom: 4rem;
  background: #0E1826;
  border: 1px solid #233950;
  border-radius: 18px;
  padding: 2.25rem 2.25rem 3rem;
}

.tm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 16px;
}

.tm-subhead {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #27C5D9;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tm-sec-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #EDF5FC;
  margin: 0 0 6px;
}

.tm-sec-desc {
  font-size: 0.95rem;
  color: #A8BED0;
  margin: 0;
  max-width: 800px;
}

.tm-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 320px;
}

.tm-search-box input {
  background: transparent;
  border: none;
  color: #EDF5FC;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.tm-search-box svg {
  color: #7995AF;
}

.tm-table-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tm-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tm-filter-lbl {
  font-size: 0.78rem;
  color: #7995AF;
  font-weight: 700;
  text-transform: uppercase;
}

.tm-filter-chip {
  background: #142236;
  border: 1px solid #28415c;
  color: #A8BED0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-filter-chip.active {
  background: #27C5D9;
  color: #070d18;
  border-color: #27C5D9;
  font-weight: 700;
}

.chip-critical.active { background: #FE6577; border-color: #FE6577; }
.chip-high.active { background: #EFC85C; border-color: #EFC85C; }
.chip-medium.active { background: #4AD49E; border-color: #4AD49E; }

/* Table */
.tm-table-container {
  overflow-x: auto;
  border: 1px solid #233950;
  border-radius: 12px;
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.tm-table th {
  background: #101C2D;
  color: #7995AF;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid #233950;
}

.tm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1a2c42;
  color: #EDF5FC;
}

.threat-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.threat-row:hover {
  background: #142236;
}

.threat-desc-cell {
  color: #A8BED0;
  margin-bottom: 4px;
  line-height: 1.4;
}

.threat-mit-cell {
  font-size: 0.8rem;
  color: #4AD49E;
}

.tm-btn-inspect {
  background: #142236;
  border: 1px solid #28415c;
  color: #27C5D9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.tm-btn-inspect:hover {
  background: #27C5D9;
  color: #070d18;
}

/* 6 Attack Stories Grid */
.tm-attack-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 18px;
}

.tm-story-card {
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tm-story-card:hover {
  transform: translateY(-2px);
  border-color: #FE6577;
}

.tm-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid #233950;
  padding-bottom: 10px;
}

.tm-story-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #EDF5FC;
  margin: 0;
}

.story-threats {
  display: flex;
  gap: 6px;
}

.story-step-item {
  margin-bottom: 10px;
}

.story-step-lbl {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.lbl-entry { background: rgba(239, 200, 92, 0.15); color: #EFC85C; }
.lbl-fail { background: rgba(254, 101, 119, 0.15); color: #FE6577; }
.lbl-impact { background: rgba(254, 101, 119, 0.25); color: #FE6577; font-weight: 900; }
.lbl-block { background: rgba(74, 212, 158, 0.15); color: #4AD49E; }

.story-step-desc {
  font-size: 0.86rem;
  color: #A8BED0;
  line-height: 1.45;
}

.highlight-block {
  color: #4AD49E;
  font-weight: 600;
}

/* 10 Non-Negotiable Controls Grid */
.tm-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tm-control-card {
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tm-control-card:hover {
  transform: translateY(-2px);
  border-color: #4AD49E;
}

.tm-control-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #4AD49E;
  margin-bottom: 8px;
}

.tm-control-title {
  font-size: 1rem;
  font-weight: 800;
  color: #EDF5FC;
  margin: 0 0 8px;
}

.tm-control-summary {
  font-size: 0.85rem;
  color: #A8BED0;
  line-height: 1.5;
  margin: 0 0 12px;
}

.tm-control-impl {
  font-size: 0.8rem;
  color: #27C5D9;
  line-height: 1.45;
  border-top: 1px solid #233950;
  padding-top: 10px;
}

.impl-tag {
  font-weight: 700;
  color: #EDF5FC;
}

/* 222 CrowdStrike Techniques */
.tm-techniques-container {
  border: 1px solid #233950;
  border-radius: 12px;
  background: #101c2d;
  padding: 18px;
}

.tm-tech-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #A8BED0;
}

.tm-tech-family-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tm-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
}

.tm-tech-card {
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 10px;
  padding: 14px;
}

.tm-tech-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tech-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #EFC85C;
}

.tech-tb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #27C5D9;
}

.tech-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #EDF5FC;
  margin: 0 0 6px;
}

.tech-path {
  font-size: 0.76rem;
  color: #7995AF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.tech-idea {
  font-size: 0.82rem;
  color: #A8BED0;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tech-mappings {
  display: flex;
  gap: 6px;
}

.badge-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: #101c2d;
  color: #A8BED0;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Frameworks Grid */
.tm-frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.tm-framework-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #142236;
  border: 1px solid #28415c;
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tm-framework-card:hover {
  border-color: #27C5D9;
  background: #1B2C43;
  transform: translateY(-2px);
}

.tm-framework-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #EDF5FC;
  margin-bottom: 2px;
}

.tm-framework-url {
  font-size: 0.75rem;
  color: #7995AF;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-framework-arrow {
  color: #27C5D9;
}

/* Responsive */
@media (max-width: 1024px) {
  .tm-drawer {
    width: 100%;
    right: -100%;
  }
  .tm-canvas-wrapper {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .tm-title {
    font-size: 2rem;
  }
  .tm-canvas-wrapper {
    height: 500px;
  }
  .tm-search-box {
    min-width: 100%;
  }
}
