/* Settings area: shared tab bar and the account settings page. */
.settings-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 22px;padding:6px 8px;border:1px solid var(--ads-border,#e3e8ee);border-radius:12px;background:#fff}
.settings-nav a{padding:6px 8px;border-radius:8px;color:#425466;font-size:12.5px;font-weight:650;text-decoration:none}
.settings-nav a:hover{background:#f6f9fc;color:#0a2540}
.settings-nav a.is-active{background:#efedff;color:#4338ca}
.settings-nav a[hidden]{display:none}
.set-page{max-width:1100px}
.set-panel{margin-bottom:16px;border:1px solid #e3e8ee;border-radius:14px;background:#fff;overflow:hidden;scroll-margin-top:90px}
.set-panel>header{padding:18px 20px 6px}
.set-panel h2{margin:0;color:#0a2540;font-size:17px}
.set-panel>header p{margin:6px 0 0;color:#697386;font-size:13px;line-height:1.5}
.set-panel>.st-alert{margin:10px 20px 0}
.set-panel a{color:#5145e5;font-weight:700}
.set-panel>footer{display:flex;justify-content:flex-end;padding:14px 20px;border-top:1px solid #e3e8ee;background:#f6f9fc}
.set-body{display:flex;flex-direction:column;gap:12px;padding:12px 20px 18px}
.set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.set-span{grid-column:1/-1}
.set-field{display:flex;flex-direction:column;gap:6px}
.set-field>span{color:#425466;font-size:12px;font-weight:700}
.set-field small{color:#697386;font-size:12px}
.set-field input,.set-field select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #e3e8ee;border-radius:8px;background:#fff;color:#0a2540;font:inherit}
.set-option{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.set-option input{flex:none;width:16px;height:16px;margin-top:3px;accent-color:#635bff}
.set-option>span{display:flex;flex-direction:column;gap:3px}
.set-option strong{color:#0a2540;font-size:14px}
.set-option small{color:#697386;font-size:12px;line-height:1.45}
.set-note{margin:0;color:#697386;font-size:12px}
@media(max-width:700px){.set-grid{grid-template-columns:1fr}}/* Efficiency › Negative keywords sections */

/* Performance area tabs */
.performance-tabs{display:flex;gap:4px;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid var(--ads-border,#e3e8ee)}
.performance-tabs a{padding:7px 12px;border-radius:8px;color:#425466;font-size:13px;font-weight:650;text-decoration:none}
.performance-tabs a:hover{background:#f6f9fc;color:#0a2540}
.performance-tabs a.is-active{background:#efedff;color:#4338ca}
@media print{.performance-tabs,.settings-nav{display:none!important}}
/* Ad map area tabs */
.structure-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 20px;padding:6px;border:1px solid var(--ads-border,#e3e8ee);border-radius:12px;background:#fff}
.structure-tabs a{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:8px;color:#425466;font-size:13px;font-weight:650;text-decoration:none}
.structure-tabs a:hover{background:#f6f9fc;color:#0a2540}
.structure-tabs a.is-active{background:#efedff;color:#4338ca}
.structure-step b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#eef2f6;color:#425466;font-size:12px}
.structure-step.is-complete b{background:#e8f8f1;color:#087f5b}
.structure-step a.is-active b{background:#4338ca;color:#fff}
.structure-step i{width:7px;height:7px;border-radius:50%;background:#f59e0b}
.structure-step i[hidden]{display:none}

/* Settings: the groups are under Settings in the sidebar; the tabs of the current group sit on top. */
.ads-v3-settings-groups{display:flex;flex-direction:column;gap:1px;margin:0 0 4px 12px}
.ads-v3-settings-groups a{min-height:28px;padding:4px 10px;border-radius:8px;color:#6e6f85;font-size:13px;text-decoration:none}
.ads-v3-settings-groups a:hover{color:#17171f}
.ads-v3-settings-groups a.active{background:transparent;color:#17171f;font-weight:600}

/* Every Settings page: same width, same header. */
.st-page.st-page:has(>.settings-nav){width:min(800px,calc(100% - 40px));max-width:800px;margin:0 auto;padding:34px 0 60px}
.settings-nav+.st-page-header .st-eyebrow{display:none}

/* Settings forms in the plain style: ink and grey text, hairlines, no tinted bars. */
.set-page{max-width:none}
.set-panel{margin-bottom:8px;border:0;border-top:1px solid #efeff4;border-radius:0;background:transparent}
.set-panel>header{padding:22px 0 4px}
.set-panel h2{color:#17171f;font-size:16px;font-weight:600}
.set-panel>header p{max-width:640px;color:#6e6f85;font-size:13px}
.set-panel>.st-alert{margin:10px 0 0}
.set-panel a{color:#17171f;font-weight:500;text-decoration:underline;text-underline-offset:2px}
.set-panel>footer{padding:14px 0 22px;border-top:0;background:transparent;justify-content:flex-start}
.set-body{padding:12px 0 6px}
.set-grid{max-width:720px}
.set-field>span{color:#17171f;font-size:13px;font-weight:500}
.set-field small,.set-option small,.set-note{color:#6e6f85}
.set-field input,.set-field select{min-height:38px;border-color:#efeff4;border-radius:8px;color:#17171f}
.set-field input:focus,.set-field select:focus{outline:0;border-color:#17171f}
.set-option strong{color:#17171f;font-size:14px;font-weight:500}
.set-option input{accent-color:#17171f}/* The small label above a section title repeats the title. */

.settings-nav~.st-page-header h1,.st-page>.settings-nav+.st-page-header h1{font-size:24px;font-weight:600;letter-spacing:-.02em}
/* "?" beside a setting: the longer explanation in a dark popover on hover or focus. */
.set-panel>header{display:flex;align-items:baseline;gap:12px}
.set-saved{color:#6e6f85;font-size:12px}
.set-option-line{display:flex;align-items:center;gap:8px;flex-direction:row!important}
.set-help{position:relative;display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #d4d4e0;border-radius:50%;color:#6e6f85;font-size:11px;font-weight:600;line-height:1;cursor:help}
.set-help:hover,.set-help:focus-visible{border-color:#17171f;color:#17171f;outline:0}
.set-help:hover::after,.set-help:focus-visible::after{content:attr(data-tip);position:absolute;z-index:6;bottom:calc(100% + 8px);left:-8px;width:max-content;max-width:300px;padding:8px 12px;border-radius:8px;background:#17171f;color:#fff;font-size:12px;font-weight:400;line-height:1.45;text-align:left;white-space:pre-line;pointer-events:none}
.set-grid{grid-template-columns:1fr;max-width:none}
.set-label{display:flex;align-items:center;gap:8px;color:#17171f;font-size:13px;font-weight:500}
.set-pills{display:flex;flex-wrap:wrap;gap:8px}
.set-pills label{cursor:pointer}
.set-pills input{position:absolute;opacity:0;pointer-events:none}
.set-pills span{display:inline-block;padding:6px 14px;border:1px solid #efeff4;border-radius:999px;color:#6e6f85;font-size:13px}
.set-pills label:hover span{color:#17171f}
.set-pills input:checked+span{border-color:#17171f;color:#17171f;font-weight:600}
.set-pills input:focus-visible+span{outline:2px solid #17171f;outline-offset:2px}
.set-field input[type=number]{width:140px}
.nk-filter{width:min(360px,100%);margin:0 0 14px}
.st-table tr[hidden]{display:none}
.vs-fields{min-width:0;margin:0;padding:0;border:0}
.set-panel-form .set-panel>header{padding-top:22px}
.set-panel h2{display:flex;align-items:center;gap:8px}
.vs-feed{padding:12px 14px;border:1px solid #efeff4;border-radius:10px;background:#fafafc;font-size:13px}
.vs-feed p{margin:0 0 8px}
.vs-feed dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 12px;margin:10px 0}
.vs-feed dt{color:#6e6f85}
.vs-feed dd{margin:0;min-width:0;overflow-wrap:anywhere}
.vs-feed code{font-size:12px}
.vs-reset{margin:4px 0 20px}
.set-saved.is-bad{color:#c2410c}
.ap-link{padding:0;border:0;background:none;color:#17171f;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}

/* Value & targets: narrow column, popovers may leave the section. */
.set-panel{overflow:visible}

.set-pills label{position:relative}
.set-pills label:hover::after{content:attr(data-tip);position:absolute;z-index:6;bottom:calc(100% + 8px);left:0;width:max-content;max-width:280px;padding:8px 12px;border-radius:8px;background:#17171f;color:#fff;font-size:12px;font-weight:400;line-height:1.45;text-align:left;white-space:normal;pointer-events:none}

/* Clients */
.cl-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.cl-client{padding:20px 0 6px;border-top:1px solid #efeff4}
.cl-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.cl-title h2{margin:0;color:#17171f;font-size:16px;font-weight:600}
.cl-accounts{margin:10px 0 14px}
.cl-account{display:flex;align-items:baseline;gap:12px;padding:8px 0}
.cl-name{color:#17171f;font-size:14px;font-weight:500;text-decoration:none}
.cl-name:hover{text-decoration:underline}
.cl-id{flex:1;color:#6e6f85;font-size:13px}
.move-account-form select{border:0;background:none;color:#6e6f85;font:inherit;font-size:13px;cursor:pointer}
.client-edit-form{position:relative;margin-top:10px}
.client-edit-form .set-saved{position:absolute;top:-4px;right:0}
.client-edit-form .client-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.client-edit-form .client-form-wide{grid-column:1/-1}
.client-edit-form[hidden]{display:none}
@media(max-width:700px){.client-edit-form .client-form-grid{grid-template-columns:1fr}}

.ap-switch{position:relative;display:inline-block;width:38px;height:22px;cursor:pointer}
.ap-switch input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.ap-switch span{position:absolute;inset:0;border-radius:999px;background:#d4d4e0;transition:background .15s}
.ap-switch span::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.ap-switch input:checked+span{background:#17171f}
.ap-switch input:checked+span::after{transform:translateX(16px)}
.ap-switch input:focus-visible+span{outline:2px solid #17171f;outline-offset:2px}
