/* ============================================
   TREEZ AFRICA SYSTEMS — Global Styles
   Design language: "Systems Engineering" —
   graphite surfaces, hairline borders, monospace
   data/labels, amber + status-green accents.
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* ---- New system tokens ---- */
  --bg-0: #0A0D11;   /* page base */
  --bg-1: #10151C;   /* raised section band */
  --bg-2: #161D26;   /* card surface */
  --bg-3: #1E2733;   /* hover surface */

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text-0: #EDF1F5; /* primary */
  --text-1: #9AA5B3; /* secondary */
  --text-2: #616B78; /* tertiary */
  --ink: #0A0D11;    /* dark text on amber */

  --amber: #FFB020;
  --amber-dim: #C98A1D;
  --status-green: #34D399;
  --status-green-dim: #1F9C71;
  --status-red: #FF6B6B;

  /* ---- Brand color system: primary + secondary ----
     Primary (amber) drives main actions and brand identity.
     Secondary (emerald) is the deliberate counterpart — used
     for secondary actions, alternating tags, and status/live
     indicators, so it reads as "part of the brand" rather
     than a one-off status color. */
  --color-primary: var(--amber);
  --color-primary-dim: var(--amber-dim);
  --color-primary-ink: var(--ink);
  --color-secondary: var(--status-green);
  --color-secondary-dim: var(--status-green-dim);
  --color-secondary-ink: var(--ink);

  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;

  /* Legacy brand tokens — kept for pages not yet migrated to the new system */
  --blue: #0052CC;
  --blue-dark: #003A8C;
  --blue-light: #4C9AFF;
  --green: #00A651;
  --green-dark: #007A3D;
  --green-light: #33CC77;
  --yellow: #FFD700;
  --yellow-light: #FFE44D;
  --black: #1A1A1A;
  --dark: #2D2D2D;
  --gray-900: #333333;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #CCCCCC;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;

  /* Gradients — shared across migrated + legacy components */
  --gradient-primary: linear-gradient(135deg, var(--amber) 0%, #E0961A 100%);
  --gradient-hero: linear-gradient(180deg, #0A0D11 0%, #10151C 100%);
  --gradient-dark: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 100%);
  --gradient-accent: linear-gradient(135deg, var(--status-green) 0%, var(--amber) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 176, 32, 0.06), rgba(52, 211, 153, 0.06));

  /* Typography */
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --fs-display: clamp(2.5rem, 5vw, 4.25rem);
  --fs-h1: clamp(2rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.6rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: 1440px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* Borders & Shadows — tightened from the old pill/blob language */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 50%;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow-amber: 0 0 0 1px rgba(255, 176, 32, 0.4), 0 0 24px rgba(255, 176, 32, 0.15);
  --shadow-glow-green: 0 0 0 1px rgba(52, 211, 153, 0.4), 0 0 24px rgba(52, 211, 153, 0.15);

  /* Icon-tile "keycap" depth system — a raised surface that lifts on
     hover and presses flush on click. Layered shadow, not an image.
     Rest state is deliberately strong (not just a hover-only reveal)
     so the tile reads as physically raised before any interaction. */
  --tile-shadow-rest: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -10px 14px -8px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.7), 0 10px 18px -4px rgba(0, 0, 0, 0.55);
  --tile-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -10px 14px -8px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.6), 0 20px 32px -6px rgba(0, 0, 0, 0.65);
  --tile-shadow-active: inset 0 3px 8px rgba(0, 0, 0, 0.75), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  --tile-lift: -4px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id],
footer[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--gray-900);
  background-color: var(--white);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* Later pages in the same visit skip the preloader (class set by an inline
   head script), so page-to-page view transitions have content to show. */
.tz-seen .preloader {
  display: none;
}

.tz-seen body {
  opacity: 1;
  transition: none;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

code, .mono {
  font-family: var(--font-mono);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: 1660px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Large desktop tuning so layouts use more horizontal space on 24-inch+ screens */
@media (min-width: 1600px) {
  :root {
    --container-width: 1640px;
    --container-padding: clamp(22px, 2.2vw, 56px);
  }

  .container-wide {
    max-width: 1820px;
  }
}

@media (min-width: 2000px) {
  :root {
    --container-width: 1780px;
    --container-padding: clamp(28px, 2vw, 68px);
  }

  .container-wide {
    max-width: 1980px;
  }
}

/* ---- Section ---- */
.section {
  padding: var(--section-padding) 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--gray-300);
}

.section-gray {
  background: var(--gray-100);
}

/* Blueprint grid-line texture, used on dark "systems" sections */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-header .label::before {
  content: '//';
  color: var(--text-2);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #FFC24D;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-amber);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--tile-shadow-active);
  transition-duration: 0.08s;
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-secondary-ink);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--tile-shadow-active);
  transition-duration: 0.08s;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

.btn-green:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--tile-shadow-active);
  transition-duration: 0.08s;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 0.95rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active svg {
  transform: translateX(1px) scale(0.92);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-base);
  border: 1px solid var(--line);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

/* ---- Badge / status pill ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Primary/secondary tag pair — used wherever content is split
   into two natural groups (categories, statuses) and should
   read as branded, not just a random color. */
.badge-primary {
  font-family: var(--font-mono);
  background: rgba(255, 176, 32, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(255, 176, 32, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.badge-secondary {
  font-family: var(--font-mono);
  background: rgba(52, 211, 153, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(52, 211, 153, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  flex-shrink: 0;
  vertical-align: middle;
  margin-bottom: 2px;
  animation: statusPulse 2.4s ease-in-out infinite;
}

.status-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.15);
}

/* ---- Grid Helpers ---- */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Flex Helpers ---- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ---- Text Gradient ---- */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Divider ---- */
.divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin: 16px auto;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--amber);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
  cursor: pointer;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--amber);
}

/* ---- Image Protection ---- */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Protect background images and page content from selection */
body {
  -webkit-touch-callout: none;
}

/* ---- Selection ---- */
::selection {
  background: var(--amber);
  color: var(--ink);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--amber-dim);
  border-radius: 4px;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.preloader-logo span {
  color: var(--amber);
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--amber);
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.btn-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.06); }
}

/* ---- Icon-tile 3D interaction system ----
   Shared depth/lift/press mechanics for every bordered icon tile
   across the site. Each tile's own stylesheet still owns its size,
   color, and hover-color accent — this block only owns the "3D"
   part (shadow, lift, press) so it behaves identically everywhere. */
.service-icon,
.feature-icon,
.arch-node-icon,
.contact-info-icon,
.sidebar-info-icon,
.psc-logo-wrap,
.bento-icon-wrap,
.footer-socials a,
.back-to-top,
.cmdk-trigger,
.team-avatar,
.testimonial-avatar,
.tstrip-avatar,
.admin-button {
  box-shadow: var(--tile-shadow-rest);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color var(--transition-base),
              background var(--transition-base),
              color var(--transition-base),
              opacity var(--transition-base),
              visibility var(--transition-base);
}

.service-icon:hover,
.feature-icon:hover,
.arch-node-icon:hover,
.contact-info-icon:hover,
.sidebar-info-icon:hover,
.psc-logo-wrap:hover,
.bento-icon-wrap:hover,
.footer-socials a:hover,
.back-to-top:hover,
.cmdk-trigger:hover,
.team-avatar:hover,
.testimonial-avatar:hover,
.tstrip-avatar:hover {
  transform: translateY(var(--tile-lift));
  box-shadow: var(--tile-shadow-hover);
}

.service-icon:active,
.feature-icon:active,
.arch-node-icon:active,
.contact-info-icon:active,
.sidebar-info-icon:active,
.psc-logo-wrap:active,
.bento-icon-wrap:active,
.footer-socials a:active,
.back-to-top:active,
.cmdk-trigger:active,
.team-avatar:active,
.testimonial-avatar:active,
.tstrip-avatar:active {
  transform: translateY(0) scale(0.94);
  box-shadow: var(--tile-shadow-active);
  transition-duration: 0.08s;
}

/* The glyph itself lifts a touch further than its tile, for a
   subtle parallax "popping off the surface" read. */
.service-icon svg,
.feature-icon svg,
.arch-node-icon svg,
.contact-info-icon svg,
.sidebar-info-icon svg,
.psc-logo-wrap img,
.bento-icon-wrap img,
.back-to-top svg,
.cmdk-trigger svg {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-icon:hover svg,
.feature-icon:hover svg,
.arch-node-icon:hover svg,
.contact-info-icon:hover svg,
.sidebar-info-icon:hover svg,
.psc-logo-wrap:hover img,
.bento-icon-wrap:hover img,
.back-to-top:hover svg,
.cmdk-trigger:hover svg {
  transform: scale(1.14);
}

.service-icon:active svg,
.feature-icon:active svg,
.arch-node-icon:active svg,
.contact-info-icon:active svg,
.sidebar-info-icon:active svg,
.psc-logo-wrap:active img,
.bento-icon-wrap:active img,
.back-to-top:active svg,
.cmdk-trigger:active svg {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .service-icon, .feature-icon, .arch-node-icon, .contact-info-icon,
  .sidebar-info-icon, .psc-logo-wrap, .bento-icon-wrap, .footer-socials a,
  .back-to-top, .cmdk-trigger, .team-avatar, .testimonial-avatar, .tstrip-avatar,
  .service-icon svg, .feature-icon svg, .arch-node-icon svg, .contact-info-icon svg,
  .sidebar-info-icon svg, .psc-logo-wrap img, .bento-icon-wrap img,
  .back-to-top svg, .cmdk-trigger svg {
    transition: none;
  }
}

/* ---- Command palette ---- */
.cmdk-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-right: 6px;
}

.cmdk-trigger:hover {
  border-color: var(--amber);
  color: var(--text-0);
}

.cmdk-trigger svg {
  width: 15px;
  height: 15px;
}

.cmdk-kbd {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.66rem;
}

.cmdk-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(5, 7, 9, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 20px;
}

.cmdk-overlay:not([hidden]) {
  display: flex;
}

.cmdk-panel {
  width: 100%;
  max-width: 560px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: cmdkIn 0.15s ease;
}

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

.cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cmdk-input-row svg {
  width: 17px;
  height: 17px;
  color: var(--text-2);
  flex-shrink: 0;
}

.cmdk-input {
  flex: 1;
  background: none;
  color: var(--text-0);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.cmdk-input::placeholder {
  color: var(--text-2);
}

.cmdk-esc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cmdk-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
}

.cmdk-group {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 10px 10px 6px;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-1);
}

.cmdk-item-label {
  color: var(--text-0);
  font-size: 0.92rem;
}

.cmdk-item-hint {
  color: var(--text-2);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmdk-item.active {
  background: var(--bg-2);
}

.cmdk-item.active .cmdk-item-hint {
  color: var(--amber);
}

.cmdk-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .cmdk-kbd {
    display: none;
  }

  .cmdk-trigger {
    padding: 8px;
  }
}

@media (max-width: 1024px) {
  .cmdk-trigger {
    display: none;
  }
}
