/* /tools/futures-basis — same-origin stylesheet; page CSP keeps style-src 'self'. */
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #101821 0%, #0d141b 100%);
  padding: 18px;
  margin: 0 0 22px;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #080d13;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  flex: 1 0 auto;
  white-space: nowrap;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b98a5;
  padding: 9px 13px;
  font: 600 13px/1.1 ui-sans-serif, system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.seg-btn:hover { color: #d6dee6; }
.seg-btn[aria-selected="true"] {
  background: #1b2530;
  color: #f2f7fb;
  box-shadow: inset 0 0 0 1px rgba(24, 212, 188, 0.34);
}
.seg-btn:focus-visible { outline: 2px solid rgba(24, 212, 188, 0.5); outline-offset: 2px; }

.step-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-head.top { margin-top: 18px; }
.step-head.mid { margin-top: 22px; }
.step-badge {
  font: 700 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  color: #7fd8ca;
  background: rgba(24, 212, 188, 0.12);
  border: 1px solid rgba(24, 212, 188, 0.28);
  padding: 4px 8px;
  border-radius: 6px;
}
.step-head h2 { margin: 0; font-size: 1.05rem; }

.tool-fields { display: grid; gap: 14px; }
.tool-row { display: grid; gap: 12px; }
.tool-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-field label {
  font: 600 12px/1.3 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #8b98a5;
  letter-spacing: 0.01em;
}
.tool-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #070c11;
  color: var(--text);
  font: 500 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease;
}
.tool-field input::placeholder { color: #56626e; }
.tool-field input:focus {
  outline: none;
  border-color: rgba(24, 212, 188, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 212, 188, 0.12);
}

.tool-basis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(24, 212, 188, 0.06);
  border: 1px solid rgba(24, 212, 188, 0.22);
  font-size: 13px;
  color: #9fb0bd;
}
.tool-basis strong {
  font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #18d4bc;
}

.tool-warn {
  display: none;
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #f0c274;
  background: rgba(240, 194, 116, 0.07);
  border: 1px solid rgba(240, 194, 116, 0.26);
}
.tool-warn[data-on="1"] { display: block; }

.tool-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.tool-bar h2 { margin: 0; font-size: 1.05rem; }
.tool-actions { display: flex; gap: 8px; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #9fb0bd;
  border-radius: 8px;
  padding: 7px 12px;
  font: 600 12px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.btn:hover { color: #f2f7fb; border-color: rgba(24, 212, 188, 0.45); }
.btn[disabled] { opacity: 0.38; cursor: not-allowed; }
.btn[disabled]:hover { color: #9fb0bd; border-color: var(--line); }

.tool-out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 10px;
}
.level-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px 12px;
  background: #0b1218;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.level-card.call { border-top-color: #22c55e; }
.level-card.zero { border-top-color: #f0b429; }
.level-card.put  { border-top-color: #ef4444; }
.level-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.level-name {
  font: 600 11px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f8c99;
}
.level-tag { font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #5d6b78; text-transform: uppercase; }
.level-card.call .level-price { color: #4ade80; }
.level-card.zero .level-price { color: #fbbf24; }
.level-card.put  .level-price { color: #f87171; }
.level-price {
  font: 700 26px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  color: #f2f7fb;
  overflow-wrap: anywhere;
}
.level-card .copy { align-self: flex-start; }

.tool-note { font-size: 12.5px; color: #7f8c99; margin: 8px 0 0; }
.pill {
  display: inline-block;
  margin-left: 8px;
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb0bd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  vertical-align: middle;
}
.pill.live { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.pill.closed { color: #f0b429; border-color: rgba(240, 180, 41, 0.4); }
.lvl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lvl-sub { font: 500 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #6b7885; }
.lvl-row { display: flex; justify-content: space-between; gap: 8px;
  font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lvl-row span:first-child { color: #6b7885; }
.lvl-row.call span:last-child { color: #4ade80; }
.lvl-row.zero span:last-child { color: #fbbf24; }
.lvl-row.put span:last-child { color: #f87171; }
.lvl-note { font-size: 12px; color: #7f8c99; margin: 10px 0 0; }
.lvl-skeleton { opacity: 0.35; }
.legal-page section + section { margin-top: 34px; }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(24, 212, 188, 0.22);
  background: linear-gradient(135deg, rgba(24, 212, 188, 0.08), rgba(59, 130, 246, 0.07));
}
.cta-card h2 { margin: 0 0 4px; font-size: 1rem; }
.cta-card p { margin: 0; font-size: 13px; color: #9fb0bd; max-width: 560px; }
.cta-card .btn-primary {
  display: inline-block;
  background: #f2f7fb;
  color: #0b0f17;
  text-decoration: none;
  font: 700 13px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  padding: 10px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.cta-card .btn-primary:hover { opacity: 0.92; }

@media (max-width: 720px) {
  .tool-row.cols-2, .tool-row.cols-3 { grid-template-columns: 1fr; }
  .tool-out { grid-template-columns: 1fr; }
  .level-price { font-size: 22px; }
}
