.af-wrap{
  background:#F7F9F7;
  padding:18px 0;
}

.af-card{
  max-width:1100px;
  margin:0 auto;
  padding:18px 18px 22px;
  background:#F7F9F7;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;
}

.af-grid{
  display:grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap:28px;
  align-items:start;
}

/* Left */
.af-title{ font-weight:700; font-size:16px; margin:0 0 12px; }

.af-syringe-list{ display:flex; flex-direction:column; gap:14px; }

.af-syringe-row{
  width:100%;
  display:grid;
  grid-template-columns: 86px 1fr;
  gap:14px;
  align-items:center;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
}
.af-syringe-row:hover{ box-shadow:0 6px 18px rgba(0,0,0,.07); }
.af-syringe-row.is-active{
  border-color: rgba(181,154,69,.55);
  box-shadow: 0 0 0 2px rgba(181,154,69,.20) inset;
}

.af-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 12px;
  border-radius:6px;
  background: rgba(181,154,69,.25);
  font-weight:700;
  color:#111;
  width:72px;
}

.af-syringe-img{ width:100%; height:auto; display:block; object-fit:contain; }
.af-syringe-img--sm{ max-height:42px; }
.af-syringe-img--md{ max-height:52px; }
.af-syringe-img--lg{ max-height:62px; }

/* Right blocks */
.af-block{ margin-bottom:18px; }

.af-block-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.af-icon{
  width:34px; height:34px; border-radius:8px; object-fit:cover;
  background:#fff; border:1px solid rgba(0,0,0,.10);
}
.af-h{ font-weight:750; font-size:16px; }

.af-choice{ display:flex; flex-wrap:wrap; gap:10px; }

.af-pill{
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:#111;
  border-radius:7px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:650;
}
.af-pill:hover{ box-shadow:0 6px 18px rgba(0,0,0,.07); }
.af-pill.is-active{
  background: rgba(181,154,69,.35);
  border-color: rgba(181,154,69,.55);
}

.af-inputrow{ margin-top:10px; }
.af-sub{ display:block; font-size:12px; opacity:.85; margin-bottom:6px; }

.af-input{
  width:100%;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.16);
  background:#fff;
  color:#111;
  padding:10px 10px;
  outline:none;
}
.af-input:focus{
  border-color: rgba(181,154,69,.65);
  box-shadow:0 0 0 3px rgba(181,154,69,.18);
}

.af-dosegrid{ display:grid; grid-template-columns: 1fr auto; gap:10px; align-items:center; }
.af-toggle{ display:flex; gap:8px; }

.af-pill-sm{
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:#111;
  border-radius:7px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.af-pill-sm.is-active{
  background: rgba(181,154,69,.35);
  border-color: rgba(181,154,69,.55);
}

.af-tip{ margin-top:8px; font-size:12px; opacity:.8; }

/* Output */
.af-out{ margin-top:16px; padding-top:10px; }
.af-result{ font-size:16px; margin:6px 0; }
.af-warn{ margin-top:8px; font-weight:750; color:#8a5a00; }

/* Scale */
.af-scale{ margin-top:10px; }
.af-scalehead{ font-weight:750; margin-bottom:8px; }

#afSvg rect{ fill: rgba(0,0,0,.06); stroke: rgba(0,0,0,.18); }
#afFill{ fill: rgba(181,154,69,.35); stroke: rgba(181,154,69,.10); }
#afMarker{ stroke:#111; stroke-width:3; stroke-linecap:round; }
#afTicks line{ stroke: rgba(0,0,0,.40); stroke-width:2; }
#afTicks text{ fill: rgba(0,0,0,.70); font-size:12px; }

.af-scalenote{ margin-top:6px; font-size:12px; opacity:.85; }
.af-disclaimer{ margin-top:10px; font-size:12px; opacity:.7; line-height:1.35; }

@media (max-width: 900px){
  .af-grid{ grid-template-columns: 1fr; }
}