/* comps.css — styles for the comparables database (comps.js), used by studio.html
   (in the drawer) and comps.html (the standalone page). */
.cdb-tabs{display:flex;gap:0;margin-bottom:12px;border-radius:10px;overflow:hidden;border:1px solid #e5e5ea}
.cdb-tab{flex:1;padding:10px;background:#f2f2f7;color:#636366;font-size:14px;font-weight:600;cursor:pointer;border:none;font-family:inherit}
.cdb-tab.selected{background:#17375E;color:#fff}
.cdb-search{width:100%;padding:10px 12px;font-size:15px;border:1px solid #e5e5ea;border-radius:10px;font-family:inherit;outline:none;margin-bottom:10px;box-sizing:border-box}
.cdb-search:focus{border-color:#17375E}
.cdb-entry{border:.5px solid #e5e5ea;border-radius:10px;padding:12px 14px;margin-bottom:8px}
.cdb-entry-addr{font-size:14px;font-weight:600;color:#1c1c1e;margin-bottom:2px}
.cdb-entry-meta{font-size:12px;color:#8e8e93;margin-bottom:5px}
.cdb-entry-notes{font-size:13px;color:#636366;margin-bottom:8px}
.cdb-entry-btns{display:flex;gap:6px}
.cdb-count{font-size:12px;color:#8e8e93;margin:2px 0 8px}
.cdb-entry-preview{font-size:12px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.cdb-entry .cdb-toggle-row{cursor:pointer}
@media(min-width:900px){
  #cdbList{max-height:68vh!important}
  .cdb-table{width:100%;border-collapse:collapse;font-size:13px}
  .cdb-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#8e8e93;padding:6px 8px;border-bottom:1px solid #d1d1d6;position:sticky;top:0;background:#fff;z-index:1}
  .cdb-table td{padding:8px;border-bottom:.5px solid #e5e5ea;vertical-align:top}
  .cdb-table td.addr{font-weight:600;color:#1c1c1e;min-width:150px}
  .cdb-table td.notes{color:#636366;font-size:12.5px}
  .cdb-table td.acts{white-space:nowrap}
}
.cdb-use-btn{padding:6px 12px;background:#17375E;color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.cdb-use-btn.added{background:#e8f5ee;color:#1d7a45;border:1px solid #1d7a45}
.cdb-del-btn{padding:6px 10px;background:#fff2f2;color:#ff3b30;border:.5px solid #ffcdd2;border-radius:7px;font-size:13px;cursor:pointer;font-family:inherit}
.cdb-add-form{background:#f9f9fb;border-radius:10px;padding:14px;margin-bottom:10px;border:.5px solid #e5e5ea}
.cdb-add-form input,.cdb-add-form textarea{width:100%;padding:8px 10px;font-size:14px;border:1px solid #e5e5ea;border-radius:8px;font-family:inherit;margin-bottom:8px;outline:none;background:#fff;box-sizing:border-box}
.cdb-add-form input:focus,.cdb-add-form textarea:focus{border-color:#17375E}
.cdb-add-form textarea{resize:none;min-height:52px}
.cdb-extract-panel{background:#f5f5ff;border-radius:10px;padding:14px;margin-bottom:10px;border:1px solid #d0cff5}
.cdb-extract-title{font-size:13px;font-weight:700;color:#5856d6;margin-bottom:10px}
.cdb-input-tabs{display:flex;gap:0;margin-bottom:10px;border-radius:8px;overflow:hidden;border:1px solid #d0cff5}
.cdb-input-tab{flex:1;padding:8px;background:#ebebff;color:#8e8e93;font-size:13px;font-weight:600;cursor:pointer;border:none;font-family:inherit}
.cdb-input-tab.selected{background:#5856d6;color:#fff}
.cdb-extract-textarea{width:100%;padding:9px 11px;font-size:13px;border:1px solid #d0cff5;border-radius:8px;font-family:inherit;outline:none;background:#fff;resize:vertical;min-height:100px;box-sizing:border-box;line-height:1.5}
.cdb-extract-textarea:focus{border-color:#5856d6}
.cdb-extract-btn{width:100%;padding:11px;background:#5856d6;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;margin-top:8px}
.cdb-extract-btn:disabled{background:#b0aef0;cursor:default}
.cdb-review-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:.5px solid #e5e5ea;border-radius:9px;margin-bottom:7px;background:#fff}
.cdb-review-item input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;cursor:pointer;accent-color:#17375E}
.cdb-review-info{flex:1;min-width:0}
.cdb-review-addr{font-size:13px;font-weight:600;color:#1c1c1e}
.cdb-review-meta{font-size:12px;color:#8e8e93;margin-top:2px}
.cdb-review-notes{font-size:12px;color:#636366;margin-top:2px}
.cdb-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}
.dist-filter{display:flex;gap:5px;margin-bottom:10px;flex-wrap:wrap;align-items:center}
.dist-label{font-size:11px;color:#8e8e93;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-right:2px;white-space:nowrap}
.dist-btn{padding:5px 11px;border-radius:7px;border:1px solid #d1d1d6;background:#fff;color:#636366;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap}
.dist-btn.selected{background:#17375E;border-color:#17375E;color:#fff}
.dist-badge{display:inline-block;font-size:11px;color:#17375E;background:#e8f0fa;border-radius:10px;padding:1px 7px;margin-left:5px;font-weight:600;flex-shrink:0}
