/* ==========================================================================
   Portfolio Enterprise Case Cards, Bilingual Controls & AI Recruiter Concierge
   Obsidian Precision + Warm Editorial Light — Zero Cliché Gradients
   ========================================================================== */

/* ---------- Language Switcher Pill in Header Rail ---------- */
.pf-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 40px;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 27, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(241, 239, 234, 0.65);
  font-family: "JetBrains Mono", "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, opacity 0.35s ease;
  pointer-events: auto;
  z-index: 45;
}

.pf-lang-btn--nav {
  position: absolute;
  top: 22px;
  right: 72px;
}

@media (max-width: 640px) {
  .pf-lang-btn--nav {
    top: 76px;
    right: 16px;
    height: 32px;
    padding: 0 0.6rem;
    font-size: 0.66rem;
  }
}

.site-nav.is-open .pf-lang-btn--nav {
  opacity: 0;
  pointer-events: none;
}

html.light .pf-lang-btn {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(38, 38, 38, 0.12);
  color: rgba(38, 38, 38, 0.55);
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.06);
}

.pf-lang-btn:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.pf-lang-btn[data-active-lang="vi"] [data-opt="vi"],
.pf-lang-btn[data-active-lang="en"] [data-opt="en"] {
  color: #f59e0b;
}

html.light .pf-lang-btn[data-active-lang="vi"] [data-opt="vi"],
html.light .pf-lang-btn[data-active-lang="en"] [data-opt="en"] {
  color: #b45309;
}

.pf-lang-btn__sep {
  opacity: 0.35;
}

/* ---------- Expanded Executive Project Cards (projects.html) ---------- */
.bunq-projects-page .bunq-work-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.bunq-projects-page .work-card {
  --pad: 1.15rem;
  justify-content: space-between;
}

.bunq-projects-page .work-card__media {
  aspect-ratio: 16 / 10;
  border: 1px solid color-mix(in srgb, var(--scene-work-card-ink) 12%, transparent);
}

.bunq-projects-page .work-card__title {
  -webkit-line-clamp: unset;
  min-height: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.42rem);
  line-height: 1.3;
  margin: 1rem 0.35rem 0.45rem;
}

.work-card__blurb {
  margin: 0 0.35rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--scene-work-card-ink) 80%, transparent);
}

.work-card__digest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.25rem 0.35rem 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--scene-work-card) 68%, rgba(0, 0, 0, 0.22));
  border: 1px solid color-mix(in srgb, var(--scene-work-card-ink) 11%, transparent);
}

html.light .work-card__digest {
  background: color-mix(in srgb, var(--scene-work-card) 82%, rgba(255, 255, 255, 0.65));
}

.work-card__pillar {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .work-card__pillar {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.work-card__pillar-k {
  font-family: "JetBrains Mono", "Geist Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--scene-work-card-ink) 62%, transparent);
}

.work-card__pillar-v {
  color: color-mix(in srgb, var(--scene-work-card-ink) 92%, transparent);
}

.work-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0 0.35rem 0.75rem;
}

.work-card__metric {
  font-family: "JetBrains Mono", "Geist Mono", monospace;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
  padding: 0.26rem 0.58rem;
  border-radius: 0.42rem;
  background: color-mix(in srgb, var(--brand) 22%, var(--scene-work-card));
  border: 1px solid color-mix(in srgb, var(--scene-work-card-ink) 12%, transparent);
  color: var(--scene-work-card-ink);
}

.work-card__cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin: 0.45rem 0.35rem 0.2rem;
  align-items: center;
}

.work-card__cta-row .work-card__live {
  width: 100%;
  margin: 0;
}

.work-card__case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--scene-work-card-ink) 22%, transparent);
  background: transparent;
  color: var(--scene-work-card-ink);
  font-family: "JetBrains Mono", "Geist Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-card__case-btn:hover {
  background: color-mix(in srgb, var(--scene-work-card-ink) 10%, transparent);
  transform: translateY(-1px);
}

/* Compact 2-line digest on 3D Showroom Track (index.html) */
.ph-row__card .work-card__mini-digest {
  display: block;
  margin: 0 0.35rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.42;
  color: color-mix(in srgb, var(--scene-work-card-ink) 74%, transparent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Deep Case Study Executive Architecture Grid (work-case.js) ---------- */
.case-exec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.case-exec-card {
  padding: 1.2rem 1.35rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--tint) 42%, rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #18181b;
}

html.dark .case-exec-card {
  background: rgba(24, 24, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ece8e1;
}

.case-exec-card__k {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.45rem;
}

.case-exec-card__h {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.case-exec-card__p {
  font-size: 0.9rem;
  line-height: 1.62;
  margin: 0;
  opacity: 0.88;
}

.case-arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.95rem;
  background: rgba(15, 15, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f1ea;
}

.case-arch-node {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-arch-node small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
}

.case-arch-node strong {
  font-size: 0.8rem;
  font-weight: 600;
}

.case-arch-arrow {
  font-family: "JetBrains Mono", monospace;
  color: rgba(245, 158, 11, 0.85);
  font-size: 0.9rem;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.15rem;
  margin-top: 1.2rem;
}

.case-gallery-item {
  position: relative;
  margin: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 135, 0.22);
  background: #0e0e11;
  cursor: zoom-in;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.case-gallery-item:hover,
.case-gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  outline: none;
}

.case-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-gallery-item:hover img {
  transform: scale(1.02);
}

.case-gallery-zoom {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(14, 14, 17, 0.78);
  color: #f6f1e8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.72;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.case-gallery-item:hover .case-gallery-zoom,
.case-gallery-item:focus-visible .case-gallery-zoom {
  opacity: 1;
  transform: scale(1.06);
  border-color: rgba(245, 158, 11, 0.7);
}

.case-shot-fig[data-lightbox-src] {
  cursor: zoom-in;
}

.case-gallery-item figcaption {
  padding: 0.65rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #d4d0c8;
  background: #141418;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Full-image lightbox viewer for Case Study gallery & screenshots */
.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.case-lightbox[hidden] {
  display: none;
}

.case-lightbox.is-open {
  opacity: 1;
}

.case-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.case-lightbox__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.case-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 3.2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e0e11;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.case-lightbox__caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #e6e2d8;
  text-align: center;
  max-width: 72ch;
  line-height: 1.45;
}

.case-lightbox__close,
.case-lightbox__nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 18, 22, 0.86);
  color: #f6f1e8;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.case-lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1rem;
}

.case-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-size: 1.65rem;
  line-height: 1;
}

.case-lightbox__nav.is-prev {
  left: 1rem;
}

.case-lightbox__nav.is-next {
  right: 1rem;
}

.case-lightbox__nav[hidden] {
  display: none;
}

.case-lightbox__close:hover,
.case-lightbox__nav:hover {
  background: rgba(34, 34, 42, 0.95);
  border-color: rgba(245, 158, 11, 0.65);
}

@media (max-width: 640px) {
  .case-lightbox {
    padding: 1rem;
  }
  .case-lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .case-lightbox__nav.is-prev {
    left: 1rem;
  }
  .case-lightbox__nav.is-next {
    right: 1rem;
  }
}

/* ==========================================================================
   AI Technical Recruiter & Architecture Concierge
   ========================================================================== */

.aic-fab {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.75rem 1.18rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(18, 18, 22, 0.94), rgba(26, 22, 16, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f6f1e8;
  font-family: "JetBrains Mono", "Geist Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

html.light .aic-fab {
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.96), rgba(34, 28, 18, 0.95));
  color: #fafaf9;
}

.aic-fab:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52), 0 0 22px rgba(245, 158, 11, 0.2);
}

.aic-fab__spark {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.85);
  animation: aicPulse 2.4s ease-in-out infinite;
}

@keyframes aicPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

.aic-fab__kbd {
  padding: 0.14rem 0.44rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.63rem;
  color: rgba(244, 239, 230, 0.78);
}

/* Collapsed to a round icon while the page footer is in view, so it never covers the signature. */
.aic-fab {
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.24s ease, box-shadow 0.24s ease, padding 0.24s ease, gap 0.24s ease;
}

html.aic-foot .aic-fab {
  gap: 0;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  justify-content: center;
}

html.aic-foot .aic-fab [data-aic-fab-label],
html.aic-foot .aic-fab .aic-fab__kbd {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
}

@media (max-width: 640px) {
  .aic-fab {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.66rem 0.98rem;
  }
  .aic-fab__kbd {
    display: none;
  }
}

.aic-panel {
  position: fixed;
  right: 1.35rem;
  bottom: 4.75rem;
  z-index: 9995;
  width: min(468px, calc(100vw - 1.6rem));
  height: min(680px, calc(100dvh - 6.1rem));
  display: flex;
  flex-direction: column;
  border-radius: 1.3rem;
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #ede9e2;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(245, 158, 11, 0.08) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.light .aic-panel {
  background: rgba(252, 252, 250, 0.96);
  color: #18181b;
  border-color: rgba(24, 24, 27, 0.14);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.16);
}

.aic-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .aic-panel {
    right: 0.65rem;
    left: 0.65rem;
    bottom: 4.25rem;
    width: auto;
    height: min(76dvh, 620px);
    border-radius: 1.15rem;
  }
}

.aic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid rgba(128, 128, 135, 0.18);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
}

.aic-head__left {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.aic-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.68rem;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #141108;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.aic-head__title {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.aic-head__title strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.aic-head__title span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  opacity: 0.72;
}

.aic-head__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.aic-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(128, 128, 135, 0.24);
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.aic-icon-btn:hover {
  background: rgba(128, 128, 135, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
}

/* Messages Stream */
.aic-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  scrollbar-width: thin;
}

.aic-msg {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 95%;
  animation: aicFadeUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.aic-msg--user {
  align-self: flex-end;
  max-width: 84%;
}

.aic-msg__bubble {
  padding: 0.76rem 0.96rem;
  border-radius: 0.98rem;
  font-size: 0.835rem;
  line-height: 1.58;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  word-break: break-word;
}

html.light .aic-msg__bubble {
  background: #f4f4f5;
  border-color: rgba(24, 24, 27, 0.08);
}

.aic-msg--user .aic-msg__bubble {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #161108;
  border-color: transparent;
  font-weight: 500;
  border-bottom-right-radius: 0.28rem;
}

.aic-inline-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  padding: 0.08rem 0.34rem;
  border-radius: 0.3rem;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

html.light .aic-inline-code {
  background: rgba(180, 83, 9, 0.1);
  color: #92400e;
}

/* Typing indicator */
.aic-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.72rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  width: fit-content;
}

html.light .aic-typing {
  background: #f4f4f5;
  border-color: rgba(24, 24, 27, 0.08);
}

.aic-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: aicBounce 1.15s infinite ease-in-out both;
}

.aic-typing span:nth-child(2) { animation-delay: 0.16s; }
.aic-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes aicBounce {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
  40% { transform: scale(1.1); opacity: 1; }
}

.aic-tool-trace {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  color: #f59e0b;
  opacity: 0.92;
}

html.light .aic-tool-trace {
  color: #b45309;
}

/* ---------- Generative UI Blocks inside Chat ---------- */
.aic-block {
  border-radius: 0.92rem;
  border: 1px solid rgba(128, 128, 135, 0.22);
  background: rgba(22, 22, 27, 0.92);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

html.light .aic-block {
  background: #ffffff;
  border-color: rgba(24, 24, 27, 0.12);
}

.aic-block__heading {
  font-size: 0.78rem;
}

.aic-arch-compact {
  margin-top: 0.2rem;
  padding: 0.7rem;
}

.aic-metric-row,
.aic-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* 1. JD Scorecard Block */
.aic-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.aic-score-sub {
  font-size: 0.71rem;
  opacity: 0.74;
  margin-top: 0.12rem;
}

.aic-score-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #10b981;
}

.aic-score-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(128, 128, 135, 0.2);
  overflow: hidden;
}

.aic-score-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #10b981);
}

.aic-proof-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.aic-proof-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.54rem 0.68rem;
  border-radius: 0.65rem;
  background: rgba(128, 128, 135, 0.08);
  font-size: 0.76rem;
  line-height: 1.45;
}

.aic-mini-btn {
  padding: 0.32rem 0.62rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

html.light .aic-mini-btn {
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
}

.aic-mini-btn:hover {
  background: #f59e0b;
  color: #141108;
  transform: translateY(-1px);
}

/* 2. Project Spotlight GenUI Card */
.aic-proj-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.72rem;
  align-items: start;
  padding: 0.55rem;
  border-radius: 0.68rem;
  background: rgba(128, 128, 135, 0.08);
}

.aic-proj-card img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.45rem;
}

.aic-proj-card__meta h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.22rem;
}

.aic-proj-card__meta h4 span {
  opacity: 0.7;
  font-weight: 400;
}

.aic-proj-card__meta p {
  font-size: 0.73rem;
  line-height: 1.42;
  opacity: 0.82;
  margin: 0 0 0.45rem;
}

.aic-proj-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* 3. Comparison Matrix GenUI Table */
.aic-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.aic-cmp-table th,
.aic-cmp-table td {
  padding: 0.42rem 0.48rem;
  border-bottom: 1px solid rgba(128, 128, 135, 0.16);
  text-align: left;
  vertical-align: top;
}

.aic-cmp-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.68;
}

/* Starter Prompt Chips & Input Composer */
.aic-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid rgba(128, 128, 135, 0.14);
  scrollbar-width: none;
}

.aic-chips::-webkit-scrollbar {
  display: none;
}

.aic-chip {
  flex: none;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 135, 0.26);
  background: rgba(128, 128, 135, 0.06);
  color: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.aic-chip:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.aic-form {
  display: flex;
  gap: 0.48rem;
  padding: 0.72rem 0.9rem;
  border-top: 1px solid rgba(128, 128, 135, 0.18);
  background: rgba(128, 128, 135, 0.04);
}

.aic-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(128, 128, 135, 0.28);
  background: rgba(128, 128, 135, 0.08);
  color: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.aic-input:focus {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.aic-input:disabled {
  opacity: 0.6;
}

.aic-send {
  padding: 0 1.05rem;
  border-radius: 0.72rem;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #161108;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.aic-send:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}

.aic-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

