 /* ── Trigger button ── */
  .dlb-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #5a9c1c;
    background: #fff;
    color: #3d6e12;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
  }
  .dlb-guide-btn:hover { background: #f3fae8; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .dlb-guide-btn svg { flex-shrink: 0; }

  /* ── Overlay ── */
  #dlb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  #dlb-overlay.open { display: flex; }

  /* ── Modal ── */
  .dlb-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  /* ── Modal header ── */
  .dlb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0;
    flex-shrink: 0;
  }
  .dlb-modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
  }
  .dlb-modal-header p {
    font-size: 12px;
    color: #777;
    margin: 2px 0 0;
  }
  .dlb-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s;
  }
  .dlb-close:hover { color: #333; }

  /* ── Tabs ── */
  .dlb-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px 0;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    flex-wrap: wrap;
  }
  .dlb-tab {
    padding: 6px 13px;
    border-radius: 6px 6px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: none;
    font-size: 12.5px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    bottom: -1px;
  }
  .dlb-tab:hover { color: #3d6e12; background: #f7fbf2; }
  .dlb-tab.active {
    background: #fff;
    color: #3d6e12;
    border-color: #e8e8e8;
    border-bottom-color: #fff;
  }

  /* ── Tab body ── */
  .dlb-body {
    overflow-y: auto;
    padding: 16px 20px 20px;
    flex: 1;
  }
  .dlb-section { display: none; }
  .dlb-section.visible { display: block; }

  /* ── Legend ── */
  .dlb-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
  }
  .dlb-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #666; }

  /* ── Badges ── */
  .badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
  }
  .badge-req  { background: #dbeafe; color: #1d4ed8; }
  .badge-opt  { background: #f3f4f6; color: #6b7280; }
  .badge-auto { background: #d1fae5; color: #065f46; }

  /* ── Field grid ── */
  .dlb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }
  .dlb-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 9px 11px;
  }
  .dlb-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
  }
  .dlb-card-desc {
    font-size: 11.5px;
    color: #555;
    line-height: 1.55;
    white-space: normal;
  }

  /* ── Note ── */
  .dlb-note {
    font-size: 11px;
    color: #666;
    background: #f7fbf2;
    border-left: 3px solid #7aba2a;
    border-radius: 0 6px 6px 0;
    padding: 7px 10px;
    margin-top: 8px;
    line-height: 1.5;
  }

  /* ── Section label ── */
  .dlb-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
    margin-bottom: 10px;
  }