.search-input-wrap { position: relative; }

/* Search shortcut badge */
.search-shortcut-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  font-family: monospace;
  color: #8899cc;
  background: #0a1550;
  border: 1px solid #0d1a5e;
  border-radius: 3px;
  padding: 1px 6px;
  pointer-events: none;
  line-height: 1.6;
}

/* Flow diagram */
.home-flow {
  display: flex;
  align-items: stretch;
  margin: 2em 0 2.5em;
  border: 1px solid #0d1a5e;
  border-radius: 8px;
  overflow: hidden;
}

.home-flow-step {
  flex: 1;
  padding: 1.5em 1.25em;
  background: #050e42;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s;
}

.home-flow-step:hover {
  background: #071260;
}

.home-flow-step + .home-flow-step {
  border-left: 1px solid #0d1a5e;
}

.home-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E3007E;
  color: #fff;
  font-weight: 700;
  font-size: 0.8em;
  margin-bottom: 0.75em;
}

.home-flow-title {
  font-weight: 700;
  font-size: 0.92em;
  margin-bottom: 0.4em;
}

.home-flow-desc {
  font-size: 0.8em;
  opacity: 0.6;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .home-flow { flex-direction: column; }
  .home-flow-step + .home-flow-step { border-left: none; border-top: 1px solid #0d1a5e; }
}

/* Quick access cards */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75em;
  margin: 1.25em 0 2em;
}

.home-card {
  display: block;
  padding: 1.1em 1.25em;
  background: #050e42;
  border: 1px solid #0d1a5e;
  border-radius: 6px;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s;
}

.home-card:hover {
  border-color: #E3007E;
  background: #071260;
}

.home-card-title {
  font-weight: 700;
  font-size: 0.92em;
  margin-bottom: 0.3em;
}

.home-card-desc {
  font-size: 0.8em;
  opacity: 0.6;
  line-height: 1.4;
}

/* Event illustration */
.event-illustration {
  display: flex;
  align-items: center;
  gap: 1.25em;
  margin: 1.75em 0;
  flex-wrap: wrap;
}

.event-card {
  flex: 1;
  min-width: 200px;
  border: 1px solid #0d1a5e;
  border-radius: 6px;
  overflow: hidden;
}

.event-card-header {
  background: #071260;
  padding: 6px 14px;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8899cc;
}

.event-card-body {
  background: #050e42;
  padding: 12px 14px;
  margin: 0;
  border: none;
  border-radius: 0;
  font-size: 0.82em;
  line-height: 1.8;
  overflow-x: auto;
}

.event-card-label {
  text-align: center;
  padding: 5px;
  font-size: 0.7em;
  color: #8899cc;
  border-top: 1px solid #0d1a5e;
  letter-spacing: 0.05em;
}

.event-illustration-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: #E3007E;
  font-size: 0.7em;
  opacity: 0.65;
  letter-spacing: 0.05em;
}

.ei-key  { color: #58a6ff; }
.ei-pink { color: #E3007E; }
.ei-str  { color: #3fb950; }
.ei-num  { color: #a5d6ff; }
.ei-type { color: #d29922; }

@media (max-width: 600px) {
  .event-illustration { flex-direction: column; }
  .event-illustration-arrow { flex-direction: row; transform: none; }
}

/* Metric chart */
.metric-chart {
  margin: 1.75em 0;
}

.metric-chart svg {
  width: 100%;
  max-width: 600px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.metric-chart-caption {
  font-size: 0.78em;
  opacity: 0.5;
  text-align: center;
  margin-top: 0.6em;
}

/* Inline flow (analytics page) */
.analytics-flow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  margin: 1.5em 0;
}

.analytics-flow-node {
  padding: 0.35em 0.9em;
  background: #050e42;
  border: 1px solid #0d1a5e;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 600;
}

.analytics-flow-node-accent {
  border-color: #E3007E;
  color: #E3007E;
}

.analytics-flow-arrow {
  opacity: 0.4;
  font-size: 0.9em;
}
