@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050608;
  --bg-soft: #0b0d12;
  --card: rgba(8, 10, 14, 0.78);
  --card-strong: rgba(10, 12, 16, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #9c9c9c;
  --primary: #ffffff;
  --primary-ink: #040404;
  --accent: #32d74b;
  --accent-2: #7dff8a;
  --danger: #f5f5f5;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(50, 215, 75, 0.25), 0 18px 40px rgba(50, 215, 75, 0.18);
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-chat: 'Manrope', 'Space Grotesk', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.03), transparent 45%),
    linear-gradient(180deg, #050608, #07090d 45%, #050608);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(50, 215, 75, 0.08), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  animation: float 16s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.05);
  top: -140px;
  right: -120px;
  animation-delay: 0s;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.04);
  bottom: -140px;
  left: -120px;
  animation-delay: 2s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.06);
  top: 45%;
  right: 18%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(18px);
  background: rgba(4, 5, 7, 0.78);
  border-bottom: 1px solid var(--border);
}

.mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.08), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.96), rgba(6, 8, 12, 0.98));
}

.mobile-gate-card {
  position: relative;
  max-width: 360px;
  width: 100%;
  padding: 28px 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(50, 215, 75, 0.25);
  background: rgba(6, 8, 12, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), var(--glow);
  display: grid;
  gap: 12px;
  text-align: center;
  overflow: hidden;
  animation: gate-float 6s ease-in-out infinite;
}

.mobile-gate-logo img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.2));
}

.mobile-gate-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mobile-gate-body {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-gate-scan {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, #32d74be6, transparent);
  animation: scan 5s linear infinite;
  opacity: 0.7;
}

.mobile-gate-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(50, 215, 75, 0.12), transparent 60%);
  animation: pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gate-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 300px;
  height: 90px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.25));
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 4px;
}

.nav a:hover {
  background: rgba(50, 215, 75, 0.08);
  border-color: rgba(50, 215, 75, 0.35);
  box-shadow: var(--glow);
}

.page {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.control-shell {
  display: grid;
  gap: 18px;
}

.control-hero {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(50, 215, 75, 0.18);
  background: radial-gradient(circle at 20% 30%, rgba(50, 215, 75, 0.12), transparent 55%),
    rgba(8, 10, 14, 0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.control-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(50, 215, 75, 0.15), transparent 40%);
  opacity: 0.5;
  pointer-events: none;
}

.control-hero .pill {
  border: 1px solid rgba(50, 215, 75, 0.4);
  box-shadow: 0 0 12px rgba(50, 215, 75, 0.2);
}

.control-hero h1 {
  font-size: 36px;
}

.control-hero .hero-actions .btn {
  border-radius: 999px;
}

.control-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.82);
}

.control-links {
  gap: 12px;
}

.control-chip {
  position: relative;
  border: 1px solid rgba(50, 215, 75, 0.18);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(6, 8, 12, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(50, 215, 75, 0.8), transparent);
}

.control-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.control-chip span {
  position: relative;
  z-index: 1;
}

.control-chip-text {
  display: grid;
  gap: 4px;
}

.control-chip-text span:first-child {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 215, 75, 0.25);
  color: var(--accent);
  background: rgba(8, 10, 14, 0.8);
  flex: 0 0 auto;
}

.control-icon svg {
  width: 18px;
  height: 18px;
}

.control-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 215, 75, 0.25);
  background: rgba(8, 10, 14, 0.8);
  overflow: hidden;
  flex: 0 0 auto;
}

.control-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.control-chip .muted {
  font-size: 11px;
}

.org-logo-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.org-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 14, 0.8);
}

.org-logo-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(8, 10, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent);
}

.control-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 215, 75, 0.4);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6), var(--glow);
}

.control-chip:hover::after {
  opacity: 1;
}

.control-table .table-row {
  background: rgba(50, 215, 75, 0.04);
  border-radius: 10px;
  padding: 6px 10px;
  overflow: hidden;
}

.control-table .table-row.table-head {
  background: transparent;
  padding: 0 0 8px;
}

.control-table .table-row:not(.table-head):hover {
  background: rgba(50, 215, 75, 0.08);
}

.table-row-sub {
  padding-top: 2px;
  margin-top: -4px;
  font-size: 13px;
  color: var(--muted);
}

.provision-list {
  display: grid;
  gap: 8px;
}

.provision-head {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr auto;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.provision-card {
  background: rgba(50, 215, 75, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
  display: grid;
  gap: 6px;
}

.provision-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr auto;
  gap: 12px;
  align-items: center;
}

.provision-org {
  font-size: 14px;
}

.provision-repos {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(8, 12, 10, 0.6);
  border: 1px solid rgba(50, 215, 75, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #e6f7ed;
  word-break: break-word;
}

.provision-repos .repo-arrow {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.provision-code {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(8, 12, 10, 0.6);
  border: 1px solid rgba(50, 215, 75, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6f7ed;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.settings-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(7, 12, 9, 0.92), rgba(8, 18, 12, 0.75));
  border: 1px solid rgba(50, 215, 75, 0.12);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
}

.settings-nav-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-nav-link {
  text-decoration: none;
  color: #d6eee0;
  padding: 10px 12px;
  border-radius: 11px;
  background: linear-gradient(105deg, rgba(50, 215, 75, 0.08), rgba(11, 20, 14, 0.7));
  border: 1px solid rgba(50, 215, 75, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: block;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.settings-nav a {
  text-decoration: none;
  color: #e6f7ed;
}

.settings-nav-link:hover {
  border-color: rgba(50, 215, 75, 0.4);
  transform: translateX(2px);
  color: #f2fff7;
}

.settings-nav-link.is-active {
  color: #ffffff;
  border-color: rgba(80, 245, 120, 0.55);
  background: linear-gradient(105deg, rgba(50, 215, 75, 0.22), rgba(12, 26, 17, 0.85));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(50, 215, 75, 0.25);
}

.settings-content,
.settings-admin {
  display: grid;
  gap: 20px;
}

.settings-content .settings-section,
.settings-admin .settings-section {
  display: none;
}

.settings-section.is-active {
  display: block;
}

.settings-section {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(8, 12, 10, 0.92), rgba(6, 10, 9, 0.86));
  border: 1px solid rgba(50, 215, 75, 0.08);
  padding: 18px 18px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-section-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-section-head p {
  margin: 0;
  color: var(--muted);
}

.settings-user-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.settings-user-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 12, 10, 0.8);
  border: 1px solid rgba(50, 215, 75, 0.08);
  display: grid;
  gap: 12px;
}

.settings-user-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.settings-user-name {
  font-size: 16px;
}

.settings-user-email {
  color: var(--muted);
  font-size: 13px;
}

.settings-user-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.settings-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-user-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.settings-user-controls {
  display: flex;
  justify-content: flex-end;
}

.settings-user-actions input[type="password"] {
  width: 100%;
  max-width: 100%;
  background: rgba(8, 10, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6f7ed;
}

.settings-user-table {
  margin-top: 10px;
}

.settings-user-row {
  cursor: default;
}

.settings-user-editor {
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 12, 10, 0.8);
  border: 1px solid rgba(50, 215, 75, 0.08);
  display: grid;
  gap: 14px;
}

.settings-user-editor.is-collapsed {
  display: none;
}

.settings-user-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.settings-user-editor .settings-user-name {
  font-size: 16px;
}

.settings-user-editor .settings-user-email {
  color: var(--muted);
  font-size: 13px;
}

.settings-user-editor input[type="password"] {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-user-editor input[type="password"]:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.6);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
}

.settings-user-editor .form-grid {
  margin: 0;
}

.settings-deepseek-summary {
  margin-top: 16px;
}

.ai-agent-stats {
  margin-bottom: 0;
}

.ai-agent-stats .stat {
  padding: 16px;
}

.ai-agent-stats .stat-label {
  color: rgba(205, 218, 212, 0.86);
  letter-spacing: 0.1em;
}

.ai-agent-stats .stat-value {
  font-size: 24px;
  line-height: 1.15;
}

.ai-agent-config {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.18);
  background: linear-gradient(165deg, rgba(6, 10, 8, 0.86), rgba(5, 8, 7, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-agent-config .form-grid {
  margin: 0;
}

.ai-agent-config .action-grid {
  margin-top: 6px;
}

.is-loading button[type="submit"] {
  opacity: 0.6;
  cursor: progress;
}

.is-loading button[type="submit"]::after {
  content: " ";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(50, 215, 75, 0.9);
  animation: spin 0.9s linear infinite;
}

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

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.setup-panel {
  margin-top: 20px;
}

.setup-list {
  display: grid;
  gap: 12px;
}

.setup-item {
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 12, 10, 0.8);
  border: 1px solid rgba(50, 215, 75, 0.08);
}

.setup-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.setup-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.setup-head p {
  margin: 0;
  color: var(--muted);
}

.setup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-chip.success {
  color: #b6ffca;
  background: rgba(50, 215, 75, 0.12);
  border: 1px solid rgba(50, 215, 75, 0.4);
}

.status-chip.failed {
  color: #ffb3b3;
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.35);
}

.setup-body {
  margin-top: 12px;
}

.setup-body.is-collapsed {
  display: none;
}

.settings-user-editor p {
  margin: 0;
}

.settings-user-editor .settings-user-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-user-password {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.settings-user-toggle {
  display: flex;
  justify-content: flex-end;
}

.settings-create-btn {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.settings-action-btn {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-action-link {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .settings-user-actions {
    grid-template-columns: 1fr;
  }
  .settings-user-password {
    grid-template-columns: 1fr;
  }
  .settings-user-toggle {
    justify-content: flex-start;
  }
}
.settings-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.settings-user-form.is-collapsed {
  display: none;
}

@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 12px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(50, 215, 75, 0.4);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glitch-text::before {
  transform: translate(-1px, -1px);
  color: rgba(125, 255, 138, 0.8);
  clip-path: inset(0 0 60% 0);
  animation: glitch-shift 2.4s infinite linear;
}

.glitch-text::after {
  transform: translate(1px, 1px);
  color: rgba(255, 255, 255, 0.7);
  clip-path: inset(40% 0 0 0);
  animation: glitch-shift 2s infinite linear reverse;
}

@keyframes glitch-shift {
  0%, 100% { transform: translate(0); opacity: 0.4; }
  20% { transform: translate(-2px, 1px); opacity: 0.7; }
  40% { transform: translate(2px, -1px); opacity: 0.5; }
  60% { transform: translate(-1px, 2px); opacity: 0.8; }
  80% { transform: translate(1px, -2px); opacity: 0.6; }
}

.hero-terminal {
  margin: 16px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(8, 10, 14, 0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-label {
  font-size: 11px;
  color: var(--muted);
}

.type-cycle {
  font-size: 13px;
  color: var(--accent);
  position: relative;
  min-height: 14px;
}

.type-cycle::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 12px;
  margin-left: 6px;
  background: var(--accent);
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-rails {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rail {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(8, 10, 14, 0.7);
  display: grid;
  gap: 6px;
}

.rail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.rail-value {
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.landing-summary {
  display: grid;
  gap: 12px;
}

.summary-stack {
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.summary-row strong {
  color: var(--accent);
}

.summary-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.summary-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, rgba(50, 215, 75, 0.9), rgba(255, 255, 255, 0.2));
}

.landing-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.intel-strip {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.65);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.intel-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.08), transparent 60%);
  pointer-events: none;
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 12px;
}

.strip-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.strip-scroll::-webkit-scrollbar {
  height: 6px;
}

.strip-scroll::-webkit-scrollbar-thumb {
  background: rgba(50, 215, 75, 0.35);
  border-radius: 999px;
}

.strip-card {
  scroll-snap-align: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(50, 215, 75, 0.18);
  background: rgba(6, 8, 12, 0.8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.strip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(50, 215, 75, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.strip-card:hover::after {
  opacity: 1;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.ai-surface {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.ai-surface-brief {
  display: grid;
  gap: 12px;
}

.ai-surface-brief p {
  margin: 0;
  color: rgba(228, 237, 232, 0.86);
  line-height: 1.65;
}

.ai-cap-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-cap-badges .tag-pill {
  border-color: rgba(50, 215, 75, 0.26);
  background: rgba(50, 215, 75, 0.1);
}

.ai-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-cap-card {
  display: grid;
  gap: 10px;
}

.ai-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-cap-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-cap-state {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-cap-state.live {
  border-color: rgba(50, 215, 75, 0.4);
  color: rgba(134, 249, 160, 0.96);
  background: rgba(50, 215, 75, 0.1);
}

.ai-cap-state.roadmap {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(228, 236, 232, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.ai-cap-card p {
  margin: 0;
  color: rgba(224, 235, 229, 0.84);
  line-height: 1.62;
}

.ai-cap-meta {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.plan-intro {
  max-width: 520px;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.plan-card {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
  background:
    linear-gradient(160deg, rgba(18, 24, 34, 0.75), rgba(7, 10, 14, 0.85));
  border: 1px solid rgba(90, 255, 170, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(60, 255, 170, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(120, 255, 210, 0.7), rgba(80, 240, 255, 0.2), rgba(50, 215, 75, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(120, 255, 210, 0.35), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(80, 240, 255, 0.28), transparent 50%),
    linear-gradient(120deg, rgba(50, 215, 75, 0.1), transparent 40%);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(120, 255, 210, 0.4);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.75), 0 0 24px rgba(80, 240, 255, 0.18);
}

.plan-card:hover::after {
  opacity: 1;
}

.plan-card.is-default {
  border: 1px solid rgba(120, 255, 210, 0.55);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.78), 0 0 30px rgba(120, 255, 210, 0.25);
  transform: translateY(-4px);
}

.plan-card.is-default:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 96px rgba(0, 0, 0, 0.82), 0 0 36px rgba(120, 255, 210, 0.32);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card .status-chip {
  background: rgba(80, 240, 255, 0.12);
  border: 1px solid rgba(120, 255, 210, 0.5);
  color: #dffcff;
}

.plan-tag {
  border: 1px solid rgba(120, 255, 210, 0.45);
  background: linear-gradient(120deg, rgba(120, 255, 210, 0.22), rgba(80, 240, 255, 0.12));
  color: #eafffb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 0 18px rgba(80, 240, 255, 0.2);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.2rem;
}

.plan-price strong {
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}

.plan-price-secondary {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-limits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 255, 210, 0.12);
}

.plan-limits > div {
  background: rgba(8, 12, 16, 0.72);
  border: 1px solid rgba(120, 255, 210, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.limit-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.limit-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(80, 240, 255, 0.1);
  border: 1px solid rgba(120, 255, 210, 0.4);
  box-shadow: 0 0 14px rgba(80, 240, 255, 0.2);
}

.limit-icon svg {
  width: 18px;
  height: 18px;
  stroke: #e8fffb;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.limit-body {
  display: grid;
  gap: 2px;
}

.plan-card .btn.primary {
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #e9e9e9);
  color: #060708;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.plan-card .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

@media (max-width: 720px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .plan-limits {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  display: grid;
  gap: 8px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-panel {
  display: grid;
  gap: 16px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
}

.demo-aside {
  display: grid;
  gap: 16px;
}

.aside-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 14, 0.7);
  padding: 16px;
}

.aside-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.aside-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.aside-stat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 8px;
}

.aside-stat strong {
  color: var(--accent);
  font-size: 14px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 8px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(50, 215, 75, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(180deg, #ffffff, #e9e9e9);
  color: #060708;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

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

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

.chart-card {
  display: grid;
  gap: 12px;
}

.chart-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sparkline,
.area-chart,
.line-chart {
  width: 100%;
  height: 140px;
}

.bar-chart {
  width: 100%;
  height: 140px;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-meter {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(50, 215, 75, 0.9), rgba(125, 255, 138, 0.5));
  box-shadow: 0 0 12px rgba(50, 215, 75, 0.4);
  transition: width 0.6s ease;
}

.donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.donut-chart {
  width: 180px;
  height: 180px;
}

.chart-tooltip {
  position: fixed;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 5, 7, 0.95);
  border: 1px solid rgba(50, 215, 75, 0.35);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9999;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.donut-center {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
}

.donut-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.donut-value {
  font-size: 22px;
  font-weight: 700;
}

.reliability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.reliability-chip {
  border: 1px solid rgba(50, 215, 75, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 10, 14, 0.7);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 6px;
}

.chip-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.chip-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat {
  background: var(--card);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(50, 215, 75, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat:hover::after {
  opacity: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 28px;
  margin-top: 6px;
  font-weight: 700;
}

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

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel + .panel {
  margin-top: 16px;
}

.panel {
  margin-bottom: 16px;
}

.page > section {
  margin-bottom: 16px;
}

.page > section:last-child {
  margin-bottom: 0;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50, 215, 75, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.panel:hover::before {
  opacity: 1;
}

.panel::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(50, 215, 75, 0.9), transparent);
  opacity: 0.7;
  animation: scan 6s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-header a {
  color: var(--accent);
  text-decoration: none;
}

.table {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.table-row > * {
  min-width: 0;
}

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

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

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

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

.table-row.table-head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-row:not(.table-head) {
  background: rgba(50, 215, 75, 0.05);
  border-radius: 12px;
  padding: 8px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-row:not(.table-head):hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.table-cell-clip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row .table-cell-clip {
  max-width: 100%;
}

.table-row .status {
  white-space: nowrap;
}

.table-cell-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.table-cell-stack > .table-cell-clip {
  max-width: 100%;
}

.blog-admin-filter {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
  gap: 12px;
}

.blog-admin-filter > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-admin-list {
  padding: 14px;
}

.blog-admin-list::before,
.blog-admin-list::after {
  display: none;
}

.blog-admin-list .table {
  gap: 8px;
}

.blog-admin-list .table-row.cols-6 {
  grid-template-columns:
    minmax(220px, 1.9fr)
    minmax(110px, 0.8fr)
    minmax(130px, 0.95fr)
    minmax(180px, 1.2fr)
    minmax(150px, 1fr)
    auto;
  gap: 14px;
}

.blog-admin-list .table-row.table-head {
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.blog-admin-list .table-row:not(.table-head) {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 10, 12, 0.88), rgba(5, 8, 10, 0.86));
  box-shadow: none;
}

.blog-admin-list .table-row:not(.table-head):hover {
  border-color: rgba(50, 215, 75, 0.34);
  box-shadow: 0 0 0 1px rgba(50, 215, 75, 0.18);
}

.blog-admin-title {
  font-size: 16px;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.blog-admin-slug {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.blog-admin-featured {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.35);
  background: rgba(50, 215, 75, 0.12);
  color: rgba(145, 255, 165, 0.95);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.blog-admin-status.published {
  color: rgba(125, 255, 138, 0.95);
  border-color: rgba(50, 215, 75, 0.34);
  background: rgba(50, 215, 75, 0.12);
}

.blog-admin-status.draft {
  color: rgba(225, 233, 228, 0.9);
}

.blog-admin-status.scheduled {
  color: rgba(137, 226, 255, 0.95);
  border-color: rgba(116, 214, 255, 0.34);
  background: rgba(116, 214, 255, 0.1);
}

.blog-admin-status.archived {
  color: rgba(190, 198, 194, 0.86);
}

.blog-admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-admin-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(225, 236, 230, 0.9);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blog-admin-empty {
  color: var(--muted);
}

.blog-admin-date {
  font-variant-numeric: tabular-nums;
  color: rgba(233, 243, 238, 0.94);
  font-size: 13px;
}

.blog-admin-actions {
  justify-content: flex-end;
  gap: 6px;
}

.blog-admin-actions .btn.small {
  min-width: 66px;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.blog-admin-actions form {
  margin: 0;
}

.blog-admin-actions .link-danger {
  color: #f4f4f4;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-head {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr auto;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.audit-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr auto;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(20, 26, 23, 0.98), rgba(12, 14, 14, 0.96));
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(68, 88, 72, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.audit-action {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.audit-actions {
  display: flex;
  justify-content: flex-end;
}

.audit-time-primary {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.audit-time-secondary {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.audit-detail {
  display: none;
  border: 1px solid rgba(68, 88, 72, 0.35);
  border-radius: 14px;
  padding: 16px;
  background: rgba(10, 12, 12, 0.85);
}

.audit-detail.is-open {
  display: block;
}

.audit-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.audit-meta-body {
  margin: 0;
}

.audit-detail-table {
  display: grid;
  gap: 10px;
}

.audit-detail-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.audit-detail-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.audit-detail-val {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 900px) {
  .audit-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.table-link {
  color: var(--accent);
  text-decoration: none;
  text-align: right;
}

.detail-grid .table-link {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.repo-browser {
  display: grid;
  gap: 12px;
}

.repo-fullscreen-toggle {
  border: 1px solid rgba(120, 255, 210, 0.3);
  background: rgba(8, 12, 16, 0.7);
  color: #e6fff7;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.repo-fullscreen-toggle:hover {
  transform: translateY(-1px);
  border: 1px solid rgba(120, 255, 210, 0.5);
  box-shadow: 0 0 18px rgba(80, 240, 255, 0.2);
}

.repo-fullscreen-toggle svg {
  width: 18px;
  height: 18px;
  stroke: #e8fffb;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repo-browser.is-fullscreen {
  position: fixed;
  inset: 24px;
  z-index: 1200;
  padding: 16px;
  border-radius: 20px;
  background: rgba(6, 8, 12, 0.92);
  border: 1px solid rgba(120, 255, 210, 0.25);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(80, 240, 255, 0.18);
}

.repo-browser.is-fullscreen .repo-browser-body {
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
}

.repo-browser.is-fullscreen .repo-tree,
.repo-browser.is-fullscreen .repo-preview-body {
  max-height: calc(100vh - 220px);
}

.repo-browser.is-fullscreen .repo-fullscreen-toggle::after {
  content: "";
}

body.repo-browser-lock {
  overflow: hidden;
}

.repo-browser-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 28, 22, 0.92), rgba(10, 14, 12, 0.92));
  border: 1px solid rgba(50, 215, 75, 0.16);
}

.repo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.repo-breadcrumb button {
  background: rgba(50, 215, 75, 0.08);
  border: 1px solid rgba(50, 215, 75, 0.2);
  color: #e6f7ed;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.repo-branch {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.repo-browser-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.repo-tree {
  border: 1px solid rgba(50, 215, 75, 0.12);
  border-radius: 14px;
  background: rgba(8, 10, 10, 0.85);
  padding: 8px;
  max-height: 420px;
  overflow: auto;
}

.repo-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.repo-entry:hover {
  background: rgba(50, 215, 75, 0.08);
  border-color: rgba(50, 215, 75, 0.2);
}

.repo-entry.is-active {
  background: rgba(50, 215, 75, 0.14);
  border-color: rgba(50, 215, 75, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.repo-entry .repo-name {
  font-weight: 600;
  color: #e6f7ed;
}

.repo-entry .repo-kind {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: rgba(50, 215, 75, 0.9);
}

.repo-entry .repo-kind svg {
  width: 18px;
  height: 18px;
  display: block;
}

.repo-entry.is-mapped {
  border-color: rgba(50, 215, 75, 0.35);
  background: rgba(50, 215, 75, 0.12);
}

.repo-entry.is-mapped .repo-kind {
  color: rgba(56, 224, 106, 0.95);
}

.repo-entry.is-unmapped .repo-kind {
  color: rgba(50, 215, 75, 0.9);
}

.repo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.repo-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.repo-badge.is-mapped {
  color: rgba(56, 224, 106, 0.95);
  border-color: rgba(56, 224, 106, 0.35);
  background: rgba(56, 224, 106, 0.12);
}

.repo-badge.is-unmapped {
  color: rgba(255, 95, 95, 0.95);
  border-color: rgba(255, 95, 95, 0.35);
  background: rgba(255, 95, 95, 0.1);
}

.repo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.repo-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.repo-status.is-mapped {
  color: rgba(56, 224, 106, 0.95);
  border-color: rgba(56, 224, 106, 0.35);
  background: rgba(56, 224, 106, 0.12);
}

.repo-status.is-unmapped {
  color: rgba(255, 95, 95, 0.95);
  border-color: rgba(255, 95, 95, 0.35);
  background: rgba(255, 95, 95, 0.1);
}

.repo-status.is-partial {
  color: rgba(245, 200, 75, 0.95);
  border-color: rgba(245, 200, 75, 0.35);
  background: rgba(245, 200, 75, 0.12);
}

.diff-file {
  border: 1px solid rgba(50, 215, 75, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(7, 12, 10, 0.35);
}

.diff-file > summary {
  list-style: none;
}

.diff-file > summary::-webkit-details-marker {
  display: none;
}

.diff-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.diff-file-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diff-file-header .status {
  margin-left: 10px;
}

.diff-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 6px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(6, 10, 8, 0.7);
  color: rgba(229, 255, 236, 0.8);
  transition: transform 0.18s ease;
  flex: 0 0 20px;
}

.diff-toggle svg {
  width: 12px;
  height: 12px;
  display: block;
}

.diff-file[open] .diff-toggle {
  transform: rotate(90deg);
}

.diff-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 10, 8, 0.7);
  border: 1px solid rgba(50, 215, 75, 0.1);
  color: rgba(229, 255, 236, 0.85);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
}

.diff-table {
  border: 1px solid rgba(50, 215, 75, 0.1);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
  background: rgba(6, 10, 8, 0.75);
}

.diff-table-head,
.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 12px;
}

.diff-table-head {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: rgba(229, 255, 236, 0.75);
  background: rgba(6, 10, 8, 0.9);
  border-bottom: 1px solid rgba(50, 215, 75, 0.1);
}

.diff-row span,
.diff-table-head span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.diff-cell {
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
}

.diff-cell::before {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  text-align: center;
  opacity: 0.7;
}

.diff-row.diff-+ .diff-before::before,
.diff-row.diff-- .diff-after::before,
.diff-row.diff-edit .diff-before::before,
.diff-row.diff-edit .diff-after::before {
  content: "";
}

.diff-row.diff-+ .diff-after::before {
  content: "+";
  color: rgba(56, 224, 106, 0.9);
}

.diff-row.diff-- .diff-before::before {
  content: "-";
  color: rgba(255, 95, 95, 0.9);
}

.diff-row.diff-edit .diff-before::before {
  content: "~";
  color: rgba(70, 140, 255, 0.9);
}

.diff-row.diff-edit .diff-after::before {
  content: "~";
  color: rgba(70, 140, 255, 0.9);
}

.diff-prefix {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  text-align: center;
  font-weight: 700;
}

.diff-prefix.diff-plus {
  color: rgba(56, 224, 106, 0.95);
}

.diff-row .diff-before {
  padding-right: 12px;
  border-right: 1px solid rgba(50, 215, 75, 0.08);
}

.diff-row .diff-after {
  padding-left: 6px;
}

.diff-table {
  position: relative;
}

.diff-table::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(50, 215, 75, 0.12);
  pointer-events: none;
}

.diff-table-head,
.diff-row {
  position: relative;
  z-index: 1;
}

.diff-row.diff-hunk {
  grid-template-columns: 1fr;
  font-style: italic;
  color: rgba(180, 205, 190, 0.8);
  background: rgba(6, 10, 8, 0.8);
  border-top: 1px solid rgba(50, 215, 75, 0.08);
  border-bottom: 1px solid rgba(50, 215, 75, 0.08);
}

.diff-hunk-text {
  grid-column: 1 / -1;
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

.diff-row.diff-+ .diff-after {
  background: rgba(56, 224, 106, 0.12);
}

.diff-row.diff-- .diff-before {
  background: rgba(255, 95, 95, 0.12);
}

.diff-row.diff-edit .diff-before,
.diff-row.diff-edit .diff-after {
  background: rgba(70, 140, 255, 0.14);
}

.commit-message {
  margin: 0;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.12);
  background: rgba(6, 10, 8, 0.6);
}

.commit-message summary {
  list-style: none;
  cursor: pointer;
}

.commit-message summary::-webkit-details-marker {
  display: none;
}

.commit-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.commit-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(50, 215, 75, 0.08);
  color: rgba(229, 255, 236, 0.9);
}

.commit-badge.commit-scope {
  border-color: rgba(70, 140, 255, 0.25);
  background: rgba(70, 140, 255, 0.12);
}

.commit-subject {
  font-weight: 600;
  color: rgba(229, 255, 236, 0.9);
}

.commit-body {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(229, 255, 236, 0.65);
  white-space: pre-wrap;
}

.commit-table .table-row {
  padding: 10px 12px;
}

.commit-table .table-row.table-head {
  padding: 8px 12px;
}

.commit-table .table-row {
  align-items: start;
}

.commit-table summary.commit-subject {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.commit-message[open] summary.commit-subject {
  white-space: normal;
}

.commit-sha {
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

.commit-time {
  color: rgba(229, 255, 236, 0.65);
  font-variant-numeric: tabular-nums;
}

.sync-ai-summary-meta {
  margin-bottom: 8px;
}

.sync-ai-summary-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(8, 14, 11, 0.45);
  color: rgba(214, 238, 224, 0.9);
  font-size: 13px;
  letter-spacing: 0.01em;
  font-family: var(--font-chat);
}

.sync-ai-summary-body {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background:
    linear-gradient(145deg, rgba(9, 16, 12, 0.86), rgba(6, 10, 8, 0.72)),
    radial-gradient(circle at 90% 20%, rgba(50, 215, 75, 0.1), transparent 48%);
  color: rgba(236, 248, 241, 0.96);
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 17px;
  font-family: var(--font-chat);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.sync-ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sync-ai-section {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background:
    linear-gradient(145deg, rgba(9, 16, 12, 0.86), rgba(6, 10, 8, 0.72)),
    radial-gradient(circle at 90% 20%, rgba(50, 215, 75, 0.1), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.sync-ai-section.is-staged {
  opacity: 0;
  transform: translateY(8px);
}

.sync-ai-section.is-staged.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sync-ai-section h3 {
  margin: 0 0 8px;
  font-family: var(--font-chat);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #dffce8;
}

.sync-ai-section-body {
  color: rgba(236, 248, 241, 0.96);
  line-height: 1.62;
  font-size: 17px;
  font-family: var(--font-chat);
  font-weight: 500;
  white-space: pre-wrap;
}

.sync-ai-section-body.is-typing::after,
.sync-ai-summary-body.is-typing::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: rgba(125, 255, 138, 0.9);
  animation: blink-caret 0.85s steps(1) infinite;
}

@keyframes blink-caret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.sync-ai-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  height: clamp(420px, calc(100vh - 340px), 680px);
  min-height: 420px;
}

.sync-ai-chat-messages {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 4px 6px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(62, 196, 105, 0.55) rgba(6, 10, 8, 0.78);
}

.sync-ai-chat-messages::-webkit-scrollbar {
  width: 10px;
}

.sync-ai-chat-messages::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.85), rgba(8, 12, 10, 0.7));
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.12);
}

.sync-ai-chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(68, 212, 114, 0.72), rgba(35, 147, 77, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(6, 10, 8, 0.9);
}

.sync-ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(93, 232, 138, 0.84), rgba(42, 168, 88, 0.84));
}

.sync-ai-msg {
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 12, 0.72);
  display: grid;
  gap: 6px;
  width: min(100%, 1000px);
  overflow: visible;
}

.sync-ai-msg-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sync-ai-msg-body {
  line-height: 1.66;
  font-size: 16px;
  font-family: var(--font-chat);
  color: rgba(236, 247, 241, 0.98);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.sync-ai-msg-body strong {
  color: #f7fff9;
  font-weight: 800;
}

.sync-ai-msg-body code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid rgba(50, 215, 75, 0.25);
  background: rgba(7, 14, 11, 0.7);
  color: #dbffe7;
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.92em;
}

.sync-ai-code-block {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.2);
  background: rgba(6, 11, 9, 0.82);
  overflow: auto;
  max-width: 100%;
}

.sync-ai-code {
  display: block;
  color: #e7f4ee;
  font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sync-code-kw { color: #8fe388; font-weight: 700; }
.sync-code-str { color: #f9c989; }
.sync-code-num { color: #8fc2ff; }
.sync-code-com { color: #8da19a; font-style: italic; }
.sync-code-key { color: #7fe0d1; }
.sync-code-tag { color: #ffce87; }

.sync-ai-msg-time {
  font-size: 11px;
  color: rgba(202, 214, 208, 0.72);
}

.sync-ai-msg-assistant {
  border-color: rgba(50, 215, 75, 0.28);
  background: linear-gradient(145deg, rgba(9, 16, 12, 0.86), rgba(6, 10, 8, 0.72));
  justify-self: start;
  box-shadow: none;
}

.sync-ai-msg-user {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(11, 14, 18, 0.85);
  justify-self: end;
  width: min(100%, 780px);
  box-shadow: none;
}

.sync-ai-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.sync-ai-chat-form textarea {
  width: 100%;
  min-height: 88px;
  max-height: 240px;
  resize: vertical;
  font-family: var(--font-chat);
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(50, 215, 75, 0.24);
  background:
    linear-gradient(155deg, rgba(8, 13, 11, 0.94), rgba(6, 9, 8, 0.84)),
    radial-gradient(circle at 85% 15%, rgba(50, 215, 75, 0.08), transparent 45%);
  color: #f4fff8;
  caret-color: #5dff8f;
  font-weight: 600;
  text-shadow: 0 0 1px rgba(93, 255, 143, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(0, 0, 0, 0.35);
}

.sync-ai-send-btn {
  align-self: end;
  min-width: 92px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 20, 17, 0.98), rgba(9, 14, 12, 0.96));
  color: #e6f7ed;
  border: 1px solid rgba(78, 210, 121, 0.42);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 13px;
  box-shadow:
    0 8px 18px rgba(2, 8, 6, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.sync-ai-send-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(98, 232, 142, 0.62);
  color: #f6fff9;
  box-shadow:
    0 12px 24px rgba(2, 8, 6, 0.62),
    0 0 0 1px rgba(50, 215, 75, 0.2),
    0 0 12px rgba(50, 215, 75, 0.14);
}

.sync-ai-send-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.sync-ai-chat-form textarea::placeholder {
  color: rgba(205, 224, 214, 0.88);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.sync-ai-chat-form textarea:focus {
  outline: none;
  border-color: rgba(80, 245, 120, 0.62);
  box-shadow:
    0 0 0 2px rgba(50, 215, 75, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.42);
}

.sync-ai-chat-hint {
  font-size: 12px;
  color: rgba(202, 214, 208, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .sync-ai-chat {
    height: clamp(380px, calc(100vh - 260px), 560px);
    min-height: 380px;
  }

  .sync-ai-composer {
    grid-template-columns: 1fr;
  }

  .sync-ai-send-btn {
    width: 100%;
    height: 44px;
  }
}

.diff-row.diff-\  {
  background: rgba(255, 255, 255, 0.02);
}




.repo-preview {
  border: 1px solid rgba(50, 215, 75, 0.12);
  border-radius: 14px;
  background: rgba(8, 10, 10, 0.85);
  padding: 12px 14px;
  min-height: 200px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.repo-preview-header {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.repo-preview-body {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e6f7ed;
  overflow: auto;
  max-height: 360px;
}

.code-key {
  color: #9cdcfe;
}

.code-string {
  color: #ce9178;
}

.code-number {
  color: #b5cea8;
}

.code-bool {
  color: #4fc1ff;
}

.code-tag {
  color: #569cd6;
}

.code-attr {
  color: #9cdcfe;
}

.code-comment {
  color: #6a9955;
  font-style: italic;
}

.code-keyword {
  color: #c586c0;
}

.code-func {
  color: #dcdcaa;
}

.code-type {
  color: #4ec9b0;
}

@media (max-width: 900px) {
  .repo-browser-body {
    grid-template-columns: 1fr;
  }
}

.sync-outcomes {
  display: grid;
  gap: 14px;
}

.donut-sync {
  align-items: center;
  justify-items: center;
}

.donut-sync .donut-wrap {
  width: 140px;
  height: 140px;
  position: relative;
}

.sync-outcomes-bar {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.sync-seg {
  height: 100%;
}

.sync-approved {
  background: linear-gradient(90deg, #1dd75c, #4bff8b);
}

.sync-rejected {
  background: linear-gradient(90deg, #ff4d4d, #ff7b7b);
}

.sync-failed {
  background: linear-gradient(90deg, #ff9f1a, #ffc15a);
}

.sync-pending {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2));
}

.sync-outcomes-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.sync-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-legend-item strong {
  color: var(--text);
  font-weight: 600;
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.inline-actions form {
  margin: 0;
}

.inline-actions select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.28);
  background: rgba(8, 10, 14, 0.75);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-actions select:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.6);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
}

.inline-actions .table-link,
.inline-actions .link-danger {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.inline-actions .table-link:hover,
.inline-actions .link-danger:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
  border-color: rgba(50, 215, 75, 0.4);
}

.link-danger {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-actions .link-danger {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.status {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.status.pending { color: #c9c9c9; }
.status.success, .status.approved, .status.mapped { color: var(--accent); }
.status.failed, .status.rejected, .status.unmapped { color: #e0e0e0; }

.empty {
  color: var(--muted);
  padding: 12px 0;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 36px 32px 48px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 28px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(360px, 560px);
  gap: 40px;
  align-items: center;
  position: relative;
  padding: 16px 0;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-hero {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 32px rgba(50, 215, 75, 0.15);
  border: 1px solid rgba(50, 215, 75, 0.35);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(50, 215, 75, 0.2), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

.auth-aside {
  display: grid;
  gap: 16px;
  position: relative;
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 30%, rgba(0,0,0,1), transparent 60%);
  opacity: 0.35;
  animation: net-drift 10s ease-in-out infinite;
  pointer-events: none;
}

.auth-header h1 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-header p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form label.field-active,
.auth-form label.field-filled {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(50, 215, 75, 0.35);
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.6);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid p {
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.table-row input[type="text"],
.table-row input[type="password"] {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.25);
  background: rgba(8, 10, 14, 0.8);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.table-row input[type="text"]::placeholder,
.table-row input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.table-row input[type="text"]:focus,
.table-row input[type="password"]:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.6);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
}

.form-grid input[type="file"] {
  padding: 10px 12px;
  border-style: dashed;
  border-color: rgba(50, 215, 75, 0.3);
  background: rgba(6, 8, 12, 0.55);
}

.form-grid input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(50, 215, 75, 0.4);
  background: rgba(50, 215, 75, 0.18);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.form-grid input[type="file"]:hover {
  border-color: rgba(50, 215, 75, 0.55);
  box-shadow: 0 0 0 1px rgba(50, 215, 75, 0.2), 0 12px 26px rgba(0, 0, 0, 0.45);
}

.form-grid input[type="file"]::file-selector-button:hover {
  background: rgba(50, 215, 75, 0.28);
}

.form-grid select[multiple] {
  min-height: 140px;
  padding: 10px;
  background: rgba(6, 8, 12, 0.7);
  border: 1px solid rgba(50, 215, 75, 0.2);
}

.form-grid select[multiple] option {
  padding: 8px 10px;
  border-radius: 8px;
  margin: 2px 0;
}

.form-grid select[multiple] option:checked {
  background: rgba(50, 215, 75, 0.35);
  color: var(--text);
}

.form-grid input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(50, 215, 75, 0.35);
  background: rgba(6, 8, 12, 0.7);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.form-grid input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(50, 215, 75, 0.9);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-grid input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

.form-grid input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
}

.tag-select {
  display: grid;
  gap: 10px;
}

.tag-select-list {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.25);
  background: rgba(6, 8, 12, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-select-placeholder {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-pill {
  border: 1px solid rgba(50, 215, 75, 0.35);
  background: rgba(50, 215, 75, 0.16);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tag-pill:hover {
  background: rgba(50, 215, 75, 0.26);
}

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

.inline-tags .tag-pill {
  cursor: default;
}

.tag-select-native {
  min-height: 120px;
}

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.toggle-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(50, 215, 75, 0.25);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.toggle input[type="checkbox"]:checked + .toggle-track {
  background: rgba(50, 215, 75, 0.5);
  border-color: rgba(50, 215, 75, 0.6);
}

.toggle input[type="checkbox"]:checked + .toggle-track::after {
  transform: translateX(20px);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.6);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2), var(--glow);
  transform: translateY(-1px);
}

.form-grid p.field-active label,
.form-grid p.field-filled label {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(50, 215, 75, 0.35);
}

.wp-editor-form {
  display: grid;
  gap: 16px;
}

.wp-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.wp-editor-main {
  display: grid;
  gap: 14px;
}

.wp-editor-side {
  display: grid;
  gap: 14px;
}

.wp-editor-form .panel {
  padding: 16px;
}

.wp-editor-form .panel::before,
.wp-editor-form .panel::after {
  display: none;
}

.wp-meta-box h3,
.wp-seo-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wp-field {
  display: grid;
  gap: 8px;
}

.wp-field label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wp-editor-form input[type="text"],
.wp-editor-form input[type="url"],
.wp-editor-form input[type="datetime-local"],
.wp-editor-form select,
.wp-editor-form textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 12, 0.8);
  color: var(--text);
  font-family: inherit;
}

.wp-editor-form textarea {
  min-height: 92px;
  resize: vertical;
}

.wp-content-field textarea {
  min-height: 420px;
  font-size: 15px;
  line-height: 1.75;
}

.wp-editor-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(6, 9, 12, 0.82);
  overflow: hidden;
}

.wp-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 13, 0.92);
}

.wp-toolbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 9px;
  line-height: 1;
  cursor: pointer;
  min-height: 32px;
}

.wp-toolbar-btn strong,
.wp-toolbar-btn em {
  font-size: 12px;
}

.wp-toolbar-btn:hover {
  border-color: rgba(50, 215, 75, 0.45);
  background: rgba(50, 215, 75, 0.14);
}

.wp-toolbar-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.25);
}

.wp-content-field textarea {
  border: 0;
  border-radius: 0;
  background: rgba(6, 9, 12, 0.45);
}

.wp-content-field textarea:focus {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(50, 215, 75, 0.35);
}

.wp-editor-shell--rich {
  border: 0;
  background: transparent;
}

.wp-content-field .wp-rich-source {
  min-height: 520px;
}

.wp-content-field .tox {
  --tox-bg-color: #080d10;
  --tox-button-background-color: transparent;
  --tox-button-background-color-hover: rgba(50, 215, 75, 0.16);
  --tox-button-background-color-active: rgba(50, 215, 75, 0.24);
  --tox-button-border-color: transparent;
  --tox-button-text-color: #e8f3ec;
}

.wp-content-field .tox-tinymce {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  background: rgba(6, 9, 12, 0.85) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.wp-content-field .tox:not(.tox-tinymce-inline) .tox-editor-header {
  background: rgba(7, 10, 13, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.wp-content-field .tox .tox-toolbar-overlord,
.wp-content-field .tox .tox-toolbar,
.wp-content-field .tox .tox-toolbar__overflow,
.wp-content-field .tox .tox-toolbar__primary,
.wp-content-field .tox .tox-menubar {
  background: rgba(7, 10, 13, 0.95) !important;
}

.wp-content-field .tox .tox-menubar {
  padding: 6px 8px 4px !important;
}

.wp-content-field .tox .tox-mbtn,
.wp-content-field .tox .tox-tbtn,
.wp-content-field .tox .tox-tbtn--select {
  color: rgba(232, 243, 236, 0.94) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
}

.wp-content-field .tox .tox-mbtn:hover,
.wp-content-field .tox .tox-tbtn:hover,
.wp-content-field .tox .tox-tbtn--select:hover {
  color: #f4fff8 !important;
  background: rgba(50, 215, 75, 0.14) !important;
  border-color: rgba(50, 215, 75, 0.24) !important;
}

.wp-content-field .tox .tox-tbtn {
  border-radius: 8px !important;
}

.wp-content-field .tox .tox-tbtn--enabled,
.wp-content-field .tox .tox-tbtn--enabled:hover,
.wp-content-field .tox .tox-mbtn--active,
.wp-content-field .tox .tox-tbtn:focus,
.wp-content-field .tox .tox-mbtn:focus,
.wp-content-field .tox .tox-tbtn:focus-visible,
.wp-content-field .tox .tox-mbtn:focus-visible {
  color: #f5fff9 !important;
  background: rgba(50, 215, 75, 0.22) !important;
  border-color: rgba(50, 215, 75, 0.36) !important;
  box-shadow: inset 0 0 0 1px rgba(50, 215, 75, 0.24) !important;
}

.wp-content-field .tox .tox-icon svg,
.wp-content-field .tox .tox-tbtn svg,
.wp-content-field .tox .tox-mbtn svg {
  fill: rgba(231, 244, 236, 0.92) !important;
}

.wp-content-field .tox .tox-tbtn--enabled .tox-icon svg,
.wp-content-field .tox .tox-mbtn--active .tox-icon svg {
  fill: #f5fff9 !important;
}

.wp-content-field .tox .tox-collection,
.wp-content-field .tox .tox-menu,
.wp-content-field .tox .tox-swatches,
.wp-content-field .tox .tox-dialog {
  background: rgba(7, 10, 13, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.wp-content-field .tox .tox-collection__item,
.wp-content-field .tox .tox-collection__item-label,
.wp-content-field .tox .tox-collection__item-accessory {
  color: rgba(230, 241, 234, 0.92) !important;
}

.wp-content-field .tox .tox-collection__item--enabled:hover,
.wp-content-field .tox .tox-collection__item--active,
.wp-content-field .tox .tox-collection__item--selected {
  color: #f5fff9 !important;
  background: rgba(50, 215, 75, 0.2) !important;
}

.wp-content-field .tox .tox-collection__item-checkmark svg,
.wp-content-field .tox .tox-collection__item-caret svg {
  fill: rgba(122, 246, 167, 0.9) !important;
}

.tox.tox-silver-sink .tox-menu,
.tox.tox-silver-sink .tox-collection,
.tox.tox-silver-sink .tox-collection__group {
  background: rgba(7, 10, 13, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5) !important;
}

.tox.tox-silver-sink .tox-collection__item {
  color: rgba(230, 241, 234, 0.92) !important;
}

.tox.tox-silver-sink .tox-collection__item-label,
.tox.tox-silver-sink .tox-collection__item-accessory {
  color: inherit !important;
}

.tox.tox-silver-sink .tox-collection__item--enabled:hover,
.tox.tox-silver-sink .tox-collection__item--active,
.tox.tox-silver-sink .tox-collection__item--selected {
  color: #f5fff9 !important;
  background: rgba(50, 215, 75, 0.2) !important;
}

.tox.tox-silver-sink .tox-collection__item-checkmark svg,
.tox.tox-silver-sink .tox-collection__item-caret svg {
  fill: rgba(122, 246, 167, 0.9) !important;
}

.tox.tox-silver-sink .tox-dialog {
  background: rgba(7, 10, 13, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.tox.tox-silver-sink .tox-dialog__header,
.tox.tox-silver-sink .tox-dialog__footer {
  background: rgba(7, 10, 13, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.tox.tox-silver-sink .tox-textfield,
.tox.tox-silver-sink .tox-listboxfield .tox-listbox--select {
  background: rgba(6, 9, 12, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: rgba(235, 246, 240, 0.95) !important;
}

.tox.tox-silver-sink .tox-button {
  background: rgba(50, 215, 75, 0.2) !important;
  border-color: rgba(50, 215, 75, 0.36) !important;
  color: #f5fff9 !important;
}

.tox.tox-silver-sink .tox-button:hover {
  background: rgba(50, 215, 75, 0.28) !important;
}

.wp-content-field .tox .tox-statusbar {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(7, 10, 13, 0.9) !important;
}

.wp-content-field .tox .tox-edit-area::before {
  border-color: rgba(50, 215, 75, 0.35) !important;
}

.wp-editor-form .flatpickr-input[readonly] {
  cursor: pointer;
}

.flatpickr-calendar {
  background: rgba(7, 10, 13, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.52) !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-weekdays,
.flatpickr-weekday,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm,
.flatpickr-time input,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: rgba(235, 246, 240, 0.94) !important;
}

.flatpickr-weekday {
  color: rgba(178, 196, 186, 0.88) !important;
}

.flatpickr-day {
  color: rgba(227, 239, 232, 0.92) !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(50, 215, 75, 0.2) !important;
  border-color: rgba(50, 215, 75, 0.32) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: rgba(50, 215, 75, 0.36) !important;
  border-color: rgba(50, 215, 75, 0.48) !important;
  color: #f6fff9 !important;
}

.flatpickr-day.today {
  border-color: rgba(50, 215, 75, 0.52) !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: rgba(50, 215, 75, 0.2) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: rgba(122, 246, 167, 0.94) !important;
}

.wp-editor-form input:focus,
.wp-editor-form select:focus,
.wp-editor-form textarea:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.58);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2);
}

.wp-editor-form select[multiple] {
  min-height: 160px;
}

.wp-check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 20px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.wp-check-row input[type="checkbox"] {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.wp-check-control {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 12, 16, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.wp-check-control::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #06110a;
  border-bottom: 2px solid #06110a;
  transform: rotate(45deg) scale(0.7);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.wp-check-row input[type="checkbox"]:checked + .wp-check-control {
  border-color: rgba(50, 215, 75, 0.5);
  background: linear-gradient(180deg, rgba(87, 230, 132, 0.95), rgba(50, 215, 75, 0.88));
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2);
}

.wp-check-row input[type="checkbox"]:checked + .wp-check-control::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.wp-check-row input[type="checkbox"]:focus-visible + .wp-check-control {
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.3);
}

.wp-file-input {
  width: 100%;
  color: rgba(224, 237, 229, 0.92);
  font-size: 13px;
}

.wp-file-input::file-selector-button {
  border: 1px solid rgba(50, 215, 75, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 28, 24, 0.95), rgba(11, 18, 15, 0.95));
  color: rgba(236, 248, 241, 0.94);
  padding: 8px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.wp-file-input:hover::file-selector-button {
  border-color: rgba(50, 215, 75, 0.56);
  background: linear-gradient(180deg, rgba(22, 35, 29, 0.97), rgba(14, 24, 19, 0.97));
  transform: translateY(-1px);
}

.wp-file-input:focus-visible::file-selector-button {
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.25);
}

.wp-file-input:hover {
  color: rgba(236, 248, 241, 0.98);
}

.wp-file-input::-webkit-file-upload-button {
  border: 1px solid rgba(50, 215, 75, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 28, 24, 0.95), rgba(11, 18, 15, 0.95));
  color: rgba(236, 248, 241, 0.94);
  padding: 8px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.wp-file-input:hover::-webkit-file-upload-button {
  border-color: rgba(50, 215, 75, 0.56);
}

.wp-file-input:focus-visible {
  outline: none;
}

.wp-file-input:focus-visible::-webkit-file-upload-button {
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.25);
}

.wp-check-row span:last-child {
  line-height: 1.3;
  margin: 0;
}

.wp-action-stack {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.wp-featured-preview {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 1080px) {
  .wp-editor-layout {
    grid-template-columns: 1fr;
  }

  .wp-content-field textarea {
    min-height: 320px;
  }
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-aside {
  display: grid;
  gap: 16px;
}

.stat-card {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  width: 100%;
  justify-self: stretch;
}

.diagram-shell {
  position: relative;
  min-height: 300px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.diagram-circuit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 32px);
  opacity: 0.3;
}

.diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wire {
  stroke-dasharray: 6 6;
  animation: wire-flow 6s linear infinite;
}

.wire-b { animation-delay: 1s; }
.wire-c { animation-delay: 2s; }
.wire-d { animation-delay: 3s; }

.packet {
  fill: #32d74b;
  filter: drop-shadow(0 0 6px rgba(50, 215, 75, 0.8));
  animation: packet-pulse 3.5s ease-in-out infinite;
}

.packet-b { animation-delay: 0.8s; }
.packet-c { animation-delay: 1.6s; }
.packet-d { animation-delay: 2.4s; }

.diagram-core-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.5);
  box-shadow: 0 0 18px rgba(50, 215, 75, 0.3);
  background: rgba(8, 10, 14, 0.75);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.diagram-node {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(8, 10, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  z-index: 2;
}

.diagram-node.overlay-a { top: 14%; left: 12%; }
.diagram-node.overlay-b { top: 12%; right: 12%; }
.diagram-node.overlay-c { bottom: 16%; left: 12%; }
.diagram-node.overlay-d { bottom: 18%; right: 12%; }

@keyframes wire-flow {
  0% { stroke-dashoffset: 0; opacity: 0.3; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: -48; opacity: 0.3; }
}

@keyframes packet-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.diagram-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.legend-item {
  color: var(--muted);
}

.diagram-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(50, 215, 75, 0.75);
  margin-bottom: 6px;
}

.diagram-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-stack {
  display: grid;
  gap: 2px;
  text-align: right;
}

.legend-value {
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.legend-caption {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes net-drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}

.alert {
  background: rgba(50, 215, 75, 0.08);
  border: 1px solid rgba(50, 215, 75, 0.28);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 16px 0;
}

.alert.error {
  background: rgba(244, 67, 54, 0.12);
  border-color: rgba(244, 67, 54, 0.45);
  color: var(--text);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  min-width: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.repo-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.repo-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.repo-row {
  background: linear-gradient(135deg, rgba(8, 10, 14, 0.9), rgba(6, 8, 12, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.repo-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  border-color: rgba(50, 215, 75, 0.35);
}

.repo-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(50, 215, 75, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.repo-row:hover::before {
  opacity: 1;
}

.repo-toggle {
  border: none;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  color: inherit;
  cursor: pointer;
  gap: 14px;
}

.repo-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.repo-toggle.is-open::after {
  transform: rotate(-135deg);
}

.repo-branches {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.repo-branches.is-open {
  max-height: 280px;
  margin-top: 12px;
}

.repo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.repo-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(50, 215, 75, 0.12);
  border: 1px solid rgba(50, 215, 75, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.repo-branch-grid {
  gap: 8px;
}

.repo-branch-chip {
  min-width: auto;
  border-radius: 999px;
}

.combo-select {
  position: relative;
  display: block;
  width: 100%;
}
.combo-select > select {
  display: none !important;
}
.combo-trigger {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.combo-trigger:hover {
  border-color: rgba(50, 215, 75, 0.4);
}
.combo-trigger:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.7);
  box-shadow: 0 0 0 3px rgba(50, 215, 75, 0.15);
}
.combo-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-label.is-placeholder {
  color: var(--muted);
}
.combo-arrow {
  color: var(--muted);
  font-size: 12px;
}
.combo-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(8, 10, 14, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 100;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.combo-panel[hidden] {
  display: none !important;
}
.combo-search {
  margin: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.combo-search:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.5);
}
.combo-options {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  overflow-y: auto;
  flex: 1;
}
.combo-option {
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo-option:hover {
  background: rgba(50, 215, 75, 0.12);
}
.combo-option.is-selected {
  background: rgba(50, 215, 75, 0.18);
  color: rgb(134, 249, 160);
}
.combo-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-overlay[hidden] {
  display: none !important;
}
.confirm-modal {
  background: linear-gradient(160deg, rgba(14, 18, 16, 0.98), rgba(8, 12, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  color: var(--text);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.confirm-message {
  color: rgba(228, 237, 232, 0.86);
  line-height: 1.55;
  font-size: 14px;
  margin-bottom: 20px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn.danger {
  background: rgba(255, 69, 58, 0.18);
  border: 1px solid rgba(255, 69, 58, 0.5);
  color: rgb(255, 130, 120);
}
.btn.danger:hover {
  background: rgba(255, 69, 58, 0.28);
}

.repo-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.repo-progress.is-loading {
  opacity: 1;
  transform: translateY(0);
}

.repo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(50, 215, 75, 0.9), rgba(255, 255, 255, 0.2));
  transition: width 0.2s ease;
}

.fetch-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fetch-progress-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(50, 215, 75, 0.9), rgba(255, 255, 255, 0.2));
  animation: fetch-slide 1.2s ease-in-out infinite;
}

[data-repo-fetch].is-loading .fetch-progress {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fetch-slide {
  0% { transform: translateX(-60%); }
  50% { transform: translateX(40%); }
  100% { transform: translateX(120%); }
}
.repo-name {
  font-weight: 600;
}

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

.repo-table .table-row {
  grid-template-columns: 1.4fr 0.6fr;
}

.repo-table .table-row:not(.table-head) {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-table .table-row:not(.table-head):hover {
  border-color: rgba(98, 255, 141, 0.35);
  box-shadow: 0 0 0 1px rgba(98, 255, 141, 0.12);
}

.repo-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.repo-page-actions {
  display: flex;
  gap: 10px;
}

.repo-page-meta {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.org-detail-grid {
  align-items: start;
}

.org-detail-grid .panel + .panel {
  margin-top: 0;
}

.org-detail-grid .table {
  gap: 8px;
}

.org-detail-grid .table-row.table-head {
  padding: 0 6px;
}

.org-detail-grid .table-row:not(.table-head) {
  background: linear-gradient(135deg, rgba(28, 44, 30, 0.7), rgba(18, 26, 20, 0.9));
  border: 1px solid rgba(50, 215, 75, 0.12);
  padding: 10px 12px;
}

.org-detail-grid .table-row:not(.table-head):hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(50, 215, 75, 0.18);
}

.org-detail-grid .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.3);
  background: rgba(50, 215, 75, 0.12);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.org-detail-grid .status.pending {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #c9c9c9;
}

.org-detail-grid .status.failed,
.org-detail-grid .status.rejected {
  border-color: rgba(255, 99, 99, 0.35);
  background: rgba(255, 99, 99, 0.12);
  color: #f4c7c7;
}

.org-detail-grid .repo-table .table-row > span:last-child {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.org-detail-grid .inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.org-detail-grid .inline-actions .btn {
  padding: 6px 12px;
  font-size: 11px;
}


.muted {
  color: var(--muted);
  font-size: 12px;
}

.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.detail-grid strong {
  display: block;
  margin: 6px 0;
}

.message-box {
  min-height: 120px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
}

.form-error {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.form-help {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.blog-shell {
  display: grid;
  gap: 12px;
}

.blog-shell > section {
  margin-bottom: 0;
}

.blog-shell .panel {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.76);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.blog-shell .panel::before,
.blog-shell .panel::after {
  display: none;
}

.blog-detail-shell {
  display: grid;
  gap: 12px;
}

.blog-detail-shell > section {
  margin-bottom: 0;
}

.blog-detail-hero {
  margin-bottom: 0;
  align-items: flex-end;
}

.blog-detail-tags {
  margin-top: 10px;
}

.blog-detail-featured {
  padding: 12px;
}

.blog-detail-featured-media {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(50, 215, 75, 0.28);
  background: rgba(4, 6, 8, 0.9);
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-detail-featured-media img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
  transform: scale(0.96);
  transform-origin: center;
}

.blog-detail-content {
  padding: 20px;
}

.blog-detail-excerpt {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(238, 247, 241, 0.94);
}

.blog-browse-panel {
  padding: 16px;
  border-color: rgba(125, 255, 138, 0.24);
  background:
    radial-gradient(circle at 8% 10%, rgba(50, 215, 75, 0.12), transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(92, 220, 255, 0.1), transparent 44%),
    rgba(8, 11, 14, 0.82);
}

.blog-browse-header {
  margin-bottom: 10px;
}

.blog-browse-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-browse-column {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 10, 12, 0.76), rgba(6, 9, 11, 0.6));
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.blog-browse-column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.blog-browse-column:first-child::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(50, 215, 75, 0.26), transparent 46%),
    linear-gradient(120deg, rgba(50, 215, 75, 0.16), transparent 40%);
}

.blog-browse-column:last-child::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(78, 222, 255, 0.24), transparent 44%),
    linear-gradient(120deg, rgba(78, 222, 255, 0.14), transparent 42%);
}

.blog-browse-column:hover::before {
  opacity: 1;
}

.blog-browse-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.01em;
  text-transform: none;
  position: relative;
  z-index: 1;
}

.blog-browse-chips {
  gap: 8px;
  position: relative;
  z-index: 1;
}

.blog-browse-chip {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(7, 10, 12, 0.92), rgba(5, 8, 10, 0.82));
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-browse-chip .chip-value {
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.blog-browse-chip .chip-meta {
  font-size: 10px;
  letter-spacing: 0.09em;
  color: rgba(206, 220, 212, 0.8);
}

.blog-browse-column:first-child .blog-browse-chip .chip-value {
  color: #74ff95;
}

.blog-browse-column:first-child .blog-browse-chip {
  border-color: rgba(78, 232, 124, 0.3);
}

.blog-browse-column:last-child .blog-browse-chip .chip-value {
  color: #6de9ff;
}

.blog-browse-column:last-child .blog-browse-chip {
  border-color: rgba(89, 223, 255, 0.3);
}

.blog-browse-chip:hover {
  border-color: rgba(125, 255, 138, 0.56);
  box-shadow: 0 0 0 1px rgba(125, 255, 138, 0.24), 0 10px 20px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.blog-browse-column:last-child .blog-browse-chip:hover {
  border-color: rgba(104, 229, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(104, 229, 255, 0.24), 0 10px 20px rgba(0, 0, 0, 0.34);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.13), transparent 48%),
    radial-gradient(circle at 95% 5%, rgba(125, 255, 138, 0.08), transparent 44%),
    rgba(6, 8, 11, 0.86);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 16px;
  align-items: start;
}

.blog-hero-content {
  display: grid;
  gap: 8px;
}

.blog-pill {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.28);
  background: rgba(50, 215, 75, 0.08);
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 4px 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.blog-hero p {
  margin: 0;
  max-width: 46ch;
  color: rgba(227, 235, 231, 0.84);
  font-size: 14px;
  line-height: 1.52;
}

.blog-hero-side {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.9), rgba(5, 7, 10, 0.84));
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.blog-hero-stats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-stat {
  min-width: 122px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.68);
  display: grid;
  gap: 4px;
}

.blog-stat-label {
  color: rgba(201, 213, 205, 0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-stat-value {
  font-size: 22px;
  line-height: 1;
  color: #f2faf4;
}

.blog-search-box {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.blog-search-form {
  display: grid;
  gap: 6px;
}

.blog-search-form label {
  color: rgba(202, 215, 207, 0.8);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.blog-search-row input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 8, 10, 0.82);
  color: var(--text);
  padding: 0 12px;
}

.blog-search-row input::placeholder {
  color: rgba(192, 203, 196, 0.62);
}

.blog-search-row input:focus {
  outline: none;
  border-color: rgba(50, 215, 75, 0.45);
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.16);
}

.blog-search-shortcuts {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.blog-search-shortcuts-label {
  color: rgba(192, 204, 197, 0.78);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-search-shortcuts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-shortcut-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 235, 229, 0.88);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-shortcut-pill:hover {
  border-color: rgba(50, 215, 75, 0.42);
  background: rgba(50, 215, 75, 0.14);
  color: #ecf8ef;
}

.blog-shortcut-pill.is-active {
  border-color: rgba(125, 255, 138, 0.55);
  background: rgba(125, 255, 138, 0.16);
  color: #effcf2;
}

.blog-filter-strip {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(125, 255, 138, 0.24);
  background: rgba(9, 13, 16, 0.82);
}

.blog-filter-text {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-filter-reset {
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-filter-reset:hover {
  color: var(--accent-2);
}

.blog-main-layout {
  display: block;
}

.blog-main-feed {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.blog-feed-head {
  display: block;
  padding: 0 2px;
}

.blog-feed-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.03em;
  text-transform: none;
  align-self: start;
}

.blog-feed {
  display: grid;
  gap: 0;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.blog-post-grid .panel {
  margin-bottom: 0;
}

.blog-post-grid .panel + .panel {
  margin-top: 0;
}

.blog-post-card {
  display: grid;
  grid-template-rows: auto 138px minmax(176px, 1fr) auto auto auto auto;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  width: 100%;
  max-width: none;
  min-height: 350px;
  justify-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(50, 215, 75, 0.5);
  background: linear-gradient(180deg, rgba(3, 4, 6, 0.98), rgba(2, 3, 5, 0.98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-post-card.is-featured {
  border-color: rgba(50, 215, 75, 0.68);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(50, 215, 75, 0.3);
}

.blog-post-card::before,
.blog-post-card::after {
  display: none;
}

.blog-post-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.blog-post-card-link:focus-visible {
  outline: 2px solid rgba(50, 215, 75, 0.62);
  outline-offset: 2px;
}

.blog-post-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 255, 138, 0.82);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(125, 255, 138, 0.36);
}

.blog-post-head {
  min-height: 40px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(50, 215, 75, 0.5);
  background: rgba(5, 7, 9, 0.96);
}

.blog-post-media {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid rgba(50, 215, 75, 0.3);
  background: #030407;
  overflow: hidden;
}

.blog-post-media.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(50, 215, 75, 0.16), transparent 58%),
    radial-gradient(circle at 82% 78%, rgba(125, 255, 138, 0.1), transparent 50%),
    #030407;
}

.blog-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(22%) saturate(78%) brightness(0.76) contrast(1.08);
  transform: scale(1.02);
}

.blog-post-media-fallback {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  letter-spacing: 0.03em;
  color: rgba(221, 237, 228, 0.9);
  text-transform: none;
}

.blog-post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 6, 0.1), rgba(2, 4, 6, 0.52) 62%, rgba(2, 3, 5, 0.76)),
    radial-gradient(circle at 82% 10%, rgba(50, 215, 75, 0.12), transparent 45%);
  pointer-events: none;
}

.blog-post-kind {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(125, 255, 138, 0.95);
  text-shadow: none;
  line-height: 1;
  font-weight: 700;
}

.blog-post-topic {
  max-width: 62%;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(225, 241, 232, 0.94);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: right;
  font-weight: 700;
}

.blog-post-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 16px 10px;
  min-height: 176px;
}

.blog-post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.55vw, 1.78rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  display: -webkit-box;
  min-height: calc(1.14em * 2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-excerpt {
  margin: 0;
  color: rgba(228, 236, 232, 0.86);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  min-height: calc(1.6em * 3);
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 16px 10px;
}

.blog-post-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(50, 215, 75, 0.34);
  background: rgba(4, 6, 8, 0.86);
  color: rgba(225, 241, 232, 0.94);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-post-tag.is-fallback {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(209, 220, 214, 0.84);
}

.blog-post-divider {
  margin: 0 16px;
  border-top: 1px dotted rgba(50, 215, 75, 0.32);
}

.blog-post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 0;
}

.blog-post-meta-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-post-meta-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(237, 246, 241, 0.94);
}

.blog-post-footer {
  margin-top: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(50, 215, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(231, 246, 236, 0.96);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(125, 255, 138, 0.4);
  padding-bottom: 1px;
}

.blog-read-link::after {
  content: "↗";
  font-size: 12px;
  line-height: 1;
}

.blog-read-link:hover {
  color: #7dff8a;
  border-bottom-color: rgba(125, 255, 138, 0.7);
}

.blog-sidebar {
  position: static;
  padding: 0;
  display: grid;
  gap: 8px;
}

.blog-sidebar-hero {
  margin: 0;
  align-self: start;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-sidebar-block {
  display: grid;
  gap: 6px;
}

.blog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.blog-sidebar-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.blog-topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(236, 244, 240, 0.92);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-topic-chip:hover {
  border-color: rgba(50, 215, 75, 0.42);
  background: rgba(50, 215, 75, 0.1);
  color: #eef8f1;
}

.blog-topic-chip.is-active {
  border-color: rgba(125, 255, 138, 0.62);
  background: rgba(125, 255, 138, 0.16);
  color: #f2fbf5;
}

.blog-topic-count {
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 9, 12, 0.74);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: rgba(223, 235, 227, 0.88);
}

.blog-topic-empty {
  color: var(--muted);
  font-size: 12px;
}

.blog-empty-state {
  grid-column: 1 / -1;
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.blog-empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.blog-empty-state p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.blog-pagination {
  justify-content: flex-end;
  margin-top: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}

.blog-pagination .repo-page-meta {
  display: none;
}

.blog-pagination .repo-page-actions {
  gap: 8px;
}

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

  .blog-topic-list {
    max-height: none;
  }
}

@media (max-width: 1320px) {
  .blog-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }
}

@media (max-width: 1000px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-side {
    max-width: 520px;
  }

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

@media (max-width: 760px) {
  .blog-hero {
    padding: 16px;
  }

  .blog-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
    max-width: 100%;
  }

  .blog-hero-side {
    max-width: 100%;
    padding: 12px;
  }

  .blog-search-row {
    grid-template-columns: 1fr;
  }

  .blog-search-row .btn {
    width: 100%;
  }

  .blog-filter-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post-card {
    max-width: 100%;
    min-height: 320px;
  }

  .blog-detail-featured {
    padding: 10px;
  }

  .blog-detail-featured-media {
    padding: 8px;
  }

  .blog-detail-featured-media img {
    width: 100%;
    transform: scale(1);
  }

  .blog-detail-excerpt {
    font-size: 16px;
  }

  .blog-browse-grid {
    grid-template-columns: 1fr;
  }

  .blog-browse-title {
    font-size: 26px;
  }

  .blog-post-title {
    font-size: 24px;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-pagination {
    justify-content: stretch;
  }

  .blog-pagination .repo-page-actions {
    width: 100%;
  }

  .blog-pagination .repo-page-actions .btn {
    flex: 1;
  }
}

.blog-content {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(239, 247, 242, 0.96);
}

.blog-content p {
  margin: 0 0 16px;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

.blog-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
  border: 1px solid rgba(50, 215, 75, 0.26);
  background: rgba(5, 7, 10, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.blog-content p > img:only-child {
  margin: 0 auto;
}

.blog-content figure {
  margin: 0 0 20px;
}

.blog-content figure img {
  margin: 0 auto;
}

.blog-content figcaption {
  margin-top: 8px;
  color: rgba(187, 203, 193, 0.8);
  font-size: 13px;
  text-align: center;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: none;
}

.blog-content h2 {
  font-size: 30px;
}

.blog-content h3 {
  font-size: 24px;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(239, 247, 242, 0.94);
}

.blog-content li {
  margin: 6px 0;
}

.blog-content blockquote {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid rgba(50, 215, 75, 0.58);
  background: rgba(50, 215, 75, 0.08);
  border-radius: 8px;
}

.blog-content pre {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 12, 0.88);
  overflow: auto;
}

.blog-content code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.blog-content p code,
.blog-content li code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1px 5px;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 20px 0;
}

.blog-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(125, 255, 138, 0.5);
  text-underline-offset: 2px;
}

.blog-content .identity-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 232, 127, 0.38);
  background: rgba(80, 232, 127, 0.12);
  color: #8ef8b2;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.blog-content .identity-lead {
  font-size: 22px;
  line-height: 1.5;
  color: rgba(242, 252, 246, 0.98);
  max-width: 44ch;
}

.blog-content .identity-micro {
  color: rgba(188, 205, 196, 0.78);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-content blockquote.identity-callout {
  border-left-color: rgba(80, 232, 127, 0.86);
  background: linear-gradient(135deg, rgba(80, 232, 127, 0.18), rgba(80, 232, 127, 0.06));
}

.blog-content blockquote.identity-warning {
  border-left-color: rgba(255, 186, 93, 0.9);
  background: linear-gradient(135deg, rgba(255, 186, 93, 0.2), rgba(255, 186, 93, 0.05));
}

.blog-content ul.identity-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
}

.blog-content ul.identity-checklist li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.blog-content ul.identity-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7ff4a8;
  font-weight: 700;
}

.blog-content table.identity-table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.blog-content table.identity-table th,
.blog-content table.identity-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.blog-content table.identity-table th {
  background: rgba(80, 232, 127, 0.12);
  color: rgba(243, 253, 247, 0.95);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-content table.identity-table tr:last-child td {
  border-bottom: 0;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .mobile-gate {
    display: flex;
  }

  .page {
    display: none;
  }

  .footer {
    display: none;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-rails {
    grid-template-columns: 1fr;
  }

  .ai-surface {
    grid-template-columns: 1fr;
  }

  .ai-surface-grid {
    grid-template-columns: 1fr;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.cols-5,
  .table-row.cols-6 {
    grid-template-columns: 1fr;
  }

  .blog-admin-list .table-row.table-head {
    display: none;
  }

  .blog-admin-list .table-row.cols-6 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .blog-admin-list .table-row:not(.table-head) {
    padding: 12px;
  }

  .blog-admin-list .table-row > [data-col]::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .blog-admin-actions {
    justify-content: flex-start;
  }

  .audit-head,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .audit-actions {
    justify-content: flex-start;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
