/* Agent Demo Interface Styles */

/* Animation Keyframes */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceLeft {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-12px);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dotPulse {
  0%, 60%, 100% {
    opacity: .4;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Agent View Wrapper */
.agent-view-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  background: var(--clr-surface);
  animation: floatUp .8s ease both;
}

/* Title Bar */
.av-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--clr-surface-alt);
  border-bottom: 1px solid var(--clr-border);
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
}

.av-titlebar-dots {
  display: flex;
  gap: 5px;
}

.av-titlebar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

/* Grid Layout: narrower right panel so center (and action buttons) has more room */
.av-grid {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  grid-template-rows: 1fr;
  height: 480px;
  overflow: hidden;
}

/* Onboarding (and any single-pane view): right panel hidden, center full width */
.av-grid.right-panel-hidden {
  grid-template-columns: 200px 1fr;
}

/* Sidebar */
.av-sidebar {
  border-right: 1px solid var(--clr-border);
  padding: 16px 14px;
  background: var(--clr-surface-alt);
  font-size: .8rem;
  overflow-y: auto;
}

.av-sidebar-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
  margin-top: 14px;
}

.av-sidebar-label:first-child {
  margin-top: 0;
}

.av-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: background .15s;
  font-size: .8rem;
  user-select: none;
}

.av-sidebar-item:hover {
  background: rgba(28, 86, 254, .05);
}

.av-sidebar-item.active {
  background: var(--clr-blue-100);
  color: var(--clr-blue-600);
  font-weight: 600;
}

.av-sidebar-item.muted {
  opacity: .35;
  pointer-events: none;
  cursor: default;
}

.av-sidebar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-short {
  display: none;
}

.av-sidebar-sub {
  padding-left: 24px;
  font-size: .76rem;
  color: var(--clr-text-muted);
}

.av-sidebar-sub div {
  padding: 3px 0;
  cursor: default;
}

.av-sidebar-sub div.clickable {
  cursor: pointer;
  transition: color .15s;
}

.av-sidebar-sub div.clickable:hover {
  color: var(--clr-blue-600);
}

/* Center Panel */
.av-center {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.av-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface-alt);
  flex-shrink: 0;
  min-height: 38px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.av-tabs::-webkit-scrollbar {
  display: none;
}

.av-tab {
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s;
  user-select: none;
  white-space: nowrap;
  display: none;
  flex-shrink: 0;
  min-width: 0;
}

.av-tab.visible {
  display: flex;
  align-items: center;
  gap: 6px;
}

.av-tab.active {
  color: var(--clr-blue-600);
  border-bottom-color: var(--clr-blue-600);
  font-weight: 600;
  background: var(--clr-surface);
}

.av-tab:hover:not(.active) {
  color: var(--clr-text-secondary);
}

.av-tab .tab-close {
  font-size: .7rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1;
}

.av-tab .tab-close:hover {
  background: var(--clr-border);
  color: var(--clr-text);
}

.av-tab-add {
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  cursor: default;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Empty State */
.av-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 40px 40px;
  text-align: center;
  color: var(--clr-text-muted);
  overflow: hidden;
}

#emptyState {
  justify-content: flex-start;
  padding-top: 80px;
}

.av-empty.hidden {
  display: none;
}

.av-empty-arrow {
  font-size: 2rem;
  animation: bounceLeft 1.5s ease-in-out infinite;
  margin-bottom: 12px;
  display: inline-block;
}

.av-empty p {
  font-size: .88rem;
  max-width: 240px;
  line-height: 1.5;
}

.av-empty p strong {
  color: var(--clr-text-secondary);
}

.hint-arrow {
  display: none;
  color: var(--clr-text-muted);
  font-size: 1.3rem;
  animation: bounceLeft 1.5s ease-in-out infinite;
  pointer-events: none;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  top: 3px;
  margin-left: 13px;
}

.hint-arrow.visible {
  display: inline-block;
}

td .hint-arrow {
  top: 0;
  vertical-align: middle;
  margin-left: 8px;
}

/* Action column hint: always show when .visible, high contrast so it’s not missed */
.report-view .campaign-table td .action-cell-content .hint-arrow {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  top: 50%;
  margin-top: -0.55em;
  transform: translateY(-50%);
  z-index: 2;
  line-height: 1;
}

.report-view .campaign-table td .action-cell-content .hint-arrow.visible {
  display: inline-block !important;
}

/* Inbox */
.av-inbox {
  padding: 18px 20px;
  flex: 1;
}

.av-inbox-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 14px;
}

.av-inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: background .15s;
  cursor: default;
}

.av-inbox-item:hover {
  background: var(--clr-surface-alt);
}

.av-inbox-item.muted {
  opacity: .35;
  pointer-events: none;
}

.av-inbox-status {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.av-inbox-item-body {
  flex: 1;
  min-width: 0;
}

.av-inbox-item-title {
  font-size: .84rem;
  font-weight: 600;
  color: var(--clr-text);
}

/* Document Links */
.av-doc-links {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.av-doc-link {
  padding: 3px 10px;
  font-size: .7rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}

.av-doc-link:hover {
  border-color: var(--clr-blue-600);
  background: var(--clr-blue-50);
  color: var(--clr-blue-600);
}

.av-doc-link.action {
  border-color: var(--clr-blue-100);
  background: var(--clr-blue-50);
  color: var(--clr-blue-600);
  font-weight: 600;
}

.av-doc-link.action:hover {
  background: var(--clr-blue-100);
}

/* Section Labels and Chips */
.av-section-label {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 14px 20px 8px;
}

.av-chips {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.av-chip {
  padding: 6px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .76rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  background: var(--clr-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.av-chip:hover {
  border-color: var(--clr-blue-600);
  background: var(--clr-blue-50);
  color: var(--clr-blue-600);
}

.av-chip.muted {
  opacity: .35;
  pointer-events: none;
  cursor: default;
}

/* Right Panel */
.av-right {
  border-left: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.av-right-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.av-right-pane.active {
  display: flex;
}

.av-right-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--clr-border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-text);
  background: var(--clr-surface-alt);
  flex-shrink: 0;
}

.av-right-body {
  flex: 1;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow-y: auto;
}

.av-right-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* Chat Bubbles — match page typography so right-panel copy feels consistent */
.av-chat-bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: var(--radius) var(--radius) var(--radius) 3px;
  font-size: .88rem;
  line-height: 1.6;
  animation: bubbleIn .3s ease both;
}

.av-chat-bubble.agent {
  background: var(--clr-blue-100);
  color: var(--clr-blue-700);
  align-self: flex-start;
}

.av-chat-bubble.human {
  background: var(--clr-surface-alt);
  color: var(--clr-text);
  align-self: flex-end;
  border-radius: var(--radius) var(--radius) 3px var(--radius);
}

.av-chat-bubble.success {
  background: var(--clr-green-bg);
  color: #0a7b5a;
  align-self: flex-start;
  border-left: 3px solid var(--clr-green);
}

.av-chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 14px;
  background: var(--clr-blue-100);
  border-radius: var(--radius) var(--radius) var(--radius) 3px;
  align-self: flex-start;
  animation: bubbleIn .2s ease both;
}

.av-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-blue-500);
  opacity: .4;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.av-chat-typing span:nth-child(2) {
  animation-delay: .2s;
}

.av-chat-typing span:nth-child(3) {
  animation-delay: .4s;
}

/* Chat Input */
.av-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  margin-top: 4px;
  flex-shrink: 0;
  flex-grow: 0;
}

.av-chat-input-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
}

/* Panes */
.av-pane {
  display: none;
}

.av-pane.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

/* Onboarding form (Get Started) */
.ob-form {
  padding: 28px 32px;
  max-width: 750px;
  margin: 0 auto;
}

.ob-form h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.ob-form > p {
  font-size: .88rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ob-field {
  margin-bottom: 20px;
}

.ob-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.ob-field input {
  width: 100%;
  padding: 10px 14px;
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.ob-field input::placeholder {
  color: var(--clr-text-muted);
}

.ob-field input:focus {
  outline: none;
  border-color: var(--clr-blue-600);
  box-shadow: 0 0 0 3px rgba(28, 86, 254, .15);
}

#obFocus {
  margin-bottom: 24px;
}

.ob-uc-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 10px;
}

.ob-uc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-uc-pill {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}

/* Reserve width for bold text so pill doesn’t change size when selected */
.ob-uc-pill::before {
  content: attr(data-label);
  font-weight: 600;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
}

.ob-uc-pill:hover {
  border-color: var(--clr-blue-600);
  background: var(--clr-blue-50);
  color: var(--clr-blue-600);
}

.ob-uc-pill.selected {
  border-color: var(--clr-blue-600);
  background: var(--clr-blue-100);
  color: var(--clr-blue-700);
  font-weight: 600;
}

.ob-submit {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 24px;
  color: #fff;
  background: var(--clr-blue-600);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .15s;
  box-shadow: 0 1px 3px rgba(28, 86, 254, .3);
}

.ob-submit:hover {
  background: var(--clr-blue-700);
  transform: translateY(-1px);
}

.ob-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.ob-confirmation {
  text-align: center;
  padding: 48px 24px;
}

.ob-confirmation-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: var(--clr-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.ob-confirmation h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.ob-confirmation p {
  font-size: .88rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* Modal/Drill-down */
.drill-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(17, 24, 39, .35);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.drill-overlay.open {
  display: flex;
}

.drill-modal {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  animation: modalIn .25s ease both;
}

.drill-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  background: var(--clr-surface);
  z-index: 1;
}

.drill-modal-header h3 {
  font-size: .92rem;
  font-weight: 700;
}

.drill-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.drill-modal-close:hover {
  background: var(--clr-border);
  color: var(--clr-text);
}

.drill-modal-body {
  padding: 20px;
}

.drill-modal-body p {
  font-size: .84rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.drill-modal-body p:last-child {
  margin-bottom: 0;
}

.drill-modal-body .drill-placeholder {
  padding: 20px;
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  border: 1.5px dashed var(--clr-border);
  text-align: center;
  color: var(--clr-text-muted);
  font-size: .82rem;
  margin-top: 8px;
}

/* Report View Styles: slightly thinner padding so hint arrow has room */
.report-view {
  padding: 18px 20px;
  height: 100%;
  overflow-y: auto;
  background: var(--clr-surface);
}

.report-view h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.report-subtitle {
  color: var(--clr-text-muted);
  font-size: .78rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.report-section {
  margin-bottom: 28px;
}

.report-section h3 {
  font-family: var(--font-display);
  font-size: .88rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.geo-summary {
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: .84rem;
}

.badge {
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Report tables: scoped under .report-view so layout and alignment always apply */
.report-view .campaign-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.report-view .campaign-table thead tr {
  background: var(--clr-surface-alt);
  border-bottom: 2px solid var(--clr-border);
}

.report-view .campaign-table th {
  padding: 8px 10px;
  font-weight: 600;
  font-size: .75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
}

/* Campaign names shortened so Action column has room for button + arrow */
.report-view .campaign-table th:nth-child(1),
.report-view .campaign-table td:nth-child(1) {
  width: 28%;
  min-width: 0;
  word-break: break-word;
  padding-right: 10px;
}

.report-view .campaign-table td:nth-child(1) {
  text-align: left;
  white-space: nowrap;
}

.report-view .campaign-table th:nth-child(2),
.report-view .campaign-table td:nth-child(2) {
  width: 22%;
  white-space: nowrap;
  text-align: right;
}

.report-view .campaign-table th:nth-child(3),
.report-view .campaign-table td:nth-child(3) {
  width: 18%;
  text-align: right;
}

.report-view .campaign-table th:nth-child(4),
.report-view .campaign-table td:nth-child(4) {
  width: 32%;
  min-width: 120px;
  text-align: center;
}

/* Action column: center the button; arrow is absolute so it doesn’t affect centering */
.report-view .campaign-table td:nth-child(4) {
  text-align: center;
  overflow: visible;
}

.report-view .campaign-table .action-cell-content {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.report-view .campaign-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--clr-border);
  font-size: .82rem;
  vertical-align: top;
}

.report-view .campaign-table tbody tr:last-child td {
  border-bottom: none;
}

.report-view .campaign-table tbody tr:hover td {
  background: var(--clr-blue-50);
}

.velocity-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.velocity-card {
  flex: 1;
  padding: 14px;
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--clr-border-light);
}

.velocity-card .label {
  font-size: .7rem;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.velocity-card .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  font-family: var(--font-display);
}

.velocity-card .value.positive {
  color: var(--clr-green);
}

.data-sources-compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--clr-surface-alt);
  border-radius: 20px;
  font-size: .72rem;
  cursor: pointer;
  border: 1px solid var(--clr-border-light);
  transition: background .15s;
}

.ds-pill:hover {
  background: var(--clr-blue-50);
  border-color: var(--clr-blue-100);
}

.ds-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-green);
}

.ds-name {
  color: var(--clr-text-secondary);
  font-weight: 500;
}

.ds-date {
  color: var(--clr-text-muted);
}

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

.roi-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s;
  border: 1px solid var(--clr-border-light);
}

.roi-list li:hover {
  background: var(--clr-blue-50);
  border-color: var(--clr-blue-100);
}

.roi-label {
  flex: 1;
  font-size: .82rem;
  color: var(--clr-text-secondary);
}

.roi-arrow {
  color: var(--clr-text-muted);
}

.campaign-type {
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.type-conquesting { background: var(--clr-blue-100); color: var(--clr-blue-700); }
.type-branded { background: var(--clr-green-bg); color: #0a7b5a; }
.type-velocity { background: var(--clr-orange-bg); color: var(--clr-orange); }

.roas-good { color: var(--clr-green); font-weight: 600; }
.roas-bad { color: var(--clr-red); font-weight: 600; }

.rec-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  min-width: 5em;
  box-sizing: border-box;
}

.rec-btn:hover { opacity: 0.9; }
.rec-btn-blue { background: var(--clr-blue-600); color: white; }
.rec-btn-red { background: var(--clr-red); color: white; }
.rec-btn-gray { background: var(--clr-text-muted); color: white; }
.rec-btn.done { background: var(--clr-green); cursor: default; }

.delta-up { color: var(--clr-green); font-weight: 600; }
.delta-down { color: var(--clr-red); font-weight: 600; }
.delta-flat { color: var(--clr-text-muted); }

.audit-context-box {
  padding: 16px;
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border-light);
}

.clickable-row {
  cursor: pointer;
  transition: background .15s;
}

.clickable-row:hover {
  background: var(--clr-blue-50);
}

/* Responsive: collapse to two columns so center expands when right panel is hidden */
@media (max-width: 960px) {
  .av-grid {
    grid-template-columns: 180px 1fr;
  }
  .av-grid.right-panel-hidden {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 600px) {
  .av-grid {
    grid-template-columns: 82px 1fr;
  }
  .av-grid.right-panel-hidden {
    grid-template-columns: 82px 1fr;
  }
}