:root {
  --ads-blue: #1a73e8;
  --ads-blue-hover: #1765cc;
  --ads-blue-light: #e8f0fe;
  --ads-blue-metric: #4285f4;
  --ads-red: #d93025;
  --ads-red-metric: #ea4335;
  --ads-yellow: #f9ab00;
  --ads-yellow-metric: #fbbc04;
  --ads-green: #1e8e3e;
  --ads-green-metric: #34a853;
  --ads-bg: #f1f3f4;
  --ads-surface: #ffffff;
  --ads-border: #dadce0;
  --ads-text: #3c4043;
  --ads-text-heading: #202124;
  --ads-text-secondary: #5f6368;
  --ads-link: #1a0dab;
  --ads-ad-headline: #1a0dab;
  --sidebar-rail-width: 72px;
  --sidebar-panel-width: 228px;
  --sidebar-width: calc(var(--sidebar-rail-width) + var(--sidebar-panel-width));
  --sidebar-collapsed: var(--sidebar-rail-width);
  --topbar-height: 56px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Google Sans", Arial, sans-serif;
  color: var(--ads-text-heading);
  background: var(--ads-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* App shell */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-page-footer {
  margin-top: auto;
  padding: 28px 0 8px;
}

.app-page-footer-line {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #5f6368;
}

.app-page-footer-line:last-child {
  margin-bottom: 0;
}

.app-page-footer-link {
  color: #1a73e8;
  text-decoration: none;
}

.app-page-footer-link:hover {
  text-decoration: underline;
}

.app-page-footer-copyright {
  margin-top: 10px;
}

/* Topbar */
.topbar {
  position: relative;
  height: var(--topbar-height);
  /*background: var(--ads-surface);*/
  /*border-bottom: 1px solid var(--ads-border);*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
  overflow: visible;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.topbar-logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.topbar-logo-text {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.topbar-logo-google {
  color: var(--ads-text-secondary);
  font-weight: 400;
}

.topbar-logo-ads {
  color: var(--ads-text-secondary);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px 2px;
  border: none;
  background: transparent;
  border-radius: 9999px;
  color: var(--ads-text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.topbar-btn:hover {
  background: #f1f3f4;
}

.topbar-btn-active {
  background: #e8f0fe;
  color: #1a73e8;
}

.topbar-btn-label {
  display: block;
  font-size: 11px;
}

.topbar-btn-notifications {
  position: relative;
}

.topbar-notifications-wrap {
  position: relative;
}

.topbar-profile-wrap {
  position: relative;
}

.topbar-notification-dot {
  position: absolute;
  top: 6px;
  left: 24px;
  width: 8px;
  height: 8px;
  background: var(--ads-red);
  border-radius: 50%;
  border: 1px solid #fff;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 400px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--topbar-height) - 24px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.18);
}

.notifications-dropdown[hidden] {
  display: none !important;
}

.notifications-dropdown-header {
  padding: 16px 20px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  border-bottom: 1px solid #e8eaed;
}

.notifications-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
}

.notifications-item:last-child {
  border-bottom: none;
}

.notifications-icon {
  flex-shrink: 0;
  font-size: 22px;
  margin-top: 2px;
}

.notifications-icon-info {
  color: #1a73e8;
}

.notifications-icon-tip {
  color: #f9ab00;
}

.notifications-icon-alert {
  color: #d93025;
}

.notifications-content {
  flex: 1;
  min-width: 0;
}

.notifications-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #202124;
}

.notifications-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #3c4043;
}

.notifications-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.notifications-action-btn:hover {
  background: #1765cc;
}

.notifications-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notifications-text-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
}

.notifications-text-link:hover {
  text-decoration: underline;
}

.topbar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding: 4px 0 4px 12px;
  border: none;
  border-left: 1px solid var(--ads-border);
  background: transparent;
  cursor: pointer;
  border-radius: 24px;
  font-family: inherit;
  text-align: right;
}

.topbar-account:hover,
.topbar-account.topbar-account-active {
  background: #f1f3f4;
}

.topbar-account-info {
  display: none;
  font-size: 12px;
  line-height: 1.3;
}

.topbar-account-id {
  display: block;
  color: var(--ads-text-secondary);
}

.topbar-account-email {
  display: block;
  color: var(--ads-text-heading);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.profile-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.18);
  overflow: hidden;
}

.profile-dropdown[hidden] {
  display: none !important;
}

.profile-dropdown-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 20px;
  text-align: center;
  border-bottom: 1px solid #e8eaed;
}

.profile-dropdown-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.profile-dropdown-name {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  line-height: 1.3;
  margin-bottom: 4px;
}

.profile-dropdown-email {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.3;
  margin-bottom: 16px;
}

.profile-dropdown-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 24px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.profile-dropdown-manage-btn:hover {
  background: #f6fafe;
  border-color: #d2e3fc;
}

.profile-dropdown-accounts {
  padding: 8px 0;
  border-bottom: 1px solid #e8eaed;
}

.profile-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 20px 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.profile-account-item:hover {
  background: #f8f9fa;
}

.profile-account-item-active {
  background: #e8f0fe;
  border-left: 4px solid #1a73e8;
  padding-left: 12px;
}

.profile-account-item-active:hover {
  background: #e8f0fe;
}

.profile-account-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-account-label {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  line-height: 1.3;
}

.profile-account-id {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.3;
}

.profile-account-status {
  flex-shrink: 0;
  font-size: 13px;
  color: #5f6368;
  white-space: nowrap;
}

.profile-account-item-add {
  justify-content: flex-start;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.profile-account-add-icon {
  font-size: 22px;
  color: #5f6368;
  flex-shrink: 0;
}

.profile-account-add-label {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.35;
}

.profile-dropdown-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
}

.profile-dropdown-action-btn {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.profile-dropdown-action-btn:hover {
  background: #f6fafe;
  border-color: #d2e3fc;
}

.profile-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px 16px;
}

.profile-dropdown-footer-link {
  font-size: 12px;
  color: #5f6368;
  text-decoration: none;
}

.profile-dropdown-footer-link:hover {
  color: #202124;
  text-decoration: underline;
}

.profile-dropdown-footer-sep {
  font-size: 12px;
  color: #5f6368;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #f1f3f4;
  border-right: 1px solid var(--ads-border);
  flex-shrink: 0;
  transition: width 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-inner {
  display: flex;
  height: 100%;
  min-height: 0;
}

.sidebar-rail {
  width: var(--sidebar-rail-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f1f3f4;
  border-right: 1px solid #e8eaed;
  padding: 12px 0 16px;
}

.sidebar-rail-create {
  margin-bottom: 12px;
  padding: 0 8px;
}

.sidebar-rail-create-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  padding: 10px 4px 8px;
  border: none;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  cursor: pointer;
  font-family: inherit;
}

.sidebar-rail-create-btn:hover {
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.22);
}

.sidebar-rail-create-label {
  font-size: 11px;
  font-weight: 500;
  color: #3c4043;
  line-height: 1.1;
  text-align: center;
}

.sidebar-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  flex: 1;
}

.sidebar-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 6px 4px;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-rail-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 14px;
  color: #5f6368;
}

.sidebar-rail-item:hover .sidebar-rail-icon-wrap {
  background: #e8eaed;
}

.sidebar-rail-label {
  font-size: 10px;
  line-height: 1.15;
  color: #5f6368;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-rail-item-active .sidebar-rail-icon-wrap {
  background: #1a73e8;
  color: #fff;
}

.sidebar-rail-item-active .sidebar-rail-label {
  color: #1a73e8;
  font-weight: 500;
}

.sidebar-panel {
  width: var(--sidebar-panel-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  min-height: 0;
  transition: opacity 0.15s ease, width 0.2s ease;
}

.sidebar-panel-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 12px;
}

.sidebar-panel-link {
  display: block;
  padding: 8px 14px;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #3c4043;
  text-decoration: none;
  border-radius: 20px;
}

.sidebar-panel-link:hover {
  background: #eef0f2;
}

.sidebar-panel-link-active {
  background: #fff;
  color: #1a73e8;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.sidebar-panel-group {
  margin-bottom: 2px;
}

.sidebar-panel-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.35;
  color: #3c4043;
  text-align: left;
  cursor: pointer;
  border-radius: 20px;
  font-family: inherit;
}

.sidebar-panel-group-toggle:hover {
  background: #eef0f2;
}

.sidebar-panel-group-label {
  flex: 1;
  min-width: 0;
}

.sidebar-panel-chevron {
  font-size: 18px !important;
  color: #5f6368;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sidebar-panel-group-active {
  background: #fff;
  color: #1a73e8;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.sidebar-panel-group-active .sidebar-panel-chevron {
  color: #1a73e8;
}

.sidebar-panel-group-open .sidebar-panel-chevron {
  transform: rotate(180deg);
}

.sidebar-panel-group-children {
  display: none;
  padding: 2px 0 6px 12px;
}

.sidebar-panel-group-open .sidebar-panel-group-children {
  display: block;
}

.sidebar-panel-child {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: #3c4043;
  text-decoration: none;
  border-radius: 16px;
}

.sidebar-panel-child:hover {
  background: #eef0f2;
}

.sidebar-panel-child-active {
  color: #1a73e8;
  font-weight: 500;
}

.sidebar-collapse-btn {
  margin: 8px 10px 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  border-radius: 50%;
  font-family: inherit;
}

.sidebar-collapse-btn:hover {
  background: #e8eaed;
}

.sidebar-collapse-icon {
  font-size: 20px !important;
}

.sidebar.sidebar-collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar.sidebar-collapsed .sidebar-panel {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar.sidebar-collapsed .sidebar-rail-label,
.sidebar.sidebar-collapsed .sidebar-rail-create-label {
  display: none;
}

.sidebar.sidebar-collapsed .sidebar-rail-create-btn {
  width: 44px;
  padding: 10px 0;
  border-radius: 50%;
}

.sidebar.sidebar-collapsed .sidebar-collapse-icon {
  transform: rotate(180deg);
}

/* Cards & layout */
.ads-card {
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  overflow: hidden;
}

.ads-card-padded {
  padding: 16px;
}

.ads-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e8eaed;
}

.ads-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.ads-card-body {
  padding: 16px;
}

.ads-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ads-blue);
  color: #fff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.ads-btn-primary:hover {
  background: var(--ads-blue-hover);
}

.ads-btn-primary .material-symbols-outlined {
  font-size: 18px;
  color: #fff;
}

.ads-btn-full {
  width: 100%;
  justify-content: center;
  padding: 10px 24px;
}

.ads-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--ads-text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.ads-filter-pill:hover {
  background: #f8f9fa;
}

.ads-filter-pill .material-symbols-outlined {
  font-size: 18px;
}

/* Page header */
.page-header {
  margin-bottom: 20px;
}

.page-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--ads-text-heading);
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-header-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Overview campaign context bar */
.overview-context-bar {
  margin: -8px 0 20px;
}

.overview-filter-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.overview-filter-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 200px;
  min-height: 56px;
  padding: 8px 36px 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.overview-filter-box:hover {
  border-color: #bdc1c6;
}

.overview-filter-box-active {
  border-bottom: 3px solid #1a73e8;
  padding-bottom: 8px;
}

.overview-filter-label {
  font-size: 11px;
  color: var(--ads-text-secondary);
  line-height: 1.2;
}

.overview-filter-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ads-text-heading);
  line-height: 1.2;
}

.overview-filter-link {
  color: #1a73e8;
  text-decoration: underline;
}

.overview-filter-placeholder {
  color: var(--ads-text-secondary);
}

.overview-filter-icon {
  font-size: 18px;
  color: var(--ads-text-secondary);
}

.overview-filter-arrow {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--ads-text-secondary);
}

.overview-campaign-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
  font-size: 13px;
  color: var(--ads-text-heading);
}

.overview-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.overview-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
}

.overview-meta-budget {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.overview-budget-item {
  position: relative;
}

.overview-budget-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.overview-budget-trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.overview-budget-edit-icon {
  font-size: 16px;
  color: #5f6368;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.overview-budget-wrap:hover .overview-budget-edit-icon,
.overview-budget-wrap:focus-within .overview-budget-edit-icon,
.overview-budget-wrap.overview-budget-open .overview-budget-edit-icon {
  opacity: 1;
}

.overview-budget-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 280px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px rgba(60, 64, 67, 0.15);
  font-size: 12px;
  line-height: 1.5;
  color: #3c4043;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.overview-budget-wrap:hover .overview-budget-tooltip:not(.overview-budget-tooltip-hidden) {
  opacity: 1;
  visibility: visible;
}

.overview-budget-tooltip.overview-budget-tooltip-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

.overview-budget-tooltip-divider {
  height: 1px;
  margin: 10px 0 8px;
  background: #e8eaed;
}

.overview-budget-tooltip-link,
.overview-budget-popover-link {
  color: #1a73e8;
  font-size: 12px;
  text-decoration: none;
}

.overview-budget-tooltip-link:hover,
.overview-budget-popover-link:hover {
  text-decoration: underline;
}

.overview-budget-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  z-index: 40;
  width: 300px;
  padding: 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px rgba(60, 64, 67, 0.15);
}

.overview-budget-popover-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

.overview-budget-input-wrap {
  display: block;
}

.overview-budget-input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #1a73e8;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  color: #202124;
  box-sizing: border-box;
}

.overview-budget-input:focus {
  outline: none;
}

.overview-budget-input-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: #5f6368;
}

.overview-budget-info-icon {
  font-size: 14px;
  color: #5f6368;
}

.overview-budget-popover-note {
  margin: 12px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #3c4043;
}

.overview-budget-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.overview-budget-cancel,
.overview-budget-save {
  padding: 6px 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  border-radius: 4px;
}

.overview-budget-cancel:hover,
.overview-budget-save:hover {
  background: #f6f9fe;
}

.overview-budget-save:disabled {
  color: #9aa0a6;
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overview-meta-disabled {
  color: #9aa0a6;
}

.overview-meta-disabled-icon {
  font-size: 16px;
}

.overview-meta-settings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a73e8;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.overview-meta-settings .material-symbols-outlined {
  font-size: 18px;
}

.overview-meta-settings:hover {
  text-decoration: underline;
}

.icon-btn {
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  color: var(--ads-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #fff;
  border-color: var(--ads-border);
}

/* Date picker */
.date-picker-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: -8px;
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-picker-last30 {
  font-size: 14px;
  color: var(--ads-blue);
  text-decoration: none;
}

.date-picker-last30:hover {
  text-decoration: underline;
}

.date-picker-form {
  margin: 0;
}

.date-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--ads-border);
  border-radius: 4px;
  background: var(--ads-surface);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.date-picker-shift {
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.date-picker-shift:hover {
  background: #f1f3f4;
}

.date-picker-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ads-text-heading);
  cursor: pointer;
  min-width: 200px;
  font-family: inherit;
}

.date-picker-trigger:hover {
  background: #f1f3f4;
}

.date-picker-preset-label {
  color: var(--ads-text-secondary);
}

.date-picker-sep {
  color: var(--ads-border);
}

.date-picker-arrow {
  color: var(--ads-text-secondary);
  margin-left: auto;
}

.date-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  width: min(720px, calc(100vw - 2rem));
  max-height: 520px;
  overflow: hidden;
}

.date-picker-dropdown[hidden] {
  display: none !important;
}

.date-picker-presets {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--ads-border);
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.date-picker-presets-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.date-picker-preset {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ads-text);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-family: inherit;
}

.date-picker-preset:hover {
  background: #e8eaed;
}

.date-picker-preset-active {
  background: var(--ads-blue-light);
  color: var(--ads-blue);
  font-weight: 500;
}

.date-picker-preset-indicator {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--ads-blue);
  border-radius: 0 2px 2px 0;
}

.date-picker-preset-chevron {
  font-size: 18px !important;
  color: var(--ads-text-secondary);
}

.date-picker-custom-days {
  border-top: 1px solid var(--ads-border);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-picker-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ads-text-secondary);
  line-height: 1.3;
}

.date-picker-days-input {
  width: 48px;
  border: 1px solid var(--ads-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  text-align: center;
  font-family: inherit;
}

.date-picker-compare {
  border-top: 1px solid var(--ads-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ads-text);
}

.date-picker-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  border: none;
  background: var(--ads-border);
  cursor: pointer;
  padding: 0;
}

.date-picker-toggle[aria-checked="true"] {
  background: var(--ads-blue);
}

.date-picker-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.date-picker-toggle[aria-checked="true"] .date-picker-toggle-knob {
  transform: translateX(16px);
}

.date-picker-calendar-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ads-surface);
}

.date-picker-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--ads-border);
}

.date-picker-field {
  flex: 1;
  min-width: 0;
}

.date-picker-field-label {
  display: block;
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 4px;
}

.date-picker-text-input {
  width: 100%;
  border: 1px solid var(--ads-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ads-text-heading);
  font-family: inherit;
}

.date-picker-text-input:focus {
  outline: none;
  border-color: var(--ads-blue);
  box-shadow: 0 0 0 1px var(--ads-blue);
}

.date-picker-dash {
  color: var(--ads-text-secondary);
  padding-bottom: 8px;
}

.date-picker-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-bottom: 1px solid #e8eaed;
}

.date-picker-month-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text);
  cursor: pointer;
  font-family: inherit;
}

.date-picker-month-arrows {
  display: flex;
  gap: 4px;
}

.date-picker-nav-btn {
  padding: 4px;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--ads-text-secondary);
  cursor: pointer;
  display: flex;
}

.date-picker-nav-btn:hover {
  background: #f1f3f4;
}

.date-picker-calendar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.date-picker-month {
  margin-bottom: 24px;
}

.date-picker-month-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}

.date-picker-weekday {
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-secondary);
  padding-bottom: 4px;
}

.date-picker-day {
  position: relative;
  height: 36px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.date-picker-day-empty {
  pointer-events: none;
}

.date-picker-day-num {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ads-text);
  margin: 0 auto;
}

.date-picker-day:hover:not(:disabled) .date-picker-day-num {
  background: #f1f3f4;
}

.date-picker-day-in-range {
  background: var(--ads-blue-light);
}

.date-picker-day-start.date-picker-day-in-range {
  border-radius: 9999px 0 0 9999px;
}

.date-picker-day-end.date-picker-day-in-range {
  border-radius: 0 9999px 9999px 0;
}

.date-picker-day-single {
  border-radius: 9999px !important;
}

.date-picker-day-start .date-picker-day-num,
.date-picker-day-end .date-picker-day-num {
  background: var(--ads-blue);
  color: #fff;
  font-weight: 500;
}

.date-picker-day-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-picker-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ads-border);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.date-picker-cancel,
.date-picker-apply {
  font-size: 14px;
  color: var(--ads-blue);
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.date-picker-cancel:hover,
.date-picker-apply:hover {
  background: #f6fafe;
}

/* Chart cursor tooltip */
.chart-cursor-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  min-width: 196px;
  max-width: 260px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.2);
  pointer-events: none;
}

.chart-cursor-tooltip[hidden] {
  display: none !important;
}

.chart-cursor-tooltip-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ads-text-heading);
  margin-bottom: 8px;
}

.chart-cursor-tooltip-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 6px;
}

.chart-cursor-tooltip-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--ads-text-heading);
  line-height: 1.1;
  margin-bottom: 8px;
}

.chart-cursor-tooltip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  flex-shrink: 0;
}

.chart-cursor-tooltip-note {
  font-size: 11px;
  color: var(--ads-text-secondary);
  line-height: 1.35;
}

.chart-cursor-tooltip-note[hidden] {
  display: none !important;
}

.chart-cursor-tooltip--multi {
  min-width: 220px;
  padding: 10px 12px;
}

.chart-cursor-tooltip--multi .chart-cursor-tooltip-title {
  margin-bottom: 6px;
}

#chart-cursor-tooltip-multi[hidden],
#chart-cursor-tooltip-simple[hidden] {
  display: none !important;
}

.chart-cursor-tooltip-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-cursor-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  font-size: 12px;
  line-height: 1.3;
}

.chart-cursor-tooltip-line {
  width: 14px;
  height: 3px;
  border-radius: 1px;
  flex-shrink: 0;
}

.chart-cursor-tooltip-row-label {
  flex: 1;
  color: #3c4043;
}

.chart-cursor-tooltip-row-value {
  color: #202124;
  font-weight: 500;
  white-space: nowrap;
}

.chart-detail-target {
  cursor: default;
}

/* Widget info icon */
.widget-info-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.widget-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  border-radius: 50%;
}

.widget-info-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.widget-info-btn .material-symbols-outlined {
  font-size: 16px;
}

.widget-info-popover {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ads-text-secondary);
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.2);
  white-space: normal;
}

.widget-info-wrap:hover .widget-info-popover,
.widget-info-wrap:focus-within .widget-info-popover {
  display: block;
}

.ads-card-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Performance chart */
.performance-summary-section {
  margin-bottom: 20px;
}

.performance-summary-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ads-text-heading);
  line-height: 1.3;
}

.performance-chart {
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.performance-metrics-bar {
  display: flex;
  align-items: stretch;
  height: 76px;
  border-bottom: 1px solid var(--ads-border);
}

.performance-metrics {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.performance-metric {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ads-border);
}

.performance-metric-inactive {
  background: #fff;
}

.performance-metric-text-dark {
  color: var(--ads-text-heading) !important;
}

.performance-metric-text-dark .material-symbols-outlined {
  color: var(--ads-text-heading);
}

.performance-metric-label {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.95;
  font-family: inherit;
}

.performance-metric-label .material-symbols-outlined {
  font-size: 16px;
  margin-left: -4px;
  margin-right: -2px;
}

.performance-metric-dark {
  color: var(--ads-text-heading) !important;
}

.performance-metric-value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  padding-bottom: 4px;
}

.performance-actions {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--ads-border);
  background: var(--ads-surface);
  flex-shrink: 0;
  width: 148px;
}

.performance-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}

.performance-action-btn .material-symbols-outlined {
  font-size: 22px;
}

.performance-action-btn:hover,
.performance-action-more:hover {
  background: #f8f9fa;
}

.performance-action-more {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  cursor: pointer;
}

.performance-action-more .material-symbols-outlined {
  font-size: 22px;
}

.performance-chart-canvas-wrap {
  position: relative;
  height: 260px;
  padding: 0 8px 4px;
}

.performance-chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Overview grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.widget-subtitle {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 12px;
}

.widget-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.widget-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ads-border);
}

.widget-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f4;
}

.widget-table tr:last-child td {
  border-bottom: none;
}

.widget-table-sm th,
.widget-table-sm td {
  font-size: 12px;
}

.text-right {
  text-align: right;
}

.link-cell {
  color: var(--ads-blue);
  cursor: pointer;
}

.link-cell:hover {
  text-decoration: underline;
}

/* Change bars */
.change-campaign {
  font-size: 14px;
  color: var(--ads-text-heading);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.change-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-bar-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  width: 64px;
  flex-shrink: 0;
}

.change-bar-track {
  flex: 1;
  height: 16px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.change-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.change-bar-prev {
  background: #9aa0a6;
}

.change-bar-curr {
  background: var(--ads-blue-metric);
}

.change-bar-value {
  font-size: 12px;
  color: var(--ads-text-secondary);
  width: 64px;
  text-align: right;
  flex-shrink: 0;
}

.change-bar-value-strong {
  color: var(--ads-text-heading);
  font-weight: 500;
}

.change-percent {
  font-size: 12px;
  margin-top: 4px;
}

.change-percent-up {
  color: var(--ads-red-metric);
}

.change-percent-down {
  color: var(--ads-green-metric);
}

/* Devices card */
.devices-card {
  overflow: hidden;
}

.devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ads-border);
}

.devices-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.devices-header-icon {
  font-size: 22px;
  color: var(--ads-text-secondary);
}

.devices-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.devices-menu-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.devices-menu-btn:hover {
  background: #f1f3f4;
}

.devices-body {
  padding: 12px 16px 16px;
}

.devices-subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
  line-height: 1.3;
}

.devices-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.devices-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ads-text-heading);
  line-height: 1.2;
}

.devices-legend-icon {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.devices-chart {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.devices-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.devices-row-chart {
  flex: 1;
  min-width: 0;
}

.devices-stacked-bar {
  display: flex;
  height: 22px;
  width: 100%;
  overflow: hidden;
  border-radius: 11px;
}

.devices-bar-segment {
  height: 100%;
  min-width: 0;
}

.devices-bar-segment.chart-detail-target {
  cursor: pointer;
}

.devices-bar-segment:first-child {
  border-top-left-radius: 11px;
  border-bottom-left-radius: 11px;
}

.devices-bar-segment:last-child {
  border-top-right-radius: 11px;
  border-bottom-right-radius: 11px;
}

.devices-percentages {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 22px;
  margin-top: 12px;
}

.devices-percentage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-heading);
  line-height: 1.2;
  white-space: nowrap;
}

.devices-bar-segment.chart-detail-target:hover {
  filter: brightness(1.08);
}

.devices-percentage-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.devices-metric-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 108px;
  height: 22px;
  padding: 0;
  margin-top: 0;
  border: none;
  background: transparent;
  color: var(--ads-text-heading);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-align: right;
  justify-content: flex-end;
}

.devices-metric-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--ads-text-secondary);
  margin-left: -2px;
}

.devices-metric-btn:hover {
  background: #f1f3f4;
  border-radius: 4px;
}

.devices-footer-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ads-blue);
  text-decoration: none;
}

.devices-footer-link:hover {
  text-decoration: underline;
}

/* Locations widget */
.locations-card,
.top-ads-card,
.keywords-card {
  overflow: hidden;
}

.locations-header,
.top-ads-header,
.keywords-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ads-border);
}

.locations-header-left,
.top-ads-header-left,
.keywords-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.locations-header-icon,
.top-ads-header-icon,
.keywords-header-icon {
  font-size: 22px;
  color: var(--ads-text-secondary);
}

.locations-title,
.top-ads-title,
.keywords-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.locations-header-right,
.keywords-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.locations-metric-btn,
.locations-menu-btn,
.top-ads-menu-btn,
.keywords-add-btn,
.keywords-menu-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--ads-text-heading);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.locations-metric-btn .material-symbols-outlined,
.keywords-add-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--ads-text-secondary);
  margin-left: -2px;
}

.keywords-add-btn {
  color: #1a73e8;
  font-weight: 500;
  gap: 2px;
}

.keywords-add-btn .material-symbols-outlined {
  color: #1a73e8;
  margin-left: 0;
}

.locations-menu-btn,
.top-ads-menu-btn,
.keywords-menu-btn {
  color: var(--ads-text-secondary);
  padding: 4px;
}

.locations-metric-btn:hover,
.locations-menu-btn:hover,
.top-ads-menu-btn:hover,
.keywords-add-btn:hover,
.keywords-menu-btn:hover {
  background: #f1f3f4;
}

.locations-body,
.top-ads-body,
.keywords-body {
  padding: 14px 16px 16px;
}

.locations-subtitle,
.keywords-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
  line-height: 1.35;
}

.locations-targeting {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.locations-targeting-label {
  color: var(--ads-text-secondary);
  margin-right: 6px;
}

.locations-targeting-cities {
  color: var(--ads-text-heading);
}

.locations-map-wrap {
  position: relative;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  overflow: hidden;
  background: #aadaff;
}

.locations-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
}

.locations-map-expanded {
  min-height: 460px;
}

.locations-map-province {
  transition: fill 0.15s ease;
}

.locations-map-province-group-active {
  cursor: pointer;
}

.locations-map-province-group-active:hover .locations-map-province {
  filter: brightness(0.94);
}

.locations-map-province-highlighted {
  stroke: #f9ab00;
  stroke-width: 0.35;
}

.locations-map-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1400;
  min-width: 168px;
  max-width: 220px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.2);
  pointer-events: none;
}

.locations-map-tooltip[hidden] {
  display: none !important;
}

.locations-map-tooltip-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ads-text-heading);
  margin-bottom: 8px;
}

.locations-map-tooltip-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 6px;
}

.locations-map-tooltip-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--ads-text-heading);
  line-height: 1.1;
}

.locations-map-tooltip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  flex-shrink: 0;
}

.locations-map-country {
  font-size: 11px;
  font-weight: 700;
  fill: #202124;
}

.locations-map-country-main {
  font-size: 18px;
  font-weight: 700;
  fill: #202124;
  text-anchor: middle;
}

.locations-map-city {
  font-size: 10px;
  fill: #202124;
  text-anchor: middle;
  font-weight: 500;
}

.locations-map-city-dot {
  fill: #fff;
  stroke: #5f6368;
  stroke-width: 0.8;
}

.locations-map-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ads-text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
}

.locations-map-expand:hover {
  background: #fff;
}

.locations-map-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

.locations-map-modal-overlay[hidden] {
  display: none !important;
}

.locations-map-modal {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.locations-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
}

.locations-map-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #202124;
}

.locations-map-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
}

.locations-map-modal-close:hover {
  background: #f1f3f4;
}

.locations-map-modal-body {
  padding: 0;
  background: #aadaff;
  overflow: auto;
}

.locations-map-modal-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #e8f0fe;
  border-top: 1px solid #d2e3fc;
}

.locations-map-modal-info-icon {
  font-size: 18px;
  color: #1a73e8;
  flex-shrink: 0;
  margin-top: 1px;
}

.locations-map-modal-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #3c4043;
}

.locations-map-modal-info-link {
  color: #1a73e8;
  text-decoration: none;
}

.locations-map-modal-info-link:hover {
  text-decoration: underline;
}

.locations-footer,
.top-ads-footer,
.keywords-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.locations-footer {
  justify-content: flex-start;
  gap: 20px;
}

.locations-footer-link,
.top-ads-footer-link,
.keywords-footer-link {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}

.locations-footer-link:hover,
.top-ads-footer-link:hover,
.keywords-footer-link:hover {
  text-decoration: underline;
}

/* Top ads widget */
.top-ads-campaign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.top-ads-campaign-dot,
.top-ads-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
}

.top-ads-campaign-name {
  font-size: 13px;
  color: #1a73e8;
  font-weight: 500;
}

.top-ads-preview-frame {
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 18px 16px;
  background: #fff;
  margin-bottom: 16px;
}

.top-ads-preview {
  max-width: 520px;
  margin: 0 auto;
}

.top-ads-preview-headline {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.top-ads-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.top-ads-ad-label {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #34a853;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #137333;
  line-height: 1;
}

.top-ads-preview-url {
  font-size: 14px;
  color: #137333;
}

.top-ads-preview-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #4d5156;
  margin-bottom: 10px;
}

.top-ads-preview-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.top-ads-sitelink {
  font-size: 14px;
  color: #1a0dab;
  cursor: pointer;
}

.top-ads-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #e8eaed;
}

.top-ads-stat-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.top-ads-stat-arrow {
  font-size: 16px;
  color: var(--ads-text-secondary);
  margin-left: -2px;
}

.top-ads-stat-value {
  font-size: 14px;
  color: var(--ads-text-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-ads-stat-value-strong {
  font-size: 18px;
  font-weight: 500;
}

.top-ads-footer-links,
.keywords-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-ads-pagination,
.keywords-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ads-text-secondary);
  font-size: 13px;
}

.top-ads-page-btn,
.keywords-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  border-radius: 50%;
  cursor: pointer;
}

.top-ads-page-btn:hover:not(:disabled),
.keywords-page-btn:hover:not(:disabled) {
  background: #f1f3f4;
}

.top-ads-page-btn:disabled,
.keywords-page-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.top-ads-page-btn .material-symbols-outlined,
.keywords-page-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Keywords widget */
.keywords-table-wrap {
  overflow-x: auto;
}

.keywords-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.keywords-table th,
.keywords-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8eaed;
  vertical-align: middle;
}

.keywords-table tr:last-child td {
  border-bottom: none;
}

.keywords-th-keyword {
  width: 42%;
  text-align: left;
}

.keywords-th-metric {
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-secondary);
  white-space: nowrap;
}

.keywords-th-arrow {
  font-size: 16px;
  vertical-align: middle;
  margin-left: -2px;
}

.keywords-cell-keyword {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.keywords-status {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.keywords-status-active {
  background: #34a853;
}

.keywords-status-paused {
  background: #d93025;
  color: #fff;
}

.keywords-status-paused .material-symbols-outlined {
  font-size: 10px;
  line-height: 1;
}

.keywords-keyword-text {
  color: #1a0dab;
  cursor: pointer;
}

.keywords-keyword-text-muted {
  color: var(--ads-text-heading);
}

.keywords-cell-metric {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
}

.keywords-cell-gray {
  background: #f8f9fa;
  color: var(--ads-text-heading);
}

@media (max-width: 900px) {
  .top-ads-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .keywords-header-right {
    gap: 0;
  }

  .keywords-add-btn span:not(.material-symbols-outlined) {
    display: none;
  }
}

/* Legacy device rows (unused) */
.devices-metric + .devices-metric {
  margin-top: 16px;
}

.device-row {
  margin-bottom: 8px;
}

.device-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.device-row-header span:first-child {
  color: var(--ads-text-heading);
}

.device-row-header span:last-child {
  color: var(--ads-text-secondary);
}

.device-bar-track {
  height: 12px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.device-bar-fill {
  height: 100%;
  background: var(--ads-blue-metric);
  border-radius: 4px;
}

/* Demographics */
.demographics-card {
  overflow: hidden;
}

.demographics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.demographics-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demographics-header-icon {
  font-size: 22px;
  color: var(--ads-text-secondary);
}

.demographics-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.demographics-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.demographics-metric-btn,
.demographics-menu-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--ads-text-heading);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.demographics-metric-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--ads-text-secondary);
  margin-left: -2px;
}

.demographics-menu-btn {
  color: var(--ads-text-secondary);
  padding: 4px;
}

.demographics-metric-btn:hover,
.demographics-menu-btn:hover {
  background: #f1f3f4;
}

.demographics-body {
  padding: 10px 16px 16px;
}

.demographics-subtitle {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--ads-text-secondary);
  line-height: 1.4;
}

.demographics-tab-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  border-bottom: 1px solid var(--ads-border);
  margin-bottom: 16px;
}

.demographics-tab {
  position: relative;
  padding: 0 2px 10px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.demographics-tab:hover {
  color: var(--ads-text-heading);
}

.demographics-tab-active {
  color: var(--ads-blue);
  font-weight: 500;
}

.demographics-tab-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ads-blue);
  border-radius: 2px 2px 0 0;
}

.demographics-panels {
  min-height: 160px;
}

.demographics-panel {
  display: none;
}

.demographics-panel-active {
  display: block;
}

.demographics-gender-chart {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 4px;
}

.demographics-gender-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
}

.demographics-gender-label {
  font-size: 12px;
  color: var(--ads-text-heading);
}

.demographics-gender-track {
  height: 18px;
  background: #f8f9fa;
  border-radius: 2px;
  overflow: visible;
}

.demographics-gender-bar-wrap {
  height: 100%;
  width: 100%;
}

.demographics-gender-bar {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  min-width: 2px;
}

.demographics-gender-bar-wrap-empty,
.demographics-gender-bar-empty {
  min-width: 0;
}

.demographics-gender-bar-empty {
  background: #ffffff !important;
}

.demographics-heatmap-cell-empty {
  background: #ffffff !important;
}

.demographics-age-bar-empty {
  background: #ffffff !important;
  min-height: 0;
}

.demographics-heatmap-wrap {
  overflow-x: auto;
}

.demographics-heatmap {
  display: grid;
  grid-template-columns: 56px repeat(6, minmax(40px, 1fr));
  gap: 2px;
  min-width: 100%;
  padding-bottom: 4px;
}

.demographics-heatmap-corner {
  min-height: 20px;
}

.demographics-heatmap-age-label {
  font-size: 11px;
  color: var(--ads-text-secondary);
  text-align: center;
  padding-bottom: 4px;
  line-height: 1.2;
}

.demographics-heatmap-gender-label {
  font-size: 12px;
  color: var(--ads-text-heading);
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.demographics-heatmap-cell {
  aspect-ratio: 1.35;
  min-height: 28px;
  border-radius: 1px;
}

.demographics-age-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 150px;
  padding: 8px 4px 0;
  border-bottom: 1px solid var(--ads-border);
}

.demographics-age-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.demographics-age-bar-wrap {
  flex: 1;
  width: 100%;
  max-width: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.demographics-age-bar {
  width: 100%;
  background: var(--ads-blue-metric);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.demographics-age-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ads-text-secondary);
  text-align: center;
  line-height: 1.2;
}

.demographics-footnote {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--ads-text-secondary);
  line-height: 1.4;
}

.demographics-footnote[hidden] {
  display: none !important;
}

.demographics-help-icon {
  font-size: 14px !important;
  color: var(--ads-text-secondary);
  margin-top: 1px;
}

.demographics-footer-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ads-blue);
  text-decoration: none;
}

.demographics-footer-link:hover {
  text-decoration: underline;
}

/* Day and hour heatmap */
.day-hour-card {
  overflow: hidden;
}

.day-hour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.day-hour-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.day-hour-header-icon {
  font-size: 22px;
  color: var(--ads-text-secondary);
}

.day-hour-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.day-hour-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.day-hour-metric-btn,
.day-hour-menu-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--ads-text-heading);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.day-hour-metric-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--ads-text-secondary);
  margin-left: -2px;
}

.day-hour-menu-btn {
  color: var(--ads-text-secondary);
  padding: 4px;
}

.day-hour-metric-btn:hover,
.day-hour-menu-btn:hover {
  background: #f1f3f4;
}

.day-hour-body {
  padding: 10px 16px 16px;
}

.day-hour-subtitle {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--ads-text-secondary);
  line-height: 1.4;
}

.day-hour-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  border-bottom: 1px solid var(--ads-border);
  margin-bottom: 16px;
}

.day-hour-tab {
  position: relative;
  border: none;
  background: transparent;
  color: var(--ads-text-secondary);
  font-size: 13px;
  font-family: inherit;
  padding: 0 2px 10px;
  cursor: pointer;
}

.day-hour-tab:hover {
  color: var(--ads-text-heading);
}

.day-hour-tab-active {
  color: var(--ads-blue);
  font-weight: 500;
}

.day-hour-tab-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ads-blue);
  border-radius: 2px 2px 0 0;
}

.day-hour-panels {
  min-height: 180px;
}

.day-hour-panel {
  display: none;
}

.day-hour-panel-active {
  display: block;
}

.day-hour-heatmap-wrap {
  overflow-x: auto;
}

.day-hour-heatmap {
  display: grid;
  gap: 2px;
  min-width: 100%;
}

.day-hour-heatmap-full {
  grid-template-columns: 22px repeat(24, minmax(10px, 1fr));
}

.day-hour-heatmap-hour {
  grid-template-columns: 22px repeat(24, minmax(10px, 1fr));
}

.day-hour-heatmap-day {
  grid-template-columns: 22px minmax(120px, 1fr);
}

.day-hour-axis-spacer {
  grid-column: 1;
}

.day-hour-axis-label {
  font-size: 10px;
  color: transparent;
  text-align: center;
  line-height: 1;
  padding-bottom: 2px;
  user-select: none;
}

.day-hour-axis-label-visible {
  color: var(--ads-text-secondary);
}

.day-hour-axis-label-center {
  color: var(--ads-text-secondary);
}

.day-hour-day-label {
  font-size: 11px;
  color: var(--ads-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.day-hour-cell {
  aspect-ratio: 1;
  min-height: 10px;
  border-radius: 1px;
}

.day-hour-cell-wide {
  aspect-ratio: auto;
  min-height: 18px;
  border-radius: 2px;
}

.day-hour-cell-empty {
  background: #ffffff !important;
}

.day-hour-footer-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ads-blue);
  text-decoration: none;
}

.day-hour-footer-link:hover {
  text-decoration: underline;
}

.day-hour-hour-chart {
  padding: 8px 4px 0;
}

.day-hour-hour-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 148px;
  padding: 0 2px;
}

.day-hour-hour-bar-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-width: 0;
}

.day-hour-hour-bar {
  width: 100%;
  background: #4285f4;
  border-radius: 1px 1px 0 0;
  min-height: 0;
}

.day-hour-hour-bar-empty {
  background: transparent;
}

.day-hour-hour-axis {
  position: relative;
  height: 24px;
  margin-top: 6px;
}

.day-hour-hour-axis-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ads-text-secondary);
  line-height: 1;
  user-select: none;
}

.day-hour-hour-axis-label:first-child {
  transform: translateX(0);
}

.day-hour-hour-axis-label:last-child {
  transform: translateX(-100%);
}

/* Legacy heatmap */
.heatmap-wrap {
  overflow-x: auto;
}

.heatmap-grid {
  display: grid;
  gap: 2px;
  min-width: 320px;
}

.heatmap-hour,
.heatmap-day {
  font-size: 10px;
  color: var(--ads-text-secondary);
  display: flex;
  align-items: center;
}

.heatmap-hour {
  justify-content: center;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
}

/* Search terms */
.search-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 160px;
  padding: 4px;
}

.search-term-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--ads-border);
  background: #f8f9fa;
  color: var(--ads-blue);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.search-term-pill:hover {
  background: var(--ads-blue-light);
  border-color: #d2e3fc;
}

.search-term-preview {
  position: fixed;
  z-index: 1200;
  width: 360px;
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.18);
  padding: 0;
  pointer-events: auto;
}

.search-term-preview-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 10px;
  padding: 8px 10px;
  border: 1px solid var(--ads-border);
  border-radius: 24px;
  background: #f1f3f4;
}

.search-term-preview-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-term-preview-google-g {
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(90deg, #4285f4 0%, #ea4335 35%, #fbbc04 70%, #34a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.search-term-preview-query {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ads-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-term-preview-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #5f6368;
  color: #fff;
  flex-shrink: 0;
}

.search-term-preview-search-btn .material-symbols-outlined {
  font-size: 18px;
}

.search-term-preview-trigger {
  margin: 0 12px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ads-text-secondary);
}

.search-term-preview-trigger strong {
  color: #188038;
  font-weight: 500;
}

.search-term-preview-metrics {
  border-top: 1px solid var(--ads-border);
  padding: 10px 12px;
}

.search-term-preview-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ads-text-secondary);
  padding: 4px 0;
}

.search-term-preview-metric strong {
  font-size: 14px;
  font-weight: 400;
  color: var(--ads-text-heading);
}

.search-term-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.search-term-preview-action {
  min-height: 36px;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: var(--ads-blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
}

.search-term-preview-action:hover {
  background: #1765cc;
}

.search-term-preview-footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ads-border);
  background: #f8f9fa;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ads-text-secondary);
}

.search-term-preview-footer .material-symbols-outlined {
  font-size: 16px;
  color: var(--ads-text-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Ad preview */
.ad-preview-box {
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: 16px;
  background: #f8f9fa;
  max-width: 384px;
  margin: 0 auto 16px;
}

.ad-preview-url {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 4px;
}

.ad-preview-headline {
  color: var(--ads-ad-headline);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 4px;
  cursor: pointer;
}

.ad-preview-headline:hover {
  text-decoration: underline;
}

.ad-preview-desc {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ad-preview-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-sitelink {
  font-size: 12px;
  color: var(--ads-ad-headline);
  cursor: pointer;
}

.ad-sitelink:hover {
  text-decoration: underline;
}

.ad-preview-type {
  margin-top: 8px;
  font-size: 10px;
  color: var(--ads-text-secondary);
  font-style: italic;
}

/* Billing */
.billing-card {
  text-align: center;
  padding: 8px 0;
}

.billing-balance-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 4px;
}

.billing-balance {
  font-size: 30px;
  font-weight: 400;
  color: var(--ads-text-heading);
  margin-bottom: 8px;
}

.billing-balance-negative {
  color: var(--ads-red-metric);
}

.billing-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ads-red-metric);
  margin-bottom: 16px;
}

.billing-warning .material-symbols-outlined {
  font-size: 14px;
}

.billing-details {
  text-align: left;
  border-top: 1px solid var(--ads-border);
  padding-top: 16px;
  margin-top: 16px;
}

.billing-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.billing-detail-row span:first-child {
  color: var(--ads-text-secondary);
}

.billing-detail-row span:last-child {
  color: var(--ads-text-heading);
}

.billing-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.payment-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}

.payment-history-row:last-child {
  border-bottom: none;
}

.payment-date {
  font-size: 14px;
  color: var(--ads-text-heading);
}

.payment-method {
  font-size: 12px;
  color: var(--ads-text-secondary);
}

.payment-amount {
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

/* Status badges */
.status-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-active {
  background: #e6f4ea;
  color: #137333;
}

.status-paused {
  background: #fce8e6;
  color: #c5221f;
}

/* Data tables */
.data-table-wrap {
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.data-table thead {
  background: #f8f9fa;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--ads-text-secondary);
  padding: 12px 16px;
}

.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--ads-border);
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

/* KPI & cards grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: 16px;
}

.kpi-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 20px;
  color: var(--ads-text-heading);
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid-2 {
  grid-template-columns: 1fr;
}

.section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.text-muted {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin: 0;
}

.mt-4 {
  margin-top: 16px;
}

/* Recommendations */
.rec-card {
  background: var(--ads-surface);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: 20px;
}

.rec-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.impact-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.impact-high {
  background: #fce8e6;
  color: #c5221f;
}

.impact-medium {
  background: #fef7e0;
  color: #b06000;
}

.impact-low {
  background: var(--ads-blue-light);
  color: var(--ads-blue);
}

.rec-category {
  font-size: 12px;
  color: var(--ads-text-secondary);
}

.rec-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.rec-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ads-text-secondary);
}

.rec-apply {
  border: none;
  background: transparent;
  color: var(--ads-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.rec-apply:hover {
  text-decoration: underline;
}

/* Settings */
.settings-list {
  overflow: hidden;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--ads-border);
  cursor: pointer;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:hover {
  background: #f8f9fa;
}

.settings-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.settings-item-desc {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-top: 2px;
}

.settings-item .material-symbols-outlined {
  color: var(--ads-text-secondary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none !important;
}

/* Campaign goal modal */
.campaign-goal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 24px;
  background: rgba(0, 0, 0, 0.4);
  overflow-y: auto;
}

.campaign-goal-modal-overlay[hidden] {
  display: none !important;
}

.campaign-goal-modal {
  width: 100%;
  max-width: 980px;
}

.campaign-goal-heading {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 400;
  color: #202124;
  line-height: 1.2;
}

.campaign-goal-panel {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  overflow: hidden;
}

.campaign-goal-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8eaed;
}

.campaign-goal-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}

.campaign-goal-panel-body {
  padding: 20px 24px 8px;
}

.campaign-goal-intro {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #3c4043;
}

.campaign-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.campaign-goal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.campaign-goal-card:hover {
  border-color: #bdc1c6;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.campaign-goal-card-selected {
  border: 2px solid #1a73e8;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.18);
}

.campaign-goal-card-icon {
  font-size: 22px;
  color: #5f6368;
}

.campaign-goal-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  line-height: 1.35;
}

.campaign-goal-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #5f6368;
}

.campaign-goal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 24px 20px;
}

.campaign-goal-cancel {
  border: none;
  background: transparent;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 4px;
}

.campaign-goal-cancel:hover {
  background: #f6fafe;
  border-radius: 4px;
}

.campaign-goal-continue {
  min-width: 88px;
  height: 36px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.campaign-goal-continue:hover {
  background: #1765cc;
}

@media (max-width: 900px) {
  .campaign-goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .campaign-goal-modal-overlay {
    padding: 24px 12px 12px;
  }

  .campaign-goal-heading {
    font-size: 20px;
  }

  .campaign-goal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-dialog {
  background: var(--ads-surface);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 560px;
  color: var(--ads-text);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ads-border);
}

.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.modal-account-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-account-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 0;
}

.modal-account-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-account-right {
  text-align: right;
  flex-shrink: 0;
}

.modal-owed-amount {
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.modal-owed-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
}

.modal-warning {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 12px;
}

.modal-warning-icon {
  color: var(--ads-yellow);
  font-size: 22px !important;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-warning p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.modal-link {
  border: none;
  background: transparent;
  color: var(--ads-blue);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-payment-method {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ads-border);
}

.modal-fieldset {
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: 0 16px 12px;
  margin: 0;
}

.modal-fieldset legend {
  font-size: 12px;
  color: var(--ads-text-secondary);
  padding: 0 4px;
  margin-left: 4px;
}

.modal-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.modal-payment-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.modal-amount-section {
  padding: 20px 24px;
}

.modal-amount-label {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-bottom: 12px;
}

.modal-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 20px;
}

.modal-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal-radio-ui {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--ads-text-secondary);
}

.modal-radio input:checked + .modal-radio-ui {
  border-color: var(--ads-blue);
}

.modal-radio input:checked + .modal-radio-ui::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ads-blue);
}

.modal-radio-content {
  display: flex;
  flex-direction: column;
}

.modal-radio-title {
  font-size: 14px;
  color: var(--ads-text);
}

.modal-radio-desc {
  font-size: 12px;
  color: var(--ads-text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

.modal-other-amount {
  margin-left: 30px;
  margin-bottom: 12px;
}

.modal-amount-input {
  width: 100%;
  max-width: 200px;
  border: 1px solid var(--ads-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
}

.modal-amount-input:focus {
  outline: none;
  border-color: var(--ads-blue);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ads-border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.modal-btn-cancel {
  font-size: 14px;
  color: var(--ads-blue);
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.modal-btn-cancel:hover {
  background: #f6fafe;
}

.modal-btn-primary {
  font-size: 14px;
  background: var(--ads-blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  min-width: 88px;
  cursor: pointer;
  font-family: inherit;
}

.modal-btn-primary:hover {
  background: var(--ads-blue-hover);
}

/* Quick help panel */
.quick-help-backdrop {
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  z-index: 90;
  background: transparent;
}

.quick-help-backdrop[hidden] {
  display: none !important;
}

.quick-help-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  width: min(400px, 100vw);
  height: calc(100vh - var(--topbar-height));
  background: #fff;
  border-left: 1px solid #dadce0;
  box-shadow: -2px 0 8px rgba(60, 64, 67, 0.12);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.quick-help-panel[hidden] {
  display: none !important;
}

.quick-help-panel.quick-help-panel-open {
  transform: translateX(0);
}

.quick-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  flex-shrink: 0;
}

.quick-help-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #202124;
}

.quick-help-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  border-radius: 50%;
  cursor: pointer;
}

.quick-help-close:hover {
  background: #f1f3f4;
}

.quick-help-search-wrap {
  position: relative;
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.quick-help-search {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #202124;
}

.quick-help-search:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

.quick-help-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5f6368;
  pointer-events: none;
}

.quick-help-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  min-height: 0;
}

.quick-help-section-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
}

.quick-help-featured {
  margin-bottom: 8px;
}

.quick-help-featured-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #202124;
}

.quick-help-featured-text-wrap {
  position: relative;
  max-height: 72px;
  overflow: hidden;
  margin-bottom: 12px;
}

.quick-help-featured-text-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.quick-help-featured-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #3c4043;
}

.quick-help-more-btn {
  display: block;
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
  height: 32px;
  padding: 0 16px;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.quick-help-more-btn:hover {
  background: #f6fafe;
}

.quick-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-help-item {
  border-top: 1px solid #e8eaed;
}

.quick-help-item[hidden] {
  display: none !important;
}

.quick-help-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.quick-help-link:hover .quick-help-link-text {
  color: #1a73e8;
}

.quick-help-link-icon {
  font-size: 20px;
  color: #1a73e8;
  flex-shrink: 0;
  margin-top: 1px;
}

.quick-help-link-text {
  font-size: 13px;
  line-height: 1.4;
  color: #3c4043;
}

.quick-help-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid #e8eaed;
  background: #f8f9fa;
}

.quick-help-footer-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #202124;
}

.quick-help-footer-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
}

.quick-help-footer-link:hover {
  text-decoration: underline;
}

body.quick-help-open {
  overflow: hidden;
}

/* Campaign settings panel */
.campaign-settings-backdrop {
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  z-index: 96;
  background: rgba(32, 33, 36, 0.28);
}

.campaign-settings-backdrop[hidden] {
  display: none !important;
}

.campaign-settings-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  z-index: 97;
  display: flex;
  flex-direction: column;
  width: min(520px, 100vw);
  height: calc(100vh - var(--topbar-height));
  background: #fff;
  border-left: 1px solid #dadce0;
  box-shadow: -2px 0 12px rgba(60, 64, 67, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.campaign-settings-panel[hidden] {
  display: none !important;
}

.campaign-settings-panel.campaign-settings-panel-open {
  transform: translateX(0);
}

.campaign-settings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
  flex-shrink: 0;
}

.campaign-settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ads-text-secondary);
  cursor: pointer;
}

.campaign-settings-close:hover {
  background: #f1f3f4;
}

.campaign-settings-title {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--ads-text-heading);
}

.campaign-settings-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--ads-text-secondary);
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}

.campaign-settings-meta-sep {
  color: #bdc1c6;
}

.campaign-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.campaign-settings-section-title {
  margin: 18px 0 10px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ads-text-heading);
}

.campaign-settings-group {
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.campaign-settings-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.campaign-settings-row:last-child {
  border-bottom: none;
}

.campaign-settings-row:hover {
  background: #f8f9fa;
}

.campaign-settings-row-label {
  font-size: 13px;
  color: var(--ads-text-secondary);
  line-height: 1.35;
}

.campaign-settings-row-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ads-text-heading);
  line-height: 1.35;
  min-width: 0;
}

.campaign-settings-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
}

.campaign-settings-row-chevron {
  font-size: 20px;
  color: var(--ads-text-secondary);
  justify-self: end;
}

body.campaign-settings-open {
  overflow: hidden;
}

/* Metrics modal */
.metrics-modal-overlay {
  z-index: 110;
}

.metrics-modal-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.metrics-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}

.metrics-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  border-radius: 50%;
  cursor: pointer;
}

.metrics-modal-close:hover {
  background: #f1f3f4;
}

.metrics-modal-close .material-symbols-outlined {
  font-size: 20px;
}

.metrics-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #202124;
}

.metrics-modal-body {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.metrics-modal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e8eaed;
}

.metrics-modal-search-wrap {
  position: relative;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}

.metrics-modal-search {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #202124;
}

.metrics-modal-search:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

.metrics-modal-search-icon {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5f6368;
  pointer-events: none;
}

.metrics-modal-sections {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 16px;
}

.metrics-accordion {
  border-bottom: 1px solid #e8eaed;
}

.metrics-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.metrics-accordion-icon {
  font-size: 22px;
  color: #5f6368;
}

.metrics-accordion-panel {
  padding-bottom: 16px;
}

.metrics-accordion-panel[hidden] {
  display: none !important;
}

.metrics-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}

.metrics-checkbox-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metrics-checkbox-grid-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metrics-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #3c4043;
  cursor: pointer;
  line-height: 1.35;
  padding: 4px 0;
}

.metrics-checkbox-item[hidden] {
  display: none !important;
}

.metrics-checkbox-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.metrics-checkbox-box {
  width: 16px;
  height: 16px;
  border: 2px solid #5f6368;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.metrics-checkbox-item input:checked + .metrics-checkbox-box {
  background: #1a73e8;
  border-color: #1a73e8;
}

.metrics-checkbox-item input:checked + .metrics-checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.metrics-subsection {
  border-top: 1px solid #e8eaed;
  padding-top: 12px;
}

.metrics-subsection-title {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.metrics-subsection-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.metrics-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
}

.metrics-link-btn:hover {
  text-decoration: underline;
}

.metrics-modal-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 16px 16px 12px;
  background: #fff;
  overflow-y: auto;
}

.metrics-sidebar-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: #202124;
}

.metrics-sidebar-hint {
  margin: 0 0 12px;
  font-size: 11px;
  color: #5f6368;
  line-height: 1.35;
}

.metrics-column-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metrics-column-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-bottom: 1px solid #f1f3f4;
  font-size: 13px;
  color: #3c4043;
}

.metrics-column-drag {
  font-size: 18px;
  color: #9aa0a6;
  cursor: grab;
}

.metrics-column-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.metrics-column-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.metrics-column-remove:hover {
  background: #f1f3f4;
}

.metrics-column-remove .material-symbols-outlined {
  font-size: 18px;
}

.metrics-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e8eaed;
  flex-shrink: 0;
}

.metrics-modal-apply {
  min-width: 88px;
  height: 36px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.metrics-modal-apply:hover {
  background: #1765cc;
}

.metrics-modal-cancel {
  border: none;
  background: transparent;
  padding: 0 8px;
  height: 36px;
  font-size: 14px;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
}

.metrics-modal-cancel:hover {
  background: #f6fafe;
  border-radius: 4px;
}

/* Responsive */
@media (min-width: 768px) {
  .topbar-account-info {
    display: block;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .billing-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .topbar-btn-label {
    display: inline;
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sidebar tools panel */
.sidebar-panel-stub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #3c4043;
  border-radius: 20px;
  cursor: default;
}

.sidebar-panel-stub-label {
  flex: 1;
  min-width: 0;
}

.sidebar-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e6f4ea;
  color: #137333;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Reklam Öğeleri Stüdyosu */
.creative-studio-page {
  max-width: 1120px;
  padding-bottom: 32px;
}

.creative-studio-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 400;
  color: #202124;
  line-height: 1.2;
}

.creative-studio-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dadce0;
  margin-bottom: 28px;
}

.creative-studio-tab {
  position: relative;
  padding: 0 0 12px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
}

.creative-studio-tab:hover {
  color: #202124;
}

.creative-studio-tab-active {
  color: #1a73e8;
  font-weight: 500;
}

.creative-studio-tab-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #1a73e8;
  border-radius: 3px 3px 0 0;
}

.creative-studio-section {
  margin-bottom: 36px;
}

.creative-studio-section-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}

.creative-studio-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.creative-studio-video-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  min-height: 100%;
}

.creative-studio-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #e8eaed;
}

.creative-studio-thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  transition: opacity 0.2s ease;
}

.creative-studio-video-thumb.is-playing .creative-studio-thumb-poster {
  opacity: 0;
}

.creative-studio-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.creative-studio-video-thumb.is-playing .creative-studio-thumb-video {
  opacity: 1;
}

.creative-studio-video-thumb.is-playing .creative-studio-thumb-play {
  opacity: 0;
}

.creative-studio-thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  color: #3c4043;
}

.creative-studio-thumb-time {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(32, 33, 36, 0.78);
  color: #fff;
  font-size: 11px;
  font-family: "Roboto Mono", monospace;
}

.creative-studio-thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  font-size: 44px !important;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.creative-studio-video-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  line-height: 1.35;
}

.creative-studio-video-card-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f6368;
  flex: 1;
}

.creative-studio-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.creative-studio-outline-btn:hover {
  background: #f6f9fe;
  border-color: #d2e3fc;
}

.creative-studio-outline-btn .material-symbols-outlined {
  font-size: 18px;
}

.creative-studio-manage-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

.creative-studio-manage-col {
  padding: 24px;
}

.creative-studio-manage-col-assets {
  border-left: 1px solid #e8eaed;
}

.creative-studio-manage-heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

.creative-studio-manage-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #5f6368;
  max-width: 360px;
}

.creative-studio-cloud-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.creative-studio-cloud-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.creative-studio-asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.creative-studio-asset-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid #e8eaed;
  overflow: hidden;
  background: #fff;
}

.creative-studio-asset-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.creative-studio-asset-image-contain {
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.creative-studio-asset-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f8f9fa;
  color: #1a73e8;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.creative-studio-asset-more:hover {
  background: #f1f3f4;
}

@media (max-width: 1100px) {
  .creative-studio-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .creative-studio-video-grid,
  .creative-studio-manage-card {
    grid-template-columns: 1fr;
  }

  .creative-studio-manage-col-assets {
    border-left: none;
    border-top: 1px solid #e8eaed;
  }
}

/* Upload file panel */
.upload-file-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(0, 0, 0, 0.32);
}

.upload-file-backdrop[hidden] {
  display: none !important;
}

.upload-file-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  z-index: 98;
  display: flex;
  flex-direction: column;
  width: min(640px, 100vw);
  height: calc(100vh - var(--topbar-height));
  background: #fff;
  border-left: 1px solid #dadce0;
  box-shadow: -2px 0 12px rgba(60, 64, 67, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.upload-file-panel[hidden] {
  display: none !important;
}

.upload-file-panel.upload-file-panel-open {
  transform: translateX(0);
}

.upload-file-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 8px;
  flex-shrink: 0;
}

.upload-file-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ads-text-secondary);
  cursor: pointer;
}

.upload-file-close:hover {
  background: #f1f3f4;
}

.upload-file-title {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--ads-text-heading);
}

.upload-file-types {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--ads-text-secondary);
  flex-shrink: 0;
}

.upload-file-types-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
}

.upload-file-types-info .material-symbols-outlined {
  font-size: 16px;
}

.upload-file-types-info:hover {
  background: #f1f3f4;
}

.upload-file-body {
  flex: 1;
  min-height: 0;
  padding: 0 20px;
  overflow-y: auto;
}

.upload-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: calc(100% - 8px);
  padding: 32px 24px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.upload-file-dropzone.is-dragover {
  border-color: #1a73e8;
  background: #f6f9fe;
}

.upload-file-dropzone-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ads-text-heading);
  line-height: 1.45;
}

.upload-file-dropzone-or {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ads-text-secondary);
}

.upload-file-primary-btn {
  min-width: 180px;
  height: 36px;
  padding: 0 24px;
  margin-bottom: 12px;
  border: none;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.upload-file-primary-btn:hover {
  background: #1765cc;
}

.upload-file-source-wrap {
  position: relative;
}

.upload-file-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 180px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.upload-file-source-btn:hover {
  background: #f6f9fe;
  border-color: #d2e3fc;
}

.upload-file-source-btn .material-symbols-outlined {
  font-size: 20px;
}

.upload-file-source-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 200px;
  padding: 6px 0;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.18);
}

.upload-file-source-menu[hidden] {
  display: none !important;
}

.upload-file-source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ads-text-heading);
  text-align: left;
  cursor: pointer;
}

.upload-file-source-option:hover {
  background: #f1f3f4;
}

.upload-file-input {
  display: none;
}

.upload-file-footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid #e8eaed;
}

.upload-file-footer-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ads-text-secondary);
}

.upload-file-footer-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.upload-file-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.upload-file-hide-btn,
.upload-file-cancel-btn {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
}

.upload-file-hide-btn:hover,
.upload-file-cancel-btn:hover {
  text-decoration: underline;
}

.upload-file-legal {
  margin: 0;
  max-width: 340px;
  font-size: 11px;
  line-height: 1.45;
  color: #5f6368;
  text-align: right;
}

@media (max-width: 720px) {
  .upload-file-footer-actions {
    flex-direction: column;
  }

  .upload-file-legal {
    max-width: none;
    text-align: left;
  }
}
