/* The existing MOO blue-screen visual language, scoped to this display-only plan. */
.hybrid-plan {
  --hp-blue: #0000aa;
  --hp-dark: #000080;
  --hp-text: #fff;
  --hp-muted: #b4b4fa;
  --hp-cyan: #55ffff;
  --hp-yellow: #ffff55;
  margin: 0;
  border: 1px solid var(--hp-text);
  outline: 1px solid var(--hp-text);
  outline-offset: 3px;
  background: var(--hp-blue);
  color: var(--hp-text);
  font: 14px/1.6 "IBM Plex Mono", "Consolas", "Courier New", monospace;
  overflow-wrap: anywhere;
}
.hybrid-plan *, .hybrid-plan *::before, .hybrid-plan *::after { box-sizing: border-box; }
.hybrid-plan .hybrid-plan-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 14px; padding: 7px 14px; background: #aaa; color: #000055;
  border-bottom: 2px solid #fff;
}
.hybrid-plan .hybrid-plan-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .04em; }
.hybrid-plan .hybrid-plan-mark { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 2px solid currentColor; line-height: 1; }
.hybrid-plan .hybrid-plan-mode { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.hybrid-plan .hybrid-plan-head { padding: 19px 20px 17px; }
.hybrid-plan .hybrid-plan-eyebrow { margin: 0 0 5px; color: var(--hp-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hybrid-plan .hybrid-plan-title { margin: 0; color: var(--hp-cyan); font: 32px/1.15 "VT323", "Courier New", monospace; font-weight: 400; }
.hybrid-plan .hybrid-plan-lead { margin: 10px 0 0; max-width: 68ch; color: var(--hp-text); font-size: 13px; line-height: 1.7; }
.hybrid-plan .hybrid-plan-input { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 17px; padding-top: 11px; border-top: 1px solid #5555c0; }
.hybrid-plan .hybrid-plan-input-label { color: var(--hp-muted); font-size: 12px; }
.hybrid-plan .hybrid-plan-input-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hybrid-plan .hybrid-plan-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; margin: 0 20px; border: 1px solid #aaa; background: #aaa; }
.hybrid-plan .hybrid-plan-step { min-width: 0; padding: 15px 16px; background: var(--hp-dark); }
.hybrid-plan .hybrid-plan-step-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--hp-text); font-size: 14px; font-weight: 600; }
.hybrid-plan .hybrid-plan-step-index { display: inline-block; border: 1px solid #aaa; padding: 0 6px; color: var(--hp-cyan); font-size: 11px; line-height: 1.6; }
.hybrid-plan .hybrid-plan-step-value { margin: 0; color: var(--hp-cyan); font-size: 22px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.hybrid-plan .hybrid-plan-step-caption { margin: 3px 0 0; color: var(--hp-muted); font-size: 11px; }
.hybrid-plan .hybrid-plan-step-output { margin: 12px 0 0; padding-top: 9px; border-top: 1px solid #5555a0; color: var(--hp-text); font-size: 13px; }
.hybrid-plan .hybrid-plan-step-note { margin: 9px 0 0; color: var(--hp-muted); font-size: 11px; line-height: 1.65; }
.hybrid-plan .hybrid-plan-result { margin: 13px 20px 0; padding: 16px; border: 2px solid var(--hp-cyan); background: #000066; }
.hybrid-plan .hybrid-plan-result-label { margin: 0 0 5px; color: var(--hp-muted); font-size: 12px; }
.hybrid-plan .hybrid-plan-result-value { margin: 0; color: var(--hp-text); font-size: 29px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.hybrid-plan .hybrid-plan-result-equation { margin: 7px 0 0; color: var(--hp-muted); font-size: 11px; line-height: 1.7; }
.hybrid-plan .hybrid-plan-refund { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #5555a0; color: var(--hp-yellow); font-size: 13px; }
.hybrid-plan .hybrid-plan-guard { margin: 13px 20px 0; padding: 10px 12px; border-left: 2px solid var(--hp-yellow); background: #000066; color: var(--hp-yellow); font-size: 12px; line-height: 1.65; }
.hybrid-plan .hybrid-plan-details { margin-top: 16px; border-top: 1px solid #aaa; padding: 12px 20px; }
.hybrid-plan .hybrid-plan-details > summary { color: var(--hp-cyan); cursor: pointer; font-size: 12px; }
.hybrid-plan .hybrid-plan-details > summary:focus-visible { outline: 2px solid var(--hp-cyan); outline-offset: 4px; }
.hybrid-plan .hybrid-plan-rows { margin: 13px 0 0; }
.hybrid-plan .hybrid-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 15px; margin: 9px 0; }
.hybrid-plan .hybrid-plan-row dt { color: var(--hp-muted); font-size: 11px; }
.hybrid-plan .hybrid-plan-row dd { margin: 0; text-align: right; color: var(--hp-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.hybrid-plan .hybrid-plan-foot { margin: 0; padding: 12px 20px; border-top: 1px solid #5555c0; color: var(--hp-muted); font-size: 11px; line-height: 1.7; }
.hybrid-plan[data-hybrid-state="blocked"] .hybrid-plan-result,
.hybrid-plan[data-hybrid-state="waiting"] .hybrid-plan-result { border-color: var(--hp-yellow); }
.hybrid-plan[data-hybrid-state="blocked"] .hybrid-plan-result-value,
.hybrid-plan[data-hybrid-state="waiting"] .hybrid-plan-result-value { color: var(--hp-yellow); font-size: 20px; }
@media (max-width: 540px) {
  .hybrid-plan .hybrid-plan-bar { padding: 8px 12px; }
  .hybrid-plan .hybrid-plan-head { padding: 16px 13px; }
  .hybrid-plan .hybrid-plan-title { font-size: 28px; }
  .hybrid-plan .hybrid-plan-flow { grid-template-columns: minmax(0, 1fr); margin: 0 13px; }
  .hybrid-plan .hybrid-plan-step { padding: 13px; }
  .hybrid-plan .hybrid-plan-step-title { margin-bottom: 10px; }
  .hybrid-plan .hybrid-plan-result, .hybrid-plan .hybrid-plan-guard { margin-left: 13px; margin-right: 13px; }
  .hybrid-plan .hybrid-plan-result-value { font-size: 25px; }
  .hybrid-plan .hybrid-plan-details, .hybrid-plan .hybrid-plan-foot { padding: 12px 13px; }
}
