@import url("../material/styles.css");

.forecast-grid.four { grid-template-columns: repeat(4, 1fr); }
.forecast-grid.four strong { font-size: 20px; }
.flow-preview { display: flex; gap: 4px; align-items: stretch; overflow-x: auto; padding: 10px 0 2px; }
.flow-step { flex: 1 0 88px; position: relative; border: 1px solid var(--line); background: #191a17; padding: 8px 5px; text-align: center; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 26px; z-index: 2; color: var(--acid); background: var(--panel); }
.flow-step strong, .flow-step small { display: block; }
.flow-step strong { font-size: 10px; min-height: 25px; }
.flow-step small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.drive-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; min-height: 138px; }
.line-slot { min-width: 0; border: 1px dashed var(--line); background: #191a17; padding: 5px; }
.line-slot > span { display: block; color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.module-chip { width: 100%; min-height: 105px; border: 1px solid #626554; border-top: 3px solid var(--module-color); background: var(--panel2); color: var(--ink); padding: 7px 4px; text-align: center; }
.module-chip.selected { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.module-chip.rare { background: linear-gradient(135deg,#373022,#252922); }
.module-chip b, .module-chip small { display: block; }
.module-chip b { font-size: 22px; margin-bottom: 4px; }
.module-chip strong { display: block; font-size: 9px; }
.module-chip small { color: var(--muted); font-size: 7px; line-height: 1.3; margin-top: 5px; }
.bench-area { margin-top: 10px; border: 1px solid var(--line); padding: 8px; }
.bench-area h3 { font-size: 10px; color: var(--muted); }
.bench-area .module-chip { width: calc(25% - 5px); min-height: 80px; margin-right: 5px; vertical-align: top; }
.reward-module { min-width: 0; border: 1px solid var(--acid); padding: 12px 7px; color: var(--ink); background: #1a1c17; text-align: center; }
.reward-module b { display: block; font-size: 32px; }
.reward-module strong, .reward-module small, .reward-module em { display: block; }
.reward-module strong { margin: 5px 0; }
.reward-module small { min-height: 48px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.reward-module em { margin-top: 9px; padding: 7px; background: var(--acid); color: #171912; font-style: normal; font-size: 9px; font-weight: bold; }
@media (max-width: 430px) {
  .forecast-grid.four { gap: 3px; }
  .forecast-grid.four > div { padding: 8px 2px; }
  .drive-line { gap: 3px; }
  .line-slot { padding: 3px; }
  .module-chip { padding: 5px 2px; }
  .module-chip strong { font-size: 8px; }
}
