.keyword-library{color:#243246;padding:24px;background:#f7f9fc;min-height:80vh}.keyword-library header,.kl-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.keyword-library h1{margin:0}.keyword-library p{line-height:1.6}.kl-filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.keyword-library label{display:flex;flex-direction:column;gap:6px;font-size:13px}.keyword-library input,.keyword-library select,.keyword-library textarea{border:1px solid #ccd6e3;border-radius:6px;padding:8px;background:#fff;max-width:100%;color:#243246}.keyword-library button,.kl-upload{border:1px solid #c9d4e5;border-radius:6px;background:#fff;padding:8px 12px;color:#2457a8;cursor:pointer}.keyword-library button:disabled{opacity:.45;cursor:default}.kl-actions{justify-content:flex-start;margin:15px 0}.kl-upload input{max-width:220px}.kl-table{overflow:auto;background:#fff;border:1px solid #dce3ed;border-radius:8px}.kl-table table{border-collapse:collapse;width:100%;min-width:1000px}.kl-table th,.kl-table td{padding:12px;border-bottom:1px solid #e7edf5;text-align:left;font-size:13px}.kl-table th{background:#eff4fa;white-space:nowrap}.kl-table td button{margin:3px}.kl-error{background:#fff0ed;color:#a52a1b;padding:12px;border-radius:6px}.kl-overlay{position:fixed;inset:0;background:#172b4d55;z-index:150;display:flex;align-items:center;justify-content:center;padding:20px}.kl-dialog{background:#fff;border-radius:12px;padding:24px;width:520px;max-width:100%;max-height:90vh;overflow:auto}.kl-dialog label{margin:12px 0}.kl-dialog button{margin:8px}.kl-wide{width:1100px}.kl-drawer{position:fixed;right:0;top:0;bottom:0;width:620px;max-width:94vw;background:#fff;box-shadow:-5px 0 30px #25395730;z-index:140;padding:24px;overflow:auto}.keyword-library article{border-bottom:1px solid #e2e8f1;padding:14px 0}.keyword-library pre{white-space:pre-wrap;overflow-wrap:anywhere}.keyword-library input[type=checkbox]{align-self:flex-start}.kl-dialog textarea{min-height:100px}@media(max-width:700px){.keyword-library{padding:12px}.kl-filters label{width:45%}.kl-overlay{padding:8px}.kl-dialog{padding:16px}}.kl-product-title{white-space:pre-wrap;overflow-wrap:anywhere}.kl-drawer .kl-title-hit{background:#fde047;color:#422006;font-weight:700;padding:1px 2px;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.keyword-library .pd-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-height:64px;box-sizing:border-box;margin:0;padding:14px 16px;border:1px solid #dee5ee;border-top:0;border-radius:0 0 8px 8px;background:#fff;font-size:12px;font-variant-numeric:tabular-nums;color:#687a90}.keyword-library .pd-page-summary{display:flex;align-items:center;gap:16px;white-space:nowrap}.keyword-library .pd-page-summary strong{color:#253b55;font-weight:600}.keyword-library .pd-page-range{color:#8a97a8}.keyword-library .pd-page-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-left:auto}.keyword-library .pd-page-progress{min-height:18px;color:#526c91;font-size:12px}.keyword-library .pd-pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;box-sizing:border-box;padding:0 8px;margin:0;border:1px solid #dbe3ed;border-radius:5px;background:#fff;color:#40556e;font-size:12px;font-weight:500;line-height:1}.keyword-library .pd-pagination button:hover:not(:disabled){border-color:#8eafe7;background:#f0f5ff;color:#1d4ed8}.keyword-library .pd-pagination button:disabled{opacity:1;color:#b1bccb;background:#fafbfc;border-color:#e8edf3}.keyword-library .pd-pagination button[aria-current=page]{border-color:#2563eb;background:#2563eb;color:#fff;font-weight:600;box-shadow:0 1px 3px #2563eb22}.keyword-library .pd-page-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.keyword-library .pd-page-numbers,.keyword-library .pd-page-numbers>span{display:flex;align-items:center;gap:6px}.keyword-library .pd-page-ellipsis{display:flex;align-items:center;justify-content:center;width:24px;height:32px;color:#8999ab}.keyword-library .pd-page-count{margin:0 8px;color:#718197;white-space:nowrap}.keyword-library .pd-page-jump,.keyword-library .pd-page-jump label{display:flex;align-items:center;gap:7px;white-space:nowrap}.keyword-library .pd-page-jump{margin:0;padding-left:14px;border-left:1px solid #e6ebf2}.keyword-library .pd-page-jump input{width:48px;height:32px;min-width:0;box-sizing:border-box;padding:4px;border-color:#dbe3ed;text-align:center;font-size:12px;appearance:textfield}.keyword-library .pd-page-jump input::-webkit-inner-spin-button{appearance:none}@media(max-width:1100px){.keyword-library .pd-page-summary{gap:10px}.keyword-library .pd-page-range{display:none}.keyword-library .pd-page-progress:not(:empty){flex-basis:100%;text-align:right}.keyword-library .pd-page-controls{max-width:100%}}@media(max-width:650px){.keyword-library .pd-pagination{padding:12px;gap:10px}.keyword-library .pd-page-summary{flex:1}.keyword-library .pd-page-controls{width:100%;justify-content:flex-end;gap:4px}.keyword-library .pd-page-numbers,.keyword-library .pd-page-numbers>span{gap:4px}.keyword-library .pd-page-numbers>span:has(.pd-page-ellipsis){gap:2px}.keyword-library .pd-page-count{margin:0 3px}.keyword-library .pd-page-jump{padding-left:0;border-left:0;margin-left:auto;margin-top:6px}.keyword-library .pd-page-ellipsis{width:16px}}.keyword-library .kl-table:has(+.pd-pagination){border-radius:8px 8px 0 0}.keyword-library .pd-page-jump label{flex-direction:row;align-items:center;font-size:inherit}.keyword-library .pd-pagination button:focus-visible,.keyword-library .pd-page-jump input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.kw-workspace{--ink:#18344a;--muted:#526b7a;--line:#d9e4e8;--accent:#126a68;min-width:0;max-width:1680px;margin:auto;padding:clamp(12px,2.2vw,30px);background:#f4f7f8;color:var(--ink);font-family:inherit}.kw-mast,.kw-head,.kw-panel-head,.kw-head-actions,.kw-tags{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.kw-mast{padding-bottom:18px;border-bottom:1px solid var(--line)}.kw-kicker,.kw-result-note,.kw-body header p,.kw-tags>span{color:var(--muted);font-size:13px}.kw-mast h1{font-size:27px;line-height:1.4;letter-spacing:.02em}.kw-mast>label{min-width:180px}.kw-workspace label{font-weight:550;min-width:0}.kw-workspace button:focus-visible,.kw-workspace :is(input,select,a):focus-visible{outline:3px solid #378d9b;outline-offset:2px}.kw-body .kw-head{margin:22px 0 16px}.kw-head h2,.kw-panel-head h3{margin:0;font-size:19px}.kw-head p{margin:4px 0 0}.kw-head-actions{gap:8px}.kw-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kw-workspace .kw-card{--tone:#466b92;position:relative;display:grid;gap:5px;text-align:left;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:14px 17px;min-width:0;box-shadow:0 2px 5px #13324607}.kw-card[data-state=full],.kw-badge[data-state=full]{--tone:#14765f}.kw-card[data-state=partial],.kw-badge[data-state=partial]{--tone:#946015}.kw-card[data-state=none],.kw-badge[data-state=none]{--tone:#66657f}.kw-workspace .kw-card:hover{border-color:var(--tone)}.kw-workspace .kw-card[aria-pressed=true]{border-color:var(--tone);box-shadow:inset 0 3px var(--tone);background:linear-gradient(110deg,#edf5f6,#fff 80%)}.kw-card-title,.kw-badge{display:inline-flex;align-items:center;gap:7px}.kw-card-title i,.kw-badge:before{content:"";display:inline-block;width:7px;height:7px;background:var(--tone);border-radius:50%;flex:none}.kw-card-title{font-weight:650;font-size:14px}.kw-card strong{font-size:30px;line-height:1.25;font-variant-numeric:tabular-nums}.kw-card small{color:var(--muted);font-size:12px}.kw-panel{background:#fff;margin-top:16px;padding:16px;border-radius:10px;border:1px solid var(--line)}.kw-panel-head{margin-bottom:12px}.kw-panel-head h3{font-size:16px}.kw-panel-head>div{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.kw-fields{display:grid;grid-template-columns:1.35fr 1.1fr .65fr 1fr 1.15fr .7fr;gap:12px}.kw-fields :is(select,input){width:100%;height:37px;box-sizing:border-box}.kw-tags{justify-content:flex-start;margin-top:12px;font-size:12px;gap:8px}.kw-tags button,.kw-tag{border-radius:20px;background:#eef4f5;color:#315b65;font-size:12px;padding:3px 9px}.kw-tags [aria-pressed=true]{background:#d8eeea;color:#105d58;border-color:#388b81}.kw-notice{background:#e7f5f1;color:#155d4d;padding:10px 14px;border-radius:8px}.kw-results .kw-tools{gap:7px;margin:0 0 14px}.kw-tools .kw-primary{background:#126a68;color:#fff;border-color:#126a68}.kw-tools a{padding:6px;color:#216568}.kw-tools .kl-upload{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}.kw-tools .kl-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.kw-tools .kl-upload:focus-within{outline:2px solid #378d9b}.kw-results .kl-table{border-radius:6px;max-height:68vh;min-height:120px}.kw-results .kl-table table{min-width:940px}.kw-results .kl-table th{position:sticky;top:0;background:#edf3f4;color:#405a69;z-index:1}.kw-results .kl-table td{padding:9px 10px}.kw-results .kl-table tbody tr:hover{background:#f4faf9}.kw-results .kl-table td:first-child{min-width:170px;max-width:330px}.kw-results .kl-table td button{border:0;background:transparent;padding:3px 2px;font-size:13px;color:#166465;text-align:left}.kw-results td:first-child button{font-weight:650}.kw-results .kl-table td:last-child{min-width:95px}.kw-results .kl-table td:nth-child(5),.kw-results .kl-table td:nth-child(6){font-variant-numeric:tabular-nums}.kw-tag{display:inline-block;margin:2px;white-space:nowrap}.kw-badge{--tone:#546979;white-space:nowrap;font-size:12px;font-weight:600;color:var(--tone);background:#f1f4f6;padding:4px 9px;border-radius:18px}.kw-badge[data-state=full]{background:#e8f5ee}.kw-badge[data-state=partial]{background:#fff4db}.kw-badge[data-state=none]{background:#f0edf5}.kw-empty{text-align:center;padding:20px;color:var(--muted)}.kw-empty button{margin-left:10px}@media(max-width:1150px){.kw-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.kw-cards,.kw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.kw-workspace{padding:12px}.kw-mast>label{min-width:120px}.kw-workspace .kw-card,.kw-panel{padding:12px}.kw-cards{gap:8px}.kw-card strong{font-size:24px}.kw-body .kw-head{margin-top:15px}}.kw-other{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:var(--muted)}.kw-other button{font-size:12px;padding:4px 9px}.kw-other button[aria-pressed=true]{background:#e3f2ee;border-color:var(--accent);color:#12564e}.admin-main:has(.kw-workspace){padding-block-start:4px}.admin-main:has(.kw-workspace)>.admin-header{padding-bottom:3px}.admin-main:has(.kw-workspace)>.admin-header h1{font-size:24px}.admin-content:has(>.kw-workspace){padding-top:2px}.keyword-library.kw-workspace{width:100%;box-sizing:border-box;padding:2px 12px}.kw-body .kw-head{margin:0 0 5px;gap:6px 12px}.kw-head>div:first-child,.kw-workspace .kw-head-actions>label{display:flex;align-items:center;flex-wrap:wrap;flex-direction:row;gap:4px 10px}.kw-head p{margin:0}.kw-workspace .kw-head-actions :is(button,select),.kw-panel-head :is(button,.kl-upload),.kw-results .kw-tools a{box-sizing:border-box;padding:3px 8px;min-height:28px}.kw-head-actions select{max-width:min(260px,70vw)}.kw-cards{gap:6px}.kw-workspace .kw-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;border-radius:6px}.kw-card strong{font-size:20px}.kw-workspace .kw-panel{margin-top:4px;padding:5px 10px}.kw-panel-head{gap:6px 10px;margin-bottom:4px}.kw-panel-head .kw-tags{margin:0 auto 0 0;gap:6px;align-items:center}.kw-fields{gap:5px 10px}.kw-workspace .kw-fields>label{flex-direction:row;align-items:center;white-space:nowrap}.kw-workspace .kw-fields :is(input,select){min-width:0;height:30px;padding:2px 6px}.kw-results .kw-tools{margin:0;gap:4px 6px;align-items:center}@media(max-width:720px){.keyword-library.kw-workspace{padding:6px}.kw-workspace .kw-fields>label{flex-direction:column;align-items:stretch;gap:2px}.kw-head-actions>label{max-width:100%}}
