.ffsv2-wrap{
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --panel:#ffffff;
  --panel-soft:#f8f9fb;
  --panel-soft-2:#f3f4f6;
  --gold:#b8860b;
  --green:#15803d;
  --shadow:0 8px 24px rgba(0,0,0,.06);
  max-width:1120px;
  margin:24px auto;
  padding:0;
  background:#ffffff;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.ffsv2-wrap *{
  box-sizing:border-box;
}

.ffsv2-head{
  padding:8px 2px 24px;
  background:#ffffff;
}

.ffsv2-head h2{
  margin:0 0 12px;
  font-size:48px;
  line-height:1.05;
  font-weight:500;
  letter-spacing:-.03em;
  color:#000000;
}

.ffsv2-head p{
  margin:0;
  max-width:980px;
  font-size:18px;
  line-height:1.6;
  color:var(--muted);
}

.ffsv2-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}

.ffsv2-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.ffsv2-card-head{
  padding:20px 22px 16px;
  border-bottom:1px solid var(--border);
  background:#ffffff;
}

.ffsv2-kicker{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#6b7280;
}

.ffsv2-card-head h3{
  margin:0;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  color:#111111;
}

.ffsv2-distance-box{
  margin:18px 20px 16px;
  padding:18px;
  background:var(--panel-soft);
  border:1px solid var(--border);
  border-radius:18px;
}

.ffsv2-distance-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}

.ffsv2-small-label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:4px;
}

.ffsv2-big-distance{
  font-size:56px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.04em;
  color:#111111;
}

.ffsv2-big-distance small{
  font-size:18px;
  font-weight:600;
  color:var(--muted);
}

.ffsv2-pill{
  align-self:center;
  border:1px solid var(--border);
  background:#ffffff;
  color:#111111;
  padding:10px 14px;
  border-radius:999px;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}

.ffsv2-slider{
  width:100%;
  margin:4px 0 10px;
  accent-color:#111111;
}

.ffsv2-scale{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  color:var(--muted);
}

.ffsv2-controls-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 20px 16px;
}

.ffsv2-field{
  display:grid;
  gap:8px;
}

.ffsv2-field span{
  font-size:14px;
  font-weight:500;
  color:#111111;
}

.ffsv2-number,
.ffsv2-preset{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  background:#ffffff;
  color:#111111;
  border:1px solid #d1d5db;
  border-radius:12px;
  font-size:16px;
  outline:none;
  box-shadow:none;
}

.ffsv2-number:focus,
.ffsv2-preset:focus{
  border-color:#111111;
}

.ffsv2-note-panel{
  margin:0 20px 22px;
  padding:18px;
  background:var(--panel-soft);
  border:1px solid var(--border);
  border-radius:18px;
  color:#374151;
  line-height:1.6;
  font-size:14px;
}

.ffsv2-note-panel p{
  margin:0 0 10px;
}

.ffsv2-note-panel p:last-child{
  margin-bottom:0;
}

.ffsv2-note-panel strong{
  color:#111111;
}

.ffsv2-table-wrap{
  padding:18px 20px 14px;
}

.ffsv2-table{
  width:100%;
  border-collapse:collapse;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}

.ffsv2-table th,
.ffsv2-table td{
  padding:16px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
  color:#111111;
}

.ffsv2-table th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  background:var(--panel-soft-2);
  font-weight:700;
}

.ffsv2-table td{
  font-size:16px;
  background:#ffffff;
}

.ffsv2-table td:last-child,
.ffsv2-table th:last-child{
  text-align:right;
  font-weight:700;
}

.ffsv2-table tbody tr:last-child td{
  border-bottom:0;
}

.ffsv2-stage3-rule span,
.ffsv2-stage4-rule span,
.ffsv2-stage3-fare.is-half,
.ffsv2-stage4-fare.is-half{
  color:var(--gold);
  font-weight:700;
}

.ffsv2-mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 20px 20px;
}

.ffsv2-mini-card{
  background:var(--panel-soft);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}

.ffsv2-mini-card h4{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.3;
  color:#111111;
}

.ffsv2-mini-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}

.ffsv2-mini-row:last-child{
  border-bottom:0;
}

.ffsv2-mini-row span{
  color:#4b5563;
}

.ffsv2-mini-row strong{
  text-align:right;
  color:#111111;
}

.ffsv2-diff1,
.ffsv2-diff2,
.ffsv2-diff3,
.ffsv2-diff4{
  color:var(--green) !important;
}

@media (max-width: 900px){
  .ffsv2-head h2{
    font-size:34px;
  }

  .ffsv2-head p{
    font-size:16px;
  }

  .ffsv2-grid{
    grid-template-columns:1fr;
  }

  .ffsv2-controls-row,
  .ffsv2-mini-grid{
    grid-template-columns:1fr;
  }

  .ffsv2-big-distance{
    font-size:44px;
  }
}