.blockchain-demo5-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.blockchain-demo5-button-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin-bottom: 18px;
}

.blockchain-demo5-button {
  border: 1px solid rgb(190, 218, 218);
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.blockchain-demo5-button.active {
  background: #29a2b3;
  color: #fff;
}

.blockchain-demo5-card {
  background: #fff;
  padding: 24px;
}

.blockchain-demo5-title-box {
  border-radius: 15px;
  background: #FFF0E8;
  padding: 20px;
}

.blockchain-demo5-title {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700;
  color: #111827;
}

.blockchain-demo5-desc {
  margin: 0 0 24px;
  color: #6b7280;
  line-height: 1.6;
  font-size: 13px;
}

.blockchain-demo5-section {
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 1px 1px 8px #00000027;
  padding: 20px;
}

.blockchain-demo5-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.blockchain-demo5-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.blockchain-demo5-field {
  margin-bottom: 16px;
}

.blockchain-demo5-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.blockchain-demo5-field input,
.blockchain-demo5-field textarea,
.blockchain-demo5-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 15px;
  background: #fff;
  text-align: center;
}

.blockchain-demo5-field.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blockchain-demo5-field.row label {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
}

.blockchain-demo5-field.row select,
.blockchain-demo5-field.row input {
  flex: 1;
  height: 44px;
}

.bd5-select {
  border-radius: 5px !important;
  border: 1.5px solid #FF7A59 !important;
  padding: 5px 12px !important;
}

.bd5-label {
  color: #FF7A59;
}

.blockchain-demo5-box {
  border-radius: 10px;
  background-color: #F1F1F1;
  padding: 20px;
}

.blockchain-demo5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #fff;
  margin-top: 20px;
}

.blockchain-demo5-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.blockchain-demo5-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
  min-height: 60px;
  line-height: 1.65;
  word-break: break-word;
}

.blockchain-demo5-main-box1,
.blockchain-demo5-main-box2,
.blockchain-demo5-main-box3,
.blockchain-demo5-main-box4 {
  display: none;
}

.blockchain-demo5-main-box1.active,
.blockchain-demo5-main-box2.active,
.blockchain-demo5-main-box3.active,
.blockchain-demo5-main-box4.active {
  display: block;
}

.bd5-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd5-field label {
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.bd5-field input {
  flex: 1;
  height: 35px;
  border-radius: 4px;
}

.bd5-p-row-1 {
  margin-bottom: 12px;
}

.bd5-p-row-2,
.bd5-p-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.bd5-p-row-4 .full {
  width: 100%;
}

.blockchain-demo5-info-box2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bd5-field2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bd5-field2 label {
  font-weight: 700;
  font-size: 14px;
}

.bd5-field2 textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  background: #D2D2D2;
  resize: none;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}

.bd5-f-row-1 textarea,
.bd5-f-row-2 textarea {
  height: 100px;
  overflow-y: auto;
}

.bd5-f-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bd5-food-ingredients-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.bd5-food-ingredients-table th,
.bd5-food-ingredients-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.safe {
  color: #047857;
  font-weight: 800;
}

.danger {
  color: #b91c1c;
  font-weight: 800;
}

.bd5-success {
  color: #047857;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd5-error {
  color: #b91c1c;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd5-warn {
  color: #b45309;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd5-meta {
  margin-bottom: 6px;
}

.bd5-details {
  margin-top: 10px;
}

.bd5-pre {
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #111827;
  color: #f9fafb;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  max-height: 420px;
  overflow: auto;
}

.bd5-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.bd5-result-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bd5-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 800;
  padding: 0 18px 8px;
  border-bottom: 3px solid #d1d5db;
  cursor: pointer;
}

.bd5-tab-btn.active {
  color: #111827;
  border-bottom-color: #111827;
}

.bd5-explorer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 7px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #004AAB;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.bd5-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bd5-tab-panel.active {
  display: block;
}

.bd5-info-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.bd5-info-row:last-child {
  margin-bottom: 0;
}

.bd5-info-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.bd5-info-value {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.bd5-json-area {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #f9fafb;
}

.bd5-json-area summary {
  cursor: pointer;
  font-weight: 700;
  color: #374151;
}

#bd5-result.bd5-empty .bd5-result-head,
#bd5-result.bd5-empty .bd5-tab-panel,
#bd5-result.bd5-empty .bd5-json-area {
  display: none;
}

.blockchain-demo5-info-box-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  border-radius: 10px;
  background-color: #F1F1F1;
  overflow: hidden;
}

.bd5-icon {
  width: 60px;
  height: auto;
}

.blockchain-demo5-info-box-img-box.has-image {
  height: 240px;
  padding: 0;
}

.blockchain-demo5-info-box-img-box.has-image img {
  width: 180px;
  height: auto;
  object-fit: cover;
}

.bd5-preview {
  width: 240px; 
  height: auto;
}

.blockchain-demo5-menu-box {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.blockchain-demo5-menu-box-left {
  flex: 1;
}

.blockchain-demo5-menu-box-left ul {
  padding-left: 18px;
  margin: 0;
}

.blockchain-demo5-menu-box-left li {
  margin-bottom: 6px;
  font-size: 14px;
}

.blockchain-demo5-menu-box-right {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nutrition-information {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-radius: 15px;
  border: 1px solid #eeeeee;
  padding: 10px 10px;
  margin: 15px 0;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.nt-value {
  font-size: 16px;
  font-weight: 800;
  color: #333333;
  margin-bottom: 4px;
}

.nt-label {
  font-size: 11px;
  color: #999999;
  font-weight: 500;
}

.nt-sodium { color: #FF8800; }  
.nt-protein { color: #00A34D; } 
.nt-fat { color: #00A99D; }     

.caution-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.caution-header img {
  width: 20px;
  height: auto;
}

.caution-header span {
  font-size: 15px;
  font-weight: 700;
}

.blockchain-demo5-disease {
  border: 1px solid #ff4d4d;
  background: #fff5f5;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.blockchain-demo5-disease .caution-header span {
  color: #ff4d4d;
}

.blockchain-demo5-disease p {
  margin: 0 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.blockchain-demo5-allergy {
  border: 1px solid #ff4d4d;
  background: #FFEBE9;
  border-radius: 12px;
  padding: 16px 20px;
}

.blockchain-demo5-allergy .caution-header span {
  color: #ff4d4d;
}

.blockchain-demo5-allergy p {
  margin: 0 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.bd5-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.bd5-modal-overlay.open {
  display: flex;
}

.bd5-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 620px;
  max-width: 95%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.bd5-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bd5-modal-title {
  font-size: 18px;
  font-weight: 700;
}

.bd5-btn-close {
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.bd5-modal-sub {
  font-size: 13px;
  color: #9ca3af;
  margin: 10px 0 20px;
}

.bd5-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bd5-img-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.bd5-img-thumb.selected {
  border-color: #FF7A59;
}

.bd5-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd5-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.bd5-btn-confirm {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
}

.bd5-btn-confirm:disabled {
  background: #bfdbfe;
}

.bd5-btn-cancel {
  background: #f1f5f9;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
}

#blockchain-demo5-section-result {
  display: none;
}

.bd5-tx-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.bd5-tx-modal.active {
  display: block;
}

.bd5-tx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.bd5-tx-modal-card {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.bd5-tx-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bd5-tx-modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.bd5-tx-modal-close {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.bd5-tx-modal-body {
  line-height: 1.6;
}

@media (max-width: 640px) {
  .blockchain-demo5-grid,
  .bd5-p-row-2,
  .bd5-p-row-3,
  .bd5-f-row-2 {
    grid-template-columns: 1fr;
  }

  .blockchain-demo5-button-list,
  .bd5-result-head,
  .blockchain-demo5-menu-box {
    flex-direction: column;
    align-items: stretch;
  }

  .bd5-result-tabs {
    width: 100%;
  }

  .bd5-tab-btn {
    flex: 1;
    padding-left: 8px;
    padding-right: 8px;
  }

  .bd5-explorer-btn {
    width: 100%;
  }

  .bd5-info-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .blockchain-demo5-menu-box-right {
    width: 100%;
  }

  .bd5-tx-modal-card {
    margin: 20px auto;
    max-height: calc(100vh - 40px);
  }
}

#blockchain-demo5-history-section {
  display: none;
}

.bd5-origin-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.bd5-origin-wrap h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.bd5-origin-card {
  background: #f1f1f1;
  border-radius: 12px;
  padding: 16px 22px;
}

.bd5-origin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.bd5-origin-row span {
  color: #374151;
}

.bd5-origin-row strong {
  color: #111827;
  font-weight: 700;
}

.bd5-origin-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: #374151;
}

.bd5-origin-history-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bd5-origin-link-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: #9ca3af;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 640px) {
  .bd5-origin-wrap {
    grid-template-columns: 1fr;
  }
}

#blockchain-demo5-history-section {
  display: none !important;
}

.bd5-progress-bar {
  position: relative;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

#bd5-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 999px;
  transition: width 0.08s linear;
}

.bd5-complete #bd5-progress-fill {
  animation: none;
  left: 0;
  width: 100%;
  background: #22c55e;
}

.bd5-log-box {
  height: 220px;
  overflow-y: auto;
  background: #020617;
  padding: 12px;
  border-radius: 14px;
  font-family: monospace;
  font-size: 13px;
}

.bd5-log-line {
  color: #86efac;
  margin-bottom: 4px;
}

@keyframes bd5ScanBar {
  0% { left: -40%; }
  100% { left: 100%; }
}

.bd5-banner-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 30px;
  background: #fff;
  background-image: url('https://safeean.club/wordpress/btp/kidsbutton2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.bd5-banner-top-text {
  padding: 60px 0 0 50px;
  font-size: 26px;
  line-height: 1.4;
  color: #333;
  border-radius: 0;
}

.bd5-banner-top-text strong {
  font-weight: 800;
}

.bd5-banner-top-text img {
  width: 200px;
}

.bd5-banner-button-area {
  display: flex;
  align-items: flex-end;
  background: transparent;
  margin-top: auto;
}

.bd5-main-action-btn {
  background-color: #FF531F;
  color: #fff;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 250px;
  border-radius: 0;
  box-sizing: border-box;
}

.bd5-main-action-btn .main-label {
  font-size: 20px;
  font-weight: 700;
}

.bd5-main-action-btn .sub-label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 5px;
}

.bd5-step-buttons {
  display: flex;
  flex: 1;
  height: 85px;
  background: #fff;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

.blockchain-demo5-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  background: #fff;
  border-right: 1px solid #ddd;
  border-radius: 0 !important;
  transition: background 0.2s;
  box-sizing: border-box;
}

.blockchain-demo5-button:last-child {
  border-right: none;
}

.blockchain-demo5-button .step-no {
  font-size: 11px;
  color: #888;
  margin-bottom: 3px;
}

.blockchain-demo5-button .step-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-align: center;
}

.blockchain-demo5-button.active {
  background-color: #fff !important;
  position: relative;
  box-shadow: inset 0 -5px 0 #FF531F;
}

.blockchain-demo5-button.active .step-name,
.blockchain-demo5-button.active .step-no {
  color: #FF531F;
}

.blockchain-demo5-wrap {
  padding: 0;
}

.bd5-loading-box {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 18px;
}

.bd5-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border: 5px solid #e5e7eb;
  border-top: 5px solid #111827;
  border-radius: 50%;
  animation: bd5-spin 1s linear infinite;
}

.bd5-loading-box p {
  margin: 0;
  font-weight: 800;
  color: #111827;
}

.bd5-loading-sub {
  margin-top: 8px !important;
  font-size: 13px;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

@keyframes bd5-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bd5-json-area {
  display: none !important;
}

.bd5-info-value a {
  color: inherit;
  text-decoration: none;
}

.bd5-info-value a:hover {
  color: inherit;
  text-decoration: none;
}

.bd5-menu-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.bd5-menu-icons img {
  width: 18px;
  margin-left: 6px;
}

.bd5-icon-sm {
  width: 16px;
}

.bd5-menu-icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bd5-zoomable-img {
  cursor: zoom-in;
}

.bd5-image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.bd5-image-zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd5-image-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bd5-image-zoom-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.bd5-image-zoom-card img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 12px;
}

.bd5-image-zoom-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bd5-analysis-progress-bar {
  position: relative;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

#bd5-analysis-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 999px;
  transition: width 0.08s linear;
}

.bd5-banner-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  max-width: 860px;
  margin: 0 auto 30px;
  min-height: 280px;

  background-color: #fff;
  background-image: url('https://safeean.club/wordpress/btp/kidsbutton2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.bd5-current-menu-box{
  margin:20px 0 24px;
  padding:22px;
  border-radius:20px;
  background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 100%);
  border:1px solid #d7e5ff;
  box-shadow:0 8px 24px rgba(25,85,180,0.08);
}

.bd5-current-menu-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.bd5-current-menu-head strong{
  font-size:20px;
  font-weight:800;
  color:#16325c;
}

.bd5-current-menu-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  background:#0f5cc0;
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
}

#bd5-current-menu-text{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#bd5-current-menu-text .bd5-pill{
  padding:10px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid #d9e7ff;
  color:#16325c;
  font-size:14px;
  font-weight:700;
  box-shadow:0 4px 12px rgba(15,92,192,0.08);
}


.bd5-allergy-summary {
  margin: 18px 0;
  padding: 20px;
  border-radius: 14px;
  background: #fff1e8;
  font-size: 17px;
  font-weight: 800;
  color: #3b1f12;
}

.bd5-allergy-summary .danger-text {
  color: #dc2626;
}

.bd5-allergy-summary .safe-text {
  color: #16a34a;
}

.bd5-allergy-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: #fff;
}

.bd5-allergy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: #fff;
}

.bd5-allergy-table th {
  background: #fff1e8;
  color: #ff6b4a;
  font-weight: 800;
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #f3d6ca;
}

.bd5-allergy-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #f1e2dc;
  color: #172554;
  font-size: 15px;
}

.bd5-allergy-table tr.has-conflict {
  background: #fff5f5;
  border-left: 5px solid #dc2626;
}

.bd5-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.bd5-pill.danger {
  background: #ffe1dc;
  color: #dc2626;
}

.bd5-none {
  color: #9ca3af;
  font-weight: 600;
}

.bd5-safe-text {
  color: #16a34a;
  font-weight: 800;
}

.bd5-ai-replace-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: #eefaf4;
  border-left: 5px solid #22c55e;
}

.bd5-ai-replace-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #065f46;
}

.bd5-ai-replace-box p {
  margin: 0 0 16px;
  color: #374151;
}

.bd5-ai-replace-box ul {
  margin: 0;
  padding-left: 20px;
}

.bd5-ai-replace-box li {
  margin-bottom: 8px;
  color: #064e3b;
  line-height: 1.6;
}
