/* Keyword Lists page and the shared "Save to list" picker. White, black text and accents, #e5e5e5 lines; red only for errors. */
.pg-keyword-lists{color:#000}
.pg-keyword-lists .rf-card.kl-card{background:#fff;border:1px solid #e5e5e5;box-shadow:none}
.pg-keyword-lists .rf-card-head{border-bottom:1px solid #e5e5e5}
.pg-keyword-lists .rf-btn.dark,.kl-pick .rf-btn.dark{border-color:#000;background:#000;color:#fff}
.pg-keyword-lists .rf-btn.link{color:#000;text-decoration:underline;text-underline-offset:3px}
.pg-keyword-lists .kl-count{color:#737373;font-weight:500}
.pg-keyword-lists .kl-muted{color:#a3a3a3}
.pg-keyword-lists .kl-back{display:inline-flex;align-items:center;gap:4px;margin:0 0 8px;padding:4px 0;border:0;background:none;color:#000;font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.pg-keyword-lists .kl-back .ic{width:14px;height:14px}
.pg-keyword-lists .kl-back:hover span{text-decoration:underline}

.pg-keyword-lists .kl-table{width:100%}
.pg-keyword-lists .kl-table th{color:#525252;font-weight:500;border-bottom:1px solid #e5e5e5;background:#fff}
.pg-keyword-lists .kl-table td{border-bottom:1px solid #e5e5e5;color:#000}
.pg-keyword-lists .kl-table tr:hover td{background:#fafafa}
.pg-keyword-lists .kl-table .num{text-align:right;font-variant-numeric:tabular-nums}
.pg-keyword-lists .kl-table .kl-date{color:#525252;white-space:nowrap;width:120px}
.pg-keyword-lists .kl-table .kl-actions{width:1%;white-space:nowrap;text-align:right}
.pg-keyword-lists .kl-table .kl-actions .rf-btn+.rf-btn{margin-left:10px}
.pg-keyword-lists .kl-items .kl-kw{word-break:break-word}
.pg-keyword-lists .kl-name{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:#000;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.pg-keyword-lists .kl-name .ic{width:15px;height:15px;color:#525252;flex:none}
.pg-keyword-lists .kl-name:hover span{text-decoration:underline;text-underline-offset:3px}

.pg-keyword-lists .kl-field{display:grid;gap:6px;min-width:0;color:#000;font-size:13px;font-weight:500}
.pg-keyword-lists .kl-field input,.pg-keyword-lists .kl-field textarea,.kl-pick input[name=newName]{width:100%;min-height:36px;padding:7px 10px;border:1px solid #d4d4d4;border-radius:6px;background:#fff;color:#000;font:inherit;font-size:14px;font-weight:400}
.pg-keyword-lists .kl-field textarea{min-height:120px;resize:vertical;line-height:1.5}
.pg-keyword-lists .kl-field input:focus,.pg-keyword-lists .kl-field textarea:focus,.kl-pick input[name=newName]:focus{outline:2px solid #000;outline-offset:-1px;border-color:#000}
.pg-keyword-lists .kl-create,.pg-keyword-lists .kl-add{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:0 0 14px;padding:16px;border:1px solid #e5e5e5;border-radius:8px;background:#fff}
.pg-keyword-lists .kl-create .kl-field{flex:1 1 260px}
.pg-keyword-lists .kl-add{display:grid;align-items:stretch}
.pg-keyword-lists .kl-add-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.pg-keyword-lists .kl-add-actions small{color:#525252;font-size:12px}
.pg-keyword-lists .kl-inline{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pg-keyword-lists .kl-inline .kl-field{flex:1 1 220px}
.pg-keyword-lists .kl-head-editing{display:block}
.pg-keyword-lists .kl-title-form .kl-field input{font-size:20px;font-weight:600}

.pg-keyword-lists .kl-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pg-keyword-lists .kl-selbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 16px;border-bottom:1px solid #e5e5e5;background:#fafafa;font-size:13px}

/* "Save to list" dialog (Queries, Keyword Research, Rank Tracking). */
.kl-pick-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px}
.kl-pick-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.28);cursor:default}
.kl-pick{position:relative;display:grid;gap:14px;width:min(420px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;color:#000;box-shadow:0 12px 40px rgba(0,0,0,.14)}
.kl-pick header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.kl-pick h2{margin:0;color:#000;font-size:16px;font-weight:600;line-height:1.35}
.kl-pick-x{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:none;color:#000;cursor:pointer}
.kl-pick-x:hover{background:#f5f5f5}
.kl-pick-x .ic{width:16px;height:16px}
.kl-pick-keywords{display:flex;flex-wrap:wrap;gap:6px}
.kl-pick-keywords span{max-width:100%;overflow:hidden;padding:3px 8px;border:1px solid #e5e5e5;border-radius:999px;color:#000;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.kl-pick-keywords .kl-pick-more{border-style:dashed;color:#525252}
.kl-pick-options{display:grid;max-height:240px;overflow:auto;border:1px solid #e5e5e5;border-radius:8px}
.kl-pick-option{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #e5e5e5;color:#000;font-size:14px;cursor:pointer}
.kl-pick-option:last-child{border-bottom:0}
.kl-pick-option:hover{background:#fafafa}
.kl-pick-option input{width:16px;height:16px;margin:0;accent-color:#000}
.kl-pick-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kl-pick-option small{color:#525252;font-size:12px}
.kl-pick-new span{font-weight:600}
.kl-pick-name{display:grid;gap:6px;color:#000;font-size:13px;font-weight:500}
.kl-pick-loading{display:flex;align-items:center;gap:8px;margin:0;color:#525252;font-size:13px}
.kl-pick-loading .ic{width:14px;height:14px}
.kl-pick-error{margin:0;color:#dc2626;font-size:13px}
.kl-pick footer{display:flex;justify-content:flex-end;gap:8px}

@media(max-width:700px){
  .pg-keyword-lists .rf-card-head{flex-wrap:wrap}
  .pg-keyword-lists .rf-card-actions{width:100%;margin-left:0}
  .pg-keyword-lists .kl-tools{width:100%}
  .pg-keyword-lists .kl-tools .rf-input{flex:1 1 160px}
  .pg-keyword-lists .kl-table .kl-date{display:none}
  .pg-keyword-lists .rf-page-actions{flex-wrap:wrap}
  .kl-pick-overlay{align-items:end;padding:0}
  .kl-pick{width:100%;max-height:85vh;border-radius:12px 12px 0 0}
}
