/* HALEX-M Skills Lab — modernized card styles (STAGING ONLY).
 * Every class is prefixed hm-sl-. Touch rules: every interactive target
 * is at least 44px tall, nothing works on hover alone (hover only
 * enhances; focus-visible is always styled), text stays at readable
 * sizes, and prefers-reduced-motion disables the entrance animation. */

.hm-sl-status, .hm-sl-diagram, .hm-sl-card, .hm-sl-wallet {
  border: 1px solid var(--line, #2a2f3a);
  border-radius: 12px;
  background: var(--panel2, #141821);
  padding: 14px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text, #e8eaf0);
}
.hm-sl-note { color: var(--muted, #9aa3b2); font-size: 14.5px; margin: 8px 0 0; }
.hm-sl-error { color: #f0a0a0; }

/* Buttons: min 44px tall, full-width-friendly, manipulation touch action. */
.hm-sl-btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid var(--line2, #3a4152);
  background: var(--panel3, #1c2230);
  color: var(--text, #e8eaf0);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hm-sl-btn:hover { border-color: var(--gold, #d4a94e); }
.hm-sl-btn:focus-visible { outline: 3px solid var(--gold, #d4a94e); outline-offset: 2px; }
.hm-sl-btn[disabled] { opacity: .55; cursor: not-allowed; }
.hm-sl-btn-on { border-color: var(--gold, #d4a94e); }
.hm-sl-filters, .hm-sl-wallet-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.hm-sl-filters .hm-sl-btn, .hm-sl-wallet-btns .hm-sl-btn { flex: 1 1 160px; }

/* Cards animate in with a stagger; reduced motion disables it. */
@keyframes hm-sl-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hm-sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .hm-sl-grid { grid-template-columns: 1fr; } }
.hm-sl-card { animation: hm-sl-in .45s ease both; animation-delay: var(--hm-sl-delay, 0ms); margin: 0; }
.hm-sl-card-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.hm-sl-card-name { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.hm-sl-chip {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gold, #d4a94e); color: var(--gold, #d4a94e);
  min-height: 28px; line-height: 1.4;
}
.hm-sl-chip-idea { border-color: #7fa8d0; color: #7fa8d0; }
.hm-sl-evidence-note { font-size: 14px; color: var(--muted, #9aa3b2); margin: 8px 0; }
.hm-sl-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 10px 0; }
.hm-sl-evidence div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line, #2a2f3a); padding: 4px 0; }
.hm-sl-evidence dt { color: var(--muted, #9aa3b2); font-size: 14.5px; }
.hm-sl-evidence dd { margin: 0; font-weight: 700; text-align: right; }
.hm-sl-section { margin-top: 12px; }
.hm-sl-section h4 { margin: 0 0 6px; font-size: 16px; }
.hm-sl-section p { margin: 0 0 6px; font-size: 15.5px; }

/* Toggles: the whole label is the target, checkbox sized for touch. */
.hm-sl-toggles { display: grid; gap: 10px; margin-top: 12px; }
.hm-sl-toggle {
  display: flex; gap: 12px; align-items: flex-start;
  min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line, #2a2f3a); border-radius: 10px; cursor: pointer;
  touch-action: manipulation;
}
.hm-sl-toggle input[type="checkbox"] { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--gold, #d4a94e); }
.hm-sl-toggle[aria-disabled="true"], .hm-sl-toggle:has(input[disabled]) { cursor: not-allowed; opacity: .85; }
.hm-sl-toggle-note { display: block; font-size: 14.5px; color: var(--muted, #9aa3b2); margin-top: 2px; }
.hm-sl-toggle:focus-within { outline: 3px solid var(--gold, #d4a94e); outline-offset: 2px; }
.hm-sl-card .hm-sl-btn { width: 100%; margin-top: 12px; }
.hm-sl-explain { border: 1px solid var(--gold, #d4a94e); border-radius: 12px; padding: 14px; margin: 0 0 12px; font-size: 16px; line-height: 1.55; }

/* Diagrams: flow list + allocation bars, no hover dependence. */
.hm-sl-diagram-title { margin: 0 0 10px; font-size: 17px; }
.hm-sl-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm-sl-flow li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line, #2a2f3a); font-size: 15.5px; }
.hm-sl-flow li:last-child { border-bottom: 0; }
.hm-sl-flow li span { color: var(--muted, #9aa3b2); }
@media (max-width: 520px) { .hm-sl-flow li { grid-template-columns: 1fr; } }
.hm-sl-alloc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; margin: 8px 0; font-size: 15.5px; }
.hm-sl-alloc-row span { color: var(--muted, #9aa3b2); }
.hm-sl-alloc-row b { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.hm-sl-bar { flex-basis: 100%; height: 12px; border-radius: 999px; background: var(--panel3, #1c2230); overflow: hidden; }
.hm-sl-bar span { display: block; height: 100%; background: var(--gold, #d4a94e); }

/* Wallet panel form: inputs are 44px+ and labelled, never hover-only. */
.hm-sl-trade-form { display: grid; gap: 8px; margin-top: 14px; }
.hm-sl-field { font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.hm-sl-input {
  min-height: 44px; padding: 10px 12px; font-size: 16px; border-radius: 10px;
  border: 1px solid var(--line2, #3a4152); background: var(--panel, #0f131b); color: var(--text, #e8eaf0);
  width: 100%; box-sizing: border-box;
}
.hm-sl-input:focus-visible { outline: 3px solid var(--gold, #d4a94e); outline-offset: 2px; }
.hm-sl-review { border-top: 1px solid var(--line, #2a2f3a); margin-top: 12px; padding-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hm-sl-card { animation: none; }
  .hm-sl-btn, .hm-sl-toggle { transition: none; }
}

/* Condensed cards (2026-11-04): stats on one line, gate on one line,
   the entry rule visible, everything else behind one expand. */
.hm-sl-stats { font-size: 15.5px; font-weight: 600; margin: 8px 0 2px; }
.hm-sl-gate { font-size: 13.5px; color: var(--muted, #9aa3b2); margin: 2px 0 6px; }
.hm-sl-entry { font-size: 15px; margin: 6px 0 2px; }
.hm-sl-more { margin-top: 8px; border-top: 1px solid var(--line, #2a2f3a); padding-top: 8px; }
.hm-sl-more > summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 4px 0 2px; }
