@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f4f4f5;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --violet: #4f46e5;
  --violet-soft: #eef2ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 2px 6px rgba(9, 9, 11, 0.05), 0 1px 2px rgba(9, 9, 11, 0.03);
  --shadow-md: 0 10px 24px -6px rgba(9, 9, 11, 0.08), 0 4px 10px -4px rgba(9, 9, 11, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(9, 9, 11, 0.18);

  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sticky Sleek Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.brand-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 58px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 890;
  padding: 18px 20px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--surface-alt);
}

/* ---------- Compact Hero (~260px) with Subtle Dot-Grid Backdrop ---------- */
.hero {
  position: relative;
  padding: 28px 0 24px;
  background-color: var(--surface);
  background-image: radial-gradient(#d4d4d8 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.94) 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-top {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 680px;
}

/* Compact 1-Row Topic Matcher Bar */
.picker-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.picker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

.picker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.pk-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
}

.pk-control span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.pk-control select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  padding: 1px 2px;
}

.picker-rec-inline {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.picker-rec-text {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12.5px;
}

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

.picker-rec-dir {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.picker-rec-topic {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-rec-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pk-toggle-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pk-toggle-btn:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.picker-roles-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 14px;
}

.picker-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}

.picker-role-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-2);
}

.picker-role-chip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- Shared Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-blue-solid {
  background: var(--accent);
  color: #fff;
}

.btn-blue-solid:hover {
  background: var(--accent-dark);
}

.btn-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #bfdbfe;
}

.btn-accent:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-emerald {
  background: var(--emerald);
  color: #fff;
}

.btn-emerald:hover {
  background: #047857;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-icon {
  padding: 6px 9px;
  font-size: 12.5px;
  border-radius: 7px;
  min-width: 32px;
}

/* ---------- Main Content Sections ---------- */
.portal-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.portal-section.alt-bg {
  background: var(--surface);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.eyebrow-blue { background: var(--accent-soft); color: var(--accent-dark); }
.eyebrow-violet { background: var(--violet-soft); color: var(--violet); }
.eyebrow-emerald { background: var(--emerald-soft); color: var(--emerald); }
.eyebrow-amber { background: var(--amber-soft); color: var(--amber); }
.eyebrow-slate { background: var(--surface-alt); color: var(--ink-2); }

.section-title {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
}

.inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tool-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

.alt-bg .tool-tag {
  background: var(--bg);
}

/* ---------- Superdesign / WebsitePrompts Gallery Cards ---------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: left;
  cursor: pointer;
  position: relative;
}

.preview-chrome {
  height: 24px;
  padding: 0 10px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chrome-dots {
  display: flex;
  gap: 4px;
}

.chrome-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}

.chrome-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f5;
}

.preview-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #ffffff;
}

.preview-hover-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(9, 9, 11, 0.88);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.preview-trigger:hover .preview-hover-badge {
  opacity: 1;
  transform: translateY(0);
}

.demo-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

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

.demo-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mini-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--ink-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.mini-pill-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #dbeafe;
}

.palette-swatches {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(9, 9, 11, 0.18);
  display: inline-block;
}

.demo-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.demo-short-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-footer .btn-copy-main {
  flex: 1;
}

.demo-footer .btn-inspect-main {
  flex: 1.1;
}

/* ---------- TypeUI.sh-Style Prompt Kit Cards (Section 5) ---------- */
.formula-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.p-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
}

.ft-role { background: #dbeafe; color: #1e40af; }
.ft-context { background: #ede9fe; color: #5b21b6; }
.ft-task { background: #dcfce7; color: #166534; }
.ft-format { background: #fef3c7; color: #92400e; }
.ft-constraints { background: #ffe4e6; color: #9f1239; }

.customizer-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.customizer-fields {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.75fr auto;
  gap: 10px;
  align-items: end;
}

.c-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.c-field input, .c-field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.c-field input:focus, .c-field select:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.studio-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Miniature 16:10 Thumbnails for Non-Iframe Prompt Cards */
.prompt-thumb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f5;
  padding: 10px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.th-wrap {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  font-size: 10px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.th-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-items: stretch;
}

.th-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-col-win {
  background: var(--accent-soft);
  border-color: #93c5fd;
}

.th-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.th-tag.win { color: var(--accent-dark); }
.th-col strong { font-size: 10.5px; line-height: 1.2; }
.th-line { height: 4px; background: var(--border); border-radius: 3px; }
.th-line.w70 { width: 70%; }
.th-line.w80 { width: 80%; }
.th-line.w60 { width: 60%; }
.th-chip {
  margin-top: auto;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  width: fit-content;
}
.th-chip.warn { background: var(--amber-soft); color: #b45309; border-color: #fde68a; }
.th-chip.ok { background: var(--emerald-soft); color: var(--emerald); border-color: #a7f3d0; }

/* Kanban thumb */
.th-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: var(--bg);
}

.th-kcol {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-kcol.done { background: #f0fdf4; border-color: #bbf7d0; }

.th-khead {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.th-kcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
}

.th-kcard i {
  width: 5px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-v { background: #7c3aed; }
.dot-a { background: #d97706; }
.dot-b { background: #2563eb; }
.dot-g { background: #059669; }

/* Form thumb */
.th-form-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.th-form-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.th-q {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
}

.th-q em {
  font-style: normal;
  font-size: 8.5px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

.th-likert {
  display: flex;
  gap: 3px;
}

.th-likert i {
  font-style: normal;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 8.5px;
}

.th-likert i.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Sheet Clean thumb */
.th-fx {
  font-family: var(--font-mono);
  font-size: 8.5px;
  background: #09090b;
  color: #86efac;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.th-box {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 8.5px;
}

.th-box.bad { background: #fff5f6; border-color: #fecdd3; }
.th-box.good { background: #f0fdf4; border-color: #bbf7d0; }
.th-box b { font-size: 9px; }
.th-box .dup { color: var(--rose); font-weight: 700; }
.th-box .ok { color: var(--emerald); font-weight: 700; }

.th-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.th-bars i {
  display: block;
  height: 4px;
  width: 90%;
  border-radius: 4px;
  background: var(--accent);
}

/* Canva thumb */
.th-canva {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 7px;
}

.th-poster {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.th-poster .p-head {
  background: var(--ink);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 5px;
  text-align: center;
}

.th-poster .p-mid {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.th-poster .p-mid b { font-size: 16px; color: var(--accent); line-height: 1.1; }
.th-poster .p-mid span { font-size: 8.5px; color: var(--muted); }

.th-poster .p-foot {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 8px;
  font-weight: 700;
  padding: 4px;
  text-align: center;
}

.th-swatches {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.th-swatches div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.th-swatches i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.th-swatches span {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 8.5px;
}

/* CapCut thumb */
.th-tl {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  font-size: 8.5px;
}

.th-tl span {
  padding: 4px 5px;
  white-space: nowrap;
}

.th-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.th-beats div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-beats b { font-size: 9.5px; color: var(--accent); }
.th-beats span { font-size: 9px; color: var(--ink-2); }

.th-track {
  background: #fef08a;
  color: #713f12;
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

/* Debug thumb */
.th-debug {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.th-phone {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background: var(--bg);
}

.th-phone.bad b { color: var(--rose); font-size: 9.5px; }
.th-phone.good b { color: var(--emerald); font-size: 9.5px; }

.th-overflow {
  background: var(--rose-soft);
  color: var(--rose);
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 6px;
  border-radius: 4px;
  width: 140%;
}

.th-fit {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

/* Chat thumb */
.th-chat-bar {
  background: var(--ink);
  color: #fff;
  padding: 4px 7px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
}

.th-chat-bar em { font-style: normal; color: #86efac; }

.th-bbl {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 9px;
  max-width: 86%;
}

.th-bbl.bot { background: var(--bg); border: 1px solid var(--border); align-self: flex-start; }
.th-bbl.usr { background: var(--accent); color: #fff; align-self: flex-end; }

/* Risk Matrix thumb */
.th-rrow {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 9px;
}

.th-rrow span:first-child {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.r-hi { background: var(--rose-soft); color: var(--rose); }
.r-md { background: var(--amber-soft); color: #b45309; }
.r-ok { background: var(--emerald-soft); color: var(--emerald); }

.th-disc {
  border-left: 3px solid var(--emerald);
  background: var(--emerald-soft);
  color: #065f46;
  padding: 4px 6px;
  border-radius: 0 4px 4px 0;
  font-size: 8.5px;
  font-weight: 700;
}

/* Slides thumb */
.th-sgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}

.th-sgrid div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.th-sgrid span { font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); }
.th-sgrid b { font-size: 8.5px; }
.th-sgrid div.live { background: var(--accent-soft); border-color: #93c5fd; }
.th-sgrid div.live span { color: var(--accent-dark); }

.th-stotal {
  background: var(--surface-alt);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Q&A thumb */
.th-qaitem {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
}

.th-qaitem b {
  font-size: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 1px 4px;
  border-radius: 3px;
}

.th-qaans {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 8.5px;
}

/* ---------- Showcase Section ---------- */
.showcase-toolbar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 3px;
}

.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.search-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.input-control, .select-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control:focus, .select-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box {
  flex: 1;
  min-width: 210px;
}

.showcase-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--ink-2);
  border: 1px solid var(--border);
}

.source-badge.live {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: #a7f3d0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  background: var(--surface);
}

.sc-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-cohort { background: var(--ink); color: #fff; }
.badge-dir { background: var(--accent-soft); color: var(--accent-dark); }
.badge-award { background: var(--amber-soft); color: #b45309; }
.badge-sample { background: var(--surface); color: var(--muted); border: 1px dashed var(--border-strong); }

.sc-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.sc-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.sc-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-links {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-links .btn {
  font-size: 11.5px;
  padding: 5px 9px;
}

/* ---------- Superdesign-Style Design Inspector Modal (#inspectorModal) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.58);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

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

.inspector-dialog {
  max-width: 1120px;
  height: min(90vh, 780px);
}

.insp-header {
  padding: 13px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.insp-header-left {
  min-width: 0;
}

.insp-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.insp-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insp-header p {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.insp-close {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.insp-close:hover {
  background: var(--ink);
  color: #fff;
}

.insp-body {
  display: grid;
  grid-template-columns: 55% 45%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.insp-left {
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.insp-toolbar {
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.insp-viewport-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}

.vp-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.vp-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.insp-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.insp-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sw-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.sw-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.insp-stage-wrap {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.insp-desktop-frame {
  width: 100%;
  height: 100%;
  min-height: 460px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.insp-desktop-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 820px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: auto;
  background: #fff;
}

.insp-mobile-frame {
  width: 390px;
  max-width: 100%;
  height: 100%;
  min-height: 520px;
  background: #ffffff;
  border: 6px solid #18181b;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.insp-mobile-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
  background: #fff;
}

.insp-mockup-frame {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.insp-mockup-frame.is-mobile {
  max-width: 390px;
  border: 5px solid #18181b;
  border-radius: 22px;
}

.insp-mockup-frame.is-mobile .mk-grid-3,
.insp-mockup-frame.is-mobile .mk-kanban,
.insp-mockup-frame.is-mobile .mk-form-list,
.insp-mockup-frame.is-mobile .mk-sheet-grid,
.insp-mockup-frame.is-mobile .mk-canva-layout,
.insp-mockup-frame.is-mobile .mk-beats,
.insp-mockup-frame.is-mobile .mk-debug-grid,
.insp-mockup-frame.is-mobile .mk-slides-strip {
  grid-template-columns: 1fr;
}

.insp-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 16px;
  overflow-y: auto;
  min-height: 0;
  background: var(--surface);
}

.insp-spec-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spec-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.spec-hint {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.spec-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.spec-swatch-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  transition: border-color 0.14s ease;
}

.spec-swatch-btn:hover {
  border-color: var(--accent);
}

.spec-swatch-btn i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(9, 9, 11, 0.15);
  flex-shrink: 0;
}

.spec-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-meta-pill {
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--ink-2);
}

.spec-meta-pill strong {
  color: var(--ink);
}

.spec-features {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insp-customizer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insp-customizer label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.insp-prompt-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.insp-copy-sticky {
  margin-top: auto;
  padding-top: 6px;
}

.insp-copy-main {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
}

/* ---------- Prompt Breakdown & Code Preview ---------- */
.prompt-parts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-row {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 9px;
  line-height: 1.45;
}

.p-row .p-tag {
  margin-right: 5px;
}

.var-filled {
  background: #fef08a;
  color: #854d0e;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

.prompt-code-preview {
  background: #09090b;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
  margin: 0;
}

/* ---------- Rich Demo Mockups inside Inspector ---------- */
.mk-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.mk-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.mk-pill-blue { background: var(--accent-soft); color: var(--accent-dark); }
.mk-pill-ok { background: var(--emerald-soft); color: var(--emerald); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.mk-pill-warn { background: var(--amber-soft); color: #b45309; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.mk-pill-err { background: var(--rose-soft); color: var(--rose); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

.mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mk-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mk-card-highlight {
  background: #f8faff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.mk-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.mk-tag { font-size: 10px; font-weight: 700; color: var(--muted); }
.mk-tag-win { color: var(--accent-dark); }
.mk-score { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.mk-score-win { color: var(--accent); }
.mk-card h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.mk-card p { margin: 0; font-size: 11.5px; color: var(--muted); }
.mk-meta-row { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-badge-soft { font-size: 10px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.mk-badge-win { font-size: 10px; font-weight: 700; background: var(--emerald-soft); color: var(--emerald); padding: 2px 6px; border-radius: 4px; }
.mk-risk { margin-top: auto; font-size: 11px; color: var(--amber); font-weight: 600; }
.mk-risk-ok { color: var(--emerald); }

/* Kanban Board Mockup */
.mk-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mk-kcol {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mk-khead { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mk-kcount { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 10px; padding: 1px 6px; color: var(--muted); }
.mk-kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.mk-kcard-done { border-color: #bbf7d0; background: #f7fef9; }
.mk-kcard p { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.mk-ktags span { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; display: inline-block; }
.mk-dot-purple { background: #ede9fe; color: #5b21b6; }
.mk-dot-blue { background: #dbeafe; color: #1e40af; }
.mk-dot-green { background: #dcfce7; color: #166534; }
.mk-dot-amber { background: #fef3c7; color: #92400e; }
.mk-kfoot { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--muted); }
.mk-av { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.av-n { background: var(--ink); }
.av-v { background: var(--violet); }
.av-a { background: var(--emerald); }
.av-b { background: var(--accent); }

/* Google Forms Blueprint Mockup */
.mk-form-head { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; padding-bottom: 10px; }
.mk-form-bar { height: 5px; background: var(--violet); margin-bottom: 10px; }
.mk-form-head h4 { margin: 0 12px 4px; font-size: 13.5px; }
.mk-form-head p { margin: 0 12px; font-size: 11.5px; color: var(--ink-2); }
.mk-form-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mk-qcard { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.mk-qtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 700; }
.mk-qtype { font-size: 10px; font-weight: 600; background: var(--violet-soft); color: var(--violet); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.mk-qopts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.mk-likert { display: flex; gap: 5px; font-size: 11px; flex-wrap: wrap; }
.mk-likert span { background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; color: var(--ink-2); }
.mk-qopen { font-size: 11px; color: var(--muted); border-bottom: 1px dashed var(--border-strong); padding-bottom: 3px; }

/* Data Clean Mockup */
.mk-formula-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-formula-bar code { font-family: var(--font-mono); font-size: 11px; background: #09090b; color: #86efac; padding: 4px 8px; border-radius: 6px; }
.mk-sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mk-sheet-box { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.mk-sheet-title { font-size: 11px; font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.mk-dirty-title { background: var(--rose-soft); color: var(--rose); }
.mk-clean-title { background: var(--emerald-soft); color: var(--emerald); }
.mk-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mk-table th, .mk-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.mk-table th { background: var(--bg); color: var(--muted); font-weight: 600; }
.mk-table code { font-family: var(--font-mono); font-size: 10.5px; background: var(--surface-alt); padding: 1px 4px; border-radius: 4px; }
.mk-row-dup { background: #fff5f6; }
.mk-muted-cell { color: var(--muted); font-style: italic; }
.mk-pivot-mini { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.mk-pivot-head { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.mk-pivot-bars { display: flex; flex-direction: column; gap: 6px; }
.mk-pivot-bars > div { display: grid; grid-template-columns: 145px 1fr 48px; align-items: center; gap: 8px; font-size: 11.5px; }
.mk-bar { height: 8px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.mk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Canva Infographic Wireframe */
.mk-canva-layout { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 12px; }
.mk-wireframe { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.mk-wf-zone { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.mk-wf-zone span { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.mk-wf-header { background: #09090b; color: #fff; }
.mk-wf-header span { color: #93c5fd; }
.mk-wf-header small { color: #a1a1aa; font-size: 11px; }
.mk-wf-body { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mk-wf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.mk-wf-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 7px; }
.mk-wf-stats b { display: block; font-size: 15px; color: var(--accent); }
.mk-wf-stats small { font-size: 11px; color: var(--muted); }
.mk-wf-footer { background: var(--emerald-soft); color: #065f46; font-size: 11px; }
.mk-palette-side { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 8px; }
.mk-side-title { font-size: 12px; font-weight: 700; }
.mk-swatch { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.mk-swatch i { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.mk-swatch b { display: block; font-family: var(--font-mono); font-size: 11px; }
.mk-swatch span { font-size: 11px; color: var(--muted); }
.mk-font-box { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 8px; font-size: 11px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }

/* CapCut Timeline */
.mk-timeline-bar { display: flex; border-radius: 8px; overflow: hidden; font-size: 10.5px; font-weight: 700; color: #fff; }
.mk-timeline-bar span { padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-1 { background: #e11d48; }
.tl-2 { background: #d97706; }
.tl-3 { background: #2563eb; }
.tl-4 { background: #059669; }
.mk-beats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mk-beat { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.mk-beat-time { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.mk-beat-body { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.mk-capcut-chip { margin-top: 5px; display: inline-block; background: #fef08a; color: #713f12; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }

/* Mobile Debug Split */
.mk-debug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-phone { border: 1px solid var(--border); border-radius: 10px; padding: 9px; background: var(--bg); display: flex; flex-direction: column; gap: 7px; }
.mk-phone-bar { font-size: 11px; font-weight: 700; }
.mk-phone-bad .mk-phone-bar { color: var(--rose); }
.mk-phone-good .mk-phone-bar { color: var(--emerald); }
.mk-phone-screen { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 9px; overflow: hidden; font-size: 11.5px; }
.mk-bad-box { background: var(--rose-soft); color: var(--rose); font-weight: 700; padding: 6px 8px; border-radius: 5px; white-space: nowrap; width: 145%; margin-bottom: 5px; }
.mk-bad-text { color: var(--muted); font-size: 11px; }
.mk-good-box { background: var(--emerald-soft); color: var(--emerald); font-weight: 700; padding: 6px 8px; border-radius: 5px; margin-bottom: 5px; }
.mk-good-btn { background: var(--ink); color: #fff; text-align: center; padding: 5px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.mk-code-bad, .mk-code-good { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 7px; border-radius: 5px; }
.mk-code-bad { background: var(--rose-soft); color: var(--rose); }
.mk-code-good { background: var(--emerald-soft); color: var(--emerald); }
.mk-f12-box { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.mk-f12-box code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--border); padding: 1px 4px; border-radius: 4px; }

/* Interactive Mini Chatbot Demo */
.mk-chat-shell { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.mk-chat-head { padding: 9px 12px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.mk-chat-log { padding: 11px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 7px; max-height: 220px; overflow-y: auto; }
.mk-msg { max-width: 85%; padding: 7px 10px; border-radius: 9px; font-size: 12px; line-height: 1.45; }
.mk-msg-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.mk-msg-user { align-self: flex-end; background: var(--accent); color: #fff; }
.mk-chat-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.mk-chip-btn { background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-2); font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.mk-chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.mk-chat-form { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.mk-chat-form input { flex: 1; border: 1px solid var(--border); border-radius: 7px; padding: 6px 10px; font-size: 12px; outline: none; }
.mk-chat-form button { background: var(--ink); color: #fff; border: none; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* Fact Check & Disclosure */
.mk-disclosure-card { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--emerald); border-radius: 8px; padding: 10px 12px; }
.mk-disc-title { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.mk-disclosure-card p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* 7-Slide Storyboard Strip */
.mk-slides-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mk-slide { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; gap: 3px; }
.mk-slide span { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--muted); }
.mk-slide strong { font-size: 12px; color: var(--ink); }
.mk-slide small { font-size: 10.5px; color: var(--muted); }
.mk-slide-live { background: var(--accent-soft); border-color: #93c5fd; }
.mk-slide-live span { color: var(--accent-dark); }
.mk-slide-total { font-size: 11.5px; color: var(--ink-2); background: var(--surface-alt); padding: 7px 10px; border-radius: 7px; }

/* Q&A Accordion */
.mk-qa-list { display: flex; flex-direction: column; gap: 7px; }
.mk-qa-item { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.mk-qa-q { width: 100%; text-align: left; background: var(--bg); border: none; padding: 9px 11px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-clo { font-size: 10px; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 6px; border-radius: 4px; margin-right: 5px; }
.mk-qa-a { display: none; padding: 9px 11px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-2); line-height: 1.5; flex-direction: column; gap: 4px; }
.mk-qa-item.open .mk-qa-a { display: flex; }
.mk-qa-item.open .mk-qa-arrow { transform: rotate(180deg); }

/* ---------- Standard Modals (Quick Guide & Showcase) ---------- */
.modal-head {
  padding: 15px 18px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.modal-head p { margin: 0; font-size: 12px; color: #a1a1aa; }
.modal-close { background: rgba(255, 255, 255, 0.14); border: none; color: #fff; width: 30px; height: 30px; border-radius: 7px; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.modal-close:hover { background: rgba(255, 255, 255, 0.26); }
.modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.modal-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.info-box { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 12.5px; }
.step-mini-list { display: flex; flex-direction: column; gap: 8px; }
.step-mini { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); padding: 9px 11px; border-radius: 9px; }
.step-mini strong { width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; }
.slip-box { margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.slip-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.slip-fields { display: grid; gap: 7px; }

/* ---------- Empty State & Toast ---------- */
.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1200;
  background: var(--ink);
  color: #fff;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d4d4d8;
  padding: 30px 0 22px;
  font-size: 13px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong { color: #fff; font-size: 14px; display: block; margin-bottom: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer-links a { color: #a1a1aa; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: #a1a1aa; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards-grid-3, .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .picker-rec-inline {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 8px;
    flex-basis: 100%;
  }
  .inspector-dialog {
    height: 92vh;
  }
  .insp-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .insp-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 380px;
  }
  .insp-right {
    overflow-y: visible;
  }
  .customizer-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links, .nav-actions .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mk-grid-3, .mk-kanban, .mk-slides-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .mk-canva-layout, .mk-sheet-grid, .mk-debug-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cards-grid-3, .showcase-grid, .customizer-fields,
  .mk-grid-3, .mk-kanban, .mk-form-list, .mk-beats, .mk-slides-strip {
    grid-template-columns: 1fr;
  }
  .portal-section {
    padding: 36px 0;
  }
  .picker-rec-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .picker-rec-topic {
    white-space: normal;
  }
  .spec-swatches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mk-pivot-bars > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* ==========================================================================
   GROUP TRACKER & REGISTRATION SECTION (TDMU 2026)
   ========================================================================== */

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

/* KPI Summary Cards */
.tracker-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.tk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tk-card-success {
  border-color: rgba(5, 150, 105, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, var(--emerald-soft) 100%);
}

.tk-card-warn {
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, var(--amber-soft) 100%);
}

.tk-card-pending {
  border-color: rgba(225, 29, 72, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, var(--rose-soft) 100%);
}

.tk-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tk-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-family: var(--font-mono);
}

.tk-val.text-emerald { color: var(--emerald); }
.tk-val.text-amber { color: var(--amber); }
.tk-val.text-rose { color: var(--rose); }

.tk-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* Teacher Mode Banner */
.teacher-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #064e3b;
  color: #ecfdf5;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
}

.tb-badge {
  display: inline-block;
  background: #10b981;
  color: #064e3b;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-right: 10px;
}

/* Tabs Switcher */
.tracker-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tracker-tabs {
  display: inline-flex;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  gap: 4px;
}

.tk-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tk-tab-btn:hover {
  color: var(--ink);
}

.tk-tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
}

/* Filter Bar */
.tracker-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.tf-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.tf-group label {
  font-weight: 600;
  white-space: nowrap;
}

.tf-group select, .tf-group input {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.tf-group select:focus, .tf-group input:focus {
  border-color: var(--accent);
}

.tf-search {
  flex: 1;
  min-width: 220px;
}

.tf-search input {
  width: 100%;
}

/* Table Responsive Wrap */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.tracker-table th {
  background: var(--surface-alt);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tracker-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.tracker-table tbody tr:hover {
  background: #fafafb;
}

.tracker-table tbody tr.row-highlight {
  background: #ecfdf5 !important;
  transition: background 1.5s ease;
}

/* Table Elements */
.group-id-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 4px;
}

.group-class-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.group-topic-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.group-topic-title {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 4px 0 6px 0;
  line-height: 1.35;
}

.group-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.faculty-pill {
  font-size: 10.5px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.direction-pill {
  font-size: 10.5px;
  background: var(--surface-alt);
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Members list */
.group-members-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.25;
}

.member-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}

.member-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

/* 3 Deliverable Links in Table */
.group-links-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
  width: fit-content;
}

.link-badge.link-web {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.link-badge.link-web:hover {
  background: #dbeafe;
}

.link-badge.link-trello {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.link-badge.link-trello:hover {
  background: #ede9fe;
}

.link-badge.link-slide {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.link-badge.link-slide:hover {
  background: #ffedd5;
}

.link-badge.link-empty {
  background: var(--surface-alt);
  color: #a1a1aa;
  border: 1px dashed var(--border);
  cursor: default;
}

/* Status Pills */
.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-complete {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-partial {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-pending {
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Scores in Table */
.score-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald);
  display: block;
}

.score-sub {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.score-pending {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}

/* Actions in Table */
.actions-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Form Styles */
.tracker-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.tform-intro {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tform-intro h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.tform-intro p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.tform-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.form-group label .req {
  color: var(--rose);
}

.form-group input, .form-group select {
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tform-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 10px 0;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.tform-section-title strong {
  font-size: 15px;
  color: var(--ink);
}

.tform-badge-rule {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--rose-soft);
  color: var(--rose);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

/* Size Segmented Control */
.size-segmented {
  display: inline-flex;
  background: var(--surface-alt);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 4px;
}

.size-seg-option {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.size-seg-option input[type="radio"] {
  display: none;
}

.size-seg-option:has(input:checked) {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

/* Members Input Grid */
.members-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.member-input-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.mic-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.mic-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.mic-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mic-fields input {
  font-size: 12.5px;
  padding: 6px 10px;
}

/* Deliverables Inputs */
.deliverables-inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.deliv-input-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.deliv-icon {
  font-size: 20px;
}

.deliv-header strong {
  font-size: 13.5px;
  color: var(--ink);
  display: block;
}

.deliv-note {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.tform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Hosting Guide Modal Grid */
.hosting-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hosting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hosting-card.recommended-card {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

.hosting-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hosting-card-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.hosting-badge-rec {
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hosting-meta {
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hosting-steps {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hosting-pro-con {
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hosting-pro-con .pro { color: var(--emerald); }
.hosting-pro-con .con { color: var(--muted); }

/* Responsive adjustments */
@media (max-width: 900px) {
  .tracker-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .members-inputs-grid {
    grid-template-columns: 1fr;
  }
  .hosting-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tracker-kpi-grid {
    grid-template-columns: 1fr;
  }
  .tracker-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Google Sheets Sync Strip */
.sheets-sync-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid #a7f3d0;
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

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

.ssb-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ssb-left strong {
  display: block;
  font-size: 13.5px;
  color: #065f46;
}

.ssb-sub {
  display: block;
  font-size: 12px;
  color: #047857;
  margin-top: 2px;
}

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

.ssb-right input {
  min-width: 290px;
  font-size: 12px;
  background: #ffffff;
}

@media (max-width: 900px) {
  .sheets-sync-box {
    flex-direction: column;
    align-items: stretch;
  }
  .ssb-right {
    flex-direction: column;
    align-items: stretch;
  }
  .ssb-right input {
    min-width: auto;
    width: 100%;
  }
}
