/* Requires the Material Symbols Outlined stylesheet to be linked in <head>:
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0&display=swap">
   Without this rule the ligature text (e.g. "dashboard") renders as plain
   words instead of resolving to the icon glyph. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Product illustration tokens — scoped so they never collide with the
   marketing --av-* scale. Values match the original design system's
   internal "AvalonXDesignSystem" bundle. */
.ax-scope {
  --ax-black: #000000;
  --ax-white: #FFFFFF;
  --ax-grey-950: #0D0D0D;
  --ax-grey-900: #212121;
  --ax-grey-800: #404040;
  --ax-grey-700: #5D5D5D;
  --ax-grey-600: #737373;
  --ax-grey-500: #8C8C8C;
  --ax-grey-400: #A8A8A8;
  --ax-grey-300: #C4C4C4;
  --ax-grey-200: #D6D6D6;
  --ax-grey-100: #E8E8E8;
  --ax-grey-050: #F5F5F5;
  --ax-radius-sm: 8px;
  --ax-radius-md: 12px;
  --ax-radius-lg: 16px;
  --ax-radius-xl: 24px;
  --ax-radius-full: 999px;
  --ax-ring: inset 0 0 0 1px rgba(255,255,255,0.12);
  --ax-font-display: "Syne", sans-serif;
  --ax-font-body: "Geist", sans-serif;
  --ax-font-mono: "Geist Mono", ui-monospace, monospace;
  font-family: var(--ax-font-body);
}

/* ---------- AvalonX App: product dashboard mockup ---------- */

av-dashboard-mock {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ax-black);
  color: var(--ax-white);
  font-size: 13px;
}
/* Authored at a fixed 1440x900 and scaled to fit by dashboard-mock.js's
   fit() — see the comment there. Every px value below assumes this canvas
   size; do not try to make .axd-* rules "responsive" on their own. */
.axd-canvas { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.axd-shell { display: flex; gap: 14px; padding: 14px; box-sizing: border-box; width: 100%; height: 100%; }

.axd-side { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; }
.axd-mark { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--ax-radius-md); background: var(--ax-white); margin-bottom: 18px; }
.axd-mark img { width: 20px; height: 20px; display: block; }
.axd-nav { display: flex; flex-direction: column; gap: 20px; }
.axd-nav-group { display: flex; flex-direction: column; gap: 3px; }
.axd-nav-label { padding: 0 8px 6px; font-size: 10px; color: var(--ax-grey-600); }
.axd-nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--ax-radius-sm); color: var(--ax-grey-400); font-size: 12px; }
.axd-nav-item .material-symbols-outlined { font-size: 16px; }
.axd-nav-item--on { background: var(--ax-grey-900); color: var(--ax-white); }
.axd-nav-item .axd-count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 5px; border-radius: var(--ax-radius-full); background: var(--ax-white); color: var(--ax-black); font-family: var(--ax-font-display); font-weight: 700; font-size: 9px; }
.axd-upgrade { margin-top: auto; padding: 12px; border-radius: var(--ax-radius-md); box-shadow: var(--ax-ring); display: flex; flex-direction: column; gap: 8px; }
.axd-upgrade strong { font-family: var(--ax-font-display); font-weight: 700; font-size: 13px; }
.axd-upgrade span { font-size: 11px; line-height: 1.5; color: var(--ax-grey-400); }
.axd-upgrade button { margin-top: 2px; height: 26px; border: 0; border-radius: var(--ax-radius-sm); background: var(--ax-white); color: var(--ax-black); font-size: 11px; cursor: default; }

.axd-main { position: relative; flex: 1; min-width: 0; border-radius: var(--ax-radius-xl); box-shadow: var(--ax-ring); overflow: hidden; background: var(--ax-grey-950); background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 20px 20px; display: flex; flex-direction: column; }
.axd-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.axd-title { font-family: var(--ax-font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.axd-breadcrumb { margin-top: 2px; font-size: 11px; color: var(--ax-grey-500); }
.axd-header-actions { display: flex; align-items: center; gap: 8px; }
.axd-pill-btn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--ax-radius-sm); box-shadow: var(--ax-ring); color: var(--ax-grey-400); font-size: 11px; }
.axd-btn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--ax-radius-sm); font-size: 11px; border: 0; }
.axd-btn--ghost { box-shadow: var(--ax-ring); color: var(--ax-grey-300); background: transparent; }
.axd-btn--danger { background: #e5484d; color: var(--ax-white); }

.axd-body { position: relative; flex: 1; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.axd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .axd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.axd-stat { border-radius: var(--ax-radius-md); box-shadow: var(--ax-ring); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.axd-stat-label { font-size: 11px; color: var(--ax-grey-400); }
.axd-stat-value { display: flex; align-items: center; gap: 8px; font-family: var(--ax-font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.axd-stat-value small { color: var(--ax-grey-600); font-size: 13px; }
.axd-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.14); animation: axdPulse 1.8s ease infinite; }
@keyframes axdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.axd-progress { border-radius: var(--ax-radius-md); box-shadow: var(--ax-ring); padding: 16px; }
.axd-progress-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; }
.axd-progress-top strong { font-family: var(--ax-font-display); font-weight: 700; font-size: 16px; }
.axd-progress-track { position: relative; height: 5px; margin-top: 10px; border-radius: var(--ax-radius-full); background: rgba(255,255,255,.12); overflow: hidden; }
.axd-progress-fill { width: 0%; height: 100%; border-radius: var(--ax-radius-full); background: linear-gradient(90deg, var(--ax-grey-700) 0%, var(--ax-grey-400) 55%, var(--ax-white) 100%); transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.axd-scope.is-visible .axd-progress-fill { width: 70%; }
.axd-progress-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--ax-grey-500); }

.axd-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; min-height: 0; }
@media (max-width: 700px) { .axd-agents { grid-template-columns: 1fr; } }
.axd-agent { border-radius: var(--ax-radius-lg); background: var(--ax-grey-900); display: flex; flex-direction: column; overflow: hidden; }
.axd-agent-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.axd-agent-icn { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--ax-radius-sm); background: var(--ax-black); }
.axd-agent-icn .material-symbols-outlined { font-size: 15px; color: var(--ax-grey-400); }
.axd-agent-name { display: flex; align-items: center; gap: 6px; font-family: var(--ax-font-display); font-weight: 700; font-size: 13px; }
.axd-agent-name .axd-led { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.axd-agent-host { font-family: var(--ax-font-mono); font-size: 10px; color: var(--ax-grey-500); }
.axd-agent-pct { margin-left: auto; font-size: 10px; color: var(--ax-grey-400); }
.axd-term { flex: 1; min-height: 0; background: var(--ax-black); padding: 10px 12px; font-family: var(--ax-font-mono); font-size: 10.5px; line-height: 1.75; color: #3fb950; overflow: hidden; }
.axd-term div { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.axd-term .axd-caret { color: var(--ax-white); animation: axdCaret 1.1s steps(1) infinite; }
@keyframes axdCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- AvalonX Flow: compact step demo ---------- */

av-flow-demo { display: block; }
.axf-shell { border-radius: var(--ax-radius-xl); box-shadow: 0 0 0 1px var(--av-n200, #e5e5e5); background: var(--av-white, #fff); overflow: hidden; }
.axf-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--av-n200, #e5e5e5); }
.axf-dots { display: flex; gap: 5px; }
.axf-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--ax-grey-300); }
.axf-dots span:nth-child(2) { background: var(--ax-grey-100); }
.axf-dots span:nth-child(3) { background: var(--ax-grey-050); }
.axf-url { flex: 1; display: flex; align-items: center; justify-content: center; height: 24px; padding: 0 12px; border-radius: var(--ax-radius-full); background: var(--av-n50, #fafafa); font-family: var(--ax-font-mono); font-size: 11px; color: var(--av-n600, #525252); }
.axf-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--av-n500, #737373); }
.axf-live span { width: 6px; height: 6px; border-radius: 50%; background: #3fb950; animation: axdPulse 1.8s ease infinite; }

.axf-body { position: relative; height: 300px; padding: 20px; box-sizing: border-box; overflow: hidden; }
.axf-panel { position: absolute; left: 20px; right: 20px; top: 20px; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.axf-panel--on { opacity: 1; transform: none; }
.axf-step-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--av-n500, #737373); }
.axf-step-title { margin-top: 8px; font-family: var(--ax-font-display); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; color: var(--av-black, #000); }
.axf-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.axf-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--ax-radius-md); background: var(--av-n50, #fafafa); box-shadow: inset 0 0 0 1px var(--av-n100, #f5f5f5); }
.axf-tick { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: var(--ax-radius-sm); background: var(--ax-grey-200); transition: background .3s ease; }
.axf-panel--on .axf-tick { background: #3fb950; }
.axf-tick svg { display: block; }
.axf-row-label { font-family: var(--ax-font-mono); font-size: 12px; color: var(--av-n700, #404040); }
.axf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.axf-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--ax-radius-full); box-shadow: inset 0 0 0 1px var(--av-n200, #e5e5e5); font-size: 12px; color: var(--av-n700, #404040); }
.axf-cta { margin-top: 20px; height: 40px; border-radius: var(--ax-radius-md); border: 0; background: var(--av-black, #000); color: var(--av-white, #fff); font-size: 13px; width: 100%; }
.axf-agents { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.axf-agent-row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: var(--ax-radius-md); background: var(--av-n50, #fafafa); box-shadow: inset 0 0 0 1px var(--av-n100, #f5f5f5); }
.axf-agent-row .axf-led { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.axf-agent-row span:nth-child(2) { flex: 1; font-size: 13px; color: var(--av-black, #000); }
.axf-agent-row small { font-family: var(--ax-font-mono); font-size: 11px; color: var(--av-n500, #737373); }
.axf-run-top { display: flex; align-items: baseline; justify-content: space-between; }
.axf-run-top strong { font-family: var(--ax-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--av-black, #000); }
.axf-run-track { height: 5px; margin-top: 14px; border-radius: var(--ax-radius-full); background: var(--av-n100, #f5f5f5); overflow: hidden; }
.axf-run-fill { width: 0%; height: 100%; border-radius: var(--ax-radius-full); background: var(--av-black, #000); transition: width 1.8s cubic-bezier(.22,1,.36,1); }
.axf-panel--on .axf-run-fill { width: 84%; }
.axf-findings { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.axf-finding { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--ax-radius-md); background: var(--av-n50, #fafafa); }
.axf-finding span:nth-child(2) { flex: 1; font-size: 13px; color: var(--av-black, #000); }
.axf-finding small { font-size: 11px; color: var(--av-n500, #737373); }
.axf-finding--ok { background: rgba(63,185,80,.08); box-shadow: inset 0 0 0 1px rgba(63,185,80,.28); }
.axf-finding--ok small { color: #3fb950; }
