:root {
    --bg: #f0f4f9;
    --surface: #fff;
    --ink: #1f1f1f;
    --muted: #444746;
    --line: #d3e3fd;
    --blue: #0b57d0;
    --blue-soft: #d3e3fd;
    --green: #0d652d;
    --red: #b3261e;
    --red-bg: #fceeee;
    --warn: #8c5000;
    --warn-bg: #fff3e0;
    --rail: #f8fafd;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    min-height: 100%;
}

body {
    font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Chrome browser mock — sits above the Google Ads app */
.chrome-frame {
    flex-shrink: 0;
    background: #f6d5e5;
    color: #202124;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12px;
    user-select: none;
    border-bottom: 1px solid #e8bfd4;
}
.chrome-tabs {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 36px;
    padding: 0 0 0 6px;
    background: #f2c9dc;
}
.chrome-tab-chevron,
.chrome-new-tab,
.chrome-nav-btn,
.chrome-win-btn,
.chrome-tab-close,
.chrome-ask-gemini {
    border: 0;
    background: transparent;
    color: #3c4043;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.chrome-tab-chevron {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border-radius: 50%;
    color: #5f6368;
}
.chrome-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    min-width: 180px;
    height: 32px;
    padding: 0 8px 0 10px;
    border-radius: 10px 10px 0 0;
    background: #f8e8f0;
    color: #3c4043;
    position: relative;
}
.chrome-tab.is-active {
    background: #fdf6f9;
    color: #202124;
    z-index: 1;
}
.chrome-tab-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}
.chrome-tab-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.2;
}
.chrome-tab-close {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #5f6368;
    flex-shrink: 0;
}
.chrome-new-tab {
    width: 28px;
    height: 28px;
    margin: 0 4px 4px;
    border-radius: 50%;
    color: #5f6368;
}
.chrome-tabs-fill { flex: 1; min-width: 12px; }
.chrome-ask-gemini {
    gap: 6px;
    height: 28px;
    margin: 0 8px 4px 0;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #3c4043;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}
.chrome-ask-gemini .gemini-star { display: block; }
.chrome-win {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-left: 4px;
}
.chrome-win-btn {
    width: 46px;
    height: 100%;
    color: #202124;
}
.chrome-win-btn.close:hover { background: #e81123; color: #fff; }
.chrome-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 40px;
    padding: 0 8px 0 6px;
    background: #fdf6f9;
}
.chrome-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #3c4043;
    flex-shrink: 0;
}
.chrome-nav-btn.is-disabled { opacity: 0.35; }
.chrome-omnibox {
    flex: 1;
    min-width: 0;
    height: 32px;
    margin: 0 6px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #f0d4e2;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.chrome-omnibox-tune,
.chrome-omnibox-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    flex-shrink: 0;
}
.chrome-omnibox-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #202124;
    font-size: 13px;
}
.chrome-sep {
    width: 1px;
    height: 20px;
    background: #dadce0;
    margin: 0 4px;
    flex-shrink: 0;
}
.chrome-profile {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 2px;
}

.app {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.topbar {
    height: 64px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 8px;
    border-bottom: 1px solid #e1e3e1;
    z-index: 30;
}

.icon-only {
    border: 0;
    background: transparent;
    color: #5f6368;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.icon-only:hover { background: #f1f3f4; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5f6368;
    font-size: 1.35rem;
    font-weight: 400;
    min-width: 140px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: #3c4043; }

.g-logo {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.g-logo svg,
.g-logo img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.g-logo::before,
.g-logo::after {
    content: none;
    display: none;
}

.search {
    flex: 1;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 0 14px;
    height: 40px;
    color: #5f6368;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.top-item {
    border: 0;
    background: transparent;
    color: #5f6368;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
    position: relative;
}
.top-item.quiet { min-width: 52px; color: #5f6368; }
.top-item:hover { background: #f1f3f4; }
.top-item b {
    font-size: 8px;
    background: #1e8e3e;
    color: #fff;
    border-radius: 3px;
    padding: 0 3px;
    font-weight: 700;
    margin-left: 2px;
}
.top-item.notify i {
    position: absolute;
    top: 0;
    right: 14px;
    background: #d93025;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    line-height: 1;
}
.top-item.advisor-btn { min-width: 72px; }

.acct {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    padding-right: 0;
    min-height: 36px;
}
.acct-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
.acct-id { color: #5f6368; }
.acct-mail { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3c4043; }
.acct .avatar {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search input {
    border: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    outline: none;
}

.search-icon {
    width: 14px;
    height: 14px;
    border: 2px solid #5f6368;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: #5f6368;
    right: -6px;
    bottom: -1px;
    transform: rotate(45deg);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.ghost {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 20px;
}

.ghost:hover { background: #eef1f6; }

.icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b3261e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.support { color: #5f6368; padding: 0 4px; }

.account {
    color: var(--muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7b1fa2;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.shell {
    display: grid;
    grid-template-columns: 88px 256px 1fr;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.rail {
    background: var(--rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    gap: 2px;
    border-right: 1px solid #e8eaed;
    overflow-x: visible;
    overflow-y: auto;
    min-width: 88px;
    box-sizing: border-box;
}

.rail-item {
    width: 76px;
    max-width: 100%;
    min-height: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: #444746;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.35;
    text-decoration: none;
    padding: 8px 0 12px;
    overflow: visible;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
}
.rail-item > svg {
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 7px 20px;
    border-radius: 999px;
    box-sizing: content-box;
    overflow: visible;
}
.rail-item--campaigns .rail-campaigns-icon {
    display: block;
    flex-shrink: 0;
    width: 56px;
    height: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    object-fit: contain;
    overflow: visible;
}
.rail-item:hover { background: transparent; text-decoration: none; }
.rail-item:hover:not(.is-active) > svg { background: #e8eaed; }
.rail-item.is-active {
    background: transparent;
    color: #0b57d0;
    font-weight: 700;
}
.rail-item.is-active > svg {
    background: #0b57d0;
    color: #fff;
}
.rail-item--campaigns.is-active .rail-campaigns-icon,
.rail-item--campaigns:hover .rail-campaigns-icon {
    background: transparent;
}
.rail-item.create {
    background: transparent;
    box-shadow: none;
    color: #444746;
    font-size: 11px;
}
.rail-item.create:hover > .plus-btn { background: #e8f0fe; }
.plus-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    color: #1a73e8;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

.sidenav {
    background: #fff;
    padding: 16px 12px;
    border-right: 1px solid #e8eaed;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidenav-kicker {
    margin: 0 12px 10px;
    font-size: 0.75rem;
    color: #5f6368;
}

.sidenav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f1f1f;
    padding: 10px 14px;
    border-radius: 24px;
    margin: 0 4px 2px;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.25;
    max-width: calc(100% - 8px);
    box-sizing: border-box;
}
.sidenav a.has-caret { color: #1f1f1f; }

.sidenav a:hover { background: #f1f3f4; }
.sidenav a.is-active {
    background: #0b57d0;
    color: #fff;
}
.sidenav a.is-active:hover {
    background: #0b57d0;
    color: #fff;
}

.workspace { min-width: 0; min-height: 0; overflow: auto; height: 100%; }

.campaign-bar {
    padding: 12px 28px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.ov-sticky {
    display: none;
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--bg);
    padding: 10px 28px 8px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid transparent;
}
.ov-sticky.is-on { display: flex; }
.ov-sticky strong { font-size: 1.35rem; font-weight: 400; }
.ov-sticky .date-tools { margin-left: auto; }

.chip {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px 10px;
    font: inherit;
    cursor: pointer;
    text-align: left;
    color: #202124;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.chip-lab {
    color: #5f6368;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}
.chip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    line-height: 1.2;
}
.chip-row svg { flex-shrink: 0; color: #5f6368; }
.chip-row u {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.chip.mini { min-height: 48px; padding: 6px 10px; }
.inline-ico { display: inline-flex; align-items: center; gap: 4px; }

.chip:hover { text-decoration: none; }

.crumb-chip { align-self: stretch; }

.chip.strong {
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), inset 0 -3px 0 #1a73e8;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    width: 100%;
    margin: 12px 0 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.dot.ok { background: #188038; }

main {
    padding: 8px 28px 40px;
}

.overview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 8px 0 16px;
}

.overview-head h1 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 400;
}

.overview-title-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.ov-camp-chip { margin-top: 4px; }

.ov-dash {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
}
.ov-card { padding: 14px 16px 12px; margin: 0; }
.ov-card .card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 500;
}
.ov-card .card-head .muted { margin-left: auto; font-weight: 400; font-size: 0.8rem; }
.ov-card .card-head .icon-only { margin-left: 4px; }
.ov-card .card-head .link-quiet { margin-left: auto; font-size: 0.85rem; font-weight: 400; }
.ov-card-sub { margin: 0 0 12px; color: #5f6368; font-size: 0.85rem; }
.ov-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 120px;
    align-content: flex-start;
}
.ov-pill {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #3c4043;
    background: #fff;
}
.ov-card-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
    font-size: 0.85rem;
}
.ov-card-foot a { color: #1a73e8; text-decoration: none; }
.ov-card-foot.tabs-foot a { color: #5f6368; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.ov-card-foot.tabs-foot a.is-active { color: #1a73e8; border-bottom-color: #1a73e8; font-weight: 500; }
.pager-mini { margin-left: auto; color: #5f6368; display: inline-flex; align-items: center; gap: 6px; }
.pager-mini .nav-arrow { width: 28px; height: 28px; padding: 0; }

.ov-kw-row {
    display: grid;
    grid-template-columns: 16px 1fr repeat(3, auto);
    gap: 12px;
    align-items: center;
    padding: 10px 0 4px;
    font-size: 0.9rem;
}
.ov-kw-name { color: #1a73e8; }
.ov-kw-m { color: #3c4043; min-width: 48px; text-align: right; }

.funnel-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 240px;
    padding: 8px 8px 0;
}
.funnel-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 6px;
    color: #5f6368;
    font-size: 0.78rem;
    min-height: 220px;
}
.funnel-col strong {
    color: #202124;
    font-size: 1rem;
    font-weight: 500;
    order: 1;
}
.funnel-col .funnel-bar { order: 2; }
.funnel-col > span { order: 3; }
.funnel-bar {
    width: 100%;
    max-width: 88px;
    background: #1a73e8;
    border-radius: 2px 2px 0 0;
    align-self: center;
    flex-shrink: 0;
}
.funnel-bar.mid { background: #8ab4f8; }
.funnel-bar.empty { height: 4px; max-height: 4px; background: transparent; }

.ov-loc-meta { margin: 0 0 4px; font-size: 0.82rem; color: #5f6368; }
.ov-loc-meta .lab { color: #3c4043; }
.ov-map {
    position: relative;
    margin-top: 10px;
    background: #e8eef2;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}
.ov-map-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.ov-report-note {
    margin: 20px 0 0;
    font-size: 0.78rem;
    color: #5f6368;
    line-height: 1.5;
    max-width: none;
    width: 100%;
    overflow: visible;
    white-space: normal;
}
.ov-report-note.quiet { margin-top: 4px; }
.ov-report-note a,
.ov-report-note a:visited {
    color: #1a73e8;
    text-decoration: none;
}
.ov-report-note a:hover { color: #174ea6; text-decoration: underline; }

@media (max-width: 1100px) {
    .ov-dash { grid-template-columns: 1fr; }
}

.date-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.date-chip,
.nav-arrow {
    border: 1px solid #c4c7c5;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-arrow { min-width: 32px; justify-content: center; }

.diag-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.target-next {
    flex-direction: column;
    align-items: flex-end !important;
}
.target-next .chev { color: #5f6368; }

.add-view { display: inline-flex; align-items: center; gap: 4px; }

.tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #d3e3fd;
    margin-bottom: 18px;
}

.tabs a {
    padding: 12px 4px;
    color: var(--muted);
    border-bottom: 3px solid transparent;
}

.tabs a.is-active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin: 0 0 12px;
}

.edit-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    color: #fff;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c4c7c5;
    border-radius: 8px;
    padding: 4px 8px 4px 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.search-mini input {
    border: 0;
    width: 100%;
    font: inherit;
    outline: none;
}

.diag-title { font-size: 1.15rem; margin: 0 0 4px; }
.diag-sub { margin: 0 0 18px; color: var(--muted); }

.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    height: 8px;
    background: #d3e3fd;
    border-radius: 8px;
}

.tl {
    text-align: left;
    font-size: 0.85rem;
    position: relative;
}

.tl .bar {
    height: 18px;
    margin-bottom: 8px;
    position: relative;
}

.tl .bar::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--blue);
    position: absolute;
    left: 8px;
    top: 0;
}

.tl strong { display: block; }
.tl span { color: var(--muted); }

.alerts {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
    gap: 12px;
}

.alert {
    border-radius: 16px;
    padding: 16px;
    min-height: 118px;
}

.alert h3 { margin: 8px 0 14px; font-size: 0.95rem; font-weight: 500; }
.alert .actions { display: flex; gap: 14px; font-size: 0.9rem; }
.alert.danger { background: var(--red-bg); }
.alert.warn { background: var(--warn-bg); }
.icon-err, .icon-warn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}
.icon-err { background: var(--red); }
.icon-warn { background: #f9ab00; color: #3c4043; }

.more { margin-top: 14px; display: inline-block; }

.panel-page h1 { font-weight: 400; margin-top: 8px; }
.panel-page p { color: var(--muted); max-width: 640px; }

form label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select.field {
    width: 100%;
    max-width: 480px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #c4c7c5;
    border-radius: 8px;
    font: inherit;
}

textarea { min-height: 120px; resize: vertical; }

button.primary,
input[type="submit"] {
    margin-top: 1rem;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 20px;
    padding: 0.65rem 1.2rem;
    font: inherit;
    cursor: pointer;
}

table.grid {
    width: 100%;
    border-collapse: collapse;
}

table.grid th, table.grid td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e8eaed;
    font-size: 0.92rem;
}

table.grid th { color: var(--muted); font-weight: 500; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
}
.badge.on { background: #e6f4ea; color: var(--green); }
.badge.off { background: #fef7e0; color: var(--warn); }

.preview { margin-top: 1rem; max-width: 100%; border-radius: 10px; }

.message { border-radius: 10px; padding: 1rem; margin: 1rem 0; max-width: 640px; }
.message.success { background: #e6f4ea; color: var(--green); }
.message.error { background: var(--red-bg); color: var(--red); }

.diag-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.diag-actions {
    color: var(--muted);
    display: flex;
    flex-shrink: 0;
}
.diag-actions .top-item {
    min-width: 0;
    padding: 2px 10px;
}

.issue {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 16px;
    min-height: 132px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.issue h3 { margin: 8px 0 16px; font-size: 0.95rem; font-weight: 500; }
.issue .actions { display: flex; gap: 12px; align-items: center; font-size: 0.9rem; }
.issue.slim { min-width: 0; }

.btn-outline {
    display: inline-block;
    border: 1px solid #c4c7c5;
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--blue);
    text-decoration: none;
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.btn-outline:hover { background: #f8f9fa; text-decoration: none; }

.tl .bar.check::before {
    content: "✓";
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-sizing: border-box;
}

.h2 { font-size: 1.15rem; font-weight: 500; margin: 22px 0 10px; }
.block { margin-top: 8px; }
.pad-0 { padding: 0; overflow: hidden; }

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid #e8eaed;
}
.metrics-row .metric-tab:first-child.is-on {
    border-top-left-radius: 16px;
}

.metric-tab {
    border: 0;
    background: transparent;
    padding: 12px 18px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    min-width: 110px;
}
.metric-tab strong { display: block; font-size: 1.6rem; font-weight: 500; margin-top: 4px; }
.metric-tab .delta {
    display: block;
    font-size: 0.78rem;
    margin-top: 2px;
    opacity: 0.9;
}
.metric-tab:not(.is-on) .delta { color: #188038; }
.metric-tab:not(.is-on) .delta.down { color: #c5221f; }
.metric-tab.is-on .delta.down { opacity: 0.95; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dadce0;
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 16px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.ad-preview { min-width: 220px; max-width: 280px; }
.ad-preview .ad-head {
    display: block;
    font-weight: 500;
    line-height: 1.3;
}
.ad-url {
    display: block;
    color: #188038;
    font-size: 0.78rem;
    margin-top: 2px;
}
.ad-strength {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}
.ad-strength::before {
    content: "";
    width: 14px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f9ab00 60%, #e8eaed 60%);
}
.ad-strength.avg::before {
    background: linear-gradient(90deg, #f9ab00 55%, #e8eaed 55%);
}

.exp-head { align-items: center; }
.exp-whats-new { margin-bottom: 18px; }
.exp-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.exp-new-card {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 14px 16px;
    overflow: hidden;
}
.exp-new-card p {
    margin: 8px 0 0;
    color: #5f6368;
    font-size: 0.9rem;
    line-height: 1.4;
}
.exp-new-card .btn-fill { float: right; margin-top: 12px; }
.exp-new-card::after { content: ""; display: block; clear: both; }
.exp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.exp-tabs { margin: 0; flex: 1; }
.exp-view-toggle { display: flex; gap: 4px; }
.exp-view-toggle .ghost.is-on {
    color: #1a73e8;
    background: #e8f0fe;
}
.exp-list-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.exp-list-tools .spacer { flex: 1; }
.exp-empty {
    margin: 0 auto 40px;
    padding: 40px 24px 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.exp-empty h2 {
    margin: 12px 0 8px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #202124;
}
.exp-empty p { margin: 0 auto 16px; max-width: 420px; }
.exp-cta {
    float: none;
    margin: 8px auto 0;
    display: inline-block;
}

.asset-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
    margin-bottom: 4px;
}
.asset-chip {
    flex: 0 0 auto;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.85rem;
    color: #3c4043;
    cursor: pointer;
    white-space: nowrap;
}
.asset-chip.is-on {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #174ea6;
    font-weight: 500;
}
.chip-tag {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #1a73e8;
    vertical-align: middle;
}
.chip-tag.beta { color: #188038; }
.asset-rec {
    margin-bottom: 16px;
}
.kw-status { white-space: nowrap; }
.kw-status .kw-warn {
    display: block;
    color: #c5221f;
    font-size: 0.75rem;
    margin-top: 2px;
    white-space: normal;
    max-width: 180px;
}
.dot.off {
    background: #9aa0a6;
}

.loc-map-card { padding: 0; margin-bottom: 16px; overflow: visible; position: relative; border: 1px solid #dadce0; border-radius: 8px; }
.loc-map {
    background: #a8d4e8;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    line-height: 0;
}
.loc-map-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
}
.loc-fab {
    position: absolute;
    left: 12px;
    bottom: 18px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.4);
}
.loc-map-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 16px 12px 64px;
    background: #e8f0fe;
    color: #3c4043;
    font-size: 0.875rem;
    line-height: 1.45;
    border-radius: 0 0 8px 8px;
}
.loc-info-ico {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    display: grid;
    place-items: center;
    line-height: 1;
}
.loc-map-note a { color: #1a73e8; text-decoration: none; font-weight: 500; }
.loc-map-note a:hover { text-decoration: underline; }
table.data tbody tr.is-selected,
table.data tbody tr.is-selected:nth-child(even),
table.data tbody tr.is-selected:hover { background: #e8f0fe; }

.sched-card { padding: 12px 16px 16px; margin-bottom: 16px; }
.sched-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.sched-heat {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: stretch;
}
.sched-y {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    font-size: 0.75rem;
    color: #5f6368;
    padding-top: 2px;
    padding-bottom: 22px;
}
.sched-y span { display: flex; align-items: center; }
.sched-grid-wrap { min-width: 0; }
.sched-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sched-row {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    height: 18px;
}
.sched-row i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: #f1f3f4;
}
.sched-row i.on { background: #1a73e8; }
.sched-x {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #5f6368;
}

.hist-chips { margin-bottom: 12px; }
.hist-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    min-width: 140px;
}
.hist-user strong { font-weight: 500; color: #202124; }
.hist-user span { color: #5f6368; font-size: 0.8rem; }
.hist-user a { font-size: 0.82rem; margin-top: 2px; }
.hist-change {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 200px;
}
.hist-change svg { flex-shrink: 0; margin-top: 2px; color: #5f6368; }
table.hist-table th { max-width: none; white-space: nowrap; }

@media (max-width: 900px) {
    .exp-new-grid { grid-template-columns: 1fr; }
}
.metric-tab.is-on.blue { background: #1a73e8; color: #fff; }
.metric-tab.is-on.red { background: #d93025; color: #fff; }
.metric-spacer { flex: 1; }
.camp-summary { margin-bottom: 16px; overflow: hidden; }
.camp-chart { position: relative; }
.dash-add.sm {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.draft-row td {
    background: #e6f4ea !important;
    color: #137333;
    font-weight: 500;
    font-size: 0.85rem;
}
table.camp-table th { max-width: none; }

.chart-wrap { padding: 8px 16px 12px; }
.line-chart { width: 100%; height: 180px; }

.opt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.opt-score { margin: 0; color: var(--muted); }
.score-bar {
    display: inline-block;
    width: 90px;
    height: 6px;
    background: #e8eaed;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
}
.score-bar i {
    display: block;
    height: 100%;
    background: var(--blue);
    border-radius: 4px;
}

.ov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 8px;
}
.ov-col { display: flex; flex-direction: column; gap: 16px; }
.ov-col .h2 { margin-top: 4px; }

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 10px;
}

.rec-kicker { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 0.9rem; }
.lift { color: var(--green); font-weight: 600; }
.rec-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; }
.big-score { font-size: 2rem; margin: 8px 0 12px; }
.big-score span { display: block; font-size: 0.95rem; font-weight: 400; color: var(--muted); }

.heat-legend, .heat-x, .hour-x {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 8px 0;
}
.heat { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; }
.heat-y { display: flex; flex-direction: column; justify-content: space-around; height: 72px; font-size: 0.8rem; }
.heat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.heat-grid i { height: 32px; border-radius: 2px; background: #e8f0fe; display: block; }
.heat-grid .c1 { background: #e8f0fe; }
.heat-grid .c2 { background: #c5d7fb; }
.heat-grid .c3 { background: #9bbcf7; }
.heat-grid .c4 { background: #6b9ef0; }
.heat-grid .c5 { background: #3c7de6; }
.heat-grid .c6 { background: #1a73e8; }

.center-label { text-align: center; color: var(--blue); font-weight: 600; font-size: 0.85rem; }
.hour-heat { display: flex; flex-direction: column; gap: 3px; }
.hour-row { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: center; font-size: 0.7rem; color: var(--muted); }
.hour-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.hour-cells i { height: 10px; display: block; background: #e8eaed; border-radius: 1px; }
.hour-cells .h1 { background: #d2e3fc; }
.hour-cells .h2 { background: #a8c7fa; }
.hour-cells .h3 { background: #7baaf7; }
.hour-cells .h4 { background: #4b8ef0; }
.hour-cells .h5 { background: #1a73e8; }

.cloud { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill {
    display: inline-block;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 0 4px 8px 0;
    font-size: 0.78rem;
}

.funnel { display: flex; align-items: flex-end; gap: 28px; height: 160px; padding: 0 20px; }
.funnel-bar { width: 72px; background: #1a73e8; border-radius: 4px 4px 0 0; }
.funnel-bar.short { background: #4285f4; }
.funnel-labels { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.funnel-labels strong { color: var(--ink); font-size: 1rem; }

.legend { font-size: 0.8rem; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; }
.swatch.blue { background: #1a73e8; }
.swatch.red { background: #d93025; }
.swatch.gold { background: #f9ab00; }
.swatch.yellow { background: #fdd663; }

.dev-row { margin: 10px 0; }
.dev-row b { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.dev-bar { display: flex; height: 14px; background: #f1f3f4; border-radius: 2px; overflow: hidden; }
.dev-bar i { display: block; height: 100%; }
.dev-bar i.blue { background: #1a73e8; }
.dev-bar i.gold { background: #f9ab00; }
.dev-bar i.yellow { background: #fdd663; }
.dev-row small { color: var(--muted); font-size: 0.75rem; }

.simulate-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #3c4043;
    cursor: pointer;
}
.simulate-check input { accent-color: #1a73e8; }

.ov-cloud-tip { position: relative; min-height: 160px; padding-top: 8px; }
.ov-pill.is-tip {
    position: relative;
    border-color: #1a73e8;
    color: #1a73e8;
    background: #e8f0fe;
    z-index: 2;
}
.search-tip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 280px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #3c4043;
    font-size: 0.85rem;
    text-align: left;
}
.search-tip-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #202124;
}
.search-tip-head svg { color: #5f6368; flex-shrink: 0; }
.search-tip-meta { color: #5f6368; line-height: 1.35; }
.search-tip-meta strong { color: #1a73e8; font-weight: 500; }
.search-tip-stats {
    display: flex;
    gap: 18px;
    color: #5f6368;
}
.search-tip-stats b { color: #202124; font-weight: 500; margin-left: 4px; }
.search-tip-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-fill.sm {
    float: none;
    margin: 0;
    width: 100%;
    text-align: center;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}
.edit-dot svg { width: 18px; height: 18px; }

.sub { margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.adgroup { margin: 0 0 8px; }
table.compact th, table.compact td { padding: 8px 6px; font-size: 0.85rem; }
td.hilite { background: #e8f0fe; }

.pager {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
}
.pager span { margin-left: auto; color: var(--muted); }

.map { border-radius: 8px; overflow: hidden; background: #eef3ea; }
.legal { font-size: 0.75rem; color: #80868b; margin: 28px 0 8px; max-width: none; }

.rec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 8px 0 16px;
}
.rec-head h1 { margin: 0; font-size: 1.7rem; font-weight: 400; }
.rec-toolbar { display: flex; }

.score-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
}
.score-num { font-size: 2rem; margin: 0 0 10px; font-weight: 500; color: #1a73e8; }
.score-num .up { color: #1e8e3e; font-size: 1rem; font-weight: 600; }
.opt-track {
    height: 8px;
    background: #e8eaed;
    border-radius: 8px;
    overflow: hidden;
}
.opt-track i {
    display: block;
    width: 91.9%;
    height: 100%;
    background: #1a73e8;
    border-radius: 8px;
}
.rec-item::after {
    content: "";
    display: table;
    clear: both;
}
.rec-item .btn-fill { float: right; }
.rec-actions .btn-fill { float: none; margin-top: 0; }
.score-right h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
.ok-line { margin: 0 0 6px; }
.check {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e8e3e;
    color: #fff;
    font-size: 11px;
    margin-right: 6px;
}

.rec-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.rf {
    border: 1px solid #c4c7c5;
    background: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    font: inherit;
    cursor: pointer;
}
.rf.is-on { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; }

.rec-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.rec-col { display: flex; flex-direction: column; gap: 16px; }
.rec-item { padding: 16px 18px 18px; }
.top-rec { background: #fff; }
.top-label {
    margin: -16px -18px 12px;
    padding: 10px 18px;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 16px 16px 0 0;
}
.rec-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    margin-bottom: 8px;
}
.rec-title-row .icon-only { margin-left: auto; }
.rec-title-row .lift { margin-left: auto; }
.rec-title-row .lift + .icon-only { margin-left: 0; }
.spark { color: #1a73e8; }
.rec-item h3 { font-size: 1.05rem; font-weight: 500; margin: 0 0 8px; }
.rec-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; }
.btn-fill {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
    float: right;
}
.btn-fill:hover { text-decoration: none; background: #1557b0; color: #fff; }
.rec-toolbar .top-item.is-on { color: #0b57d0; }
.rec-logo-preview {
    width: 72px;
    height: 72px;
    margin: 12px 0 16px;
    border-radius: 8px;
    background: #e8f0fe;
    display: grid;
    place-items: center;
}
.rec-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1a73e8;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.rec-shot .rec-item .btn-fill { float: none; display: inline-flex; margin-top: 8px; }
.rec-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.rec-actions a { color: #1a73e8; text-decoration: none; }
.rec-actions .btn-fill { color: #fff; }

.phone {
    width: 210px;
    margin: 16px auto 8px;
    border: 8px solid #e8eaed;
    border-radius: 28px;
    background: #f8f9fa;
    padding: 18px 10px 12px;
    position: relative;
}
.phone-notch {
    width: 36px;
    height: 6px;
    background: #dadce0;
    border-radius: 6px;
    margin: 0 auto 12px;
}
.ad-slot { background: #fff; border-radius: 8px; padding: 10px; }
.ad-slot strong { font-size: 0.75rem; color: #5f6368; }
.ad-box { height: 54px; background: #eef3ed; border-radius: 6px; margin: 8px 0; }
.ad-cta {
    background: #1a73e8;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.8rem;
}

.sidenav a.has-caret {
    align-items: center;
    gap: 8px;
}
.sidenav a.has-caret .nav-label {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.sidenav a.has-caret .nav-caret {
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 -6px 0 0;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
}
.sidenav a.has-caret .nav-caret svg.nav-chevron {
    display: block;
    width: 20px;
    height: 20px;
}
.sidenav a.has-caret .nav-caret:hover { background: #e8eaed; }

.nav-group { margin-bottom: 2px; }
.nav-group .subnav { display: none; }
.nav-group.is-open .subnav { display: block; }
.nav-group.is-open > .has-caret {
    background: transparent;
    color: #1f1f1f;
}
.nav-group.is-open > .has-caret .nav-caret {
    transform: rotate(180deg);
}

.sidenav a.has-caret.is-open {
    background: transparent;
    color: var(--blue);
}
.sidenav a.has-caret.is-open .nav-caret {
    transform: rotate(180deg);
}
.subnav {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    margin: 0 8px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.subnav a {
    display: block;
    padding: 10px 14px;
    border-radius: 24px;
    color: #1f1f1f;
    font-size: 0.9rem;
    margin: 0;
    max-width: none;
}
.subnav a.is-active {
    background: var(--blue);
    color: #fff;
}

.ins-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 16px;
}
.ins-head h1 { margin: 0; font-size: 1.7rem; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.ins-head h1 svg { color: #5f6368; }
.compare-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 28px 8px 12px;
    position: relative;
    text-align: left;
    line-height: 1.25;
}
.compare-chip .date-main { color: #202124; font-size: 0.9rem; }
.compare-chip .compared { color: #5f6368; font-size: 0.78rem; }
.compare-chip svg {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
}

.cost-card { padding: 16px 18px 14px; margin-bottom: 16px; }
.cost-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.cost-head h2 { margin: 0; font-size: 1rem; font-weight: 500; color: #202124; }
.cost-toggles { display: flex; gap: 8px; }
.cost-tog {
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    border-radius: 16px;
    padding: 6px 14px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.cost-tog.is-on {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #174ea6;
}
.cost-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #5f6368;
}
.cost-metrics strong { color: #202124; font-weight: 500; }
.cost-metrics .up { color: #188038; }
.cost-chart-wrap { margin: 4px 0 8px; }
.cost-chart { width: 100%; height: auto; display: block; }
.cost-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}
.explanations { margin: 0; font-size: 0.82rem; color: #5f6368; line-height: 1.4; }
.explanations .lab { color: #3c4043; font-weight: 500; }
.view-more { color: #1a73e8; text-decoration: none; font-size: 0.85rem; white-space: nowrap; }

.ins-rec-card { padding: 14px 16px 16px; margin-bottom: 16px; }
.ins-rec-card .card-head {
    margin: 0 0 12px;
    color: #202124;
    font-size: 0.95rem;
    font-weight: 500;
    justify-content: flex-start;
}
.ins-rec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ins-rec-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef7e0;
    color: #e37400;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ins-rec-copy {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.35;
}
.ins-rec-copy strong { color: #202124; }
.help-ico { color: #5f6368; display: grid; }
.lift-pill {
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
}
.view-link { color: #1a73e8; text-decoration: none; font-size: 0.9rem; }
.ins-rec-row .btn-fill { float: none; margin: 0; }

.table-card { padding: 8px 12px 12px; overflow: hidden; }
.table-tools.spread { display: flex; align-items: center; gap: 8px; padding: 8px 4px; }
.table-tools .spacer { flex: 1; }
.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
table.data th,
table.data td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8eaed;
    text-align: left;
    vertical-align: middle;
}
table.data th {
    color: #5f6368;
    font-weight: 500;
    font-size: 0.78rem;
    white-space: normal;
    max-width: 96px;
    line-height: 1.25;
}
table.data th:first-child,
table.data td:first-child {
    max-width: none;
    white-space: nowrap;
}
table.data th.num,
table.data td.num { text-align: right; }
table.data th.num { width: 11%; }
table.data th.sort::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 6px;
    vertical-align: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #5f6368;
}
table.data tbody tr:nth-child(even) { background: #f8f9fa; }
table.data tbody tr:hover { background: #f1f3f4; }
table.data tbody tr.you-row,
table.data tbody tr.you-row:nth-child(even),
table.data tbody tr.you-row:hover { background: #f1f3f4; }
.empty-state {
    text-align: center;
    padding: 48px 24px 80px;
    max-width: 520px;
    margin: 40px auto 0;
    color: #5f6368;
}
.empty-state h2 {
    margin: 20px 0 8px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #202124;
}
.empty-state p { line-height: 1.5; margin: 16px 0 0; }
.channel-empty p { margin-top: 8px; max-width: 420px; margin-left: auto; margin-right: auto; }
.empty-art { margin: 0 auto; display: block; }

.re-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 10px 8px 12px;
    font-size: 0.9rem;
    margin: 0 0 20px;
}
.re-chip .chip-x {
    border: 0;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 2px;
}
.re-gallery-title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 500;
}
.re-section {
    margin-bottom: 20px;
}
.re-section summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    color: #202124;
}
.re-section summary::-webkit-details-marker { display: none; }
.re-section summary svg {
    color: #5f6368;
    transition: transform 0.15s ease;
}
.re-section:not([open]) summary svg { transform: rotate(180deg); }
.re-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 4px 0 12px;
}
.re-card {
    display: block;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    min-height: 118px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.re-card:hover {
    text-decoration: none;
    border-color: #c4c7c5;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.re-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #202124;
}
.re-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #5f6368;
}

.dash-head {
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.dash-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #1a73e8;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}
.dash-add:hover { background: #1557b0; }
table.dash-table th { max-width: none; white-space: nowrap; }
table.dash-table th.sort::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 6px;
    vertical-align: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #5f6368;
}
.dash-pager { justify-content: flex-end; gap: 8px; }
.dash-pager .nav-arrow {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: #5f6368;
    cursor: pointer;
}
.dash-pager .nav-arrow:hover { background: #f1f3f4; }

.compared { font-size: 0.78rem; color: var(--muted); display: block; text-align: right; }
.ins-card { margin-bottom: 16px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.kpi-row { display: flex; gap: 32px; flex-wrap: wrap; margin: 8px 0 12px; }
.kpi { font-size: 1.6rem; margin: 4px 0 0; font-weight: 500; }
.kpi small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.kpi.down { color: #c5221f; }
.kpi.up { color: #188038; }
.range-opts { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.range-opts label { display: flex; gap: 6px; align-items: flex-start; }
.auc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.three-col h3 { font-size: 0.95rem; font-weight: 500; }
.hbar { font-size: 0.82rem; margin: 8px 0; }
.hbar i {
    display: block;
    height: 8px;
    background: #1a73e8;
    border-radius: 2px;
    margin: 4px 0;
}
.right-link { text-align: right; }
.info-banner {
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 0.9rem;
}
.table-tools { display: flex; gap: 16px; align-items: center; margin: 12px 0; }
.rec-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.rec-strip p { margin: 0; flex: 1; min-width: 220px; }
.rec-strip .btn-fill { margin-top: 0; float: none; }

.ww-tabs { margin: 0 0 14px; }
.ww-chart-card { padding: 8px 12px 4px; margin-bottom: 16px; }
.ww-chart-card .st-chart-tools { justify-content: flex-start; align-items: center; gap: 8px; padding: 4px 0 0; }
.ww-chart-card .spacer { flex: 1; }
.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font: inherit;
    color: #3c4043;
    cursor: pointer;
}
.metric-chip::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.metric-chip.blue::before { background: #1a73e8; }
.metric-chip.red::before { background: #d93025; }
.level-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 16px;
    padding: 6px 12px;
    font: inherit;
    color: #3c4043;
    cursor: pointer;
}
.level-pill .pill-x {
    margin-left: 4px;
    color: #5f6368;
    font-size: 1rem;
    line-height: 1;
}
.filter-badge {
    position: relative;
    color: #1a73e8;
}
.filter-badge i {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 8px;
    background: #d93025;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 14px;
    text-align: center;
}
.muted-link { color: #5f6368 !important; }
.lp-note {
    margin: -4px 0 14px;
    font-size: 0.82rem;
    color: #5f6368;
}
.lp-load {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 10px;
}
.lp-load a { font-weight: 500; white-space: nowrap; }
.lp-url { min-width: 220px; max-width: 320px; }
.lp-url > a { display: block; word-break: break-all; }
.lp-sub {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
}

.st-banner {
    background: #f1f3f4;
    color: #3c4043;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 12px;
}
.st-banner p { margin: 0; }
.st-banner-links { margin-top: 8px; display: flex; gap: 20px; }
.st-banner-links a { font-weight: 500; color: #1a73e8; text-decoration: none; }
.st-split {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
}
.st-chart-card { padding: 8px 12px 4px; }
.st-chart-tools {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 0;
}
.st-chart-tools .spacer { flex: 1; }
.st-rec { margin: 0; }
.st-rec .btn-fill { margin-top: 0; float: none; }
.st-added { color: #188038; display: inline-flex; align-items: center; gap: 2px; }
table.data.st-table { font-size: 0.8rem; }
table.data.st-table th,
table.data.st-table td { padding: 8px 8px; }
table.data.st-table th { max-width: none; white-space: nowrap; }
table.st-table th:nth-child(2),
table.st-table td:nth-child(2) { white-space: normal; min-width: 180px; max-width: 240px; }
table.st-table th:nth-child(3),
table.st-table td:nth-child(3),
table.st-table th:nth-child(4),
table.st-table td:nth-child(4),
table.st-table th:nth-child(5),
table.st-table td:nth-child(5) { white-space: nowrap; }
table.st-table .chk { width: 32px; text-align: center; }
table.st-table .total-row td { font-weight: 500; background: #fff; }
.ex { color: #c5221f; display: inline-flex; align-items: center; gap: 2px; }
.st-pager { justify-content: flex-end; }
.st-pager label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.st-pager select {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

@media (max-width: 1100px) {
    .shell { grid-template-columns: 88px 1fr; }
    .sidenav { display: none; }
    .alerts, .timeline, .ov-grid, .cloud, .rec-cols, .score-card, .auc-grid, .three-col, .st-split { grid-template-columns: 1fr; }
    .top-actions .ghost, .support { display: none; }
}

/* Page navigation loading overlay (keeps chrome-frame visible) */
.page-nav-overlay {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(1px);
    font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
    color: #5f6368;
    cursor: wait;
}
.page-nav-overlay[hidden] {
    display: none !important;
}
.page-nav-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8eaed;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: page-nav-spin 0.8s linear infinite;
}
.page-nav-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: rgba(26, 115, 232, 0.12);
}
.page-nav-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 40%;
    background: #1a73e8;
    animation: page-nav-indeterminate 1.2s ease-in-out infinite;
}
.page-nav-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
@keyframes page-nav-spin {
    to { transform: rotate(360deg); }
}
@keyframes page-nav-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Date range picker */
.date-tools { position: relative; }
.date-chip.is-open {
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}
.date-picker {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 80;
    width: 320px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(60, 64, 67, 0.2);
    color: #202124;
    font-size: 13px;
}
.date-picker[hidden] { display: none !important; }
.date-picker-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px;
}
.date-picker-presets {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}
.date-preset {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
    color: #202124;
}
.date-preset:hover,
.date-preset.is-on {
    background: #e8f0fe;
    color: #1967d2;
}
.date-picker-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.date-picker-custom label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #5f6368;
    font-size: 12px;
}
.date-picker-custom input {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    color: #202124;
}
.date-picker-custom input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}
.date-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.date-picker-actions .ghost,
.date-picker-actions .primary {
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.date-picker-actions .ghost {
    border: 0;
    background: transparent;
    color: #1a73e8;
}
.date-picker-actions .primary {
    border: 0;
    background: #1a73e8;
    color: #fff;
}
.date-picker-actions .primary:hover { background: #1765cc; }
.date-data-flash {
    animation: date-data-flash 0.45s ease;
}
@keyframes date-data-flash {
    0% { opacity: 0.35; }
    100% { opacity: 1; }
}

/* Insights page */
.ins-card { padding: 16px 18px; }
.ins-diag-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.ins-diag-head .diag-title { font-size: 1.15rem; margin: 0 0 4px; font-weight: 500; color: #202124; }
.ins-diag-head .diag-sub { margin: 0; color: #5f6368; font-size: 0.9rem; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ins-chips .rf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    border-radius: 16px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.ins-chips .rf.is-on {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #174ea6;
}
.chip-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.chip-ico.err { background: #d93025; }
.chip-ico.warn { background: #f9ab00; color: #3c4043; }
.chip-ico.ok { background: #188038; }
.ins-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.ins-card-top .card-head.tight {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}
.ins-sec-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}
.ins-sec-title svg { color: #5f6368; flex-shrink: 0; }
.range-opts {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #5f6368;
    font-weight: 400;
}
.range-opts label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.range-opts small { color: #80868b; }
.ins-feedback {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.fb-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    padding: 0;
}
.fb-btn:hover { background: #f1f3f4; }
.kpi-row .kpi { font-size: 1.45rem; margin: 4px 0 0; font-weight: 500; color: #202124; }
.kpi-row .kpi small { display: block; font-size: 0.8rem; color: #5f6368; font-weight: 400; margin-top: 2px; }
.kpi-row .kpi.down { color: #c5221f; }
.kpi-row .swatch { margin-right: 2px; vertical-align: middle; }
.ins-chart,
.ins-card .line-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.ins-h2 { margin: 4px 0 8px; font-size: 1.05rem; font-weight: 500; color: #202124; }
.ins-h3 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 500; color: #202124; }
.ins-lead { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.45; }
.right-link { text-align: right; margin: 0 0 12px; }
.right-link a { color: #1a73e8; text-decoration: none; font-size: 0.9rem; }
.ins-mini-table { width: 100%; font-size: 0.85rem; }
.ins-mini-table .swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.delta { font-size: 0.78rem; font-weight: 400; }
.delta.up { color: #188038; }
.delta.down { color: #c5221f; }
.delta.muted { color: #80868b; }
.tiny { font-size: 0.75rem; margin: 0 0 8px; }
.empty-note { font-size: 0.88rem; line-height: 1.45; margin-top: 12px; }
.three-col { margin-top: 20px; }
.hbar span:first-child {
    display: inline-block;
    min-width: 120px;
    color: #3c4043;
}
.table-tools.spread .spacer { flex: 1; }
.pager {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #5f6368;
}
.rec-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ins-rec-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef7e0;
    color: #e37400;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.rec-strip p {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.35;
}
.rec-strip p strong { color: #202124; }
.rec-strip .help2,
.rec-strip svg { vertical-align: middle; color: #5f6368; }
.cost-sub { margin: 0 0 10px; font-size: 0.9rem; }
.cost-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cost-head h2 svg { color: #5f6368; }
.cost-chart-wrap { margin: 4px 0 8px; }
.cost-chart { width: 100%; height: auto; display: block; }

@media (max-width: 960px) {
    .ins-card-top { flex-direction: column; }
    .ins-feedback { flex-direction: row; }
    .auc-grid,
    .three-col { grid-template-columns: 1fr; }
}

/* Insights page */
.ins-card { padding: 16px 18px; }
.ins-diag-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.ins-diag-head .diag-title { font-size: 1.15rem; margin: 0 0 4px; font-weight: 500; color: #202124; }
.ins-diag-head .diag-sub { margin: 0; color: #5f6368; font-size: 0.9rem; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ins-chips .rf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    border-radius: 16px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.ins-chips .rf.is-on {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #174ea6;
}
.chip-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.chip-ico.err { background: #d93025; }
.chip-ico.warn { background: #f9ab00; color: #3c4043; }
.chip-ico.ok { background: #188038; }
.ins-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.ins-card-top .card-head.tight {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}
.ins-sec-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}
.ins-sec-title svg { color: #5f6368; flex-shrink: 0; }
.range-opts {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #5f6368;
    font-weight: 400;
}
.range-opts label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.range-opts small { color: #80868b; }
.ins-feedback {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.fb-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    padding: 0;
}
.fb-btn:hover { background: #f1f3f4; }
.kpi-row .kpi { font-size: 1.45rem; margin: 4px 0 0; font-weight: 500; color: #202124; }
.kpi-row .kpi small { display: block; font-size: 0.8rem; color: #5f6368; font-weight: 400; margin-top: 2px; }
.kpi-row .kpi.down { color: #c5221f; }
.ins-chart,
.ins-card .line-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.ins-h2 { margin: 4px 0 8px; font-size: 1.05rem; font-weight: 500; color: #202124; }
.ins-h3 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 500; color: #202124; }
.ins-lead { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.45; }
.right-link { text-align: right; margin: 0 0 12px; }
.right-link a { color: #1a73e8; text-decoration: none; font-size: 0.9rem; }
.ins-mini-table .swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.delta { font-size: 0.78rem; font-weight: 400; }
.delta.up { color: #188038; }
.delta.down { color: #c5221f; }
.delta.muted { color: #80868b; }
.tiny { font-size: 0.75rem; margin: 0 0 8px; }
.empty-note { font-size: 0.88rem; line-height: 1.45; margin-top: 12px; }
.three-col { margin-top: 20px; }
.hbar span:first-child {
    display: inline-block;
    min-width: 110px;
    color: #3c4043;
}
.table-tools.spread { display: flex; align-items: center; gap: 8px; }
.table-tools .spacer { flex: 1; }
.pager {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #5f6368;
}
.rec-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ins-rec-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef7e0;
    color: #e37400;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.rec-strip p {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.35;
}
.rec-strip p strong { color: #202124; }
.rec-strip svg { vertical-align: middle; color: #5f6368; }
.cost-sub { margin: 0 0 10px; font-size: 0.9rem; }
.cost-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.cost-head h2 svg { color: #5f6368; }
.cost-chart-wrap { margin: 4px 0 8px; }
.cost-chart { width: 100%; height: auto; display: block; }

@media (max-width: 960px) {
    .ins-card-top { flex-direction: column; }
    .ins-feedback { flex-direction: row; }
    .auc-grid,
    .three-col { grid-template-columns: 1fr; }
}

.card-head.tight { margin-bottom: 0; color: inherit; }
.ins-card .alerts { margin-top: 4px; }
.ins-card .more { margin-top: 12px; }
.cost-card .cost-head { width: 100%; }
.ins-card-top .cost-head { flex: 1; }
.rec-strip .btn-fill { float: none; margin: 0; }
.ins-mini-table td, .ins-mini-table th { padding: 8px 6px; }
.ins-perf-note {
    margin: 12px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5f6368;
}
.row-expand {
    display: inline-flex;
    vertical-align: middle;
    color: #5f6368;
    margin-right: 4px;
}
.row-expand svg {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
}
