@import url('/base.css');

.project-check-cell{width:48px;padding-inline:14px}.project-check-cell input{margin:0;vertical-align:middle}.project-page-check{display:grid;place-items:center;width:20px;height:20px;min-width:20px;padding:0;border:1px solid #aab5bc;border-radius:5px;font-size:14px}.project-page-check[aria-checked=true],.project-page-check[aria-checked=mixed]{background:var(--accent);border-color:var(--accent);color:#fff}.project-sort{padding:0;border:0;background:transparent;font:inherit;text-align:left;white-space:nowrap}.project-sort span{opacity:.6}.project-toolbar [aria-pressed=true]{background:#edf1e9;border-color:#cad2c2}.project-devices{display:flex;flex-wrap:wrap;gap:10px 20px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:0}.project-devices legend{font-size:12px;padding:0 4px;color:var(--muted)}.project-devices .check{font-size:14px}.batch-project{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,45%);gap:14px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center;overflow-wrap:anywhere}.batch-project strong,.batch-project small{display:block}.batch-project small{margin-top:5px}.batch-project>span{font-size:12px;text-align:right}.batch-project .bad{color:#aa3349}#runSelectedProjects[hidden],#clearProjectSelection[hidden]{display:none}@media(max-width:740px){.project-toolbar>.actions{width:100%}.batch-project{grid-template-columns:minmax(0,1fr)}.batch-project>span{text-align:left}}

.form-error.form-status{color:#18784f}.auth-links{flex-wrap:wrap}@media(max-width:740px){.auth-page{grid-template-rows:auto 1fr}.auth-story{min-height:88px;padding:22px 24px}.auth-form{align-items:flex-start;padding:28px 24px;margin:0;max-width:none;width:100%}}

.project-sites{display:flex;gap:8px;margin:-8px 0 22px;flex-wrap:wrap}.project-sites button{font-size:13px;padding:9px 12px;font-weight:500}.project-sites [aria-selected=true]{background:var(--accent);color:#fff;border-color:var(--accent)}.project-sites [data-action=competitors]{border-style:dashed}.competitor-manager>div{display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;overflow-wrap:anywhere}.competitor-manager button{border:0;padding:4px 10px;color:#a44256;font-size:20px}@media(max-width:740px){.project-sites{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}.project-sites button{flex-shrink:0}}

.service-ui .service-projects-table .project-sort{min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit}.service-ui .service-projects-table .project-sort:hover{background:transparent;text-decoration:underline}.service-ui .project-page-check{width:20px;height:20px;min-height:20px;padding:0;border-radius:4px}.service-ui .project-page-check[aria-checked=true],.service-ui .project-page-check[aria-checked=mixed]{background:#176950;color:white;border-color:#176950}

.keyword-import-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.keyword-file input{width:100%;font-size:12px}.service-ui #keywordImportStatus{margin:0;min-height:0}.service-ui #keywordImportStatus:empty{display:none}.service-ui #keywordText{min-height:180px;line-height:1.5}.service-ui #keywordImportSettings summary{font-size:12px;color:#4e6847}.service-ui .keyword-import-options label{font-size:12px}@media(max-width:500px){.keyword-import-options{grid-template-columns:1fr}}

.keyword-import-options{grid-template-columns:repeat(2,minmax(0,1fr))}.keyword-import-options>label{min-width:0}.keyword-import-options select,.keyword-import-options input{width:100%;min-width:0}#keywordImportSettings[hidden],.keyword-import-options>label[hidden]{display:none}@media(max-width:500px){.keyword-import-options{grid-template-columns:minmax(0,1fr)}}

#dialogForm[data-mode=keywords]{gap:12px}#dialogForm[data-mode=keywords] .form-error:empty{display:none}#dialogForm[data-mode=keywords] .dialog-actions{margin-top:4px}#dialogForm[data-mode=keywords]>small{margin:0}

.service-ui .site-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;overflow:hidden;border-radius:8px}.service-ui .site-icon img{width:32px;height:32px;object-fit:contain;background:white}.service-ui .site-icon img[hidden]{display:none}.service-ui .site-icon.has-icon>span{display:none}.service-ui .project-title{display:flex;align-items:center;gap:12px}

.project-context-label{display:block;font-size:10px;margin-top:4px;color:var(--muted)}.overview-number{font-variant-numeric:tabular-nums;font-weight:650}.service-ui td.overview-top10{color:var(--rank-top10)}.overview-ratio{display:block;width:62px;height:3px;margin-top:7px;border:0;border-radius:2px;appearance:none;background:var(--rank-top10-soft);accent-color:var(--rank-top10);overflow:hidden}.overview-ratio::-webkit-progress-bar{background:var(--rank-top10-soft)}.overview-ratio::-webkit-progress-value{background:var(--rank-top10)}.overview-ratio::-moz-progress-bar{background:var(--rank-top10)}.overview-caption{margin:0;padding:0 22px 14px;color:var(--muted);font-size:11px;line-height:1.5}.service-ui .service-projects-table th,.service-ui .service-projects-table td{padding-inline:15px}.service-ui .service-projects-table .project-check-cell{padding-inline:12px}.service-ui .service-projects-table .project-sort{white-space:normal;max-width:145px}.service-ui .service-projects-table .project-context-label{font-size:10px}

.context-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:14px 0}.context-controls label,.comparison-select{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.context-controls select,.comparison-select select{height:36px;max-width:240px;font-size:12px}.context-controls>span{padding:9px 0}.position-change{font-size:10px;font-weight:600;margin-left:5px;white-space:nowrap;vertical-align:super;line-height:1}.change-good{color:var(--rank-top10)}.change-bad{color:#b33d3d}.change-neutral{color:var(--muted)}.comparison-summary{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:10px 0}.context-movement{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:13px}.context-movement small,.context-caption{font-size:11px;color:var(--muted)}.context-caption{line-height:1.5;margin:8px 0 13px}.context-bands{display:flex;gap:18px;margin-left:auto}.context-band{min-width:65px;--range:var(--rank-top10);color:var(--range)}.context-band-1{--range:var(--rank-top30)}.context-band-2{--range:var(--rank-beyond30)}.context-band small{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.context-band strong{font-size:14px}.context-band progress{display:block;width:76px;height:3px;border:0;appearance:none;background:#e5e9e0;accent-color:var(--range);margin-top:6px}.context-band progress::-webkit-progress-bar{background:#e5e9e0}.context-band progress::-webkit-progress-value{background:var(--range)}.context-band progress::-moz-progress-bar{background:var(--range)}.run-state{margin:12px 0;color:var(--muted)}.run-state .actions{gap:10px}.history-pages{display:flex;align-items:center;gap:6px}.history-pages button{padding:7px 10px;min-height:36px}.history-pages small{font-size:10px;color:var(--muted)}
@media(max-width:740px){.context-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.context-controls label,.context-controls select{width:100%;max-width:none;min-width:0}.context-controls .comparison-select{grid-column:1/-1}.context-bands{margin-left:0;gap:14px}.context-movement{gap:10px}.context-movement small{flex-basis:100%}.run-state .actions{flex-wrap:wrap}.context-band progress{width:66px}.guest-service .comparison-select select{max-width:100%}}

.keyword-source-switch{display:flex;gap:4px;border-bottom:1px solid #d5dfce;padding-bottom:10px}.keyword-source-switch button{background:transparent;border:0;min-height:32px;padding:6px 10px}.keyword-source-switch [aria-pressed=true]{background:#e2edcf;color:#1b3923;opacity:1}.suggestion-actions{display:flex;gap:8px;flex-wrap:wrap}.suggestion-actions button{font-size:12px;padding:7px 10px}.suggestion-actions [hidden]{display:none}#suggestionStatus,#suggestionDetails,#suggestionExplanation{margin:0;line-height:1.5}#suggestionDetails:empty{display:none}.suggestion-list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.suggestion-list-tools button{font-size:12px;padding:6px 10px}.suggestion-list-tools small{color:var(--muted)}.suggestion-rows{max-height:370px;overflow:auto;border-top:1px solid #d5dfce}.suggestion-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #e0e7da}.suggestion-row>input[type=checkbox]{width:17px;height:17px;flex-shrink:0;margin-top:10px}.suggestion-row>div{min-width:0;flex:1}.suggestion-row input[type=text]{width:100%;min-width:0;font-size:13px;height:36px}.suggestion-row small{display:block;font-size:10px;color:var(--muted);line-height:1.4;margin-top:4px}.suggestion-row small a{color:var(--rank-top10)}.suggestion-evidence{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:2px}#dialogForm[data-mode=suggestions]{gap:12px}#dialogForm[data-mode=suggestions] .form-error:empty{display:none}#dialogForm[data-mode=suggestions] .dialog-actions{margin-top:0}
@media(max-width:520px){.suggestion-rows{max-height:42vh}.suggestion-row{gap:7px}.suggestion-row input[type=text]{font-size:14px}.keyword-source-switch button{flex:1}.suggestion-actions button{flex:1}.suggestion-list-tools{gap:8px}.suggestion-list-tools small{font-size:10px}}

.overview-dynamics-heading{min-width:195px}.overview-dynamics{min-width:185px}.overview-movement{display:flex;gap:13px;align-items:center;font-size:12px;white-space:nowrap}.overview-movement small,.overview-state{font-size:10px;color:var(--muted)}.overview-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}.overview-bands .context-band{min-width:0}.overview-bands .context-band small{font-size:9px}.overview-bands .context-band strong{font-size:12px}.overview-bands .context-band progress{width:100%;height:3px}.overview-bands .position-change{font-size:9px;margin-left:3px}.overview-number .position-change{font-weight:500}.service-projects-table .overview-number{white-space:nowrap}
.telegram-login{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#1b78bb;color:#fff;border-color:#1b78bb;font-weight:650}.telegram-request{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 22px}.telegram-code{font-size:24px;letter-spacing:3px}.auth-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin:22px 0}.auth-or:before,.auth-or:after{content:"";flex:1;height:1px;background:var(--line)}
.telegram-login[hidden]{display:none}

.service-ui .project-title-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.service-ui .project-title-row h1{margin:0}.service-ui .project-heading{align-items:center}.service-ui .project-run{flex-shrink:0}.competitor-manager>div>span:first-child{min-width:0;overflow-wrap:anywhere}@media(max-width:740px){.service-ui .project-heading{align-items:flex-start;gap:12px}.service-ui .project-title-row{gap:12px}.service-ui .project-run{width:100%}.service-ui .project-heading>.actions{flex-wrap:wrap}}

.project-row-title{display:flex;align-items:center;gap:10px}.project-row-title .project-link{min-width:0}.service-ui .project-row-title .icon{flex-shrink:0;width:34px;min-height:34px;height:34px;border-radius:50%;padding:4px;font-size:20px;color:#176950}
