.bp-loban,
.bp-loban * { box-sizing: border-box; }

.bp-loban {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e4e9e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 55, 43, .08);
  color: #26332d;
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.5;
}

.bp-loban__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 30px;
  background: #124a3c;
  color: #fff;
}

.bp-loban .bp-loban__eyebrow {
  margin: 0 0 3px;
  color: #dec68f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.bp-loban .bp-loban__title {
  margin: 0;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.bp-loban .bp-loban__subtitle {
  margin: 7px 0 0;
  color: #ecf4f0;
  font-size: 14px;
}

.bp-loban__measure { flex: 0 0 245px; }
.bp-loban__measure label { display: block; margin: 0 0 6px; color: #fff; font-size: 13px; font-weight: 700; }
.bp-loban__measure-row { display: flex; align-items: stretch; gap: 8px; }
.bp-loban .bp-loban__measure input {
  display: block;
  width: 136px;
  min-width: 0;
  height: 43px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #bdcfc5;
  border-radius: 6px;
  background: #fff;
  color: #20382e;
  font: 700 18px/1.3 Roboto, Arial, sans-serif;
  box-shadow: none;
}
.bp-loban .bp-loban__measure input:focus { outline: 2px solid #d6b973; outline-offset: 2px; }
.bp-loban__cm { display: flex; flex: 1; align-items: center; justify-content: center; min-width: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.bp-loban__measure small { display: block; margin-top: 4px; color: #cfdfd5; font-size: 11px; }

.bp-loban__viewport { position: relative; padding: 17px 20px 20px; background: #f7f9f7; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bp-loban__viewport.is-dragging { cursor: grabbing; }
.bp-loban__viewport:focus-visible { outline: 2px solid #c5a666; outline-offset: -3px; }
.bp-loban__guide { position: absolute; z-index: 5; top: 17px; bottom: 20px; left: 50%; width: 2px; transform: translateX(-50%); background: #c39338; box-shadow: 0 0 0 2px rgba(255,255,255,.75); pointer-events: none; }
.bp-loban__guide::before { content: ''; position: absolute; top: -3px; left: -5px; border: 6px solid transparent; border-top: 9px solid #c39338; }
.bp-loban__ruler { position: relative; overflow: hidden; margin: 0 0 12px; border: 1px solid #d4dbd6; border-radius: 7px; background: #fff; }
.bp-loban__ruler:last-child { margin-bottom: 0; }
.bp-loban__ruler-title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; min-height: 37px; padding: 7px 12px; border-bottom: 1px solid #e0e5e1; color: #304038; font-size: 12px; line-height: 1.3; }
.bp-loban__ruler-title strong { color: #0d4d3d; font-size: 14px; }
.bp-loban__band { position: relative; height: 100px; background-color: #fff; background-repeat: repeat-x, repeat-x; background-position: 0 0, 0 0; }
.bp-loban__band--522 { background-image: url('../img/thuoc.png'), url('../img/thuoc522.png'); }
.bp-loban__band--429 { background-image: url('../img/thuoc.png'), url('../img/thuoc429.png'); }
.bp-loban__band--388 { background-image: url('../img/thuoc.png'), url('../img/thuoc388.png'); }
.bp-loban__mask { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 0; background: #fff; }
.bp-loban__ticks { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.bp-loban__tick { position: absolute; top: 15px; padding: 0 2px; transform: translateX(-50%); background: rgba(255,255,255,.92); color: #26332d; font-size: 10px; font-weight: 700; line-height: 1.3; white-space: nowrap; }

.bp-loban__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 20px 8px; }
.bp-loban__result { min-width: 0; padding: 15px 16px; border: 1px solid #e2e8e3; border-radius: 8px; background: #fff; }
.bp-loban__result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #0b4b3a; font-size: 14px; line-height: 1.35; }
.bp-loban__result-head strong { font-weight: 700; }
.bp-loban__result-head span { flex: 0 0 auto; padding: 3px 7px; border-radius: 4px; background: #f9e8e3; color: #a33427; font-size: 11px; font-weight: 700; }
.bp-loban__result-head span.is-good { background: #e3f3e8; color: #176c3e; }
.bp-loban .bp-loban__result-name { margin: 10px 0 5px; color: #26332d; font-size: 14px; font-weight: 700; }
.bp-loban .bp-loban__result-note { margin: 0; color: #5c6860; font-size: 13px; line-height: 1.55; }
.bp-loban .bp-loban__footnote { margin: 0; padding: 3px 20px 20px; color: #737e77; font-size: 12px; }

@media (max-width: 767px) {
  .bp-loban__header { flex-direction: column; align-items: stretch; gap: 17px; padding: 20px 17px; }
  .bp-loban__measure { flex: none; }
  .bp-loban .bp-loban__measure input { flex: 0 0 52%; width: 52%; }
  .bp-loban__viewport { padding: 12px 10px 14px; }
  .bp-loban__guide { top: 12px; bottom: 14px; }
  .bp-loban__ruler { margin-bottom: 10px; }
  .bp-loban__ruler-title { display: block; padding: 7px 9px; }
  .bp-loban__ruler-title span { display: block; margin-top: 2px; }
  .bp-loban__results { grid-template-columns: 1fr; gap: 10px; padding: 14px 10px 8px; }
  .bp-loban__result { padding: 13px 14px; }
  .bp-loban .bp-loban__footnote { padding: 3px 12px 17px; }
}
