/* Keel paper desk - extends Petal trading area */
.keel-hero {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 121, 169, 0.28);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(232, 121, 169, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(110, 231, 160, 0.08), transparent 50%),
    var(--bg-card);
  overflow: hidden;
  animation: keel-in 0.7s ease both;
}
.keel-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 120%;
  background: conic-gradient(from 210deg, transparent, rgba(232, 121, 169, 0.12), transparent 40%);
  animation: keel-spin 18s linear infinite;
  pointer-events: none;
}
@keyframes keel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes keel-spin {
  to { transform: rotate(360deg); }
}
.keel-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.keel-hero p {
  color: var(--text-muted);
  max-width: 540px;
  position: relative;
  z-index: 1;
}
.keel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}
.btn-keel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-keel-primary {
  background: var(--accent);
  color: #0a0a0f;
}
.btn-keel-primary:hover {
  background: #f0a0c4;
  box-shadow: 0 0 28px rgba(232, 121, 169, 0.28);
}
.btn-keel-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-keel-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.status-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.status-line.busy { color: #f0c674; }
.status-line.ok { color: #6ee7a0; }
.status-line.err { color: #f87171; }
.trading-grid .metric-card {
  animation: keel-in 0.55s ease both;
}
.trading-grid .metric-card:nth-child(2) { animation-delay: 0.06s; }
.trading-grid .metric-card:nth-child(3) { animation-delay: 0.12s; }
.trading-grid .metric-card:nth-child(4) { animation-delay: 0.18s; }
.rec-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.rec-card {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rec-card:hover {
  transform: translateY(-2px);
}
.rec-card.act-buy { border-color: rgba(110, 231, 160, 0.35); }
.rec-card.act-trim { border-color: rgba(248, 113, 113, 0.35); }
.rec-card.act-hold { border-color: rgba(148, 144, 168, 0.25); }
.rec-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.rec-sym { font-weight: 600; font-size: 1.05rem; }
.rec-sym .muted { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.rec-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.action-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.act-buy .action-pill { background: rgba(110, 231, 160, 0.15); color: #6ee7a0; }
.act-trim .action-pill { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.act-hold .action-pill { background: rgba(148, 144, 168, 0.15); color: var(--text-muted); }
.reason-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.reason-list li { margin-bottom: 0.25rem; }
.size-hint {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}
.pos-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.pos-right { text-align: right; }
.pos-right .pos { color: #6ee7a0; }
.pos-right .neg { color: #f87171; }
.mono { font-family: var(--mono); }
.disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
  margin-top: 1.5rem;
}
.panel h2 .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 400;
  margin-left: 0.5rem;
}
