/* ==========================================================================
   AgentWiki Standalone Stylesheet (Zero-Dependency, 100% Offline-Ready)
   Obsidian Precision Design System
   ========================================================================== */

/* 1. Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: #27272a;
}

:root {
  --canvas: #09090b;
  --surface: #121214;
  --surface-alt: #0c0c0e;
  --surface-elevated: #141418;
  --terminal-bg: #0d0d10;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-zinc-200: #e4e4e7;
  --text-zinc-300: #d4d4d8;
  --text-zinc-400: #a1a1aa;
  --text-zinc-500: #71717a;
  --text-zinc-600: #52525b;
  --ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: var(--canvas);
  color: #fafafa;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

/* 2. Typography */
.font-sans { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, 'Courier New', monospace; }
pre, code, kbd, samp { font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, 'Courier New', monospace; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-\[12px\] { font-size: 12px; line-height: 16px; }
.text-\[13px\] { font-size: 13px; line-height: 18px; }
.text-\[15px\] { font-size: 15px; line-height: 20px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1.1; }
.text-6xl { font-size: 60px; line-height: 1.1; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-relaxed { line-height: 1.625; }
.leading-\[1\.12\] { line-height: 1.12; }
.leading-\[1\.15\] { line-height: 1.15; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-normal { white-space: normal; }
.select-all { user-select: all; }
.select-text { user-select: text; }

/* 3. Text Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-zinc-200 { color: #e4e4e7; }
.text-zinc-300 { color: #d4d4d8; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }

/* 4. Background Colors */
.bg-\[\#09090b\] { background-color: #09090b; }
.bg-\[\#0c0c0e\] { background-color: #0c0c0e; }
.bg-\[\#0c0c0f\] { background-color: #0c0c0f; }
.bg-\[\#0d0d10\] { background-color: #0d0d10; }
.bg-\[\#121214\] { background-color: #121214; }
.bg-\[\#141418\] { background-color: #141418; }
.bg-white { background-color: #ffffff; }
.bg-zinc-200 { background-color: #e4e4e7; }
.bg-zinc-700 { background-color: #3f3f46; }
.bg-emerald-400 { background-color: #34d399; }

.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/\[0\.04\] { background-color: rgba(255, 255, 255, 0.04); }
.bg-white\/\[0\.08\] { background-color: rgba(255, 255, 255, 0.08); }

.bg-\[\#09090b\]\/85 { background-color: rgba(9, 9, 11, 0.85); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* 5. Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-transparent { border-color: transparent; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }
.border-white\/\[0\.08\] { border-color: rgba(255, 255, 255, 0.08); }
.border-zinc-700 { border-color: #3f3f46; }
.border-zinc-700\/80 { border-color: rgba(63, 63, 70, 0.8); }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* 6. Layout & Sizing */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }

.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }

.w-1\.5 { width: 6px; }
.h-1\.5 { height: 6px; }
.w-2\.5 { width: 10px; }
.h-2\.5 { height: 10px; }
.w-6 { width: 24px; }
.h-6 { height: 24px; }
.w-8 { width: 32px; }
.h-8 { height: 32px; }
.w-10 { width: 40px; }
.w-32 { width: 128px; }
.w-36 { width: 144px; }
.h-10 { height: 40px; }

.h-9 { height: 36px; }
.h-11 { height: 44px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }

.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-14 { margin-bottom: 56px; }
.mb-16 { margin-bottom: 64px; }

.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }

.p-0\.5 { padding: 2px; }
.p-1 { padding: 4px; }
.p-3\.5 { padding: 14px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-1\.5 { padding-left: 6px; padding-right: 6px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-2\.5 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-14 { padding-top: 56px; }
.pt-16 { padding-top: 64px; }

.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }
.pb-12 { padding-bottom: 48px; }
.pb-18 { padding-bottom: 72px; }
.pb-20 { padding-bottom: 80px; }

.pl-3 { padding-left: 12px; }
.pl-9 { padding-left: 36px; }

/* 7. Flexbox & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-2\.5 { gap: 10px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 4px; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 6px; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 10px; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 16px; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 24px; }

.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.self-start { align-self: flex-start; }

/* 8. Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-3 { top: 12px; }
.-top-3 { top: -12px; }
.right-3 { right: 12px; }
.right-6 { right: 24px; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* 9. Interactions & Micro-animations */
.btn-tactile {
  transition: transform 120ms var(--ease-snappy), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  cursor: pointer;
}
.btn-tactile:active {
  transform: scale(0.97);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150 { transition-duration: 150ms; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/\[0\.08\]:hover { background-color: rgba(255, 255, 255, 0.08); }
.hover\:bg-zinc-200:hover { background-color: #e4e4e7; }
.hover\:border-white\/20:hover { border-color: rgba(255, 255, 255, 0.2); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px #71717a; }
.focus-visible\:ring-zinc-400:focus-visible { box-shadow: 0 0 0 2px #a1a1aa; }

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* 10. Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* 11. Responsive Breakpoints */

/* Small Devices (sm: >= 640px) */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-1 { flex: 1 1 0%; }
  .sm\:inline { display: inline; }
  .sm\:hidden { display: none; }
  .sm\:w-auto { width: auto; }
  .sm\:self-auto { align-self: auto; }
  .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
  .sm\:p-6 { padding: 24px; }
  .sm\:p-8 { padding: 32px; }
  .sm\:text-\[11px\] { font-size: 11px; line-height: 15px; }
  .sm\:text-\[13px\] { font-size: 13px; line-height: 18px; }
  .sm\:text-xs { font-size: 12px; line-height: 16px; }
  .sm\:text-sm { font-size: 14px; line-height: 20px; }
  .sm\:text-base { font-size: 16px; line-height: 24px; }
  .sm\:text-lg { font-size: 18px; line-height: 28px; }
  .sm\:text-xl { font-size: 20px; line-height: 28px; }
  .sm\:text-3xl { font-size: 30px; line-height: 36px; }
  .sm\:text-4xl { font-size: 36px; line-height: 40px; }
  .sm\:text-5xl { font-size: 48px; line-height: 1.1; }
  .sm\:gap-6 { gap: 24px; }
  .sm\:gap-12 { gap: 48px; }
  .sm\:items-baseline { align-items: baseline; }
  .sm\:justify-start { justify-content: flex-start; }
  .sm\:whitespace-normal { white-space: normal; }
}

/* Medium Devices (md: >= 768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:pt-24 { padding-top: 96px; }
  .md\:pb-28 { padding-bottom: 112px; }
  .md\:text-base { font-size: 16px; line-height: 24px; }
  .md\:text-lg { font-size: 18px; line-height: 28px; }
  .md\:text-xl { font-size: 20px; line-height: 28px; }
  .md\:text-4xl { font-size: 36px; line-height: 40px; }
  .md\:text-6xl { font-size: 60px; line-height: 1.1; }
}

/* Large Devices (lg: >= 1024px) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
}

/* Extra Large Devices (xl: >= 1280px) */
@media (min-width: 1280px) {
  .xl\:gap-8 { gap: 32px; }
}
